From 1102aec90dfac7a31b13ae1a545dbdb6d78a1410 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 24 Dec 2023 00:24:14 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2322) --- aiplatform/v1/aiplatform-api.json | 797 ++++++- aiplatform/v1/aiplatform-gen.go | 1846 +++++++++++++---- aiplatform/v1beta1/aiplatform-api.json | 341 ++- aiplatform/v1beta1/aiplatform-gen.go | 1002 +++++---- .../v1/servicenetworking-api.json | 4 +- servicenetworking/v1/servicenetworking-gen.go | 2 +- .../v1beta/servicenetworking-api.json | 4 +- .../v1beta/servicenetworking-gen.go | 2 +- 8 files changed, 3039 insertions(+), 959 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 9e4ebde556e..925bb15b770 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -3377,6 +3377,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "streamGenerateContent": { + "description": "Generate content with multimodal inputs with streaming support.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:streamGenerateContent", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.streamGenerateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:streamGenerateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "undeployModel": { "description": "Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's using.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:undeployModel", @@ -11269,6 +11297,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "streamGenerateContent": { + "description": "Generate content with multimodal inputs with streaming support.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:streamGenerateContent", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.publishers.models.streamGenerateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:streamGenerateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -12701,6 +12757,37 @@ }, "tensorboards": { "methods": { + "batchRead": { + "description": "Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}:batchRead", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tensorboards.batchRead", + "parameterOrder": [ + "tensorboard" + ], + "parameters": { + "tensorboard": { + "description": "Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + "required": true, + "type": "string" + }, + "timeSeries": { + "description": "Required. The resource names of the TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`", + "location": "query", + "repeated": true, + "type": "string" + } + }, + "path": "v1/{+tensorboard}:batchRead", + "response": { + "$ref": "GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a Tensorboard.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards", @@ -12921,6 +13008,34 @@ "resources": { "experiments": { "methods": { + "batchCreate": { + "description": "Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}:batchCreate", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tensorboards.experiments.batchCreate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest messages must be sub resources of this TensorboardExperiment.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:batchCreate", + "request": { + "$ref": "GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a TensorboardExperiment.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments", @@ -13657,83 +13772,6 @@ }, "timeSeries": { "methods": { - "batchCreate": { - "description": "Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchCreate", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchCreate", - "parameterOrder": [ - "parent", - "runsId" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest messages must be sub resources of this TensorboardExperiment.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - "required": true, - "type": "string" - }, - "runsId": { - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/runs/{runsId}/timeSeries:batchCreate", - "request": { - "$ref": "GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "batchRead": { - "description": "Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchRead", - "parameterOrder": [ - "tensorboard", - "experimentsId", - "runsId" - ], - "parameters": { - "experimentsId": { - "location": "path", - "required": true, - "type": "string" - }, - "runsId": { - "location": "path", - "required": true, - "type": "string" - }, - "tensorboard": { - "description": "Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - "required": true, - "type": "string" - }, - "timeSeries": { - "description": "Required. The resource names of the TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`", - "location": "query", - "repeated": true, - "type": "string" - } - }, - "path": "v1/{+tensorboard}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead", - "response": { - "$ref": "GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "create": { "description": "Creates a TensorboardTimeSeries.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries", @@ -14684,7 +14722,7 @@ } } }, - "revision": "20231211", + "revision": "20231218", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -16528,6 +16566,63 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1Candidate": { + "description": "A response candidate generated from the model.", + "id": "GoogleCloudAiplatformV1Candidate", + "properties": { + "citationMetadata": { + "$ref": "GoogleCloudAiplatformV1CitationMetadata", + "description": "Output only. Source attribution of the generated content.", + "readOnly": true + }, + "content": { + "$ref": "GoogleCloudAiplatformV1Content", + "description": "Output only. Content parts of the candidate.", + "readOnly": true + }, + "finishMessage": { + "description": "Output only. Describes the reason the mode stopped generating tokens in more detail. This is only filled when `finish_reason` is set.", + "readOnly": true, + "type": "string" + }, + "finishReason": { + "description": "Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.", + "enum": [ + "FINISH_REASON_UNSPECIFIED", + "STOP", + "MAX_TOKENS", + "SAFETY", + "RECITATION", + "OTHER" + ], + "enumDescriptions": [ + "The finish reason is unspecified.", + "Natural stop point of the model or provided stop sequence.", + "The maximum number of tokens as specified in the request was reached.", + "The token generation was stopped as the response was flagged for safety reasons. NOTE: When streaming the Candidate.content will be empty if content filters blocked the output.", + "The token generation was stopped as the response was flagged for unauthorized citations.", + "All other reasons that stopped the token generation" + ], + "readOnly": true, + "type": "string" + }, + "index": { + "description": "Output only. Index of the candidate.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "safetyRatings": { + "description": "Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.", + "items": { + "$ref": "GoogleCloudAiplatformV1SafetyRating" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateMetatdata": { "description": "This message will be placed in the metadata field of a google.longrunning.Operation associated with a CheckTrialEarlyStoppingState request.", "id": "GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateMetatdata", @@ -16564,6 +16659,60 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1Citation": { + "description": "Source attributions for content.", + "id": "GoogleCloudAiplatformV1Citation", + "properties": { + "endIndex": { + "description": "Output only. End index into the content.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "license": { + "description": "Output only. License of the attribution.", + "readOnly": true, + "type": "string" + }, + "publicationDate": { + "$ref": "GoogleTypeDate", + "description": "Output only. Publication date of the attribution.", + "readOnly": true + }, + "startIndex": { + "description": "Output only. Start index into the content.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "title": { + "description": "Output only. Title of the attribution.", + "readOnly": true, + "type": "string" + }, + "uri": { + "description": "Output only. Url reference of the attribution.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1CitationMetadata": { + "description": "A collection of source attributions for a piece of content.", + "id": "GoogleCloudAiplatformV1CitationMetadata", + "properties": { + "citations": { + "description": "Output only. List of citations.", + "items": { + "$ref": "GoogleCloudAiplatformV1Citation" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1CompleteTrialRequest": { "description": "Request message for VizierService.CompleteTrial.", "id": "GoogleCloudAiplatformV1CompleteTrialRequest", @@ -19227,7 +19376,7 @@ "description": "Only present for custom code training export use case. Records data stats, i.e., train/validation/test item/annotation counts calculated during the export operation." }, "exportedFiles": { - "description": "All of the files that are exported in this export operation. For custom code training export, only three (training, validation and test) GCS paths in wildcard format are populated (e.g., gs://.../training-*).", + "description": "All of the files that are exported in this export operation. For custom code training export, only three (training, validation and test) Cloud Storage paths in wildcard format are populated (for example, gs://.../training-*).", "items": { "type": "string" }, @@ -19545,7 +19694,7 @@ "type": "string" }, "versionColumnName": { - "description": "Only applicable for Vertex AI Feature Store. The name of the BigQuery Table/View columnn hosting data for this version. If no value is provided, will use feature_id.", + "description": "Only applicable for Vertex AI Feature Store. The name of the BigQuery Table/View column hosting data for this version. If no value is provided, will use feature_id.", "type": "string" } }, @@ -20468,6 +20617,63 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1FunctionCall": { + "description": "A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing the parameters and their values.", + "id": "GoogleCloudAiplatformV1FunctionCall", + "properties": { + "args": { + "additionalProperties": { + "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.", + "type": "object" + }, + "name": { + "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FunctionDeclaration": { + "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.", + "id": "GoogleCloudAiplatformV1FunctionDeclaration", + "properties": { + "description": { + "description": "Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.", + "type": "string" + }, + "name": { + "description": "Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.", + "type": "string" + }, + "parameters": { + "$ref": "GoogleCloudAiplatformV1Schema", + "description": "Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FunctionResponse": { + "description": "The result output from a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a [FunctionCall] made based on model prediction.", + "id": "GoogleCloudAiplatformV1FunctionResponse", + "properties": { + "name": { + "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Required. The function response in JSON object format.", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1GcsDestination": { "description": "The Google Cloud Storage location where the output is to be written to.", "id": "GoogleCloudAiplatformV1GcsDestination", @@ -20493,8 +20699,164 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1GenericOperationMetadata": { - "description": "Generic Metadata shared by all operations.", + "GoogleCloudAiplatformV1GenerateContentRequest": { + "description": "Request message for [PredictionService.GenerateContent].", + "id": "GoogleCloudAiplatformV1GenerateContentRequest", + "properties": { + "contents": { + "description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.", + "items": { + "$ref": "GoogleCloudAiplatformV1Content" + }, + "type": "array" + }, + "endpoint": { + "deprecated": true, + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "type": "string" + }, + "generationConfig": { + "$ref": "GoogleCloudAiplatformV1GenerationConfig", + "description": "Optional. Generation config." + }, + "safetySettings": { + "description": "Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.", + "items": { + "$ref": "GoogleCloudAiplatformV1SafetySetting" + }, + "type": "array" + }, + "tools": { + "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. The only supported tool is currently `Function`", + "items": { + "$ref": "GoogleCloudAiplatformV1Tool" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GenerateContentResponse": { + "description": "Response message for [PredictionService.GenerateContent].", + "id": "GoogleCloudAiplatformV1GenerateContentResponse", + "properties": { + "candidates": { + "description": "Output only. Generated candidates.", + "items": { + "$ref": "GoogleCloudAiplatformV1Candidate" + }, + "readOnly": true, + "type": "array" + }, + "promptFeedback": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback", + "description": "Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations.", + "readOnly": true + }, + "usageMetadata": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata", + "description": "Usage metadata about the response(s)." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback": { + "description": "Content filter results for a prompt sent in the request.", + "id": "GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback", + "properties": { + "blockReason": { + "description": "Output only. Blocked reason.", + "enum": [ + "BLOCKED_REASON_UNSPECIFIED", + "SAFETY", + "OTHER" + ], + "enumDescriptions": [ + "Unspecified blocked reason.", + "Candidates blocked due to safety.", + "Candidates blocked due to other reason." + ], + "readOnly": true, + "type": "string" + }, + "blockReasonMessage": { + "description": "Output only. A readable block reason message.", + "readOnly": true, + "type": "string" + }, + "safetyRatings": { + "description": "Output only. Safety ratings.", + "items": { + "$ref": "GoogleCloudAiplatformV1SafetyRating" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata": { + "description": "Usage metadata about response(s).", + "id": "GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata", + "properties": { + "candidatesTokenCount": { + "description": "Number of tokens in the response(s).", + "format": "int32", + "type": "integer" + }, + "promptTokenCount": { + "description": "Number of tokens in the request.", + "format": "int32", + "type": "integer" + }, + "totalTokenCount": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GenerationConfig": { + "description": "Generation config.", + "id": "GoogleCloudAiplatformV1GenerationConfig", + "properties": { + "candidateCount": { + "description": "Optional. Number of candidates to generate.", + "format": "int32", + "type": "integer" + }, + "maxOutputTokens": { + "description": "Optional. The maximum number of output tokens to generate per message.", + "format": "int32", + "type": "integer" + }, + "stopSequences": { + "description": "Optional. Stop sequences.", + "items": { + "type": "string" + }, + "type": "array" + }, + "temperature": { + "description": "Optional. Controls the randomness of predictions.", + "format": "float", + "type": "number" + }, + "topK": { + "description": "Optional. If specified, top-k sampling will be used.", + "format": "float", + "type": "number" + }, + "topP": { + "description": "Optional. If specified, nucleus sampling will be used.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1GenericOperationMetadata": { + "description": "Generic Metadata shared by all operations.", "id": "GoogleCloudAiplatformV1GenericOperationMetadata", "properties": { "createTime": { @@ -23156,7 +23518,7 @@ "type": "array" }, "metadata": { - "description": "The metadata of the ModelEvaluation. For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a structured value with keys of \"pipeline_job_id\", \"evaluation_dataset_type\", \"evaluation_dataset_path\".", + "description": "The metadata of the ModelEvaluation. For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a structured value with keys of \"pipeline_job_id\", \"evaluation_dataset_type\", \"evaluation_dataset_path\", \"row_based_metrics_path\".", "type": "any" }, "metrics": { @@ -24246,6 +24608,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", @@ -24285,6 +24681,11 @@ "readOnly": true, "type": "string" }, + "isUpgradable": { + "description": "Output only. Whether NotebookRuntime is upgradable.", + "readOnly": true, + "type": "boolean" + }, "labels": { "additionalProperties": { "type": "string" @@ -24297,6 +24698,13 @@ "readOnly": true, "type": "string" }, + "networkTags": { + "description": "Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).", + "items": { + "type": "string" + }, + "type": "array" + }, "notebookRuntimeTemplateRef": { "$ref": "GoogleCloudAiplatformV1NotebookRuntimeTemplateRef", "description": "Output only. The pointer to NotebookRuntimeTemplate this NotebookRuntime is created from.", @@ -24322,6 +24730,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": [ @@ -24425,6 +24838,13 @@ "$ref": "GoogleCloudAiplatformV1NetworkSpec", "description": "Optional. Network spec." }, + "networkTags": { + "description": "Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).", + "items": { + "type": "string" + }, + "type": "array" + }, "notebookRuntimeType": { "description": "Optional. Immutable. The type of the notebook runtime template.", "enum": [ @@ -24439,10 +24859,18 @@ ], "type": "string" }, + "reservationAffinity": { + "$ref": "GoogleCloudAiplatformV1NotebookReservationAffinity", + "description": "Optional. Reservation Affinity of the notebook runtime template." + }, "serviceAccount": { "description": "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.", "type": "string" }, + "shieldedVmConfig": { + "$ref": "GoogleCloudAiplatformV1ShieldedVmConfig", + "description": "Optional. Immutable. Runtime Shielded VM spec." + }, "updateTime": { "description": "Output only. Timestamp when this NotebookRuntimeTemplate was most recently updated.", "format": "google-datetime", @@ -24471,6 +24899,14 @@ "$ref": "GoogleCloudAiplatformV1FileData", "description": "Optional. URI based data." }, + "functionCall": { + "$ref": "GoogleCloudAiplatformV1FunctionCall", + "description": "Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values." + }, + "functionResponse": { + "$ref": "GoogleCloudAiplatformV1FunctionResponse", + "description": "Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model." + }, "inlineData": { "$ref": "GoogleCloudAiplatformV1Blob", "description": "Optional. Inlined bytes data." @@ -25969,6 +26405,99 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1SafetyRating": { + "description": "Safety rating corresponding to the generated content.", + "id": "GoogleCloudAiplatformV1SafetyRating", + "properties": { + "blocked": { + "description": "Output only. Indicates whether the content was filtered out because of this rating.", + "readOnly": true, + "type": "boolean" + }, + "category": { + "description": "Output only. Harm category.", + "enum": [ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT" + ], + "enumDescriptions": [ + "The harm category is unspecified.", + "The harm category is hate speech.", + "The harm category is dangerous content.", + "The harm category is harassment.", + "The harm category is sexually explicit content." + ], + "readOnly": true, + "type": "string" + }, + "probability": { + "description": "Output only. Harm probability levels in the content.", + "enum": [ + "HARM_PROBABILITY_UNSPECIFIED", + "NEGLIGIBLE", + "LOW", + "MEDIUM", + "HIGH" + ], + "enumDescriptions": [ + "Harm probability unspecified.", + "Negligible level of harm.", + "Low level of harm.", + "Medium level of harm.", + "High level of harm." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1SafetySetting": { + "description": "Safety settings.", + "id": "GoogleCloudAiplatformV1SafetySetting", + "properties": { + "category": { + "description": "Required. Harm category.", + "enum": [ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT" + ], + "enumDescriptions": [ + "The harm category is unspecified.", + "The harm category is hate speech.", + "The harm category is dangerous content.", + "The harm category is harassment.", + "The harm category is sexually explicit content." + ], + "type": "string" + }, + "threshold": { + "description": "Required. The harm block threshold.", + "enum": [ + "HARM_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_ONLY_HIGH", + "BLOCK_NONE" + ], + "enumDescriptions": [ + "Unspecified harm block threshold.", + "Block low threshold and above (i.e. block more).", + "Block medium threshold and above.", + "Block only high threshold (i.e. block less).", + "Block none." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SampleConfig": { "description": "Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.", "id": "GoogleCloudAiplatformV1SampleConfig", @@ -26235,6 +26764,11 @@ "description": "Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false.", "type": "boolean" }, + "maxWaitDuration": { + "description": "Optional. This is the maximum time a user will wait in the QRM queue for resources. Default is 1 day", + "format": "google-duration", + "type": "string" + }, "restartJobOnWorkerRestart": { "description": "Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.", "type": "boolean" @@ -26247,6 +26781,76 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1Schema": { + "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). More fields may be added in the future as needed.", + "id": "GoogleCloudAiplatformV1Schema", + "properties": { + "description": { + "description": "Optional. The description of the data.", + "type": "string" + }, + "enum": { + "description": "Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}", + "items": { + "type": "string" + }, + "type": "array" + }, + "example": { + "description": "Optional. Example of the object. Will only populated when the object is the root.", + "type": "any" + }, + "format": { + "description": "Optional. The format of the data. Supported formats: for NUMBER type: float, double for INTEGER type: int32, int64", + "type": "string" + }, + "items": { + "$ref": "GoogleCloudAiplatformV1Schema", + "description": "Optional. Schema of the elements of Type.ARRAY." + }, + "nullable": { + "description": "Optional. Indicates if the value may be null.", + "type": "boolean" + }, + "properties": { + "additionalProperties": { + "$ref": "GoogleCloudAiplatformV1Schema" + }, + "description": "Optional. Properties of Type.OBJECT.", + "type": "object" + }, + "required": { + "description": "Optional. Required properties of Type.OBJECT.", + "items": { + "type": "string" + }, + "type": "array" + }, + "type": { + "description": "Optional. The type of the data.", + "enum": [ + "TYPE_UNSPECIFIED", + "STRING", + "NUMBER", + "INTEGER", + "BOOLEAN", + "ARRAY", + "OBJECT" + ], + "enumDescriptions": [ + "Not specified, should not be used.", + "OpenAPI string type", + "OpenAPI number type", + "OpenAPI integer type", + "OpenAPI boolean type", + "OpenAPI array type", + "OpenAPI object type" + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SchemaAnnotationSpecColor": { "description": "An entry of mapping between color and AnnotationSpec. The mapping is used in segmentation mask.", "id": "GoogleCloudAiplatformV1SchemaAnnotationSpecColor", @@ -30100,6 +30704,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ShieldedVmConfig": { + "description": "A set of Shielded Instance options. See [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).", + "id": "GoogleCloudAiplatformV1ShieldedVmConfig", + "properties": { + "enableSecureBoot": { + "description": "Defines whether the instance has [Secure Boot](https://cloud.google.com/compute/shielded-vm/docs/shielded-vm#secure-boot) enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SmoothGradConfig": { "description": "Config for SmoothGrad approximation of gradients. When enabled, the gradients are approximated by averaging the gradients from noisy samples in the vicinity of the inputs. Adding noise can help improve the computed gradients. Refer to this paper for more details: https://arxiv.org/pdf/1706.03825.pdf", "id": "GoogleCloudAiplatformV1SmoothGradConfig", @@ -31428,6 +32043,20 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1Tool": { + "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.", + "id": "GoogleCloudAiplatformV1Tool", + "properties": { + "functionDeclarations": { + "description": "Optional. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.", + "items": { + "$ref": "GoogleCloudAiplatformV1FunctionDeclaration" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1TrainingConfig": { "description": "CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.", "id": "GoogleCloudAiplatformV1TrainingConfig", @@ -32257,7 +32886,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `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.", + "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" }, diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index a5a32e56726..f197011f7ea 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -4497,6 +4497,70 @@ type GoogleCloudAiplatformV1CancelPipelineJobRequest struct { type GoogleCloudAiplatformV1CancelTrainingPipelineRequest struct { } +// GoogleCloudAiplatformV1Candidate: A response candidate generated from +// the model. +type GoogleCloudAiplatformV1Candidate struct { + // CitationMetadata: Output only. Source attribution of the generated + // content. + CitationMetadata *GoogleCloudAiplatformV1CitationMetadata `json:"citationMetadata,omitempty"` + + // Content: Output only. Content parts of the candidate. + Content *GoogleCloudAiplatformV1Content `json:"content,omitempty"` + + // FinishMessage: Output only. Describes the reason the mode stopped + // generating tokens in more detail. This is only filled when + // `finish_reason` is set. + FinishMessage string `json:"finishMessage,omitempty"` + + // FinishReason: Output only. The reason why the model stopped + // generating tokens. If empty, the model has not stopped generating the + // tokens. + // + // Possible values: + // "FINISH_REASON_UNSPECIFIED" - The finish reason is unspecified. + // "STOP" - Natural stop point of the model or provided stop sequence. + // "MAX_TOKENS" - The maximum number of tokens as specified in the + // request was reached. + // "SAFETY" - The token generation was stopped as the response was + // flagged for safety reasons. NOTE: When streaming the + // Candidate.content will be empty if content filters blocked the + // output. + // "RECITATION" - The token generation was stopped as the response was + // flagged for unauthorized citations. + // "OTHER" - All other reasons that stopped the token generation + FinishReason string `json:"finishReason,omitempty"` + + // Index: Output only. Index of the candidate. + Index int64 `json:"index,omitempty"` + + // SafetyRatings: Output only. List of ratings for the safety of a + // response candidate. There is at most one rating per category. + SafetyRatings []*GoogleCloudAiplatformV1SafetyRating `json:"safetyRatings,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CitationMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CitationMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1Candidate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1Candidate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateMetatdata: This // message will be placed in the metadata field of a // google.longrunning.Operation associated with a @@ -4569,6 +4633,78 @@ func (s *GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateResponse) MarshalJSO return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1Citation: Source attributions for content. +type GoogleCloudAiplatformV1Citation struct { + // EndIndex: Output only. End index into the content. + EndIndex int64 `json:"endIndex,omitempty"` + + // License: Output only. License of the attribution. + License string `json:"license,omitempty"` + + // PublicationDate: Output only. Publication date of the attribution. + PublicationDate *GoogleTypeDate `json:"publicationDate,omitempty"` + + // StartIndex: Output only. Start index into the content. + StartIndex int64 `json:"startIndex,omitempty"` + + // Title: Output only. Title of the attribution. + Title string `json:"title,omitempty"` + + // Uri: Output only. Url reference of the attribution. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndIndex") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndIndex") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1Citation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1Citation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1CitationMetadata: A collection of source +// attributions for a piece of content. +type GoogleCloudAiplatformV1CitationMetadata struct { + // Citations: Output only. List of citations. + Citations []*GoogleCloudAiplatformV1Citation `json:"citations,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Citations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Citations") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1CitationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1CitationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1CompleteTrialRequest: Request message for // VizierService.CompleteTrial. type GoogleCloudAiplatformV1CompleteTrialRequest struct { @@ -9565,8 +9701,8 @@ type GoogleCloudAiplatformV1ExportDataResponse struct { // ExportedFiles: All of the files that are exported in this export // operation. For custom code training export, only three (training, - // validation and test) GCS paths in wildcard format are populated - // (e.g., gs://.../training-*). + // validation and test) Cloud Storage paths in wildcard format are + // populated (for example, gs://.../training-*). ExportedFiles []string `json:"exportedFiles,omitempty"` // ForceSendFields is a list of field names (e.g. "DataStats") to @@ -10177,8 +10313,8 @@ type GoogleCloudAiplatformV1Feature struct { ValueType string `json:"valueType,omitempty"` // VersionColumnName: Only applicable for Vertex AI Feature Store. The - // name of the BigQuery Table/View columnn hosting data for this - // version. If no value is provided, will use feature_id. + // name of the BigQuery Table/View column hosting data for this version. + // If no value is provided, will use feature_id. VersionColumnName string `json:"versionColumnName,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -12096,6 +12232,129 @@ func (s *GoogleCloudAiplatformV1FractionSplit) UnmarshalJSON(data []byte) error return nil } +// GoogleCloudAiplatformV1FunctionCall: A predicted [FunctionCall] +// returned from the model that contains a string representing the +// [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 googleapi.RawMessage `json:"args,omitempty"` + + // Name: Required. The name of the function to call. Matches + // [FunctionDeclaration.name]. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Args") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Args") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1FunctionCall) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1FunctionCall + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1FunctionDeclaration: Structured representation +// of a function declaration as defined by the OpenAPI 3.0 specification +// (https://spec.openapis.org/oas/v3.0.3). Included in this declaration +// are the function name and parameters. This FunctionDeclaration is a +// representation of a block of code that can be used as a `Tool` by the +// model and executed by the client. +type GoogleCloudAiplatformV1FunctionDeclaration struct { + // Description: Optional. Description and purpose of the function. Model + // uses it to decide how and whether to call the function. + Description string `json:"description,omitempty"` + + // Name: Required. The name of the function to call. Must start with a + // letter or an underscore. Must be a-z, A-Z, 0-9, or contain + // underscores and dashes, with a maximum length of 64. + Name string `json:"name,omitempty"` + + // Parameters: Optional. Describes the parameters to this function in + // JSON Schema Object format. Reflects the Open API 3.03 Parameter + // Object. string Key: the name of the parameter. Parameter names are + // case sensitive. Schema Value: the Schema defining the type used for + // the parameter. For function with no parameters, this can be left + // unset. Example with 1 required and 1 optional parameter: type: OBJECT + // properties: param1: type: STRING param2: type: INTEGER required: - + // param1 + Parameters *GoogleCloudAiplatformV1Schema `json:"parameters,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1FunctionDeclaration) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1FunctionDeclaration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1FunctionResponse: The result output from a +// [FunctionCall] that contains a string representing the +// [FunctionDeclaration.name] and a structured JSON object containing +// any output from the function is used as context to the model. This +// should contain the result of a [FunctionCall] made based on model +// prediction. +type GoogleCloudAiplatformV1FunctionResponse struct { + // Name: Required. The name of the function to call. Matches + // [FunctionDeclaration.name] and [FunctionCall.name]. + Name string `json:"name,omitempty"` + + // Response: Required. The function response in JSON object format. + Response googleapi.RawMessage `json:"response,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1FunctionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1FunctionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1GcsDestination: The Google Cloud Storage // location where the output is to be written to. type GoogleCloudAiplatformV1GcsDestination struct { @@ -12159,6 +12418,237 @@ func (s *GoogleCloudAiplatformV1GcsSource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1GenerateContentRequest: Request message for +// [PredictionService.GenerateContent]. +type GoogleCloudAiplatformV1GenerateContentRequest struct { + // Contents: Required. The content of the current conversation with the + // model. For single-turn queries, this is a single instance. For + // multi-turn queries, this is a repeated field that contains + // conversation history + latest request. + Contents []*GoogleCloudAiplatformV1Content `json:"contents,omitempty"` + + // Endpoint: Required. The name of the Endpoint requested to serve the + // prediction. Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + Endpoint string `json:"endpoint,omitempty"` + + // GenerationConfig: Optional. Generation config. + GenerationConfig *GoogleCloudAiplatformV1GenerationConfig `json:"generationConfig,omitempty"` + + // SafetySettings: Optional. Per request settings for blocking unsafe + // content. Enforced on GenerateContentResponse.candidates. + SafetySettings []*GoogleCloudAiplatformV1SafetySetting `json:"safetySettings,omitempty"` + + // Tools: Optional. A list of `Tools` the model may use to generate the + // next response. A `Tool` is a piece of code that enables the system to + // interact with external systems to perform an action, or set of + // actions, outside of knowledge and scope of the model. The only + // supported tool is currently `Function` + Tools []*GoogleCloudAiplatformV1Tool `json:"tools,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Contents") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Contents") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1GenerateContentRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GenerateContentRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1GenerateContentResponse: Response message for +// [PredictionService.GenerateContent]. +type GoogleCloudAiplatformV1GenerateContentResponse struct { + // Candidates: Output only. Generated candidates. + Candidates []*GoogleCloudAiplatformV1Candidate `json:"candidates,omitempty"` + + // PromptFeedback: Output only. Content filter results for a prompt sent + // in the request. Note: Sent only in the first stream chunk. Only + // happens when no candidates were generated due to content violations. + PromptFeedback *GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback `json:"promptFeedback,omitempty"` + + // UsageMetadata: Usage metadata about the response(s). + UsageMetadata *GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata `json:"usageMetadata,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Candidates") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Candidates") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1GenerateContentResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GenerateContentResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback: Content +// filter results for a prompt sent in the request. +type GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback struct { + // BlockReason: Output only. Blocked reason. + // + // Possible values: + // "BLOCKED_REASON_UNSPECIFIED" - Unspecified blocked reason. + // "SAFETY" - Candidates blocked due to safety. + // "OTHER" - Candidates blocked due to other reason. + BlockReason string `json:"blockReason,omitempty"` + + // BlockReasonMessage: Output only. A readable block reason message. + BlockReasonMessage string `json:"blockReasonMessage,omitempty"` + + // SafetyRatings: Output only. Safety ratings. + SafetyRatings []*GoogleCloudAiplatformV1SafetyRating `json:"safetyRatings,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BlockReason") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BlockReason") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata: Usage +// metadata about response(s). +type GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata struct { + // CandidatesTokenCount: Number of tokens in the response(s). + CandidatesTokenCount int64 `json:"candidatesTokenCount,omitempty"` + + // PromptTokenCount: Number of tokens in the request. + PromptTokenCount int64 `json:"promptTokenCount,omitempty"` + + TotalTokenCount int64 `json:"totalTokenCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CandidatesTokenCount") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CandidatesTokenCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1GenerationConfig: Generation config. +type GoogleCloudAiplatformV1GenerationConfig struct { + // CandidateCount: Optional. Number of candidates to generate. + CandidateCount int64 `json:"candidateCount,omitempty"` + + // MaxOutputTokens: Optional. The maximum number of output tokens to + // generate per message. + MaxOutputTokens int64 `json:"maxOutputTokens,omitempty"` + + // StopSequences: Optional. Stop sequences. + StopSequences []string `json:"stopSequences,omitempty"` + + // Temperature: Optional. Controls the randomness of predictions. + Temperature float64 `json:"temperature,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. + TopP float64 `json:"topP,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CandidateCount") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CandidateCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1GenerationConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1GenerationConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1GenerationConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1GenerationConfig + var s1 struct { + Temperature gensupport.JSONFloat64 `json:"temperature"` + TopK gensupport.JSONFloat64 `json:"topK"` + 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.TopK = float64(s1.TopK) + s.TopP = float64(s1.TopP) + return nil +} + // GoogleCloudAiplatformV1GenericOperationMetadata: Generic Metadata // shared by all operations. type GoogleCloudAiplatformV1GenericOperationMetadata struct { @@ -16981,7 +17471,8 @@ type GoogleCloudAiplatformV1ModelEvaluation struct { // Metadata: The metadata of the ModelEvaluation. For the // ModelEvaluation uploaded from Managed Pipeline, metadata contains a // structured value with keys of "pipeline_job_id", - // "evaluation_dataset_type", "evaluation_dataset_path". + // "evaluation_dataset_type", "evaluation_dataset_path", + // "row_based_metrics_path". Metadata interface{} `json:"metadata,omitempty"` // Metrics: Evaluation metrics of the Model. The schema of the metrics @@ -18939,6 +19430,57 @@ func (s *GoogleCloudAiplatformV1NotebookIdleShutdownConfig) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, 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. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConsumeReservationType") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1NotebookReservationAffinity) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1NotebookReservationAffinity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, 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. @@ -18973,6 +19515,9 @@ type GoogleCloudAiplatformV1NotebookRuntime struct { // ACTIVE state. HealthState string `json:"healthState,omitempty"` + // IsUpgradable: Output only. Whether NotebookRuntime is upgradable. + IsUpgradable bool `json:"isUpgradable,omitempty"` + // Labels: The labels with user-defined metadata to organize your // NotebookRuntime. Label keys and values can be no longer than 64 // characters (Unicode codepoints), can only contain lowercase letters, @@ -18993,6 +19538,11 @@ type GoogleCloudAiplatformV1NotebookRuntime struct { // Name: Output only. The resource name of the NotebookRuntime. Name string `json:"name,omitempty"` + // NetworkTags: Optional. The Compute Engine tags to add to runtime (see + // Tagging instances + // (https://cloud.google.com/vpc/docs/add-remove-network-tags)). + NetworkTags []string `json:"networkTags,omitempty"` + // NotebookRuntimeTemplateRef: Output only. The pointer to // NotebookRuntimeTemplate this NotebookRuntime is created from. NotebookRuntimeTemplateRef *GoogleCloudAiplatformV1NotebookRuntimeTemplateRef `json:"notebookRuntimeTemplateRef,omitempty"` @@ -19012,6 +19562,10 @@ type GoogleCloudAiplatformV1NotebookRuntime struct { // 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. // @@ -19120,6 +19674,11 @@ type GoogleCloudAiplatformV1NotebookRuntimeTemplate struct { // NetworkSpec: Optional. Network spec. NetworkSpec *GoogleCloudAiplatformV1NetworkSpec `json:"networkSpec,omitempty"` + // NetworkTags: Optional. The Compute Engine tags to add to runtime (see + // Tagging instances + // (https://cloud.google.com/vpc/docs/add-remove-network-tags)). + NetworkTags []string `json:"networkTags,omitempty"` + // NotebookRuntimeType: Optional. Immutable. The type of the notebook // runtime template. // @@ -19132,6 +19691,10 @@ type GoogleCloudAiplatformV1NotebookRuntimeTemplate struct { // configurations. NotebookRuntimeType string `json:"notebookRuntimeType,omitempty"` + // ReservationAffinity: Optional. Reservation Affinity of the notebook + // runtime template. + ReservationAffinity *GoogleCloudAiplatformV1NotebookReservationAffinity `json:"reservationAffinity,omitempty"` + // ServiceAccount: 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 @@ -19140,6 +19703,9 @@ type GoogleCloudAiplatformV1NotebookRuntimeTemplate struct { // is used. ServiceAccount string `json:"serviceAccount,omitempty"` + // ShieldedVmConfig: Optional. Immutable. Runtime Shielded VM spec. + ShieldedVmConfig *GoogleCloudAiplatformV1ShieldedVmConfig `json:"shieldedVmConfig,omitempty"` + // UpdateTime: Output only. Timestamp when this NotebookRuntimeTemplate // was most recently updated. UpdateTime string `json:"updateTime,omitempty"` @@ -19213,6 +19779,17 @@ type GoogleCloudAiplatformV1Part struct { // FileData: Optional. URI based data. FileData *GoogleCloudAiplatformV1FileData `json:"fileData,omitempty"` + // FunctionCall: Optional. A predicted [FunctionCall] returned from the + // model that contains a string representing the + // [FunctionDeclaration.name] with the parameters and their values. + FunctionCall *GoogleCloudAiplatformV1FunctionCall `json:"functionCall,omitempty"` + + // FunctionResponse: Optional. The result output of a [FunctionCall] + // that contains a string representing the [FunctionDeclaration.name] + // and a structured JSON object containing any output from the function + // call. It is used as context to the model. + FunctionResponse *GoogleCloudAiplatformV1FunctionResponse `json:"functionResponse,omitempty"` + // InlineData: Optional. Inlined bytes data. InlineData *GoogleCloudAiplatformV1Blob `json:"inlineData,omitempty"` @@ -21860,6 +22437,107 @@ func (s *GoogleCloudAiplatformV1ResumeScheduleRequest) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1SafetyRating: Safety rating corresponding to +// the generated content. +type GoogleCloudAiplatformV1SafetyRating struct { + // Blocked: Output only. Indicates whether the content was filtered out + // because of this rating. + Blocked bool `json:"blocked,omitempty"` + + // Category: Output only. Harm category. + // + // Possible values: + // "HARM_CATEGORY_UNSPECIFIED" - The harm category is unspecified. + // "HARM_CATEGORY_HATE_SPEECH" - The harm category is hate speech. + // "HARM_CATEGORY_DANGEROUS_CONTENT" - The harm category is dangerous + // content. + // "HARM_CATEGORY_HARASSMENT" - The harm category is harassment. + // "HARM_CATEGORY_SEXUALLY_EXPLICIT" - The harm category is sexually + // explicit content. + Category string `json:"category,omitempty"` + + // Probability: Output only. Harm probability levels in the content. + // + // Possible values: + // "HARM_PROBABILITY_UNSPECIFIED" - Harm probability unspecified. + // "NEGLIGIBLE" - Negligible level of harm. + // "LOW" - Low level of harm. + // "MEDIUM" - Medium level of harm. + // "HIGH" - High level of harm. + Probability string `json:"probability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Blocked") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Blocked") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1SafetyRating) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SafetyRating + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1SafetySetting: Safety settings. +type GoogleCloudAiplatformV1SafetySetting struct { + // Category: Required. Harm category. + // + // Possible values: + // "HARM_CATEGORY_UNSPECIFIED" - The harm category is unspecified. + // "HARM_CATEGORY_HATE_SPEECH" - The harm category is hate speech. + // "HARM_CATEGORY_DANGEROUS_CONTENT" - The harm category is dangerous + // content. + // "HARM_CATEGORY_HARASSMENT" - The harm category is harassment. + // "HARM_CATEGORY_SEXUALLY_EXPLICIT" - The harm category is sexually + // explicit content. + Category string `json:"category,omitempty"` + + // Threshold: Required. The harm block threshold. + // + // Possible values: + // "HARM_BLOCK_THRESHOLD_UNSPECIFIED" - Unspecified harm block + // threshold. + // "BLOCK_LOW_AND_ABOVE" - Block low threshold and above (i.e. block + // more). + // "BLOCK_MEDIUM_AND_ABOVE" - Block medium threshold and above. + // "BLOCK_ONLY_HIGH" - Block only high threshold (i.e. block less). + // "BLOCK_NONE" - Block none. + Threshold string `json:"threshold,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Category") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Category") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1SafetySetting) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SafetySetting + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1SampleConfig: Active learning data sampling // config. For every active learning labeling iteration, it will select // a batch of data based on the sampling strategy. @@ -22301,6 +22979,10 @@ type GoogleCloudAiplatformV1Scheduling struct { // `Scheduling.restart_job_on_worker_restart` to false. DisableRetries bool `json:"disableRetries,omitempty"` + // MaxWaitDuration: Optional. This is the maximum time a user will wait + // in the QRM queue for resources. Default is 1 day + MaxWaitDuration string `json:"maxWaitDuration,omitempty"` + // RestartJobOnWorkerRestart: Restarts the entire CustomJob if a worker // gets restarted. This feature can be used by distributed training jobs // that are not resilient to workers leaving and joining a job. @@ -22333,6 +23015,74 @@ func (s *GoogleCloudAiplatformV1Scheduling) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1Schema: 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). More +// fields may be added in the future as needed. +type GoogleCloudAiplatformV1Schema struct { + // Description: Optional. The description of the data. + Description string `json:"description,omitempty"` + + // Enum: Optional. Possible values of the element of Type.STRING with + // enum format. For example we can define an Enum Direction as : + // {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} + Enum []string `json:"enum,omitempty"` + + // Example: Optional. Example of the object. Will only populated when + // the object is the root. + Example interface{} `json:"example,omitempty"` + + // Format: Optional. The format of the data. Supported formats: for + // NUMBER type: float, double for INTEGER type: int32, int64 + Format string `json:"format,omitempty"` + + // Items: Optional. Schema of the elements of Type.ARRAY. + Items *GoogleCloudAiplatformV1Schema `json:"items,omitempty"` + + // Nullable: Optional. Indicates if the value may be null. + Nullable bool `json:"nullable,omitempty"` + + // Properties: Optional. Properties of Type.OBJECT. + Properties map[string]GoogleCloudAiplatformV1Schema `json:"properties,omitempty"` + + // Required: Optional. Required properties of Type.OBJECT. + Required []string `json:"required,omitempty"` + + // Type: Optional. The type of the data. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Not specified, should not be used. + // "STRING" - OpenAPI string type + // "NUMBER" - OpenAPI number type + // "INTEGER" - OpenAPI integer type + // "BOOLEAN" - OpenAPI boolean type + // "ARRAY" - OpenAPI array type + // "OBJECT" - OpenAPI object type + Type string `json:"type,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. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1Schema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1Schema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1SchemaAnnotationSpecColor: An entry of mapping // between color and AnnotationSpec. The mapping is used in segmentation // mask. @@ -30334,6 +31084,41 @@ func (s *GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRes return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1ShieldedVmConfig: A set of Shielded Instance +// options. See Images using supported Shielded VM features +// (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). +type GoogleCloudAiplatformV1ShieldedVmConfig struct { + // EnableSecureBoot: Defines whether the instance has Secure Boot + // (https://cloud.google.com/compute/shielded-vm/docs/shielded-vm#secure-boot) + // enabled. Secure Boot helps ensure that the system only runs authentic + // software by verifying the digital signature of all boot components, + // and halting the boot process if signature verification fails. + EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EnableSecureBoot") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EnableSecureBoot") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1ShieldedVmConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ShieldedVmConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1SmoothGradConfig: Config for SmoothGrad // approximation of gradients. When enabled, the gradients are // approximated by averaging the gradients from noisy samples in the @@ -32669,6 +33454,45 @@ func (s *GoogleCloudAiplatformV1TokensInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1Tool: Tool details that the model may use to +// generate response. A `Tool` is a piece of code that enables the +// system to interact with external systems to perform an action, or set +// of actions, outside of knowledge and scope of the model. +type GoogleCloudAiplatformV1Tool struct { + // FunctionDeclarations: Optional. One or more function declarations to + // be passed to the model along with the current user query. Model may + // decide to call a subset of these functions by populating FunctionCall + // in the response. User should provide a FunctionResponse for each + // function call in the next turn. Based on the function responses, + // Model will generate the final response back to the user. Maximum 64 + // function declarations can be provided. + FunctionDeclarations []*GoogleCloudAiplatformV1FunctionDeclaration `json:"functionDeclarations,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "FunctionDeclarations") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FunctionDeclarations") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1Tool) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1Tool + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1TrainingConfig: CMLE training config. For // every active learning labeling iteration, system will train a machine // learning model on CMLE. The trained model will be used by data @@ -34284,11 +35108,34 @@ type GoogleIamV1Binding struct { // 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`. * - // `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. * + // `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/{po + // ol_id}/group/{group_id}`: All workforce identities in a group. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol_id}/attribute.{attribute_name}/{attribute_value}`: All workforce + // identities with a specific attribute value. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol_id}/*`: All identities in a workforce identity pool. * + // `principal://iam.googleapis.com/projects/{project_number}/locations/gl + // obal/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}/{at + // tribute_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, @@ -34300,7 +35147,12 @@ type GoogleIamV1Binding struct { // 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. + // group retains the role in the binding. * + // `deleted:principal://iam.googleapis.com/locations/global/workforcePool + // s/{pool_id}/subject/{subject_attribute_value}`: Deleted single + // identity in a workforce identity pool. For example, + // `deleted:principal://iam.googleapis.com/locations/global/workforcePool + // s/my-pool-id/subject/my-subject-attribute-value`. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -50625,6 +51477,153 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...google } +// method id "aiplatform.projects.locations.endpoints.streamGenerateContent": + +type ProjectsLocationsEndpointsStreamGenerateContentCall struct { + s *Service + model string + googlecloudaiplatformv1generatecontentrequest *GoogleCloudAiplatformV1GenerateContentRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// StreamGenerateContent: Generate content with multimodal inputs with +// streaming support. +// +// - model: The name of the publisher model requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/publishers/*/models/*`. +func (r *ProjectsLocationsEndpointsService) StreamGenerateContent(model string, googlecloudaiplatformv1generatecontentrequest *GoogleCloudAiplatformV1GenerateContentRequest) *ProjectsLocationsEndpointsStreamGenerateContentCall { + c := &ProjectsLocationsEndpointsStreamGenerateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.model = model + c.googlecloudaiplatformv1generatecontentrequest = googlecloudaiplatformv1generatecontentrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsStreamGenerateContentCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Context(ctx context.Context) *ProjectsLocationsEndpointsStreamGenerateContentCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1generatecontentrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.endpoints.streamGenerateContent" call. +// Exactly one of *GoogleCloudAiplatformV1GenerateContentResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1GenerateContentResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1GenerateContentResponse, 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 := &GoogleCloudAiplatformV1GenerateContentResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Generate content with multimodal inputs with streaming support.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:streamGenerateContent", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.streamGenerateContent", + // "parameterOrder": [ + // "model" + // ], + // "parameters": { + // "model": { + // "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+model}:streamGenerateContent", + // "request": { + // "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.endpoints.undeployModel": type ProjectsLocationsEndpointsUndeployModelCall struct { @@ -90927,6 +91926,153 @@ func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Do(opts .. } +// method id "aiplatform.projects.locations.publishers.models.streamGenerateContent": + +type ProjectsLocationsPublishersModelsStreamGenerateContentCall struct { + s *Service + model string + googlecloudaiplatformv1generatecontentrequest *GoogleCloudAiplatformV1GenerateContentRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// StreamGenerateContent: Generate content with multimodal inputs with +// streaming support. +// +// - model: The name of the publisher model requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/publishers/*/models/*`. +func (r *ProjectsLocationsPublishersModelsService) StreamGenerateContent(model string, googlecloudaiplatformv1generatecontentrequest *GoogleCloudAiplatformV1GenerateContentRequest) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { + c := &ProjectsLocationsPublishersModelsStreamGenerateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.model = model + c.googlecloudaiplatformv1generatecontentrequest = googlecloudaiplatformv1generatecontentrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *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. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *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 := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1generatecontentrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+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, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.publishers.models.streamGenerateContent" call. +// Exactly one of *GoogleCloudAiplatformV1GenerateContentResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1GenerateContentResponse.ServerResponse.Header +// or (if a response was returned 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) (*GoogleCloudAiplatformV1GenerateContentResponse, 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 := &GoogleCloudAiplatformV1GenerateContentResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Generate content with multimodal inputs with streaming support.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:streamGenerateContent", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.publishers.models.streamGenerateContent", + // "parameterOrder": [ + // "model" + // ], + // "parameters": { + // "model": { + // "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+model}:streamGenerateContent", + // "request": { + // "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.schedules.create": type ProjectsLocationsSchedulesCreateCall struct { @@ -98266,6 +99412,179 @@ func (c *ProjectsLocationsStudiesTrialsOperationsWaitCall) Do(opts ...googleapi. } +// method id "aiplatform.projects.locations.tensorboards.batchRead": + +type ProjectsLocationsTensorboardsBatchReadCall struct { + s *Service + tensorboard string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// BatchRead: Reads multiple TensorboardTimeSeries' data. The data point +// number limit is 1000 for scalars, 100 for tensors and blob +// references. If the number of data points stored is less than the +// limit, all data is returned. Otherwise, the number limit of data +// points is randomly selected from this time series and returned. +// +// - tensorboard: The resource name of the Tensorboard containing +// TensorboardTimeSeries to read data from. Format: +// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` +// . The TensorboardTimeSeries referenced by time_series must be sub +// resources of this Tensorboard. +func (r *ProjectsLocationsTensorboardsService) BatchRead(tensorboard string) *ProjectsLocationsTensorboardsBatchReadCall { + c := &ProjectsLocationsTensorboardsBatchReadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.tensorboard = tensorboard + return c +} + +// TimeSeries sets the optional parameter "timeSeries": Required. The +// resource names of the TensorboardTimeSeries to read data from. +// Format: +// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/ex +// periments/{experiment}/runs/{run}/timeSeries/{time_series}` +func (c *ProjectsLocationsTensorboardsBatchReadCall) TimeSeries(timeSeries ...string) *ProjectsLocationsTensorboardsBatchReadCall { + c.urlParams_.SetMulti("timeSeries", append([]string{}, timeSeries...)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTensorboardsBatchReadCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorboardsBatchReadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsTensorboardsBatchReadCall) IfNoneMatch(entityTag string) *ProjectsLocationsTensorboardsBatchReadCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTensorboardsBatchReadCall) Context(ctx context.Context) *ProjectsLocationsTensorboardsBatchReadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTensorboardsBatchReadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTensorboardsBatchReadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+tensorboard}:batchRead") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "tensorboard": c.tensorboard, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tensorboards.batchRead" call. +// Exactly one of +// *GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse.Ser +// verResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsTensorboardsBatchReadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse, 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 := &GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}:batchRead", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.tensorboards.batchRead", + // "parameterOrder": [ + // "tensorboard" + // ], + // "parameters": { + // "tensorboard": { + // "description": "Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "timeSeries": { + // "description": "Required. The resource names of the TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`", + // "location": "query", + // "repeated": true, + // "type": "string" + // } + // }, + // "path": "v1/{+tensorboard}:batchRead", + // "response": { + // "$ref": "GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.tensorboards.create": type ProjectsLocationsTensorboardsCreateCall struct { @@ -99391,6 +100710,157 @@ func (c *ProjectsLocationsTensorboardsReadUsageCall) Do(opts ...googleapi.CallOp } +// method id "aiplatform.projects.locations.tensorboards.experiments.batchCreate": + +type ProjectsLocationsTensorboardsExperimentsBatchCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1batchcreatetensorboardtimeseriesrequest *GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchCreate: Batch create TensorboardTimeSeries that belong to a +// TensorboardExperiment. +// +// - parent: The resource name of the TensorboardExperiment to create +// the TensorboardTimeSeries in. Format: +// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/ +// experiments/{experiment}` The TensorboardRuns referenced by the +// parent fields in the CreateTensorboardTimeSeriesRequest messages +// must be sub resources of this TensorboardExperiment. +func (r *ProjectsLocationsTensorboardsExperimentsService) BatchCreate(parent string, googlecloudaiplatformv1batchcreatetensorboardtimeseriesrequest *GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest) *ProjectsLocationsTensorboardsExperimentsBatchCreateCall { + c := &ProjectsLocationsTensorboardsExperimentsBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1batchcreatetensorboardtimeseriesrequest = googlecloudaiplatformv1batchcreatetensorboardtimeseriesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorboardsExperimentsBatchCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsTensorboardsExperimentsBatchCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1batchcreatetensorboardtimeseriesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:batchCreate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tensorboards.experiments.batchCreate" call. +// Exactly one of +// *GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse.Serve +// rResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse, 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 := &GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}:batchCreate", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.tensorboards.experiments.batchCreate", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest messages must be sub resources of this TensorboardExperiment.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:batchCreate", + // "request": { + // "$ref": "GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.tensorboards.experiments.create": type ProjectsLocationsTensorboardsExperimentsCreateCall struct { @@ -103113,360 +104583,6 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsWaitCall) Do(opts } -// method id "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchCreate": - -type ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall struct { - s *Service - parent string - runsId string - googlecloudaiplatformv1batchcreatetensorboardtimeseriesrequest *GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// BatchCreate: Batch create TensorboardTimeSeries that belong to a -// TensorboardExperiment. -// -// - parent: The resource name of the TensorboardExperiment to create -// the TensorboardTimeSeries in. Format: -// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/ -// experiments/{experiment}` The TensorboardRuns referenced by the -// parent fields in the CreateTensorboardTimeSeriesRequest messages -// must be sub resources of this TensorboardExperiment. -// - runsId: . -func (r *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesService) BatchCreate(parent string, runsId string, googlecloudaiplatformv1batchcreatetensorboardtimeseriesrequest *GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall { - c := &ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.runsId = runsId - c.googlecloudaiplatformv1batchcreatetensorboardtimeseriesrequest = googlecloudaiplatformv1batchcreatetensorboardtimeseriesrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1batchcreatetensorboardtimeseriesrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/runs/{runsId}/timeSeries:batchCreate") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - "runsId": c.runsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchCreate" call. -// Exactly one of -// *GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse.Serve -// rResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse, 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 := &GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchCreate", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchCreate", - // "parameterOrder": [ - // "parent", - // "runsId" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest messages must be sub resources of this TensorboardExperiment.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "runsId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/runs/{runsId}/timeSeries:batchCreate", - // "request": { - // "$ref": "GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest" - // }, - // "response": { - // "$ref": "GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchRead": - -type ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall struct { - s *Service - tensorboard string - experimentsId string - runsId string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// BatchRead: Reads multiple TensorboardTimeSeries' data. The data point -// number limit is 1000 for scalars, 100 for tensors and blob -// references. If the number of data points stored is less than the -// limit, all data is returned. Otherwise, the number limit of data -// points is randomly selected from this time series and returned. -// -// - experimentsId: . -// - runsId: . -// - tensorboard: The resource name of the Tensorboard containing -// TensorboardTimeSeries to read data from. Format: -// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` -// . The TensorboardTimeSeries referenced by time_series must be sub -// resources of this Tensorboard. -func (r *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesService) BatchRead(tensorboard string, experimentsId string, runsId string) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall { - c := &ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.tensorboard = tensorboard - c.experimentsId = experimentsId - c.runsId = runsId - return c -} - -// TimeSeries sets the optional parameter "timeSeries": Required. The -// resource names of the TensorboardTimeSeries to read data from. -// Format: -// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/ex -// periments/{experiment}/runs/{run}/timeSeries/{time_series}` -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) TimeSeries(timeSeries ...string) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall { - c.urlParams_.SetMulti("timeSeries", append([]string{}, timeSeries...)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) IfNoneMatch(entityTag string) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) Context(ctx context.Context) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+tensorboard}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "tensorboard": c.tensorboard, - "experimentsId": c.experimentsId, - "runsId": c.runsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchRead" call. -// Exactly one of -// *GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse.Ser -// verResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse, 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 := &GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchRead", - // "parameterOrder": [ - // "tensorboard", - // "experimentsId", - // "runsId" - // ], - // "parameters": { - // "experimentsId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "runsId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tensorboard": { - // "description": "Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "timeSeries": { - // "description": "Required. The resource names of the TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "v1/{+tensorboard}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead", - // "response": { - // "$ref": "GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.create": type ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesCreateCall struct { diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index da0ebac2307..6f0cd182d64 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -14491,6 +14491,37 @@ }, "tensorboards": { "methods": { + "batchRead": { + "description": "Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}:batchRead", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tensorboards.batchRead", + "parameterOrder": [ + "tensorboard" + ], + "parameters": { + "tensorboard": { + "description": "Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + "required": true, + "type": "string" + }, + "timeSeries": { + "description": "Required. The resource names of the TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`", + "location": "query", + "repeated": true, + "type": "string" + } + }, + "path": "v1beta1/{+tensorboard}:batchRead", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a Tensorboard.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards", @@ -14709,6 +14740,34 @@ "resources": { "experiments": { "methods": { + "batchCreate": { + "description": "Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}:batchCreate", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tensorboards.experiments.batchCreate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest messages must be sub resources of this TensorboardExperiment.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}:batchCreate", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a TensorboardExperiment.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments", @@ -15441,83 +15500,6 @@ }, "timeSeries": { "methods": { - "batchCreate": { - "description": "Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchCreate", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchCreate", - "parameterOrder": [ - "parent", - "runsId" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest messages must be sub resources of this TensorboardExperiment.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - "required": true, - "type": "string" - }, - "runsId": { - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/runs/{runsId}/timeSeries:batchCreate", - "request": { - "$ref": "GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "batchRead": { - "description": "Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchRead", - "parameterOrder": [ - "tensorboard", - "experimentsId", - "runsId" - ], - "parameters": { - "experimentsId": { - "location": "path", - "required": true, - "type": "string" - }, - "runsId": { - "location": "path", - "required": true, - "type": "string" - }, - "tensorboard": { - "description": "Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - "required": true, - "type": "string" - }, - "timeSeries": { - "description": "Required. The resource names of the TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`", - "location": "query", - "repeated": true, - "type": "string" - } - }, - "path": "v1beta1/{+tensorboard}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead", - "response": { - "$ref": "GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "create": { "description": "Creates a TensorboardTimeSeries.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries", @@ -16532,7 +16514,7 @@ } } }, - "revision": "20231211", + "revision": "20231218", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -17687,6 +17669,20 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsResponse": { + "description": "Response message for PipelineService.BatchCancelPipelineJobs.", + "id": "GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsResponse", + "properties": { + "pipelineJobs": { + "description": "PipelineJobs cancelled.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1PipelineJob" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1BatchCreateFeaturesOperationMetadata": { "description": "Details of operations that perform batch create Features.", "id": "GoogleCloudAiplatformV1beta1BatchCreateFeaturesOperationMetadata", @@ -17817,6 +17813,20 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsResponse": { + "description": "Response message for PipelineService.BatchDeletePipelineJobs.", + "id": "GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsResponse", + "properties": { + "pipelineJobs": { + "description": "PipelineJobs deleted.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1PipelineJob" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest": { "description": "Request message for ModelService.BatchImportEvaluatedAnnotations", "id": "GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest", @@ -19067,21 +19077,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadata": { - "description": "Metadata information for NotebookService.CreateNotebookExecutionJob.", - "id": "GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadata", - "properties": { - "genericMetadata": { - "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", - "description": "The operation generic information." - }, - "progressMessage": { - "description": "A human-readable message that shows the intermediate progress details of NotebookRuntime.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata": { "description": "Metadata information for NotebookService.CreateNotebookRuntimeTemplate.", "id": "GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata", @@ -21312,7 +21307,7 @@ "id": "GoogleCloudAiplatformV1beta1ExportDataResponse", "properties": { "exportedFiles": { - "description": "All of the files that are exported in this export operation. For custom code training export, only three (training, validation and test) GCS paths in wildcard format are populated (e.g., gs://.../training-*).", + "description": "All of the files that are exported in this export operation. For custom code training export, only three (training, validation and test) Cloud Storage paths in wildcard format are populated (for example, gs://.../training-*).", "items": { "type": "string" }, @@ -21657,7 +21652,7 @@ "type": "string" }, "versionColumnName": { - "description": "Only applicable for Vertex AI Feature Store. The name of the BigQuery Table/View columnn hosting data for this version. If no value is provided, will use feature_id.", + "description": "Only applicable for Vertex AI Feature Store. The name of the BigQuery Table/View column hosting data for this version. If no value is provided, will use feature_id.", "type": "string" } }, @@ -23784,6 +23779,55 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance": { + "description": "Request message for [InternalOsServiceStateInstance].", + "id": "GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance", + "properties": { + "serviceName": { + "description": "Required. internal service name.", + "enum": [ + "INTERNAL_OS_SERVICE_ENUM_UNSPECIFIED", + "DOCKER_SERVICE_STATE", + "CONTROL_PLANE_API_DNS_STATE", + "PROXY_REGISTRATION_DNS_STATE", + "JUPYTER_STATE", + "JUPYTER_API_STATE", + "EUC_METADATA_API_STATE", + "EUC_AGENT_API_STATE", + "IDLE_SHUTDOWN_AGENT_STATE", + "PROXY_AGENT_STATE" + ], + "enumDescriptions": [ + "Service name unknown.", + "Represents the internal os docker client.", + "Represents reoslving DNS for the control plane api endpoint.", + "Represents reoslving DNS for the proxy registration endpoint.", + "Represents the jupyter endpoint.", + "Represents the jupyter/api endpoint.", + "Represents the EUC metadata server API endpoint.", + "Represents the EUC agent server API endpoint.", + "Represents the idle shutdown agent sidecar container.", + "Represents the proxy agent sidecar container." + ], + "type": "string" + }, + "serviceState": { + "description": "Required. internal service state.", + "enum": [ + "UNKNOWN", + "HEALTHY", + "UNHEALTHY" + ], + "enumDescriptions": [ + "Health status is unknown: not initialized or failed to retrieve.", + "The resource is healthy.", + "The resource is unhealthy." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1LargeModelReference": { "description": "Contains information about the Large Model.", "id": "GoogleCloudAiplatformV1beta1LargeModelReference", @@ -25664,7 +25708,7 @@ "type": "array" }, "metadata": { - "description": "The metadata of the ModelEvaluation. For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a structured value with keys of \"pipeline_job_id\", \"evaluation_dataset_type\", \"evaluation_dataset_path\".", + "description": "The metadata of the ModelEvaluation. For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a structured value with keys of \"pipeline_job_id\", \"evaluation_dataset_type\", \"evaluation_dataset_path\", \"row_based_metrics_path\".", "type": "any" }, "metrics": { @@ -26925,6 +26969,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", @@ -26964,6 +27042,11 @@ "readOnly": true, "type": "string" }, + "isUpgradable": { + "description": "Output only. Whether NotebookRuntime is upgradable.", + "readOnly": true, + "type": "boolean" + }, "labels": { "additionalProperties": { "type": "string" @@ -26976,6 +27059,13 @@ "readOnly": true, "type": "string" }, + "networkTags": { + "description": "Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).", + "items": { + "type": "string" + }, + "type": "array" + }, "notebookRuntimeTemplateRef": { "$ref": "GoogleCloudAiplatformV1beta1NotebookRuntimeTemplateRef", "description": "Output only. The pointer to NotebookRuntimeTemplate this NotebookRuntime is created from.", @@ -27001,6 +27091,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": [ @@ -27104,6 +27199,13 @@ "$ref": "GoogleCloudAiplatformV1beta1NetworkSpec", "description": "Optional. Network spec." }, + "networkTags": { + "description": "Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).", + "items": { + "type": "string" + }, + "type": "array" + }, "notebookRuntimeType": { "description": "Optional. Immutable. The type of the notebook runtime template.", "enum": [ @@ -27118,10 +27220,18 @@ ], "type": "string" }, + "reservationAffinity": { + "$ref": "GoogleCloudAiplatformV1beta1NotebookReservationAffinity", + "description": "Optional. Reservation Affinity of the notebook runtime template." + }, "serviceAccount": { "description": "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.", "type": "string" }, + "shieldedVmConfig": { + "$ref": "GoogleCloudAiplatformV1beta1ShieldedVmConfig", + "description": "Optional. Immutable. Runtime Shielded VM spec." + }, "updateTime": { "description": "Output only. Timestamp when this NotebookRuntimeTemplate was most recently updated.", "format": "google-datetime", @@ -27275,16 +27385,14 @@ "PROVISIONING", "RUNNING", "STOPPING", - "ERROR", - "REBOOTING" + "ERROR" ], "enumDescriptions": [ "Not set.", "The PROVISIONING state indicates the persistent resources is being created.", "The RUNNING state indicates the persistent resource is healthy and fully usable.", "The STOPPING state indicates the persistent resource is being deleted.", - "The ERROR state indicates the persistent resource may be unusable. Details can be found in the `error` field.", - "The REBOOTING state indicates the persistent resource is being rebooted (PR is not available right now but is expected to be ready again later)." + "The ERROR state indicates the persistent resource may be unusable. Details can be found in the `error` field." ], "readOnly": true, "type": "string" @@ -28826,6 +28934,21 @@ ], "type": "string" }, + "internalOsServiceStateInstance": { + "deprecated": true, + "description": "The details of the internal os service states.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance" + }, + "type": "array" + }, + "internalOsServiceStateInstances": { + "description": "Optional. The details of the internal os service states.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance" + }, + "type": "array" + }, "vmToken": { "description": "Required. The VM identity token (a JWT) for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity", "type": "string" @@ -29330,6 +29453,11 @@ "description": "Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false.", "type": "boolean" }, + "maxWaitDuration": { + "description": "Optional. This is the maximum time a user will wait in the QRM queue for resources. Default is 1 day", + "format": "google-duration", + "type": "string" + }, "restartJobOnWorkerRestart": { "description": "Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.", "type": "boolean" @@ -33184,6 +33312,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ShieldedVmConfig": { + "description": "A set of Shielded Instance options. See [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).", + "id": "GoogleCloudAiplatformV1beta1ShieldedVmConfig", + "properties": { + "enableSecureBoot": { + "description": "Defines whether the instance has [Secure Boot](https://cloud.google.com/compute/shielded-vm/docs/shielded-vm#secure-boot) enabled. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1SmoothGradConfig": { "description": "Config for SmoothGrad approximation of gradients. When enabled, the gradients are approximated by averaging the gradients from noisy samples in the vicinity of the inputs. Adding noise can help improve the computed gradients. Refer to this paper for more details: https://arxiv.org/pdf/1706.03825.pdf", "id": "GoogleCloudAiplatformV1beta1SmoothGradConfig", @@ -35436,7 +35575,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `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.", + "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" }, diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index f50bfb41a19..b2388ad64b0 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -3324,6 +3324,35 @@ func (s *GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest) MarshalJSON return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsResponse: Response +// message for PipelineService.BatchCancelPipelineJobs. +type GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsResponse struct { + // PipelineJobs: PipelineJobs cancelled. + PipelineJobs []*GoogleCloudAiplatformV1beta1PipelineJob `json:"pipelineJobs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PipelineJobs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PipelineJobs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1BatchCreateFeaturesOperationMetadata: // Details of operations that perform batch create Features. type GoogleCloudAiplatformV1beta1BatchCreateFeaturesOperationMetadata struct { @@ -3620,6 +3649,35 @@ func (s *GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest) MarshalJSON return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsResponse: Response +// message for PipelineService.BatchDeletePipelineJobs. +type GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsResponse struct { + // PipelineJobs: PipelineJobs deleted. + PipelineJobs []*GoogleCloudAiplatformV1beta1PipelineJob `json:"pipelineJobs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PipelineJobs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PipelineJobs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest: // Request message for ModelService.BatchImportEvaluatedAnnotations type GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest struct { @@ -6073,41 +6131,6 @@ func (s *GoogleCloudAiplatformV1beta1CreateMetadataStoreOperationMetadata) Marsh return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadat -// a: Metadata information for -// NotebookService.CreateNotebookExecutionJob. -type GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadata struct { - // GenericMetadata: The operation generic information. - GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` - - // ProgressMessage: A human-readable message that shows the intermediate - // progress details of NotebookRuntime. - ProgressMessage string `json:"progressMessage,omitempty"` - - // ForceSendFields is a list of field names (e.g. "GenericMetadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "GenericMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMeta // data: Metadata information for // NotebookService.CreateNotebookRuntimeTemplate. @@ -10198,8 +10221,8 @@ func (s *GoogleCloudAiplatformV1beta1ExportDataRequest) MarshalJSON() ([]byte, e type GoogleCloudAiplatformV1beta1ExportDataResponse struct { // ExportedFiles: All of the files that are exported in this export // operation. For custom code training export, only three (training, - // validation and test) GCS paths in wildcard format are populated - // (e.g., gs://.../training-*). + // validation and test) Cloud Storage paths in wildcard format are + // populated (for example, gs://.../training-*). ExportedFiles []string `json:"exportedFiles,omitempty"` // ForceSendFields is a list of field names (e.g. "ExportedFiles") to @@ -10864,8 +10887,8 @@ type GoogleCloudAiplatformV1beta1Feature struct { ValueType string `json:"valueType,omitempty"` // VersionColumnName: Only applicable for Vertex AI Feature Store. The - // name of the BigQuery Table/View columnn hosting data for this - // version. If no value is provided, will use feature_id. + // name of the BigQuery Table/View column hosting data for this version. + // If no value is provided, will use feature_id. VersionColumnName string `json:"versionColumnName,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -14785,6 +14808,61 @@ func (s *GoogleCloudAiplatformV1beta1IntegratedGradientsAttribution) MarshalJSON return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance: Request +// message for [InternalOsServiceStateInstance]. +type GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance struct { + // ServiceName: Required. internal service name. + // + // Possible values: + // "INTERNAL_OS_SERVICE_ENUM_UNSPECIFIED" - Service name unknown. + // "DOCKER_SERVICE_STATE" - Represents the internal os docker client. + // "CONTROL_PLANE_API_DNS_STATE" - Represents reoslving DNS for the + // control plane api endpoint. + // "PROXY_REGISTRATION_DNS_STATE" - Represents reoslving DNS for the + // proxy registration endpoint. + // "JUPYTER_STATE" - Represents the jupyter endpoint. + // "JUPYTER_API_STATE" - Represents the jupyter/api endpoint. + // "EUC_METADATA_API_STATE" - Represents the EUC metadata server API + // endpoint. + // "EUC_AGENT_API_STATE" - Represents the EUC agent server API + // endpoint. + // "IDLE_SHUTDOWN_AGENT_STATE" - Represents the idle shutdown agent + // sidecar container. + // "PROXY_AGENT_STATE" - Represents the proxy agent sidecar container. + ServiceName string `json:"serviceName,omitempty"` + + // ServiceState: Required. internal service state. + // + // Possible values: + // "UNKNOWN" - Health status is unknown: not initialized or failed to + // retrieve. + // "HEALTHY" - The resource is healthy. + // "UNHEALTHY" - The resource is unhealthy. + ServiceState string `json:"serviceState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ServiceName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ServiceName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1LargeModelReference: Contains information // about the Large Model. type GoogleCloudAiplatformV1beta1LargeModelReference struct { @@ -18358,7 +18436,8 @@ type GoogleCloudAiplatformV1beta1ModelEvaluation struct { // Metadata: The metadata of the ModelEvaluation. For the // ModelEvaluation uploaded from Managed Pipeline, metadata contains a // structured value with keys of "pipeline_job_id", - // "evaluation_dataset_type", "evaluation_dataset_path". + // "evaluation_dataset_type", "evaluation_dataset_path", + // "row_based_metrics_path". Metadata interface{} `json:"metadata,omitempty"` // Metrics: Evaluation metrics of the Model. The schema of the metrics @@ -20689,6 +20768,57 @@ func (s *GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig) MarshalJSON() ( return gensupport.MarshalJSON(raw, 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. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConsumeReservationType") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1NotebookReservationAffinity) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NotebookReservationAffinity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, 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. @@ -20723,6 +20853,9 @@ type GoogleCloudAiplatformV1beta1NotebookRuntime struct { // ACTIVE state. HealthState string `json:"healthState,omitempty"` + // IsUpgradable: Output only. Whether NotebookRuntime is upgradable. + IsUpgradable bool `json:"isUpgradable,omitempty"` + // Labels: The labels with user-defined metadata to organize your // NotebookRuntime. Label keys and values can be no longer than 64 // characters (Unicode codepoints), can only contain lowercase letters, @@ -20743,6 +20876,11 @@ type GoogleCloudAiplatformV1beta1NotebookRuntime struct { // Name: Output only. The resource name of the NotebookRuntime. Name string `json:"name,omitempty"` + // NetworkTags: Optional. The Compute Engine tags to add to runtime (see + // Tagging instances + // (https://cloud.google.com/vpc/docs/add-remove-network-tags)). + NetworkTags []string `json:"networkTags,omitempty"` + // NotebookRuntimeTemplateRef: Output only. The pointer to // NotebookRuntimeTemplate this NotebookRuntime is created from. NotebookRuntimeTemplateRef *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplateRef `json:"notebookRuntimeTemplateRef,omitempty"` @@ -20762,6 +20900,10 @@ type GoogleCloudAiplatformV1beta1NotebookRuntime struct { // 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. // @@ -20870,6 +21012,11 @@ type GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate struct { // NetworkSpec: Optional. Network spec. NetworkSpec *GoogleCloudAiplatformV1beta1NetworkSpec `json:"networkSpec,omitempty"` + // NetworkTags: Optional. The Compute Engine tags to add to runtime (see + // Tagging instances + // (https://cloud.google.com/vpc/docs/add-remove-network-tags)). + NetworkTags []string `json:"networkTags,omitempty"` + // NotebookRuntimeType: Optional. Immutable. The type of the notebook // runtime template. // @@ -20882,6 +21029,10 @@ type GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate struct { // configurations. NotebookRuntimeType string `json:"notebookRuntimeType,omitempty"` + // ReservationAffinity: Optional. Reservation Affinity of the notebook + // runtime template. + ReservationAffinity *GoogleCloudAiplatformV1beta1NotebookReservationAffinity `json:"reservationAffinity,omitempty"` + // ServiceAccount: 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 @@ -20890,6 +21041,9 @@ type GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate struct { // is used. ServiceAccount string `json:"serviceAccount,omitempty"` + // ShieldedVmConfig: Optional. Immutable. Runtime Shielded VM spec. + ShieldedVmConfig *GoogleCloudAiplatformV1beta1ShieldedVmConfig `json:"shieldedVmConfig,omitempty"` + // UpdateTime: Output only. Timestamp when this NotebookRuntimeTemplate // was most recently updated. UpdateTime string `json:"updateTime,omitempty"` @@ -21137,9 +21291,6 @@ type GoogleCloudAiplatformV1beta1PersistentResource struct { // is being deleted. // "ERROR" - The ERROR state indicates the persistent resource may be // unusable. Details can be found in the `error` field. - // "REBOOTING" - The REBOOTING state indicates the persistent resource - // is being rebooted (PR is not available right now but is expected to - // be ready again later). State string `json:"state,omitempty"` // UpdateTime: Output only. Time when the PersistentResource was most @@ -23823,6 +23974,14 @@ type GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest struct { // "IDLE" - Used for idle reporting. EventType string `json:"eventType,omitempty"` + // InternalOsServiceStateInstance: The details of the internal os + // service states. + InternalOsServiceStateInstance []*GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance `json:"internalOsServiceStateInstance,omitempty"` + + // InternalOsServiceStateInstances: Optional. The details of the + // internal os service states. + InternalOsServiceStateInstances []*GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance `json:"internalOsServiceStateInstances,omitempty"` + // VmToken: Required. The VM identity token (a JWT) for authenticating // the VM. // https://cloud.google.com/compute/docs/instances/verifying-instance-identity @@ -24704,6 +24863,10 @@ type GoogleCloudAiplatformV1beta1Scheduling struct { // `Scheduling.restart_job_on_worker_restart` to false. DisableRetries bool `json:"disableRetries,omitempty"` + // MaxWaitDuration: Optional. This is the maximum time a user will wait + // in the QRM queue for resources. Default is 1 day + MaxWaitDuration string `json:"maxWaitDuration,omitempty"` + // RestartJobOnWorkerRestart: Restarts the entire CustomJob if a worker // gets restarted. This feature can be used by distributed training jobs // that are not resilient to workers leaving and joining a job. @@ -32768,6 +32931,41 @@ func (s *GoogleCloudAiplatformV1beta1ServiceAccountSpec) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ShieldedVmConfig: A set of Shielded +// Instance options. See Images using supported Shielded VM features +// (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). +type GoogleCloudAiplatformV1beta1ShieldedVmConfig struct { + // EnableSecureBoot: Defines whether the instance has Secure Boot + // (https://cloud.google.com/compute/shielded-vm/docs/shielded-vm#secure-boot) + // enabled. Secure Boot helps ensure that the system only runs authentic + // software by verifying the digital signature of all boot components, + // and halting the boot process if signature verification fails. + EnableSecureBoot bool `json:"enableSecureBoot,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EnableSecureBoot") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EnableSecureBoot") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ShieldedVmConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ShieldedVmConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1SmoothGradConfig: Config for SmoothGrad // approximation of gradients. When enabled, the gradients are // approximated by averaging the gradients from noisy samples in the @@ -36931,11 +37129,34 @@ type GoogleIamV1Binding struct { // 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`. * - // `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. * + // `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/{po + // ol_id}/group/{group_id}`: All workforce identities in a group. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol_id}/attribute.{attribute_name}/{attribute_value}`: All workforce + // identities with a specific attribute value. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol_id}/*`: All identities in a workforce identity pool. * + // `principal://iam.googleapis.com/projects/{project_number}/locations/gl + // obal/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}/{at + // tribute_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, @@ -36947,7 +37168,12 @@ type GoogleIamV1Binding struct { // 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. + // group retains the role in the binding. * + // `deleted:principal://iam.googleapis.com/locations/global/workforcePool + // s/{pool_id}/subject/{subject_attribute_value}`: Deleted single + // identity in a workforce identity pool. For example, + // `deleted:principal://iam.googleapis.com/locations/global/workforcePool + // s/my-pool-id/subject/my-subject-attribute-value`. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -110261,6 +110487,179 @@ func (c *ProjectsLocationsStudiesTrialsOperationsWaitCall) Do(opts ...googleapi. } +// method id "aiplatform.projects.locations.tensorboards.batchRead": + +type ProjectsLocationsTensorboardsBatchReadCall struct { + s *Service + tensorboard string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// BatchRead: Reads multiple TensorboardTimeSeries' data. The data point +// number limit is 1000 for scalars, 100 for tensors and blob +// references. If the number of data points stored is less than the +// limit, all data is returned. Otherwise, the number limit of data +// points is randomly selected from this time series and returned. +// +// - tensorboard: The resource name of the Tensorboard containing +// TensorboardTimeSeries to read data from. Format: +// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` +// . The TensorboardTimeSeries referenced by time_series must be sub +// resources of this Tensorboard. +func (r *ProjectsLocationsTensorboardsService) BatchRead(tensorboard string) *ProjectsLocationsTensorboardsBatchReadCall { + c := &ProjectsLocationsTensorboardsBatchReadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.tensorboard = tensorboard + return c +} + +// TimeSeries sets the optional parameter "timeSeries": Required. The +// resource names of the TensorboardTimeSeries to read data from. +// Format: +// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/ex +// periments/{experiment}/runs/{run}/timeSeries/{time_series}` +func (c *ProjectsLocationsTensorboardsBatchReadCall) TimeSeries(timeSeries ...string) *ProjectsLocationsTensorboardsBatchReadCall { + c.urlParams_.SetMulti("timeSeries", append([]string{}, timeSeries...)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTensorboardsBatchReadCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorboardsBatchReadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsTensorboardsBatchReadCall) IfNoneMatch(entityTag string) *ProjectsLocationsTensorboardsBatchReadCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTensorboardsBatchReadCall) Context(ctx context.Context) *ProjectsLocationsTensorboardsBatchReadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTensorboardsBatchReadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTensorboardsBatchReadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+tensorboard}:batchRead") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "tensorboard": c.tensorboard, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tensorboards.batchRead" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataRespons +// e or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataRespons +// e.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsTensorboardsBatchReadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse, 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 := &GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}:batchRead", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.tensorboards.batchRead", + // "parameterOrder": [ + // "tensorboard" + // ], + // "parameters": { + // "tensorboard": { + // "description": "Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "timeSeries": { + // "description": "Required. The resource names of the TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`", + // "location": "query", + // "repeated": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+tensorboard}:batchRead", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.tensorboards.create": type ProjectsLocationsTensorboardsCreateCall struct { @@ -111384,6 +111783,157 @@ func (c *ProjectsLocationsTensorboardsReadUsageCall) Do(opts ...googleapi.CallOp } +// method id "aiplatform.projects.locations.tensorboards.experiments.batchCreate": + +type ProjectsLocationsTensorboardsExperimentsBatchCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1batchcreatetensorboardtimeseriesrequest *GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchCreate: Batch create TensorboardTimeSeries that belong to a +// TensorboardExperiment. +// +// - parent: The resource name of the TensorboardExperiment to create +// the TensorboardTimeSeries in. Format: +// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/ +// experiments/{experiment}` The TensorboardRuns referenced by the +// parent fields in the CreateTensorboardTimeSeriesRequest messages +// must be sub resources of this TensorboardExperiment. +func (r *ProjectsLocationsTensorboardsExperimentsService) BatchCreate(parent string, googlecloudaiplatformv1beta1batchcreatetensorboardtimeseriesrequest *GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest) *ProjectsLocationsTensorboardsExperimentsBatchCreateCall { + c := &ProjectsLocationsTensorboardsExperimentsBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1batchcreatetensorboardtimeseriesrequest = googlecloudaiplatformv1beta1batchcreatetensorboardtimeseriesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorboardsExperimentsBatchCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsTensorboardsExperimentsBatchCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchcreatetensorboardtimeseriesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}:batchCreate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.tensorboards.experiments.batchCreate" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse. +// ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsTensorboardsExperimentsBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse, 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 := &GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}:batchCreate", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.tensorboards.experiments.batchCreate", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest messages must be sub resources of this TensorboardExperiment.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}:batchCreate", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "aiplatform.projects.locations.tensorboards.experiments.create": type ProjectsLocationsTensorboardsExperimentsCreateCall struct { @@ -115106,360 +115656,6 @@ func (c *ProjectsLocationsTensorboardsExperimentsRunsOperationsWaitCall) Do(opts } -// method id "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchCreate": - -type ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall struct { - s *Service - parent string - runsId string - googlecloudaiplatformv1beta1batchcreatetensorboardtimeseriesrequest *GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// BatchCreate: Batch create TensorboardTimeSeries that belong to a -// TensorboardExperiment. -// -// - parent: The resource name of the TensorboardExperiment to create -// the TensorboardTimeSeries in. Format: -// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/ -// experiments/{experiment}` The TensorboardRuns referenced by the -// parent fields in the CreateTensorboardTimeSeriesRequest messages -// must be sub resources of this TensorboardExperiment. -// - runsId: . -func (r *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesService) BatchCreate(parent string, runsId string, googlecloudaiplatformv1beta1batchcreatetensorboardtimeseriesrequest *GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall { - c := &ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.runsId = runsId - c.googlecloudaiplatformv1beta1batchcreatetensorboardtimeseriesrequest = googlecloudaiplatformv1beta1batchcreatetensorboardtimeseriesrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchcreatetensorboardtimeseriesrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/runs/{runsId}/timeSeries:batchCreate") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - "runsId": c.runsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchCreate" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse. -// ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse, 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 := &GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchCreate", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchCreate", - // "parameterOrder": [ - // "parent", - // "runsId" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest messages must be sub resources of this TensorboardExperiment.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "runsId": { - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/runs/{runsId}/timeSeries:batchCreate", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesRequest" - // }, - // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchCreateTensorboardTimeSeriesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchRead": - -type ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall struct { - s *Service - tensorboard string - experimentsId string - runsId string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// BatchRead: Reads multiple TensorboardTimeSeries' data. The data point -// number limit is 1000 for scalars, 100 for tensors and blob -// references. If the number of data points stored is less than the -// limit, all data is returned. Otherwise, the number limit of data -// points is randomly selected from this time series and returned. -// -// - experimentsId: . -// - runsId: . -// - tensorboard: The resource name of the Tensorboard containing -// TensorboardTimeSeries to read data from. Format: -// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` -// . The TensorboardTimeSeries referenced by time_series must be sub -// resources of this Tensorboard. -func (r *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesService) BatchRead(tensorboard string, experimentsId string, runsId string) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall { - c := &ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.tensorboard = tensorboard - c.experimentsId = experimentsId - c.runsId = runsId - return c -} - -// TimeSeries sets the optional parameter "timeSeries": Required. The -// resource names of the TensorboardTimeSeries to read data from. -// Format: -// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/ex -// periments/{experiment}/runs/{run}/timeSeries/{time_series}` -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) TimeSeries(timeSeries ...string) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall { - c.urlParams_.SetMulti("timeSeries", append([]string{}, timeSeries...)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) Fields(s ...googleapi.Field) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the 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. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) IfNoneMatch(entityTag string) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) Context(ctx context.Context) *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+tensorboard}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "tensorboard": c.tensorboard, - "experimentsId": c.experimentsId, - "runsId": c.runsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchRead" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataRespons -// e or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataRespons -// e.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesBatchReadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse, 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 := &GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.batchRead", - // "parameterOrder": [ - // "tensorboard", - // "experimentsId", - // "runsId" - // ], - // "parameters": { - // "experimentsId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "runsId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "tensorboard": { - // "description": "Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "timeSeries": { - // "description": "Required. The resource names of the TensorboardTimeSeries to read data from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`", - // "location": "query", - // "repeated": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+tensorboard}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead", - // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchReadTensorboardTimeSeriesDataResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "aiplatform.projects.locations.tensorboards.experiments.runs.timeSeries.create": type ProjectsLocationsTensorboardsExperimentsRunsTimeSeriesCreateCall struct { diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index d434ab8e883..a4c5e7b060b 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20231205", + "revision": "20231219", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -3030,7 +3030,7 @@ "type": "string" }, "type": { - "description": "Required. The monitored resource type. For example, the type `\"cloudsql_database\"` represents databases in Google Cloud SQL. For a list of types, see [Monitoring resource types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list).", + "description": "Required. The monitored resource type. For example, the type `\"cloudsql_database\"` represents databases in Google Cloud SQL. For a list of types, see [Monitored resource types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list).", "type": "string" } }, diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index c4a79eb4940..4b88c1d8cba 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -4051,7 +4051,7 @@ type MonitoredResourceDescriptor struct { // Type: Required. The monitored resource type. For example, the type // "cloudsql_database" represents databases in Google Cloud SQL. For a - // list of types, see Monitoring resource types + // list of types, see Monitored resource types // (https://cloud.google.com/monitoring/api/resources) and Logging // resource types // (https://cloud.google.com/logging/docs/api/v2/resource-list). diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index d33002c378e..b48d139c2b9 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20231205", + "revision": "20231219", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -2054,7 +2054,7 @@ "type": "string" }, "type": { - "description": "Required. The monitored resource type. For example, the type `\"cloudsql_database\"` represents databases in Google Cloud SQL. For a list of types, see [Monitoring resource types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list).", + "description": "Required. The monitored resource type. For example, the type `\"cloudsql_database\"` represents databases in Google Cloud SQL. For a list of types, see [Monitored resource types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list).", "type": "string" } }, diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 14fe75b5722..7f233b95cfc 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -3385,7 +3385,7 @@ type MonitoredResourceDescriptor struct { // Type: Required. The monitored resource type. For example, the type // "cloudsql_database" represents databases in Google Cloud SQL. For a - // list of types, see Monitoring resource types + // list of types, see Monitored resource types // (https://cloud.google.com/monitoring/api/resources) and Logging // resource types // (https://cloud.google.com/logging/docs/api/v2/resource-list).