From c7f161413cf50b50db98ba483afc2f2344e0896f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 3 Jun 2024 00:22:17 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2619) --- aiplatform/v1/aiplatform-api.json | 586 ++++-- aiplatform/v1/aiplatform-gen.go | 641 +++++- aiplatform/v1beta1/aiplatform-api.json | 1001 +++++++-- aiplatform/v1beta1/aiplatform-gen.go | 1790 ++++++++++++++--- backupdr/v1/backupdr-api.json | 12 +- backupdr/v1/backupdr-gen.go | 4 + connectors/v1/connectors-api.json | 15 +- connectors/v1/connectors-gen.go | 8 +- connectors/v2/connectors-api.json | 138 +- connectors/v2/connectors-gen.go | 313 +++ datamigration/v1/datamigration-api.json | 12 +- datamigration/v1/datamigration-gen.go | 3 + dataplex/v1/dataplex-api.json | 35 +- dataplex/v1/dataplex-gen.go | 57 +- .../v1/networkconnectivity-api.json | 109 +- .../v1/networkconnectivity-gen.go | 160 +- servicecontrol/v1/servicecontrol-api.json | 4 +- servicecontrol/v2/servicecontrol-api.json | 4 +- .../v1/workflowexecutions-api.json | 7 +- .../v1/workflowexecutions-gen.go | 7 +- workstations/v1/workstations-api.json | 13 +- workstations/v1/workstations-gen.go | 30 +- workstations/v1beta/workstations-api.json | 19 +- workstations/v1beta/workstations-gen.go | 42 +- 24 files changed, 4141 insertions(+), 869 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 1cd87d29b14..87605d3d5a3 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -3154,7 +3154,8 @@ "$ref": "GoogleCloudAiplatformV1DirectPredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "directRawPredict": { @@ -3182,7 +3183,8 @@ "$ref": "GoogleCloudAiplatformV1DirectRawPredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "explain": { @@ -3210,7 +3212,8 @@ "$ref": "GoogleCloudAiplatformV1ExplainResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "generateContent": { @@ -3238,7 +3241,8 @@ "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "get": { @@ -3405,7 +3409,8 @@ "$ref": "GoogleCloudAiplatformV1PredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "rawPredict": { @@ -3433,7 +3438,8 @@ "$ref": "GoogleApiHttpBody" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "serverStreamingPredict": { @@ -3461,7 +3467,8 @@ "$ref": "GoogleCloudAiplatformV1StreamingPredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "streamGenerateContent": { @@ -3489,7 +3496,8 @@ "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "streamRawPredict": { @@ -3517,7 +3525,8 @@ "$ref": "GoogleApiHttpBody" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "undeployModel": { @@ -11275,6 +11284,40 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Updates a NotebookRuntimeTemplate.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.notebookRuntimeTemplates.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the NotebookRuntimeTemplate.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Input format: `{paths: \"${updated_filed}\"}` Updatable fields: * `encryption_spec.kms_key_name`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1NotebookRuntimeTemplate" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1NotebookRuntimeTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:setIamPolicy", @@ -12476,7 +12519,8 @@ "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "predict": { @@ -12504,7 +12548,8 @@ "$ref": "GoogleCloudAiplatformV1PredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "rawPredict": { @@ -12532,7 +12577,8 @@ "$ref": "GoogleApiHttpBody" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "serverStreamingPredict": { @@ -12560,7 +12606,8 @@ "$ref": "GoogleCloudAiplatformV1StreamingPredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "streamGenerateContent": { @@ -12588,7 +12635,8 @@ "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "streamRawPredict": { @@ -12616,7 +12664,8 @@ "$ref": "GoogleApiHttpBody" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] } } @@ -16238,125 +16287,9 @@ } } }, - "revision": "20240520", + "revision": "20240529", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { - "CloudAiLargeModelsVisionFilteredText": { - "description": "Details for filtered input text.", - "id": "CloudAiLargeModelsVisionFilteredText", - "properties": { - "category": { - "description": "Filtered category", - "enum": [ - "RAI_CATEGORY_UNSPECIFIED", - "OBSCENE", - "SEXUALLY_EXPLICIT", - "IDENTITY_ATTACK", - "VIOLENCE_ABUSE", - "CSAI", - "SPII", - "CELEBRITY", - "FACE_IMG", - "WATERMARK_IMG", - "MEMORIZATION_IMG", - "CSAI_IMG", - "PORN_IMG", - "VIOLENCE_IMG", - "CHILD_IMG", - "TOXIC", - "SENSITIVE_WORD", - "PERSON_IMG", - "ICA_IMG", - "AGILE_ICA_IMG", - "SEXUAL_IMG", - "IU_IMG", - "RACY_IMG", - "PEDO_IMG", - "DEATH_HARM_TRAGEDY", - "HEALTH", - "FIREARMS_WEAPONS", - "RELIGIOUS_BELIEF", - "ILLICIT_DRUGS", - "WAR_CONFLICT", - "POLITICS", - "HATE_SYMBOL_IMG", - "CHILD_TEXT", - "DANGEROUS_CONTENT", - "RECITATION_TEXT", - "CELEBRITY_IMG", - "WATERMARK_IMG_REMOVAL", - "RAID_IMG" - ], - "enumDescriptions": [ - "", - "", - "Porn", - "Hate", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "Agile ICA label currently for evaluation only.", - "", - "", - "", - "", - "SafetyAttributes returned but not filtered on", - "", - "", - "", - "", - "", - "", - "End of list", - "", - "Text category from SafetyCat v3", - "", - "", - "Error message when user attempts to remove watermark from editing image", - "" - ], - "type": "string" - }, - "confidence": { - "description": "Confidence score", - "enum": [ - "CONFIDENCE_UNSPECIFIED", - "CONFIDENCE_LOW", - "CONFIDENCE_MEDIUM", - "CONFIDENCE_HIGH" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "prompt": { - "description": "Input prompt", - "type": "string" - }, - "score": { - "description": "Score for category", - "format": "double", - "type": "number" - } - }, - "type": "object" - }, "CloudAiLargeModelsVisionGenerateVideoResponse": { "description": "Generate video response.", "id": "CloudAiLargeModelsVisionGenerateVideoResponse", @@ -16368,10 +16301,6 @@ }, "type": "array" }, - "raiErrorMessage": { - "description": "Returns rai error message for filtered videos.", - "type": "string" - }, "raiMediaFilteredCount": { "description": "Returns if any videos were filtered due to RAI policies.", "format": "int32", @@ -16383,10 +16312,6 @@ "type": "string" }, "type": "array" - }, - "raiTextFilteredReason": { - "$ref": "CloudAiLargeModelsVisionFilteredText", - "description": "Returns filtered text rai info." } }, "type": "object" @@ -16499,6 +16424,7 @@ "id": "CloudAiLargeModelsVisionRaiInfo", "properties": { "detectedLabels": { + "description": "The list of detected labels for different rai categories.", "items": { "$ref": "CloudAiLargeModelsVisionRaiInfoDetectedLabels" }, @@ -16523,27 +16449,75 @@ "type": "object" }, "CloudAiLargeModelsVisionRaiInfoDetectedLabels": { - "description": "Filters which return labels with confidence scores.", + "description": "Filters returning list of deteceted labels, scores, and bounding boxes.", "id": "CloudAiLargeModelsVisionRaiInfoDetectedLabels", "properties": { - "descriptions": { - "description": "Descriptions of the detected labels.", + "entities": { + "description": "The list of detected entities for the rai signal.", "items": { - "type": "string" + "$ref": "CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity" }, "type": "array" }, "raiCategory": { "description": "The RAI category for the deteceted labels.", "type": "string" + } + }, + "type": "object" + }, + "CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox": { + "description": "An integer bounding box of original pixels of the image for the detected labels.", + "id": "CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox", + "properties": { + "x1": { + "description": "The X coordinate of the top-left corner, in pixels.", + "format": "int32", + "type": "integer" }, - "scores": { - "description": "Confidence scores mapping to the labels.", - "items": { - "format": "float", - "type": "number" - }, - "type": "array" + "x2": { + "description": "The X coordinate of the bottom-right corner, in pixels.", + "format": "int32", + "type": "integer" + }, + "y1": { + "description": "The Y coordinate of the top-left corner, in pixels.", + "format": "int32", + "type": "integer" + }, + "y2": { + "description": "The Y coordinate of the bottom-right corner, in pixels.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity": { + "description": "The properties for a detected entity from the rai signal.", + "id": "CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity", + "properties": { + "boundingBox": { + "$ref": "CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox", + "description": "Bounding box of the label" + }, + "description": { + "description": "Description of the label", + "type": "string" + }, + "iouScore": { + "description": "The intersection ratio between the detection bounding box and the mask.", + "format": "float", + "type": "number" + }, + "mid": { + "description": "MID of the label", + "type": "string" + }, + "score": { + "description": "Confidence score of the label", + "format": "float", + "type": "number" } }, "type": "object" @@ -16581,6 +16555,75 @@ }, "type": "object" }, + "CloudAiPlatformCommonCreatePipelineJobApiErrorDetail": { + "description": "Create API error message for Vertex Pipeline. Next Id: 3.", + "id": "CloudAiPlatformCommonCreatePipelineJobApiErrorDetail", + "properties": { + "errorCause": { + "description": "The error root cause returned by CreatePipelineJob API.", + "enum": [ + "ERROR_CAUSE_UNSPECIFIED", + "INVALID_PIPELINE_SPEC_FORMAT", + "INVALID_PIPELINE_SPEC", + "INVALID_DEPLOYMENT_CONFIG", + "INVALID_DEPLOYMENT_SPEC", + "INVALID_INSTANCE_SCHEMA", + "INVALID_CUSTOM_JOB", + "INVALID_CONTAINER_SPEC", + "INVALID_NOTIFICATION_EMAIL_SETUP", + "INVALID_SERVICE_ACCOUNT_SETUP", + "INVALID_KMS_SETUP", + "INVALID_NETWORK_SETUP", + "INVALID_PIPELINE_TASK_SPEC", + "INVALID_PIPELINE_TASK_ARTIFACT", + "INVALID_IMPORTER_SPEC", + "INVALID_RESOLVER_SPEC", + "INVALID_RUNTIME_PARAMETERS", + "CLOUD_API_NOT_ENABLED", + "INVALID_GCS_INPUT_URI", + "INVALID_GCS_OUTPUT_URI", + "INVALID_COMPONENT_SPEC", + "INVALID_DAG_OUTPUTS_SPEC", + "INVALID_DAG_SPEC", + "INSUFFICIENT_QUOTA", + "INTERNAL" + ], + "enumDescriptions": [ + "Should never be used.", + "IR Pipeline Spec can not been parsed to yaml or json format.", + "A pipeline spec is invalid.", + "A deployment config is invalid.", + "A deployment spec is invalid.", + "An instance schema is invalid.", + "A custom job is invalid.", + "A container spec is invalid.", + "Notification email setup is invalid.", + "Service account setup is invalid.", + "KMS setup is invalid.", + "Network setup is invalid.", + "Task spec is invalid.", + "Task artifact is invalid.", + "Importer spec is invalid.", + "Resolver spec is invalid.", + "Runtime Parameters are invalid.", + "Cloud API not enabled.", + "Invalid GCS input uri", + "Invalid GCS output uri", + "Component spec of pipeline is invalid.", + "DagOutputsSpec is invalid.", + "DagSpec is invalid.", + "Project does not have enough quota.", + "An internal error with unknown cause." + ], + "type": "string" + }, + "publicMessage": { + "description": "Public messages contains actionable items for the error cause.", + "type": "string" + } + }, + "type": "object" + }, "GoogleApiHttpBody": { "description": "Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.", "id": "GoogleApiHttpBody", @@ -18947,6 +18990,142 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1DatasetDistribution": { + "description": "Distribution computed over a tuning dataset.", + "id": "GoogleCloudAiplatformV1DatasetDistribution", + "properties": { + "buckets": { + "description": "Output only. Defines the histogram bucket.", + "items": { + "$ref": "GoogleCloudAiplatformV1DatasetDistributionDistributionBucket" + }, + "readOnly": true, + "type": "array" + }, + "max": { + "description": "Output only. The maximum of the population values.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "mean": { + "description": "Output only. The arithmetic mean of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "median": { + "description": "Output only. The median of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "min": { + "description": "Output only. The minimum of the population values.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "p5": { + "description": "Output only. The 5th percentile of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "p95": { + "description": "Output only. The 95th percentile of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "sum": { + "description": "Output only. Sum of a given population of values.", + "format": "double", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1DatasetDistributionDistributionBucket": { + "description": "Dataset bucket used to create a histogram for the distribution given a population of values.", + "id": "GoogleCloudAiplatformV1DatasetDistributionDistributionBucket", + "properties": { + "count": { + "description": "Output only. Number of values in the bucket.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "left": { + "description": "Output only. Left bound of the bucket.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "right": { + "description": "Output only. Right bound of the bucket.", + "format": "double", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1DatasetStats": { + "description": "Statistics computed over a tuning dataset.", + "id": "GoogleCloudAiplatformV1DatasetStats", + "properties": { + "totalBillableCharacterCount": { + "description": "Output only. Number of billable characters in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "totalTuningCharacterCount": { + "description": "Output only. Number of tuning characters in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "tuningDatasetExampleCount": { + "description": "Output only. Number of examples in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "tuningStepCount": { + "description": "Output only. Number of tuning steps for this Tuning Job.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "userDatasetExamples": { + "description": "Output only. Sample user messages in the training dataset uri.", + "items": { + "$ref": "GoogleCloudAiplatformV1Content" + }, + "readOnly": true, + "type": "array" + }, + "userInputTokenDistribution": { + "$ref": "GoogleCloudAiplatformV1DatasetDistribution", + "description": "Output only. Dataset distributions for the user input tokens.", + "readOnly": true + }, + "userMessagePerExampleDistribution": { + "$ref": "GoogleCloudAiplatformV1DatasetDistribution", + "description": "Output only. Dataset distributions for the messages per example.", + "readOnly": true + }, + "userOutputTokenDistribution": { + "$ref": "GoogleCloudAiplatformV1DatasetDistribution", + "description": "Output only. Dataset distributions for the user output tokens.", + "readOnly": true + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1DatasetVersion": { "description": "Describes the dataset version.", "id": "GoogleCloudAiplatformV1DatasetVersion", @@ -19556,6 +19735,18 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1DistillationDataStats": { + "description": "Statistics computed for datasets used for distillation.", + "id": "GoogleCloudAiplatformV1DistillationDataStats", + "properties": { + "trainingDatasetStats": { + "$ref": "GoogleCloudAiplatformV1DatasetStats", + "description": "Output only. Statistics computed for the training dataset.", + "readOnly": true + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1DoubleArray": { "description": "A list of double values.", "id": "GoogleCloudAiplatformV1DoubleArray", @@ -21075,6 +21266,10 @@ "$ref": "GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint", "description": "Optional. The dedicated serving endpoint for this FeatureOnlineStore, which is different from common Vertex service endpoint." }, + "encryptionSpec": { + "$ref": "GoogleCloudAiplatformV1EncryptionSpec", + "description": "Optional. Customer-managed encryption key spec for data storage. If set, online store will be secured by this key." + }, "etag": { "description": "Optional. Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", "type": "string" @@ -22051,6 +22246,36 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1FunctionCallingConfig": { + "description": "Function calling config.", + "id": "GoogleCloudAiplatformV1FunctionCallingConfig", + "properties": { + "allowedFunctionNames": { + "description": "Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.", + "items": { + "type": "string" + }, + "type": "array" + }, + "mode": { + "description": "Optional. Function calling mode.", + "enum": [ + "MODE_UNSPECIFIED", + "AUTO", + "ANY", + "NONE" + ], + "enumDescriptions": [ + "Unspecified function calling mode. This value should not be used.", + "Default model behavior, model decides to predict either a function call or a natural language repspose.", + "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".", + "Model will not predict any function call. Model behavior is same as when not passing any function declarations." + ], + "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", @@ -22140,6 +22365,10 @@ "$ref": "GoogleCloudAiplatformV1Content", "description": "Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph." }, + "toolConfig": { + "$ref": "GoogleCloudAiplatformV1ToolConfig", + "description": "Optional. Tool config. This config is shared for all tools provided in the request." + }, "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.", "items": { @@ -22262,6 +22491,10 @@ "description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.", "type": "string" }, + "responseSchema": { + "$ref": "GoogleCloudAiplatformV1Schema", + "description": "Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response." + }, "stopSequences": { "description": "Optional. Stop sequences.", "items": { @@ -26209,7 +26442,8 @@ "INVALID_ENCODING", "INVALID_SPARSE_DIMENSIONS", "INVALID_TOKEN_VALUE", - "INVALID_SPARSE_EMBEDDING" + "INVALID_SPARSE_EMBEDDING", + "INVALID_EMBEDDING" ], "enumDescriptions": [ "Default, shall not be used.", @@ -26228,7 +26462,8 @@ "File is not in UTF_8 format.", "Error parsing sparse dimensions field.", "Token restrict value is invalid.", - "Invalid sparse embedding." + "Invalid sparse embedding.", + "Invalid embedding." ], "type": "string" }, @@ -26383,6 +26618,11 @@ "description": "Required. The display name of the NotebookRuntime. The name can be up to 128 characters long and can consist of any UTF-8 characters.", "type": "string" }, + "encryptionSpec": { + "$ref": "GoogleCloudAiplatformV1EncryptionSpec", + "description": "Output only. Customer-managed encryption key spec for the notebook runtime.", + "readOnly": true + }, "expirationTime": { "description": "Output only. Timestamp when this NotebookRuntime will be expired: 1. System Predefined NotebookRuntime: 24 hours after creation. After expiration, system predifined runtime will be deleted. 2. User created NotebookRuntime: 6 months after last upgrade. After expiration, user created runtime will be stopped and allowed for upgrade.", "format": "google-datetime", @@ -28312,6 +28552,23 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1ReinforcementLearningDataStats": { + "description": "Statistics computed for datasets used for reinforcement learning.", + "id": "GoogleCloudAiplatformV1ReinforcementLearningDataStats", + "properties": { + "preferenceDatasetStats": { + "$ref": "GoogleCloudAiplatformV1DatasetStats", + "description": "Output only. Statistics computed for the preference dataset. This can be either a human preference dataset or a preference dataset generated from AI feedback.", + "readOnly": true + }, + "promptDatasetStats": { + "$ref": "GoogleCloudAiplatformV1DatasetStats", + "description": "Output only. Statistics computed for the prompt dataset used during reinforcement learning.", + "readOnly": true + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1RemoveContextChildrenRequest": { "description": "Request message for MetadataService.DeleteContextChildrenRequest.", "id": "GoogleCloudAiplatformV1RemoveContextChildrenRequest", @@ -30968,6 +31225,10 @@ }, "type": "array" }, + "systemInstruction": { + "description": "The content of the prompt dataset system instruction.", + "type": "string" + }, "systemInstructionGcsUri": { "description": "The Google Cloud Storage URI that stores the system instruction, starting with gs://.", "type": "string" @@ -34608,6 +34869,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ToolConfig": { + "description": "Tool config. This config is shared for all tools provided in the request.", + "id": "GoogleCloudAiplatformV1ToolConfig", + "properties": { + "functionCallingConfig": { + "$ref": "GoogleCloudAiplatformV1FunctionCallingConfig", + "description": "Optional. Function calling config." + } + }, + "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", @@ -34882,6 +35154,14 @@ "description": "The tuning data statistic values for TuningJob.", "id": "GoogleCloudAiplatformV1TuningDataStats", "properties": { + "distillationDataStats": { + "$ref": "GoogleCloudAiplatformV1DistillationDataStats", + "description": "Statistics for distillation." + }, + "reinforcementLearningDataStats": { + "$ref": "GoogleCloudAiplatformV1ReinforcementLearningDataStats", + "description": "Statistics for reinforcement learning." + }, "supervisedTuningDataStats": { "$ref": "GoogleCloudAiplatformV1SupervisedTuningDataStats", "description": "The SFT Tuning data stats." diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 0c44acf27e9..d993a28d0cd 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -1289,108 +1289,15 @@ type PublishersModelsService struct { s *Service } -// CloudAiLargeModelsVisionFilteredText: Details for filtered input text. -type CloudAiLargeModelsVisionFilteredText struct { - // Category: Filtered category - // - // Possible values: - // "RAI_CATEGORY_UNSPECIFIED" - // "OBSCENE" - // "SEXUALLY_EXPLICIT" - Porn - // "IDENTITY_ATTACK" - Hate - // "VIOLENCE_ABUSE" - // "CSAI" - // "SPII" - // "CELEBRITY" - // "FACE_IMG" - // "WATERMARK_IMG" - // "MEMORIZATION_IMG" - // "CSAI_IMG" - // "PORN_IMG" - // "VIOLENCE_IMG" - // "CHILD_IMG" - // "TOXIC" - // "SENSITIVE_WORD" - // "PERSON_IMG" - // "ICA_IMG" - // "AGILE_ICA_IMG" - Agile ICA label currently for evaluation only. - // "SEXUAL_IMG" - // "IU_IMG" - // "RACY_IMG" - // "PEDO_IMG" - // "DEATH_HARM_TRAGEDY" - SafetyAttributes returned but not filtered on - // "HEALTH" - // "FIREARMS_WEAPONS" - // "RELIGIOUS_BELIEF" - // "ILLICIT_DRUGS" - // "WAR_CONFLICT" - // "POLITICS" - // "HATE_SYMBOL_IMG" - End of list - // "CHILD_TEXT" - // "DANGEROUS_CONTENT" - Text category from SafetyCat v3 - // "RECITATION_TEXT" - // "CELEBRITY_IMG" - // "WATERMARK_IMG_REMOVAL" - Error message when user attempts to remove - // watermark from editing image - // "RAID_IMG" - Category string `json:"category,omitempty"` - // Confidence: Confidence score - // - // Possible values: - // "CONFIDENCE_UNSPECIFIED" - // "CONFIDENCE_LOW" - // "CONFIDENCE_MEDIUM" - // "CONFIDENCE_HIGH" - Confidence string `json:"confidence,omitempty"` - // Prompt: Input prompt - Prompt string `json:"prompt,omitempty"` - // Score: Score for category - Score float64 `json:"score,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. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - 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. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *CloudAiLargeModelsVisionFilteredText) MarshalJSON() ([]byte, error) { - type NoMethod CloudAiLargeModelsVisionFilteredText - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -func (s *CloudAiLargeModelsVisionFilteredText) UnmarshalJSON(data []byte) error { - type NoMethod CloudAiLargeModelsVisionFilteredText - var s1 struct { - Score gensupport.JSONFloat64 `json:"score"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Score = float64(s1.Score) - return nil -} - // CloudAiLargeModelsVisionGenerateVideoResponse: Generate video response. type CloudAiLargeModelsVisionGenerateVideoResponse struct { // GeneratedSamples: The generates samples. GeneratedSamples []*CloudAiLargeModelsVisionMedia `json:"generatedSamples,omitempty"` - // RaiErrorMessage: Returns rai error message for filtered videos. - RaiErrorMessage string `json:"raiErrorMessage,omitempty"` // RaiMediaFilteredCount: Returns if any videos were filtered due to RAI // policies. RaiMediaFilteredCount int64 `json:"raiMediaFilteredCount,omitempty"` // RaiMediaFilteredReasons: Returns rai failure reasons if any. RaiMediaFilteredReasons []string `json:"raiMediaFilteredReasons,omitempty"` - // RaiTextFilteredReason: Returns filtered text rai info. - RaiTextFilteredReason *CloudAiLargeModelsVisionFilteredText `json:"raiTextFilteredReason,omitempty"` // ForceSendFields is a list of field names (e.g. "GeneratedSamples") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1556,6 +1463,7 @@ func (s *CloudAiLargeModelsVisionNamedBoundingBox) UnmarshalJSON(data []byte) er } type CloudAiLargeModelsVisionRaiInfo struct { + // DetectedLabels: The list of detected labels for different rai categories. DetectedLabels []*CloudAiLargeModelsVisionRaiInfoDetectedLabels `json:"detectedLabels,omitempty"` // RaiCategories: List of rai categories' information to return RaiCategories []string `json:"raiCategories,omitempty"` @@ -1597,22 +1505,20 @@ func (s *CloudAiLargeModelsVisionRaiInfo) UnmarshalJSON(data []byte) error { return nil } -// CloudAiLargeModelsVisionRaiInfoDetectedLabels: Filters which return labels -// with confidence scores. +// CloudAiLargeModelsVisionRaiInfoDetectedLabels: Filters returning list of +// deteceted labels, scores, and bounding boxes. type CloudAiLargeModelsVisionRaiInfoDetectedLabels struct { - // Descriptions: Descriptions of the detected labels. - Descriptions []string `json:"descriptions,omitempty"` + // Entities: The list of detected entities for the rai signal. + Entities []*CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity `json:"entities,omitempty"` // RaiCategory: The RAI category for the deteceted labels. RaiCategory string `json:"raiCategory,omitempty"` - // Scores: Confidence scores mapping to the labels. - Scores []float64 `json:"scores,omitempty"` - // ForceSendFields is a list of field names (e.g. "Descriptions") to + // ForceSendFields is a list of field names (e.g. "Entities") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Descriptions") to include in API + // NullFields is a list of field names (e.g. "Entities") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1624,20 +1530,80 @@ func (s *CloudAiLargeModelsVisionRaiInfoDetectedLabels) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -func (s *CloudAiLargeModelsVisionRaiInfoDetectedLabels) UnmarshalJSON(data []byte) error { - type NoMethod CloudAiLargeModelsVisionRaiInfoDetectedLabels +// CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox: An integer +// bounding box of original pixels of the image for the detected labels. +type CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox struct { + // X1: The X coordinate of the top-left corner, in pixels. + X1 int64 `json:"x1,omitempty"` + // X2: The X coordinate of the bottom-right corner, in pixels. + X2 int64 `json:"x2,omitempty"` + // Y1: The Y coordinate of the top-left corner, in pixels. + Y1 int64 `json:"y1,omitempty"` + // Y2: The Y coordinate of the bottom-right corner, in pixels. + Y2 int64 `json:"y2,omitempty"` + // ForceSendFields is a list of field names (e.g. "X1") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "X1") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity: The properties for a +// detected entity from the rai signal. +type CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity struct { + // BoundingBox: Bounding box of the label + BoundingBox *CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox `json:"boundingBox,omitempty"` + // Description: Description of the label + Description string `json:"description,omitempty"` + // IouScore: The intersection ratio between the detection bounding box and the + // mask. + IouScore float64 `json:"iouScore,omitempty"` + // Mid: MID of the label + Mid string `json:"mid,omitempty"` + // Score: Confidence score of the label + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "BoundingBox") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BoundingBox") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity var s1 struct { - Scores []gensupport.JSONFloat64 `json:"scores"` + IouScore gensupport.JSONFloat64 `json:"iouScore"` + Score gensupport.JSONFloat64 `json:"score"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } - s.Scores = make([]float64, len(s1.Scores)) - for i := range s1.Scores { - s.Scores[i] = float64(s1.Scores[i]) - } + s.IouScore = float64(s1.IouScore) + s.Score = float64(s1.Score) return nil } @@ -1692,6 +1658,60 @@ func (s *CloudAiLargeModelsVisionVideo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// CloudAiPlatformCommonCreatePipelineJobApiErrorDetail: Create API error +// message for Vertex Pipeline. Next Id: 3. +type CloudAiPlatformCommonCreatePipelineJobApiErrorDetail struct { + // ErrorCause: The error root cause returned by CreatePipelineJob API. + // + // Possible values: + // "ERROR_CAUSE_UNSPECIFIED" - Should never be used. + // "INVALID_PIPELINE_SPEC_FORMAT" - IR Pipeline Spec can not been parsed to + // yaml or json format. + // "INVALID_PIPELINE_SPEC" - A pipeline spec is invalid. + // "INVALID_DEPLOYMENT_CONFIG" - A deployment config is invalid. + // "INVALID_DEPLOYMENT_SPEC" - A deployment spec is invalid. + // "INVALID_INSTANCE_SCHEMA" - An instance schema is invalid. + // "INVALID_CUSTOM_JOB" - A custom job is invalid. + // "INVALID_CONTAINER_SPEC" - A container spec is invalid. + // "INVALID_NOTIFICATION_EMAIL_SETUP" - Notification email setup is invalid. + // "INVALID_SERVICE_ACCOUNT_SETUP" - Service account setup is invalid. + // "INVALID_KMS_SETUP" - KMS setup is invalid. + // "INVALID_NETWORK_SETUP" - Network setup is invalid. + // "INVALID_PIPELINE_TASK_SPEC" - Task spec is invalid. + // "INVALID_PIPELINE_TASK_ARTIFACT" - Task artifact is invalid. + // "INVALID_IMPORTER_SPEC" - Importer spec is invalid. + // "INVALID_RESOLVER_SPEC" - Resolver spec is invalid. + // "INVALID_RUNTIME_PARAMETERS" - Runtime Parameters are invalid. + // "CLOUD_API_NOT_ENABLED" - Cloud API not enabled. + // "INVALID_GCS_INPUT_URI" - Invalid GCS input uri + // "INVALID_GCS_OUTPUT_URI" - Invalid GCS output uri + // "INVALID_COMPONENT_SPEC" - Component spec of pipeline is invalid. + // "INVALID_DAG_OUTPUTS_SPEC" - DagOutputsSpec is invalid. + // "INVALID_DAG_SPEC" - DagSpec is invalid. + // "INSUFFICIENT_QUOTA" - Project does not have enough quota. + // "INTERNAL" - An internal error with unknown cause. + ErrorCause string `json:"errorCause,omitempty"` + // PublicMessage: Public messages contains actionable items for the error + // cause. + PublicMessage string `json:"publicMessage,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorCause") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ErrorCause") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *CloudAiPlatformCommonCreatePipelineJobApiErrorDetail) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiPlatformCommonCreatePipelineJobApiErrorDetail + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It should // only be used for payload formats that can't be represented as JSON, such as // raw binary or an HTML page. This message can be used both in streaming and @@ -5148,6 +5168,157 @@ func (s *GoogleCloudAiplatformV1Dataset) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1DatasetDistribution: Distribution computed over a +// tuning dataset. +type GoogleCloudAiplatformV1DatasetDistribution struct { + // Buckets: Output only. Defines the histogram bucket. + Buckets []*GoogleCloudAiplatformV1DatasetDistributionDistributionBucket `json:"buckets,omitempty"` + // Max: Output only. The maximum of the population values. + Max float64 `json:"max,omitempty"` + // Mean: Output only. The arithmetic mean of the values in the population. + Mean float64 `json:"mean,omitempty"` + // Median: Output only. The median of the values in the population. + Median float64 `json:"median,omitempty"` + // Min: Output only. The minimum of the population values. + Min float64 `json:"min,omitempty"` + // P5: Output only. The 5th percentile of the values in the population. + P5 float64 `json:"p5,omitempty"` + // P95: Output only. The 95th percentile of the values in the population. + P95 float64 `json:"p95,omitempty"` + // Sum: Output only. Sum of a given population of values. + Sum float64 `json:"sum,omitempty"` + // ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Buckets") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1DatasetDistribution) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1DatasetDistribution + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1DatasetDistribution) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1DatasetDistribution + var s1 struct { + Max gensupport.JSONFloat64 `json:"max"` + Mean gensupport.JSONFloat64 `json:"mean"` + Median gensupport.JSONFloat64 `json:"median"` + Min gensupport.JSONFloat64 `json:"min"` + P5 gensupport.JSONFloat64 `json:"p5"` + P95 gensupport.JSONFloat64 `json:"p95"` + Sum gensupport.JSONFloat64 `json:"sum"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Max = float64(s1.Max) + s.Mean = float64(s1.Mean) + s.Median = float64(s1.Median) + s.Min = float64(s1.Min) + s.P5 = float64(s1.P5) + s.P95 = float64(s1.P95) + s.Sum = float64(s1.Sum) + return nil +} + +// GoogleCloudAiplatformV1DatasetDistributionDistributionBucket: Dataset bucket +// used to create a histogram for the distribution given a population of +// values. +type GoogleCloudAiplatformV1DatasetDistributionDistributionBucket struct { + // Count: Output only. Number of values in the bucket. + Count int64 `json:"count,omitempty,string"` + // Left: Output only. Left bound of the bucket. + Left float64 `json:"left,omitempty"` + // Right: Output only. Right bound of the bucket. + Right float64 `json:"right,omitempty"` + // ForceSendFields is a list of field names (e.g. "Count") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Count") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1DatasetDistributionDistributionBucket) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1DatasetDistributionDistributionBucket + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1DatasetDistributionDistributionBucket) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1DatasetDistributionDistributionBucket + var s1 struct { + Left gensupport.JSONFloat64 `json:"left"` + Right gensupport.JSONFloat64 `json:"right"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Left = float64(s1.Left) + s.Right = float64(s1.Right) + return nil +} + +// GoogleCloudAiplatformV1DatasetStats: Statistics computed over a tuning +// dataset. +type GoogleCloudAiplatformV1DatasetStats struct { + // TotalBillableCharacterCount: Output only. Number of billable characters in + // the tuning dataset. + TotalBillableCharacterCount int64 `json:"totalBillableCharacterCount,omitempty,string"` + // TotalTuningCharacterCount: Output only. Number of tuning characters in the + // tuning dataset. + TotalTuningCharacterCount int64 `json:"totalTuningCharacterCount,omitempty,string"` + // TuningDatasetExampleCount: Output only. Number of examples in the tuning + // dataset. + TuningDatasetExampleCount int64 `json:"tuningDatasetExampleCount,omitempty,string"` + // TuningStepCount: Output only. Number of tuning steps for this Tuning Job. + TuningStepCount int64 `json:"tuningStepCount,omitempty,string"` + // UserDatasetExamples: Output only. Sample user messages in the training + // dataset uri. + UserDatasetExamples []*GoogleCloudAiplatformV1Content `json:"userDatasetExamples,omitempty"` + // UserInputTokenDistribution: Output only. Dataset distributions for the user + // input tokens. + UserInputTokenDistribution *GoogleCloudAiplatformV1DatasetDistribution `json:"userInputTokenDistribution,omitempty"` + // UserMessagePerExampleDistribution: Output only. Dataset distributions for + // the messages per example. + UserMessagePerExampleDistribution *GoogleCloudAiplatformV1DatasetDistribution `json:"userMessagePerExampleDistribution,omitempty"` + // UserOutputTokenDistribution: Output only. Dataset distributions for the user + // output tokens. + UserOutputTokenDistribution *GoogleCloudAiplatformV1DatasetDistribution `json:"userOutputTokenDistribution,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "TotalBillableCharacterCount") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TotalBillableCharacterCount") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1DatasetStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1DatasetStats + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1DatasetVersion: Describes the dataset version. type GoogleCloudAiplatformV1DatasetVersion struct { // BigQueryDatasetName: Output only. Name of the associated BigQuery dataset. @@ -6154,6 +6325,30 @@ func (s *GoogleCloudAiplatformV1DiskSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1DistillationDataStats: Statistics computed for +// datasets used for distillation. +type GoogleCloudAiplatformV1DistillationDataStats struct { + // TrainingDatasetStats: Output only. Statistics computed for the training + // dataset. + TrainingDatasetStats *GoogleCloudAiplatformV1DatasetStats `json:"trainingDatasetStats,omitempty"` + // ForceSendFields is a list of field names (e.g. "TrainingDatasetStats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TrainingDatasetStats") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1DistillationDataStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1DistillationDataStats + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1DoubleArray: A list of double values. type GoogleCloudAiplatformV1DoubleArray struct { // Values: A list of double values. @@ -8334,6 +8529,9 @@ type GoogleCloudAiplatformV1FeatureOnlineStore struct { // DedicatedServingEndpoint: Optional. The dedicated serving endpoint for this // FeatureOnlineStore, which is different from common Vertex service endpoint. DedicatedServingEndpoint *GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint `json:"dedicatedServingEndpoint,omitempty"` + // EncryptionSpec: Optional. Customer-managed encryption key spec for data + // storage. If set, online store will be secured by this key. + EncryptionSpec *GoogleCloudAiplatformV1EncryptionSpec `json:"encryptionSpec,omitempty"` // Etag: Optional. Used to perform consistent read-modify-write updates. If not // set, a blind "overwrite" update happens. Etag string `json:"etag,omitempty"` @@ -9904,6 +10102,45 @@ func (s *GoogleCloudAiplatformV1FunctionCall) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1FunctionCallingConfig: Function calling config. +type GoogleCloudAiplatformV1FunctionCallingConfig struct { + // AllowedFunctionNames: Optional. Function names to call. Only set when the + // Mode is ANY. Function names should match [FunctionDeclaration.name]. With + // mode set to ANY, model will predict a function call from the set of function + // names provided. + AllowedFunctionNames []string `json:"allowedFunctionNames,omitempty"` + // Mode: Optional. Function calling mode. + // + // Possible values: + // "MODE_UNSPECIFIED" - Unspecified function calling mode. This value should + // not be used. + // "AUTO" - Default model behavior, model decides to predict either a + // function call or a natural language repspose. + // "ANY" - Model is constrained to always predicting a function call only. If + // "allowed_function_names" are set, the predicted function call will be + // limited to any one of "allowed_function_names", else the predicted function + // call will be any one of the provided "function_declarations". + // "NONE" - Model will not predict any function call. Model behavior is same + // as when not passing any function declarations. + Mode string `json:"mode,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllowedFunctionNames") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AllowedFunctionNames") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1FunctionCallingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1FunctionCallingConfig + return gensupport.MarshalJSON(NoMethod(*s), 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 @@ -10042,6 +10279,9 @@ type GoogleCloudAiplatformV1GenerateContentRequest struct { // model. Note: only text should be used in parts and content in each part will // be in a separate paragraph. SystemInstruction *GoogleCloudAiplatformV1Content `json:"systemInstruction,omitempty"` + // ToolConfig: Optional. Tool config. This config is shared for all tools + // provided in the request. + ToolConfig *GoogleCloudAiplatformV1ToolConfig `json:"toolConfig,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 @@ -10175,6 +10415,13 @@ type GoogleCloudAiplatformV1GenerationConfig struct { // prompted to output the appropriate response type, otherwise the behavior is // undefined. This is a preview feature. ResponseMimeType string `json:"responseMimeType,omitempty"` + // ResponseSchema: Optional. The `Schema` object allows the definition of input + // and output data types. These types can be objects, but also primitives and + // arrays. Represents a select subset of an OpenAPI 3.0 schema object + // (https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible + // response_mime_type must also be set. Compatible mimetypes: + // `application/json`: Schema for JSON response. + ResponseSchema *GoogleCloudAiplatformV1Schema `json:"responseSchema,omitempty"` // StopSequences: Optional. Stop sequences. StopSequences []string `json:"stopSequences,omitempty"` // Temperature: Optional. Controls the randomness of predictions. @@ -15767,6 +16014,7 @@ type GoogleCloudAiplatformV1NearestNeighborSearchOperationMetadataRecordError st // "INVALID_SPARSE_DIMENSIONS" - Error parsing sparse dimensions field. // "INVALID_TOKEN_VALUE" - Token restrict value is invalid. // "INVALID_SPARSE_EMBEDDING" - Invalid sparse embedding. + // "INVALID_EMBEDDING" - Invalid embedding. ErrorType string `json:"errorType,omitempty"` // RawRecord: The original content of this record. RawRecord string `json:"rawRecord,omitempty"` @@ -16028,6 +16276,9 @@ type GoogleCloudAiplatformV1NotebookRuntime struct { // DisplayName: Required. The display name of the NotebookRuntime. The name can // be up to 128 characters long and can consist of any UTF-8 characters. DisplayName string `json:"displayName,omitempty"` + // EncryptionSpec: Output only. Customer-managed encryption key spec for the + // notebook runtime. + EncryptionSpec *GoogleCloudAiplatformV1EncryptionSpec `json:"encryptionSpec,omitempty"` // ExpirationTime: Output only. Timestamp when this NotebookRuntime will be // expired: 1. System Predefined NotebookRuntime: 24 hours after creation. // After expiration, system predifined runtime will be deleted. 2. User created @@ -18501,6 +18752,34 @@ func (s *GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata) Marsh type GoogleCloudAiplatformV1RebootPersistentResourceRequest struct { } +// GoogleCloudAiplatformV1ReinforcementLearningDataStats: Statistics computed +// for datasets used for reinforcement learning. +type GoogleCloudAiplatformV1ReinforcementLearningDataStats struct { + // PreferenceDatasetStats: Output only. Statistics computed for the preference + // dataset. This can be either a human preference dataset or a preference + // dataset generated from AI feedback. + PreferenceDatasetStats *GoogleCloudAiplatformV1DatasetStats `json:"preferenceDatasetStats,omitempty"` + // PromptDatasetStats: Output only. Statistics computed for the prompt dataset + // used during reinforcement learning. + PromptDatasetStats *GoogleCloudAiplatformV1DatasetStats `json:"promptDatasetStats,omitempty"` + // ForceSendFields is a list of field names (e.g. "PreferenceDatasetStats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PreferenceDatasetStats") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1ReinforcementLearningDataStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ReinforcementLearningDataStats + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1RemoveContextChildrenRequest: Request message for // MetadataService.DeleteContextChildrenRequest. type GoogleCloudAiplatformV1RemoveContextChildrenRequest struct { @@ -22590,6 +22869,8 @@ type GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata struct { PromptType string `json:"promptType,omitempty"` // StopSequences: Customized stop sequences. StopSequences []string `json:"stopSequences,omitempty"` + // SystemInstruction: The content of the prompt dataset system instruction. + SystemInstruction string `json:"systemInstruction,omitempty"` // SystemInstructionGcsUri: The Google Cloud Storage URI that stores the system // instruction, starting with gs://. SystemInstructionGcsUri string `json:"systemInstructionGcsUri,omitempty"` @@ -28220,6 +28501,29 @@ func (s *GoogleCloudAiplatformV1Tool) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1ToolConfig: Tool config. This config is shared for +// all tools provided in the request. +type GoogleCloudAiplatformV1ToolConfig struct { + // FunctionCallingConfig: Optional. Function calling config. + FunctionCallingConfig *GoogleCloudAiplatformV1FunctionCallingConfig `json:"functionCallingConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "FunctionCallingConfig") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FunctionCallingConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1ToolConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1ToolConfig + return gensupport.MarshalJSON(NoMethod(*s), 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 sampling algorithm to @@ -28541,15 +28845,19 @@ func (s *GoogleCloudAiplatformV1TunedModel) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1TuningDataStats: The tuning data statistic values for // TuningJob. type GoogleCloudAiplatformV1TuningDataStats struct { + // DistillationDataStats: Statistics for distillation. + DistillationDataStats *GoogleCloudAiplatformV1DistillationDataStats `json:"distillationDataStats,omitempty"` + // ReinforcementLearningDataStats: Statistics for reinforcement learning. + ReinforcementLearningDataStats *GoogleCloudAiplatformV1ReinforcementLearningDataStats `json:"reinforcementLearningDataStats,omitempty"` // SupervisedTuningDataStats: The SFT Tuning data stats. SupervisedTuningDataStats *GoogleCloudAiplatformV1SupervisedTuningDataStats `json:"supervisedTuningDataStats,omitempty"` - // ForceSendFields is a list of field names (e.g. "SupervisedTuningDataStats") - // to unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "DistillationDataStats") to + // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SupervisedTuningDataStats") to + // NullFields is a list of field names (e.g. "DistillationDataStats") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -70704,6 +71012,117 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Pages(ctx context.Co } } +type ProjectsLocationsNotebookRuntimeTemplatesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1notebookruntimetemplate *GoogleCloudAiplatformV1NotebookRuntimeTemplate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a NotebookRuntimeTemplate. +// +// - name: The resource name of the NotebookRuntimeTemplate. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Patch(name string, googlecloudaiplatformv1notebookruntimetemplate *GoogleCloudAiplatformV1NotebookRuntimeTemplate) *ProjectsLocationsNotebookRuntimeTemplatesPatchCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1notebookruntimetemplate = googlecloudaiplatformv1notebookruntimetemplate + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The update +// mask applies to the resource. For the `FieldMask` definition, see +// google.protobuf.FieldMask. Input format: `{paths: "${updated_filed}"}` +// Updatable fields: * `encryption_spec.kms_key_name` +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsNotebookRuntimeTemplatesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1notebookruntimetemplate) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1NotebookRuntimeTemplate.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1NotebookRuntimeTemplate, 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 := &GoogleCloudAiplatformV1NotebookRuntimeTemplate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall struct { s *Service resource string diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 48f80fc4625..067713c02ac 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -999,6 +999,158 @@ } } }, + "cachedContents": { + "methods": { + "create": { + "description": "Creates cached content, this call will initialize the cached content in the data storage, and users need to pay for the cache data storage.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/cachedContents", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.cachedContents.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where the cached content will be created", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/cachedContents", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1CachedContent" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1CachedContent" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes cached content", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/cachedContents/{cachedContentsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.cachedContents.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name referring to the cached content", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets cached content configurations", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/cachedContents/{cachedContentsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.cachedContents.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name referring to the cached content", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1CachedContent" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists cached contents in a project", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/cachedContents", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.cachedContents.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListCachedContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCachedContents` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of cached contents.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/cachedContents", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListCachedContentsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates cached content configurations", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/cachedContents/{cachedContentsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.cachedContents.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. Identifier. The resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1CachedContent" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1CachedContent" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "customJobs": { "methods": { "cancel": { @@ -3660,7 +3812,8 @@ "$ref": "GoogleCloudAiplatformV1beta1CountTokensResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "create": { @@ -3774,7 +3927,8 @@ "$ref": "GoogleCloudAiplatformV1beta1DirectPredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "directRawPredict": { @@ -3802,7 +3956,8 @@ "$ref": "GoogleCloudAiplatformV1beta1DirectRawPredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "explain": { @@ -3830,7 +3985,8 @@ "$ref": "GoogleCloudAiplatformV1beta1ExplainResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "generateContent": { @@ -3858,7 +4014,8 @@ "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "get": { @@ -4051,7 +4208,8 @@ "$ref": "GoogleCloudAiplatformV1beta1PredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "rawPredict": { @@ -4079,7 +4237,8 @@ "$ref": "GoogleApiHttpBody" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "serverStreamingPredict": { @@ -4107,7 +4266,8 @@ "$ref": "GoogleCloudAiplatformV1beta1StreamingPredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "setIamPolicy": { @@ -4163,7 +4323,8 @@ "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "testIamPermissions": { @@ -4254,7 +4415,8 @@ "$ref": "GoogleApiHttpBody" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] } } @@ -5023,7 +5185,7 @@ "type": "string" }, "updateMask": { - "description": "Required. Mask specifying which fields to update. Supported fields: * `display_name` * `description` * `tool_use_examples`", + "description": "Required. Mask specifying which fields to update. Supported fields: * `display_name` * `description` * `runtime_config` * `tool_use_examples` * `manifest.description`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -13342,6 +13504,39 @@ }, "notebookExecutionJobs": { "methods": { + "create": { + "description": "Creates a NotebookExecutionJob.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookExecutionJobs", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.notebookExecutionJobs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "notebookExecutionJobId": { + "description": "Optional. User specified ID for the NotebookExecutionJob.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to create the NotebookExecutionJob. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/notebookExecutionJobs", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1NotebookExecutionJob" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "delete": { "description": "Deletes a NotebookExecutionJob.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookExecutionJobs/{notebookExecutionJobsId}", @@ -13694,6 +13889,40 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Updates a NotebookRuntimeTemplate.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.notebookRuntimeTemplates.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name of the NotebookRuntimeTemplate.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Input format: `{paths: \"${updated_filed}\"}` Updatable fields: * `encryption_spec.kms_key_name`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:setIamPolicy", @@ -14923,7 +15152,8 @@ "$ref": "GoogleCloudAiplatformV1beta1CountTokensResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "generateContent": { @@ -14951,7 +15181,8 @@ "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "getIamPolicy": { @@ -15010,7 +15241,8 @@ "$ref": "GoogleCloudAiplatformV1beta1PredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "rawPredict": { @@ -15038,7 +15270,8 @@ "$ref": "GoogleApiHttpBody" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "serverStreamingPredict": { @@ -15066,7 +15299,8 @@ "$ref": "GoogleCloudAiplatformV1beta1StreamingPredictResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] }, "streamGenerateContent": { @@ -15094,7 +15328,8 @@ "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] } } @@ -19661,125 +19896,9 @@ } } }, - "revision": "20240520", + "revision": "20240529", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { - "CloudAiLargeModelsVisionFilteredText": { - "description": "Details for filtered input text.", - "id": "CloudAiLargeModelsVisionFilteredText", - "properties": { - "category": { - "description": "Filtered category", - "enum": [ - "RAI_CATEGORY_UNSPECIFIED", - "OBSCENE", - "SEXUALLY_EXPLICIT", - "IDENTITY_ATTACK", - "VIOLENCE_ABUSE", - "CSAI", - "SPII", - "CELEBRITY", - "FACE_IMG", - "WATERMARK_IMG", - "MEMORIZATION_IMG", - "CSAI_IMG", - "PORN_IMG", - "VIOLENCE_IMG", - "CHILD_IMG", - "TOXIC", - "SENSITIVE_WORD", - "PERSON_IMG", - "ICA_IMG", - "AGILE_ICA_IMG", - "SEXUAL_IMG", - "IU_IMG", - "RACY_IMG", - "PEDO_IMG", - "DEATH_HARM_TRAGEDY", - "HEALTH", - "FIREARMS_WEAPONS", - "RELIGIOUS_BELIEF", - "ILLICIT_DRUGS", - "WAR_CONFLICT", - "POLITICS", - "HATE_SYMBOL_IMG", - "CHILD_TEXT", - "DANGEROUS_CONTENT", - "RECITATION_TEXT", - "CELEBRITY_IMG", - "WATERMARK_IMG_REMOVAL", - "RAID_IMG" - ], - "enumDescriptions": [ - "", - "", - "Porn", - "Hate", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "Agile ICA label currently for evaluation only.", - "", - "", - "", - "", - "SafetyAttributes returned but not filtered on", - "", - "", - "", - "", - "", - "", - "End of list", - "", - "Text category from SafetyCat v3", - "", - "", - "Error message when user attempts to remove watermark from editing image", - "" - ], - "type": "string" - }, - "confidence": { - "description": "Confidence score", - "enum": [ - "CONFIDENCE_UNSPECIFIED", - "CONFIDENCE_LOW", - "CONFIDENCE_MEDIUM", - "CONFIDENCE_HIGH" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "prompt": { - "description": "Input prompt", - "type": "string" - }, - "score": { - "description": "Score for category", - "format": "double", - "type": "number" - } - }, - "type": "object" - }, "CloudAiLargeModelsVisionGenerateVideoResponse": { "description": "Generate video response.", "id": "CloudAiLargeModelsVisionGenerateVideoResponse", @@ -19791,10 +19910,6 @@ }, "type": "array" }, - "raiErrorMessage": { - "description": "Returns rai error message for filtered videos.", - "type": "string" - }, "raiMediaFilteredCount": { "description": "Returns if any videos were filtered due to RAI policies.", "format": "int32", @@ -19806,10 +19921,6 @@ "type": "string" }, "type": "array" - }, - "raiTextFilteredReason": { - "$ref": "CloudAiLargeModelsVisionFilteredText", - "description": "Returns filtered text rai info." } }, "type": "object" @@ -19922,6 +20033,7 @@ "id": "CloudAiLargeModelsVisionRaiInfo", "properties": { "detectedLabels": { + "description": "The list of detected labels for different rai categories.", "items": { "$ref": "CloudAiLargeModelsVisionRaiInfoDetectedLabels" }, @@ -19946,27 +20058,75 @@ "type": "object" }, "CloudAiLargeModelsVisionRaiInfoDetectedLabels": { - "description": "Filters which return labels with confidence scores.", + "description": "Filters returning list of deteceted labels, scores, and bounding boxes.", "id": "CloudAiLargeModelsVisionRaiInfoDetectedLabels", "properties": { - "descriptions": { - "description": "Descriptions of the detected labels.", + "entities": { + "description": "The list of detected entities for the rai signal.", "items": { - "type": "string" + "$ref": "CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity" }, "type": "array" }, "raiCategory": { "description": "The RAI category for the deteceted labels.", "type": "string" + } + }, + "type": "object" + }, + "CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox": { + "description": "An integer bounding box of original pixels of the image for the detected labels.", + "id": "CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox", + "properties": { + "x1": { + "description": "The X coordinate of the top-left corner, in pixels.", + "format": "int32", + "type": "integer" }, - "scores": { - "description": "Confidence scores mapping to the labels.", - "items": { - "format": "float", - "type": "number" - }, - "type": "array" + "x2": { + "description": "The X coordinate of the bottom-right corner, in pixels.", + "format": "int32", + "type": "integer" + }, + "y1": { + "description": "The Y coordinate of the top-left corner, in pixels.", + "format": "int32", + "type": "integer" + }, + "y2": { + "description": "The Y coordinate of the bottom-right corner, in pixels.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity": { + "description": "The properties for a detected entity from the rai signal.", + "id": "CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity", + "properties": { + "boundingBox": { + "$ref": "CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox", + "description": "Bounding box of the label" + }, + "description": { + "description": "Description of the label", + "type": "string" + }, + "iouScore": { + "description": "The intersection ratio between the detection bounding box and the mask.", + "format": "float", + "type": "number" + }, + "mid": { + "description": "MID of the label", + "type": "string" + }, + "score": { + "description": "Confidence score of the label", + "format": "float", + "type": "number" } }, "type": "object" @@ -20004,6 +20164,75 @@ }, "type": "object" }, + "CloudAiPlatformCommonCreatePipelineJobApiErrorDetail": { + "description": "Create API error message for Vertex Pipeline. Next Id: 3.", + "id": "CloudAiPlatformCommonCreatePipelineJobApiErrorDetail", + "properties": { + "errorCause": { + "description": "The error root cause returned by CreatePipelineJob API.", + "enum": [ + "ERROR_CAUSE_UNSPECIFIED", + "INVALID_PIPELINE_SPEC_FORMAT", + "INVALID_PIPELINE_SPEC", + "INVALID_DEPLOYMENT_CONFIG", + "INVALID_DEPLOYMENT_SPEC", + "INVALID_INSTANCE_SCHEMA", + "INVALID_CUSTOM_JOB", + "INVALID_CONTAINER_SPEC", + "INVALID_NOTIFICATION_EMAIL_SETUP", + "INVALID_SERVICE_ACCOUNT_SETUP", + "INVALID_KMS_SETUP", + "INVALID_NETWORK_SETUP", + "INVALID_PIPELINE_TASK_SPEC", + "INVALID_PIPELINE_TASK_ARTIFACT", + "INVALID_IMPORTER_SPEC", + "INVALID_RESOLVER_SPEC", + "INVALID_RUNTIME_PARAMETERS", + "CLOUD_API_NOT_ENABLED", + "INVALID_GCS_INPUT_URI", + "INVALID_GCS_OUTPUT_URI", + "INVALID_COMPONENT_SPEC", + "INVALID_DAG_OUTPUTS_SPEC", + "INVALID_DAG_SPEC", + "INSUFFICIENT_QUOTA", + "INTERNAL" + ], + "enumDescriptions": [ + "Should never be used.", + "IR Pipeline Spec can not been parsed to yaml or json format.", + "A pipeline spec is invalid.", + "A deployment config is invalid.", + "A deployment spec is invalid.", + "An instance schema is invalid.", + "A custom job is invalid.", + "A container spec is invalid.", + "Notification email setup is invalid.", + "Service account setup is invalid.", + "KMS setup is invalid.", + "Network setup is invalid.", + "Task spec is invalid.", + "Task artifact is invalid.", + "Importer spec is invalid.", + "Resolver spec is invalid.", + "Runtime Parameters are invalid.", + "Cloud API not enabled.", + "Invalid GCS input uri", + "Invalid GCS output uri", + "Component spec of pipeline is invalid.", + "DagOutputsSpec is invalid.", + "DagSpec is invalid.", + "Project does not have enough quota.", + "An internal error with unknown cause." + ], + "type": "string" + }, + "publicMessage": { + "description": "Public messages contains actionable items for the error cause.", + "type": "string" + } + }, + "type": "object" + }, "GoogleApiHttpBody": { "description": "Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.", "id": "GoogleApiHttpBody", @@ -21369,6 +21598,65 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1CachedContent": { + "description": "A resource used in LLM queries for users to explicitly specify what to cache and how to cache.", + "id": "GoogleCloudAiplatformV1beta1CachedContent", + "properties": { + "contents": { + "description": "Optional. Input only. Immutable. The content to cache", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1Content" + }, + "type": "array" + }, + "createTime": { + "description": "Output only. Creatation time of the cache entry.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "expireTime": { + "description": "Timestamp of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.", + "format": "google-datetime", + "type": "string" + }, + "model": { + "description": "Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}", + "type": "string" + }, + "name": { + "description": "Immutable. Identifier. The resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}", + "type": "string" + }, + "systemInstruction": { + "$ref": "GoogleCloudAiplatformV1beta1Content", + "description": "Optional. Input only. Immutable. Developer set system instruction. Currently, text only" + }, + "toolConfig": { + "$ref": "GoogleCloudAiplatformV1beta1ToolConfig", + "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools" + }, + "tools": { + "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1Tool" + }, + "type": "array" + }, + "ttl": { + "description": "Input only. The TTL for this resource. The expiration time is computed: now + TTL.", + "format": "google-duration", + "type": "string" + }, + "updateTime": { + "description": "Output only. When the cache entry was last updated in UTC time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest": { "description": "Request message for JobService.CancelBatchPredictionJob.", "id": "GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest", @@ -22156,6 +22444,21 @@ }, "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" + }, "GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobRequest": { "description": "Request message for [NotebookService.CreateNotebookExecutionJob]", "id": "GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobRequest", @@ -22765,6 +23068,142 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1DatasetDistribution": { + "description": "Distribution computed over a tuning dataset.", + "id": "GoogleCloudAiplatformV1beta1DatasetDistribution", + "properties": { + "buckets": { + "description": "Output only. Defines the histogram bucket.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket" + }, + "readOnly": true, + "type": "array" + }, + "max": { + "description": "Output only. The maximum of the population values.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "mean": { + "description": "Output only. The arithmetic mean of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "median": { + "description": "Output only. The median of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "min": { + "description": "Output only. The minimum of the population values.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "p5": { + "description": "Output only. The 5th percentile of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "p95": { + "description": "Output only. The 95th percentile of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "sum": { + "description": "Output only. Sum of a given population of values.", + "format": "double", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket": { + "description": "Dataset bucket used to create a histogram for the distribution given a population of values.", + "id": "GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket", + "properties": { + "count": { + "description": "Output only. Number of values in the bucket.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "left": { + "description": "Output only. Left bound of the bucket.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "right": { + "description": "Output only. Right bound of the bucket.", + "format": "double", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1DatasetStats": { + "description": "Statistics computed over a tuning dataset.", + "id": "GoogleCloudAiplatformV1beta1DatasetStats", + "properties": { + "totalBillableCharacterCount": { + "description": "Output only. Number of billable characters in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "totalTuningCharacterCount": { + "description": "Output only. Number of tuning characters in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "tuningDatasetExampleCount": { + "description": "Output only. Number of examples in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "tuningStepCount": { + "description": "Output only. Number of tuning steps for this Tuning Job.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "userDatasetExamples": { + "description": "Output only. Sample user messages in the training dataset uri.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1Content" + }, + "readOnly": true, + "type": "array" + }, + "userInputTokenDistribution": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetDistribution", + "description": "Output only. Dataset distributions for the user input tokens.", + "readOnly": true + }, + "userMessagePerExampleDistribution": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetDistribution", + "description": "Output only. Dataset distributions for the messages per example.", + "readOnly": true + }, + "userOutputTokenDistribution": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetDistribution", + "description": "Output only. Dataset distributions for the user output tokens.", + "readOnly": true + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1DatasetVersion": { "description": "Describes the dataset version.", "id": "GoogleCloudAiplatformV1beta1DatasetVersion", @@ -23391,6 +23830,18 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1DistillationDataStats": { + "description": "Statistics computed for datasets used for distillation.", + "id": "GoogleCloudAiplatformV1beta1DistillationDataStats", + "properties": { + "trainingDatasetStats": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetStats", + "description": "Output only. Statistics computed for the training dataset.", + "readOnly": true + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1DistillationHyperParameters": { "description": "Hyperparameters for Distillation.", "id": "GoogleCloudAiplatformV1beta1DistillationHyperParameters", @@ -25100,7 +25551,7 @@ "description": "Required. Immutable. Type of auth supported by this extension." }, "description": { - "description": "Required. The natural language description shown to the LLM. It should describe the usage of the extension, and is essential for the LLM to perform reasoning.", + "description": "Required. The natural language description shown to the LLM. It should describe the usage of the extension, and is essential for the LLM to perform reasoning. e.g., if the extension is a data store, you can let the LLM know what data it contains.", "type": "string" }, "name": { @@ -25393,6 +25844,10 @@ "deprecated": true, "description": "Optional. Deprecated: This field is no longer needed anymore and embedding management is automatically enabled when specifying Optimized storage type." }, + "encryptionSpec": { + "$ref": "GoogleCloudAiplatformV1beta1EncryptionSpec", + "description": "Optional. Customer-managed encryption key spec for data storage. If set, online store will be secured by this key." + }, "etag": { "description": "Optional. Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", "type": "string" @@ -26772,6 +27227,10 @@ "description": "Request message for [PredictionService.GenerateContent].", "id": "GoogleCloudAiplatformV1beta1GenerateContentRequest", "properties": { + "cachedContent": { + "description": "Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}`", + "type": "string" + }, "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": { @@ -26920,6 +27379,10 @@ "description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.", "type": "string" }, + "responseSchema": { + "$ref": "GoogleCloudAiplatformV1beta1Schema", + "description": "Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response." + }, "stopSequences": { "description": "Optional. Stop sequences.", "items": { @@ -27119,6 +27582,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1HumanFeedbackConfig": { + "description": "Configures Reinforcement Learning to use human feedback during tuning.", + "id": "GoogleCloudAiplatformV1beta1HumanFeedbackConfig", + "properties": { + "preferenceDatasetUri": { + "description": "Required. Cloud Storage path to human preference data.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1HyperparameterTuningJob": { "description": "Represents a HyperparameterTuningJob. A HyperparameterTuningJob has a Study specification and multiple CustomJobs with identical CustomJob specification.", "id": "GoogleCloudAiplatformV1beta1HyperparameterTuningJob", @@ -28093,6 +28567,24 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ListCachedContentsResponse": { + "description": "Response with a list of CachedContents.", + "id": "GoogleCloudAiplatformV1beta1ListCachedContentsResponse", + "properties": { + "cachedContents": { + "description": "List of cached contents.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1CachedContent" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ListContextsResponse": { "description": "Response message for MetadataService.ListContexts.", "id": "GoogleCloudAiplatformV1beta1ListContextsResponse", @@ -30533,6 +31025,28 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ModelMonitoringGenAiStats": { + "description": "A collection of data points that describes the time-varying values of a gen ai metric.", + "id": "GoogleCloudAiplatformV1beta1ModelMonitoringGenAiStats", + "properties": { + "dataPoints": { + "description": "The data points of this time series. When listing time series, points are returned in reverse time order.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPoint" + }, + "type": "array" + }, + "objectiveType": { + "description": "One of the supported monitoring objectives: `gen-ai-general` `gen-ai-evaluation` `gen-ai-safety`", + "type": "string" + }, + "statsName": { + "description": "The stats name.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ModelMonitoringInput": { "description": "Model monitoring data input spec.", "id": "GoogleCloudAiplatformV1beta1ModelMonitoringInput", @@ -31177,6 +31691,10 @@ "description": "Represents the collection of statistics for a metric.", "id": "GoogleCloudAiplatformV1beta1ModelMonitoringStats", "properties": { + "genAiStats": { + "$ref": "GoogleCloudAiplatformV1beta1ModelMonitoringGenAiStats", + "description": "Generated gen ai statistics." + }, "tabularStats": { "$ref": "GoogleCloudAiplatformV1beta1ModelMonitoringTabularStats", "description": "Generated tabular statistics." @@ -31972,7 +32490,8 @@ "INVALID_ENCODING", "INVALID_SPARSE_DIMENSIONS", "INVALID_TOKEN_VALUE", - "INVALID_SPARSE_EMBEDDING" + "INVALID_SPARSE_EMBEDDING", + "INVALID_EMBEDDING" ], "enumDescriptions": [ "Default, shall not be used.", @@ -31991,7 +32510,8 @@ "File is not in UTF_8 format.", "Error parsing sparse dimensions field.", "Token restrict value is invalid.", - "Invalid sparse embedding." + "Invalid sparse embedding.", + "Invalid embedding." ], "type": "string" }, @@ -32281,40 +32801,6 @@ }, "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", @@ -32413,11 +32899,6 @@ "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": [ @@ -32559,10 +33040,6 @@ ], "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" @@ -35106,6 +35583,72 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1beta1ReinforcementLearningDataStats": { + "description": "Statistics computed for datasets used for reinforcement learning.", + "id": "GoogleCloudAiplatformV1beta1ReinforcementLearningDataStats", + "properties": { + "preferenceDatasetStats": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetStats", + "description": "Output only. Statistics computed for the preference dataset. This can be either a human preference dataset or a preference dataset generated from AI feedback.", + "readOnly": true + }, + "promptDatasetStats": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetStats", + "description": "Output only. Statistics computed for the prompt dataset used during reinforcement learning.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ReinforcementLearningHyperParameters": { + "description": "Hyperparameters for Reinforcement Learning.", + "id": "GoogleCloudAiplatformV1beta1ReinforcementLearningHyperParameters", + "properties": { + "epochCount": { + "description": "Optional. Number of training epoches for the tuning job.", + "format": "int64", + "type": "string" + }, + "humanFeedbackConfig": { + "$ref": "GoogleCloudAiplatformV1beta1HumanFeedbackConfig", + "description": "Configures Reinforcement Learning to use human feedback for preference data during tuning." + }, + "klCoefficient": { + "description": "Optional. KL divergence coefficient for Reinforcement Learning.", + "format": "double", + "type": "number" + }, + "learningRateMultiplier": { + "description": "Optional. Learning rate multiplier for Reinforcement Learning.", + "format": "double", + "type": "number" + }, + "rewardModelTrainingConfig": { + "$ref": "GoogleCloudAiplatformV1beta1RewardModelTrainingConfig", + "description": "Configures Reinforcement Learning to train a reward model to learn preference." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ReinforcementLearningSpec": { + "description": "Tuning Spec for Reinforcement Learning.", + "id": "GoogleCloudAiplatformV1beta1ReinforcementLearningSpec", + "properties": { + "hyperParameters": { + "$ref": "GoogleCloudAiplatformV1beta1ReinforcementLearningHyperParameters", + "description": "Optional. Additional hyper-parameters to use during tuning." + }, + "promptDatasetUri": { + "description": "Required. Cloud Storage path to the prompt dataset to use during Reinforcement Learning.", + "type": "string" + }, + "validationDatasetUri": { + "description": "Optional. Cloud Storage path to the validation dataset to use during Reinforcement Learning.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest": { "description": "Request message for MetadataService.DeleteContextChildrenRequest.", "id": "GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest", @@ -35459,6 +36002,23 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RewardModelTrainingConfig": { + "description": "Configures Reinforcement Learning to learn preference by training a reward model.", + "id": "GoogleCloudAiplatformV1beta1RewardModelTrainingConfig", + "properties": { + "epochCount": { + "description": "Optional. Number of training epoches for the reward model training job.", + "format": "int64", + "type": "string" + }, + "learningRateMultiplier": { + "description": "Optional. Learning rate multiplier for reward model training.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RougeInput": { "description": "Input for rouge metric.", "id": "GoogleCloudAiplatformV1beta1RougeInput", @@ -40076,6 +40636,10 @@ "description": "Filter for searching ModelMonitoringStats.", "id": "GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilter", "properties": { + "genAiStatsFilter": { + "$ref": "GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterGenAiStatsFilter", + "description": "GenAi statistics filter." + }, "tabularStatsFilter": { "$ref": "GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter", "description": "Tabular statistics filter." @@ -40083,6 +40647,33 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterGenAiStatsFilter": { + "description": "GenAi statistics filter.", + "id": "GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterGenAiStatsFilter", + "properties": { + "clusterId": { + "description": "From a particular cluster of monitoring results.", + "type": "string" + }, + "modelMonitoringJob": { + "description": "From a particular monitoring job.", + "type": "string" + }, + "modelMonitoringSchedule": { + "description": "From a particular monitoring schedule.", + "type": "string" + }, + "objectiveType": { + "description": "One of the supported monitoring objectives: `gen-ai-general` `gen-ai-evaluation` `gen-ai-safety`", + "type": "string" + }, + "statsName": { + "description": "If not specified, will return all the stats_names.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter": { "description": "Tabular statistics filter.", "id": "GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter", @@ -42732,6 +43323,14 @@ "description": "The tuning data statistic values for TuningJob.", "id": "GoogleCloudAiplatformV1beta1TuningDataStats", "properties": { + "distillationDataStats": { + "$ref": "GoogleCloudAiplatformV1beta1DistillationDataStats", + "description": "Statistics for distillation." + }, + "reinforcementLearningDataStats": { + "$ref": "GoogleCloudAiplatformV1beta1ReinforcementLearningDataStats", + "description": "Statistics for reinforcement learning." + }, "supervisedTuningDataStats": { "$ref": "GoogleCloudAiplatformV1beta1SupervisedTuningDataStats", "description": "The SFT Tuning data stats." @@ -42798,6 +43397,10 @@ "readOnly": true, "type": "string" }, + "reinforcementLearningSpec": { + "$ref": "GoogleCloudAiplatformV1beta1ReinforcementLearningSpec", + "description": "Tuning Spec for Reinforcement Learning." + }, "startTime": { "description": "Output only. Time when the TuningJob for the first time entered the `JOB_STATE_RUNNING` state.", "format": "google-datetime", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index d44c363dee3..a9cd9545762 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -196,6 +196,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.Agents = NewProjectsLocationsAgentsService(s) rs.Apps = NewProjectsLocationsAppsService(s) rs.BatchPredictionJobs = NewProjectsLocationsBatchPredictionJobsService(s) + rs.CachedContents = NewProjectsLocationsCachedContentsService(s) rs.CustomJobs = NewProjectsLocationsCustomJobsService(s) rs.DataLabelingJobs = NewProjectsLocationsDataLabelingJobsService(s) rs.Datasets = NewProjectsLocationsDatasetsService(s) @@ -246,6 +247,8 @@ type ProjectsLocationsService struct { BatchPredictionJobs *ProjectsLocationsBatchPredictionJobsService + CachedContents *ProjectsLocationsCachedContentsService + CustomJobs *ProjectsLocationsCustomJobsService DataLabelingJobs *ProjectsLocationsDataLabelingJobsService @@ -374,6 +377,15 @@ type ProjectsLocationsBatchPredictionJobsService struct { s *Service } +func NewProjectsLocationsCachedContentsService(s *Service) *ProjectsLocationsCachedContentsService { + rs := &ProjectsLocationsCachedContentsService{s: s} + return rs +} + +type ProjectsLocationsCachedContentsService struct { + s *Service +} + func NewProjectsLocationsCustomJobsService(s *Service) *ProjectsLocationsCustomJobsService { rs := &ProjectsLocationsCustomJobsService{s: s} rs.Operations = NewProjectsLocationsCustomJobsOperationsService(s) @@ -1613,108 +1625,15 @@ type PublishersModelsService struct { s *Service } -// CloudAiLargeModelsVisionFilteredText: Details for filtered input text. -type CloudAiLargeModelsVisionFilteredText struct { - // Category: Filtered category - // - // Possible values: - // "RAI_CATEGORY_UNSPECIFIED" - // "OBSCENE" - // "SEXUALLY_EXPLICIT" - Porn - // "IDENTITY_ATTACK" - Hate - // "VIOLENCE_ABUSE" - // "CSAI" - // "SPII" - // "CELEBRITY" - // "FACE_IMG" - // "WATERMARK_IMG" - // "MEMORIZATION_IMG" - // "CSAI_IMG" - // "PORN_IMG" - // "VIOLENCE_IMG" - // "CHILD_IMG" - // "TOXIC" - // "SENSITIVE_WORD" - // "PERSON_IMG" - // "ICA_IMG" - // "AGILE_ICA_IMG" - Agile ICA label currently for evaluation only. - // "SEXUAL_IMG" - // "IU_IMG" - // "RACY_IMG" - // "PEDO_IMG" - // "DEATH_HARM_TRAGEDY" - SafetyAttributes returned but not filtered on - // "HEALTH" - // "FIREARMS_WEAPONS" - // "RELIGIOUS_BELIEF" - // "ILLICIT_DRUGS" - // "WAR_CONFLICT" - // "POLITICS" - // "HATE_SYMBOL_IMG" - End of list - // "CHILD_TEXT" - // "DANGEROUS_CONTENT" - Text category from SafetyCat v3 - // "RECITATION_TEXT" - // "CELEBRITY_IMG" - // "WATERMARK_IMG_REMOVAL" - Error message when user attempts to remove - // watermark from editing image - // "RAID_IMG" - Category string `json:"category,omitempty"` - // Confidence: Confidence score - // - // Possible values: - // "CONFIDENCE_UNSPECIFIED" - // "CONFIDENCE_LOW" - // "CONFIDENCE_MEDIUM" - // "CONFIDENCE_HIGH" - Confidence string `json:"confidence,omitempty"` - // Prompt: Input prompt - Prompt string `json:"prompt,omitempty"` - // Score: Score for category - Score float64 `json:"score,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. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - 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. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *CloudAiLargeModelsVisionFilteredText) MarshalJSON() ([]byte, error) { - type NoMethod CloudAiLargeModelsVisionFilteredText - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -func (s *CloudAiLargeModelsVisionFilteredText) UnmarshalJSON(data []byte) error { - type NoMethod CloudAiLargeModelsVisionFilteredText - var s1 struct { - Score gensupport.JSONFloat64 `json:"score"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Score = float64(s1.Score) - return nil -} - // CloudAiLargeModelsVisionGenerateVideoResponse: Generate video response. type CloudAiLargeModelsVisionGenerateVideoResponse struct { // GeneratedSamples: The generates samples. GeneratedSamples []*CloudAiLargeModelsVisionMedia `json:"generatedSamples,omitempty"` - // RaiErrorMessage: Returns rai error message for filtered videos. - RaiErrorMessage string `json:"raiErrorMessage,omitempty"` // RaiMediaFilteredCount: Returns if any videos were filtered due to RAI // policies. RaiMediaFilteredCount int64 `json:"raiMediaFilteredCount,omitempty"` // RaiMediaFilteredReasons: Returns rai failure reasons if any. RaiMediaFilteredReasons []string `json:"raiMediaFilteredReasons,omitempty"` - // RaiTextFilteredReason: Returns filtered text rai info. - RaiTextFilteredReason *CloudAiLargeModelsVisionFilteredText `json:"raiTextFilteredReason,omitempty"` // ForceSendFields is a list of field names (e.g. "GeneratedSamples") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1880,6 +1799,7 @@ func (s *CloudAiLargeModelsVisionNamedBoundingBox) UnmarshalJSON(data []byte) er } type CloudAiLargeModelsVisionRaiInfo struct { + // DetectedLabels: The list of detected labels for different rai categories. DetectedLabels []*CloudAiLargeModelsVisionRaiInfoDetectedLabels `json:"detectedLabels,omitempty"` // RaiCategories: List of rai categories' information to return RaiCategories []string `json:"raiCategories,omitempty"` @@ -1921,22 +1841,20 @@ func (s *CloudAiLargeModelsVisionRaiInfo) UnmarshalJSON(data []byte) error { return nil } -// CloudAiLargeModelsVisionRaiInfoDetectedLabels: Filters which return labels -// with confidence scores. +// CloudAiLargeModelsVisionRaiInfoDetectedLabels: Filters returning list of +// deteceted labels, scores, and bounding boxes. type CloudAiLargeModelsVisionRaiInfoDetectedLabels struct { - // Descriptions: Descriptions of the detected labels. - Descriptions []string `json:"descriptions,omitempty"` + // Entities: The list of detected entities for the rai signal. + Entities []*CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity `json:"entities,omitempty"` // RaiCategory: The RAI category for the deteceted labels. RaiCategory string `json:"raiCategory,omitempty"` - // Scores: Confidence scores mapping to the labels. - Scores []float64 `json:"scores,omitempty"` - // ForceSendFields is a list of field names (e.g. "Descriptions") to + // ForceSendFields is a list of field names (e.g. "Entities") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Descriptions") to include in API + // NullFields is a list of field names (e.g. "Entities") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1948,20 +1866,80 @@ func (s *CloudAiLargeModelsVisionRaiInfoDetectedLabels) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -func (s *CloudAiLargeModelsVisionRaiInfoDetectedLabels) UnmarshalJSON(data []byte) error { - type NoMethod CloudAiLargeModelsVisionRaiInfoDetectedLabels +// CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox: An integer +// bounding box of original pixels of the image for the detected labels. +type CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox struct { + // X1: The X coordinate of the top-left corner, in pixels. + X1 int64 `json:"x1,omitempty"` + // X2: The X coordinate of the bottom-right corner, in pixels. + X2 int64 `json:"x2,omitempty"` + // Y1: The Y coordinate of the top-left corner, in pixels. + Y1 int64 `json:"y1,omitempty"` + // Y2: The Y coordinate of the bottom-right corner, in pixels. + Y2 int64 `json:"y2,omitempty"` + // ForceSendFields is a list of field names (e.g. "X1") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "X1") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity: The properties for a +// detected entity from the rai signal. +type CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity struct { + // BoundingBox: Bounding box of the label + BoundingBox *CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox `json:"boundingBox,omitempty"` + // Description: Description of the label + Description string `json:"description,omitempty"` + // IouScore: The intersection ratio between the detection bounding box and the + // mask. + IouScore float64 `json:"iouScore,omitempty"` + // Mid: MID of the label + Mid string `json:"mid,omitempty"` + // Score: Confidence score of the label + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "BoundingBox") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BoundingBox") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity var s1 struct { - Scores []gensupport.JSONFloat64 `json:"scores"` + IouScore gensupport.JSONFloat64 `json:"iouScore"` + Score gensupport.JSONFloat64 `json:"score"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } - s.Scores = make([]float64, len(s1.Scores)) - for i := range s1.Scores { - s.Scores[i] = float64(s1.Scores[i]) - } + s.IouScore = float64(s1.IouScore) + s.Score = float64(s1.Score) return nil } @@ -2016,6 +1994,60 @@ func (s *CloudAiLargeModelsVisionVideo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// CloudAiPlatformCommonCreatePipelineJobApiErrorDetail: Create API error +// message for Vertex Pipeline. Next Id: 3. +type CloudAiPlatformCommonCreatePipelineJobApiErrorDetail struct { + // ErrorCause: The error root cause returned by CreatePipelineJob API. + // + // Possible values: + // "ERROR_CAUSE_UNSPECIFIED" - Should never be used. + // "INVALID_PIPELINE_SPEC_FORMAT" - IR Pipeline Spec can not been parsed to + // yaml or json format. + // "INVALID_PIPELINE_SPEC" - A pipeline spec is invalid. + // "INVALID_DEPLOYMENT_CONFIG" - A deployment config is invalid. + // "INVALID_DEPLOYMENT_SPEC" - A deployment spec is invalid. + // "INVALID_INSTANCE_SCHEMA" - An instance schema is invalid. + // "INVALID_CUSTOM_JOB" - A custom job is invalid. + // "INVALID_CONTAINER_SPEC" - A container spec is invalid. + // "INVALID_NOTIFICATION_EMAIL_SETUP" - Notification email setup is invalid. + // "INVALID_SERVICE_ACCOUNT_SETUP" - Service account setup is invalid. + // "INVALID_KMS_SETUP" - KMS setup is invalid. + // "INVALID_NETWORK_SETUP" - Network setup is invalid. + // "INVALID_PIPELINE_TASK_SPEC" - Task spec is invalid. + // "INVALID_PIPELINE_TASK_ARTIFACT" - Task artifact is invalid. + // "INVALID_IMPORTER_SPEC" - Importer spec is invalid. + // "INVALID_RESOLVER_SPEC" - Resolver spec is invalid. + // "INVALID_RUNTIME_PARAMETERS" - Runtime Parameters are invalid. + // "CLOUD_API_NOT_ENABLED" - Cloud API not enabled. + // "INVALID_GCS_INPUT_URI" - Invalid GCS input uri + // "INVALID_GCS_OUTPUT_URI" - Invalid GCS output uri + // "INVALID_COMPONENT_SPEC" - Component spec of pipeline is invalid. + // "INVALID_DAG_OUTPUTS_SPEC" - DagOutputsSpec is invalid. + // "INVALID_DAG_SPEC" - DagSpec is invalid. + // "INSUFFICIENT_QUOTA" - Project does not have enough quota. + // "INTERNAL" - An internal error with unknown cause. + ErrorCause string `json:"errorCause,omitempty"` + // PublicMessage: Public messages contains actionable items for the error + // cause. + PublicMessage string `json:"publicMessage,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorCause") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ErrorCause") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *CloudAiPlatformCommonCreatePipelineJobApiErrorDetail) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiPlatformCommonCreatePipelineJobApiErrorDetail + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It should // only be used for payload formats that can't be represented as JSON, such as // raw binary or an HTML page. This message can be used both in streaming and @@ -4159,6 +4191,58 @@ func (s *GoogleCloudAiplatformV1beta1CacheConfig) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1CachedContent: A resource used in LLM queries +// for users to explicitly specify what to cache and how to cache. +type GoogleCloudAiplatformV1beta1CachedContent struct { + // Contents: Optional. Input only. Immutable. The content to cache + Contents []*GoogleCloudAiplatformV1beta1Content `json:"contents,omitempty"` + // CreateTime: Output only. Creatation time of the cache entry. + CreateTime string `json:"createTime,omitempty"` + // ExpireTime: Timestamp of when this resource is considered expired. This is + // *always* provided on output, regardless of what was sent on input. + ExpireTime string `json:"expireTime,omitempty"` + // Model: Immutable. The name of the publisher model to use for cached content. + // Format: + // projects/{project}/locations/{location}/publishers/{publisher}/models/{model} + Model string `json:"model,omitempty"` + // Name: Immutable. Identifier. The resource name of the cached content Format: + // projects/{project}/locations/{location}/cachedContents/{cached_content} + Name string `json:"name,omitempty"` + // SystemInstruction: Optional. Input only. Immutable. Developer set system + // instruction. Currently, text only + SystemInstruction *GoogleCloudAiplatformV1beta1Content `json:"systemInstruction,omitempty"` + // ToolConfig: Optional. Input only. Immutable. Tool config. This config is + // shared for all tools + ToolConfig *GoogleCloudAiplatformV1beta1ToolConfig `json:"toolConfig,omitempty"` + // Tools: Optional. Input only. Immutable. A list of `Tools` the model may use + // to generate the next response + Tools []*GoogleCloudAiplatformV1beta1Tool `json:"tools,omitempty"` + // Ttl: Input only. The TTL for this resource. The expiration time is computed: + // now + TTL. + Ttl string `json:"ttl,omitempty"` + // UpdateTime: Output only. When the cache entry was last updated in UTC time. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Contents") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CachedContent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CachedContent + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest: Request message // for JobService.CancelBatchPredictionJob. type GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest struct { @@ -5339,6 +5423,32 @@ func (s *GoogleCloudAiplatformV1beta1CreateModelMonitoringJobRequest) MarshalJSO return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadata: +// 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadata + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobRequest: Request // message for [NotebookService.CreateNotebookExecutionJob] type GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobRequest struct { @@ -6122,6 +6232,157 @@ func (s *GoogleCloudAiplatformV1beta1Dataset) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1DatasetDistribution: Distribution computed over +// a tuning dataset. +type GoogleCloudAiplatformV1beta1DatasetDistribution struct { + // Buckets: Output only. Defines the histogram bucket. + Buckets []*GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket `json:"buckets,omitempty"` + // Max: Output only. The maximum of the population values. + Max float64 `json:"max,omitempty"` + // Mean: Output only. The arithmetic mean of the values in the population. + Mean float64 `json:"mean,omitempty"` + // Median: Output only. The median of the values in the population. + Median float64 `json:"median,omitempty"` + // Min: Output only. The minimum of the population values. + Min float64 `json:"min,omitempty"` + // P5: Output only. The 5th percentile of the values in the population. + P5 float64 `json:"p5,omitempty"` + // P95: Output only. The 95th percentile of the values in the population. + P95 float64 `json:"p95,omitempty"` + // Sum: Output only. Sum of a given population of values. + Sum float64 `json:"sum,omitempty"` + // ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Buckets") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1DatasetDistribution) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DatasetDistribution + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1DatasetDistribution) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1DatasetDistribution + var s1 struct { + Max gensupport.JSONFloat64 `json:"max"` + Mean gensupport.JSONFloat64 `json:"mean"` + Median gensupport.JSONFloat64 `json:"median"` + Min gensupport.JSONFloat64 `json:"min"` + P5 gensupport.JSONFloat64 `json:"p5"` + P95 gensupport.JSONFloat64 `json:"p95"` + Sum gensupport.JSONFloat64 `json:"sum"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Max = float64(s1.Max) + s.Mean = float64(s1.Mean) + s.Median = float64(s1.Median) + s.Min = float64(s1.Min) + s.P5 = float64(s1.P5) + s.P95 = float64(s1.P95) + s.Sum = float64(s1.Sum) + return nil +} + +// GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket: Dataset +// bucket used to create a histogram for the distribution given a population of +// values. +type GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket struct { + // Count: Output only. Number of values in the bucket. + Count int64 `json:"count,omitempty,string"` + // Left: Output only. Left bound of the bucket. + Left float64 `json:"left,omitempty"` + // Right: Output only. Right bound of the bucket. + Right float64 `json:"right,omitempty"` + // ForceSendFields is a list of field names (e.g. "Count") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Count") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket + var s1 struct { + Left gensupport.JSONFloat64 `json:"left"` + Right gensupport.JSONFloat64 `json:"right"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Left = float64(s1.Left) + s.Right = float64(s1.Right) + return nil +} + +// GoogleCloudAiplatformV1beta1DatasetStats: Statistics computed over a tuning +// dataset. +type GoogleCloudAiplatformV1beta1DatasetStats struct { + // TotalBillableCharacterCount: Output only. Number of billable characters in + // the tuning dataset. + TotalBillableCharacterCount int64 `json:"totalBillableCharacterCount,omitempty,string"` + // TotalTuningCharacterCount: Output only. Number of tuning characters in the + // tuning dataset. + TotalTuningCharacterCount int64 `json:"totalTuningCharacterCount,omitempty,string"` + // TuningDatasetExampleCount: Output only. Number of examples in the tuning + // dataset. + TuningDatasetExampleCount int64 `json:"tuningDatasetExampleCount,omitempty,string"` + // TuningStepCount: Output only. Number of tuning steps for this Tuning Job. + TuningStepCount int64 `json:"tuningStepCount,omitempty,string"` + // UserDatasetExamples: Output only. Sample user messages in the training + // dataset uri. + UserDatasetExamples []*GoogleCloudAiplatformV1beta1Content `json:"userDatasetExamples,omitempty"` + // UserInputTokenDistribution: Output only. Dataset distributions for the user + // input tokens. + UserInputTokenDistribution *GoogleCloudAiplatformV1beta1DatasetDistribution `json:"userInputTokenDistribution,omitempty"` + // UserMessagePerExampleDistribution: Output only. Dataset distributions for + // the messages per example. + UserMessagePerExampleDistribution *GoogleCloudAiplatformV1beta1DatasetDistribution `json:"userMessagePerExampleDistribution,omitempty"` + // UserOutputTokenDistribution: Output only. Dataset distributions for the user + // output tokens. + UserOutputTokenDistribution *GoogleCloudAiplatformV1beta1DatasetDistribution `json:"userOutputTokenDistribution,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "TotalBillableCharacterCount") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TotalBillableCharacterCount") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1DatasetStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DatasetStats + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1DatasetVersion: Describes the dataset version. type GoogleCloudAiplatformV1beta1DatasetVersion struct { // BigQueryDatasetName: Output only. Name of the associated BigQuery dataset. @@ -7155,6 +7416,30 @@ func (s *GoogleCloudAiplatformV1beta1DiskSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1DistillationDataStats: Statistics computed for +// datasets used for distillation. +type GoogleCloudAiplatformV1beta1DistillationDataStats struct { + // TrainingDatasetStats: Output only. Statistics computed for the training + // dataset. + TrainingDatasetStats *GoogleCloudAiplatformV1beta1DatasetStats `json:"trainingDatasetStats,omitempty"` + // ForceSendFields is a list of field names (e.g. "TrainingDatasetStats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TrainingDatasetStats") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1DistillationDataStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DistillationDataStats + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1DistillationHyperParameters: Hyperparameters for // Distillation. type GoogleCloudAiplatformV1beta1DistillationHyperParameters struct { @@ -9499,7 +9784,8 @@ type GoogleCloudAiplatformV1beta1ExtensionManifest struct { AuthConfig *GoogleCloudAiplatformV1beta1AuthConfig `json:"authConfig,omitempty"` // Description: Required. The natural language description shown to the LLM. It // should describe the usage of the extension, and is essential for the LLM to - // perform reasoning. + // perform reasoning. e.g., if the extension is a data store, you can let the + // LLM know what data it contains. Description string `json:"description,omitempty"` // Name: Required. Extension name shown to the LLM. The name can be up to 128 // characters long. @@ -9901,6 +10187,9 @@ type GoogleCloudAiplatformV1beta1FeatureOnlineStore struct { // anymore and embedding management is automatically enabled when specifying // Optimized storage type. EmbeddingManagement *GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement `json:"embeddingManagement,omitempty"` + // EncryptionSpec: Optional. Customer-managed encryption key spec for data + // storage. If set, online store will be secured by this key. + EncryptionSpec *GoogleCloudAiplatformV1beta1EncryptionSpec `json:"encryptionSpec,omitempty"` // Etag: Optional. Used to perform consistent read-modify-write updates. If not // set, a blind "overwrite" update happens. Etag string `json:"etag,omitempty"` @@ -12093,6 +12382,12 @@ func (s *GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse) MarshalJSON() // GoogleCloudAiplatformV1beta1GenerateContentRequest: Request message for // [PredictionService.GenerateContent]. type GoogleCloudAiplatformV1beta1GenerateContentRequest struct { + // CachedContent: Optional. The name of the cached content used as context to + // serve the prediction. Note: only used in explicit caching, where users can + // have control over caching (e.g. what content to cache) and enjoy guaranteed + // cost savings. Format: + // `projects/{project}/locations/{location}/cachedContents/{cachedContent}` + CachedContent string `json:"cachedContent,omitempty"` // 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 @@ -12115,13 +12410,13 @@ type GoogleCloudAiplatformV1beta1GenerateContentRequest struct { // with external systems to perform an action, or set of actions, outside of // knowledge and scope of the model. Tools []*GoogleCloudAiplatformV1beta1Tool `json:"tools,omitempty"` - // ForceSendFields is a list of field names (e.g. "Contents") to + // ForceSendFields is a list of field names (e.g. "CachedContent") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Contents") to include in API + // NullFields is a list of field names (e.g. "CachedContent") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -12243,6 +12538,13 @@ type GoogleCloudAiplatformV1beta1GenerationConfig struct { // prompted to output the appropriate response type, otherwise the behavior is // undefined. This is a preview feature. ResponseMimeType string `json:"responseMimeType,omitempty"` + // ResponseSchema: Optional. The `Schema` object allows the definition of input + // and output data types. These types can be objects, but also primitives and + // arrays. Represents a select subset of an OpenAPI 3.0 schema object + // (https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible + // response_mime_type must also be set. Compatible mimetypes: + // `application/json`: Schema for JSON response. + ResponseSchema *GoogleCloudAiplatformV1beta1Schema `json:"responseSchema,omitempty"` // StopSequences: Optional. Stop sequences. StopSequences []string `json:"stopSequences,omitempty"` // Temperature: Optional. Controls the randomness of predictions. @@ -12548,6 +12850,29 @@ func (s *GoogleCloudAiplatformV1beta1GroundingMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1HumanFeedbackConfig: Configures Reinforcement +// Learning to use human feedback during tuning. +type GoogleCloudAiplatformV1beta1HumanFeedbackConfig struct { + // PreferenceDatasetUri: Required. Cloud Storage path to human preference data. + PreferenceDatasetUri string `json:"preferenceDatasetUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "PreferenceDatasetUri") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PreferenceDatasetUri") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1HumanFeedbackConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1HumanFeedbackConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1HyperparameterTuningJob: Represents a // HyperparameterTuningJob. A HyperparameterTuningJob has a Study specification // and multiple CustomJobs with identical CustomJob specification. @@ -13811,6 +14136,35 @@ func (s *GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse) MarshalJSO return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ListCachedContentsResponse: Response with a list +// of CachedContents. +type GoogleCloudAiplatformV1beta1ListCachedContentsResponse struct { + // CachedContents: List of cached contents. + CachedContents []*GoogleCloudAiplatformV1beta1CachedContent `json:"cachedContents,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CachedContents") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CachedContents") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ListCachedContentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ListCachedContentsResponse + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ListContextsResponse: Response message for // MetadataService.ListContexts. type GoogleCloudAiplatformV1beta1ListContextsResponse struct { @@ -17531,6 +17885,35 @@ func (s *GoogleCloudAiplatformV1beta1ModelMonitoringConfig) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ModelMonitoringGenAiStats: A collection of data +// points that describes the time-varying values of a gen ai metric. +type GoogleCloudAiplatformV1beta1ModelMonitoringGenAiStats struct { + // DataPoints: The data points of this time series. When listing time series, + // points are returned in reverse time order. + DataPoints []*GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPoint `json:"dataPoints,omitempty"` + // ObjectiveType: One of the supported monitoring objectives: `gen-ai-general` + // `gen-ai-evaluation` `gen-ai-safety` + ObjectiveType string `json:"objectiveType,omitempty"` + // StatsName: The stats name. + StatsName string `json:"statsName,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataPoints") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataPoints") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ModelMonitoringGenAiStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ModelMonitoringGenAiStats + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ModelMonitoringInput: Model monitoring data // input spec. type GoogleCloudAiplatformV1beta1ModelMonitoringInput struct { @@ -18425,15 +18808,17 @@ func (s *GoogleCloudAiplatformV1beta1ModelMonitoringSpec) MarshalJSON() ([]byte, // GoogleCloudAiplatformV1beta1ModelMonitoringStats: Represents the collection // of statistics for a metric. type GoogleCloudAiplatformV1beta1ModelMonitoringStats struct { + // GenAiStats: Generated gen ai statistics. + GenAiStats *GoogleCloudAiplatformV1beta1ModelMonitoringGenAiStats `json:"genAiStats,omitempty"` // TabularStats: Generated tabular statistics. TabularStats *GoogleCloudAiplatformV1beta1ModelMonitoringTabularStats `json:"tabularStats,omitempty"` - // ForceSendFields is a list of field names (e.g. "TabularStats") to + // ForceSendFields is a list of field names (e.g. "GenAiStats") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TabularStats") to include in API + // NullFields is a list of field names (e.g. "GenAiStats") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -19498,6 +19883,7 @@ type GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadataRecordErr // "INVALID_SPARSE_DIMENSIONS" - Error parsing sparse dimensions field. // "INVALID_TOKEN_VALUE" - Token restrict value is invalid. // "INVALID_SPARSE_EMBEDDING" - Invalid sparse embedding. + // "INVALID_EMBEDDING" - Invalid embedding. ErrorType string `json:"errorType,omitempty"` // RawRecord: The original content of this record. RawRecord string `json:"rawRecord,omitempty"` @@ -19925,47 +20311,6 @@ func (s *GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1NotebookReservationAffinity: Notebook -// Reservation Affinity for consuming Zonal reservation. -type GoogleCloudAiplatformV1beta1NotebookReservationAffinity struct { - // ConsumeReservationType: Required. Specifies the type of reservation from - // which this instance can consume resources: RESERVATION_ANY (default), - // RESERVATION_SPECIFIC, or RESERVATION_NONE. See Consuming reserved instances - // for examples. - // - // Possible values: - // "RESERVATION_AFFINITY_TYPE_UNSPECIFIED" - Default type. - // "RESERVATION_NONE" - Do not consume from any allocated capacity. - // "RESERVATION_ANY" - Consume any reservation available. - // "RESERVATION_SPECIFIC" - Must consume from a specific reservation. Must - // specify key value fields for specifying the reservations. - ConsumeReservationType string `json:"consumeReservationType,omitempty"` - // Key: Optional. Corresponds to the label key of a reservation resource. To - // target a RESERVATION_SPECIFIC by name, use - // compute.googleapis.com/reservation-name as the key and specify the name of - // your reservation as its value. - Key string `json:"key,omitempty"` - // Values: Optional. Corresponds to the label values of a reservation resource. - // This must be the full path name of Reservation. - Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConsumeReservationType") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConsumeReservationType") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1beta1NotebookReservationAffinity) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1NotebookReservationAffinity - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1beta1NotebookRuntime: A runtime is a virtual machine // allocated to a particular user for a particular Notebook file on temporary // basis with lifetime limited to 24 hours. @@ -20035,9 +20380,6 @@ type GoogleCloudAiplatformV1beta1NotebookRuntime struct { // ProxyUri: Output only. The proxy endpoint used to access the // NotebookRuntime. ProxyUri string `json:"proxyUri,omitempty"` - // ReservationAffinity: Output only. Reservation Affinity of the notebook - // runtime. - ReservationAffinity *GoogleCloudAiplatformV1beta1NotebookReservationAffinity `json:"reservationAffinity,omitempty"` // RuntimeState: Output only. The runtime (instance) state of the // NotebookRuntime. // @@ -20145,9 +20487,6 @@ type GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate struct { // user. // "ONE_CLICK" - runtime or template with system defined configurations. NotebookRuntimeType string `json:"notebookRuntimeType,omitempty"` - // ReservationAffinity: Optional. Reservation Affinity of the notebook runtime - // template. - ReservationAffinity *GoogleCloudAiplatformV1beta1NotebookReservationAffinity `json:"reservationAffinity,omitempty"` // ServiceAccount: 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 @@ -23661,6 +24000,114 @@ func (s *GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata) type GoogleCloudAiplatformV1beta1RebootPersistentResourceRequest struct { } +// GoogleCloudAiplatformV1beta1ReinforcementLearningDataStats: Statistics +// computed for datasets used for reinforcement learning. +type GoogleCloudAiplatformV1beta1ReinforcementLearningDataStats struct { + // PreferenceDatasetStats: Output only. Statistics computed for the preference + // dataset. This can be either a human preference dataset or a preference + // dataset generated from AI feedback. + PreferenceDatasetStats *GoogleCloudAiplatformV1beta1DatasetStats `json:"preferenceDatasetStats,omitempty"` + // PromptDatasetStats: Output only. Statistics computed for the prompt dataset + // used during reinforcement learning. + PromptDatasetStats *GoogleCloudAiplatformV1beta1DatasetStats `json:"promptDatasetStats,omitempty"` + // ForceSendFields is a list of field names (e.g. "PreferenceDatasetStats") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PreferenceDatasetStats") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ReinforcementLearningDataStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ReinforcementLearningDataStats + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ReinforcementLearningHyperParameters: +// Hyperparameters for Reinforcement Learning. +type GoogleCloudAiplatformV1beta1ReinforcementLearningHyperParameters struct { + // EpochCount: Optional. Number of training epoches for the tuning job. + EpochCount int64 `json:"epochCount,omitempty,string"` + // HumanFeedbackConfig: Configures Reinforcement Learning to use human feedback + // for preference data during tuning. + HumanFeedbackConfig *GoogleCloudAiplatformV1beta1HumanFeedbackConfig `json:"humanFeedbackConfig,omitempty"` + // KlCoefficient: Optional. KL divergence coefficient for Reinforcement + // Learning. + KlCoefficient float64 `json:"klCoefficient,omitempty"` + // LearningRateMultiplier: Optional. Learning rate multiplier for Reinforcement + // Learning. + LearningRateMultiplier float64 `json:"learningRateMultiplier,omitempty"` + // RewardModelTrainingConfig: Configures Reinforcement Learning to train a + // reward model to learn preference. + RewardModelTrainingConfig *GoogleCloudAiplatformV1beta1RewardModelTrainingConfig `json:"rewardModelTrainingConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "EpochCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EpochCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ReinforcementLearningHyperParameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ReinforcementLearningHyperParameters + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1ReinforcementLearningHyperParameters) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1ReinforcementLearningHyperParameters + var s1 struct { + KlCoefficient gensupport.JSONFloat64 `json:"klCoefficient"` + LearningRateMultiplier gensupport.JSONFloat64 `json:"learningRateMultiplier"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.KlCoefficient = float64(s1.KlCoefficient) + s.LearningRateMultiplier = float64(s1.LearningRateMultiplier) + return nil +} + +// GoogleCloudAiplatformV1beta1ReinforcementLearningSpec: Tuning Spec for +// Reinforcement Learning. +type GoogleCloudAiplatformV1beta1ReinforcementLearningSpec struct { + // HyperParameters: Optional. Additional hyper-parameters to use during tuning. + HyperParameters *GoogleCloudAiplatformV1beta1ReinforcementLearningHyperParameters `json:"hyperParameters,omitempty"` + // PromptDatasetUri: Required. Cloud Storage path to the prompt dataset to use + // during Reinforcement Learning. + PromptDatasetUri string `json:"promptDatasetUri,omitempty"` + // ValidationDatasetUri: Optional. Cloud Storage path to the validation dataset + // to use during Reinforcement Learning. + ValidationDatasetUri string `json:"validationDatasetUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "HyperParameters") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "HyperParameters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ReinforcementLearningSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ReinforcementLearningSpec + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest: Request message // for MetadataService.DeleteContextChildrenRequest. type GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest struct { @@ -24204,6 +24651,47 @@ func (s *GoogleCloudAiplatformV1beta1RetrieveContextsResponse) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RewardModelTrainingConfig: Configures +// Reinforcement Learning to learn preference by training a reward model. +type GoogleCloudAiplatformV1beta1RewardModelTrainingConfig struct { + // EpochCount: Optional. Number of training epoches for the reward model + // training job. + EpochCount int64 `json:"epochCount,omitempty,string"` + // LearningRateMultiplier: Optional. Learning rate multiplier for reward model + // training. + LearningRateMultiplier float64 `json:"learningRateMultiplier,omitempty"` + // ForceSendFields is a list of field names (e.g. "EpochCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EpochCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1RewardModelTrainingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RewardModelTrainingConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1RewardModelTrainingConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1RewardModelTrainingConfig + var s1 struct { + LearningRateMultiplier gensupport.JSONFloat64 `json:"learningRateMultiplier"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LearningRateMultiplier = float64(s1.LearningRateMultiplier) + return nil +} + // GoogleCloudAiplatformV1beta1RougeInput: Input for rouge metric. type GoogleCloudAiplatformV1beta1RougeInput struct { // Instances: Required. Repeated rouge instances. @@ -31590,17 +32078,19 @@ func (s *GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse) Marsha // GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilter: Filter for // searching ModelMonitoringStats. type GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilter struct { + // GenAiStatsFilter: GenAi statistics filter. + GenAiStatsFilter *GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterGenAiStatsFilter `json:"genAiStatsFilter,omitempty"` // TabularStatsFilter: Tabular statistics filter. TabularStatsFilter *GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter `json:"tabularStatsFilter,omitempty"` - // ForceSendFields is a list of field names (e.g. "TabularStatsFilter") to + // ForceSendFields is a list of field names (e.g. "GenAiStatsFilter") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TabularStatsFilter") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "GenAiStatsFilter") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -31610,6 +32100,39 @@ func (s *GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilter) MarshalJS return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterGenAiStatsFilter: +// +// GenAi statistics filter. +type GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterGenAiStatsFilter struct { + // ClusterId: From a particular cluster of monitoring results. + ClusterId string `json:"clusterId,omitempty"` + // ModelMonitoringJob: From a particular monitoring job. + ModelMonitoringJob string `json:"modelMonitoringJob,omitempty"` + // ModelMonitoringSchedule: From a particular monitoring schedule. + ModelMonitoringSchedule string `json:"modelMonitoringSchedule,omitempty"` + // ObjectiveType: One of the supported monitoring objectives: `gen-ai-general` + // `gen-ai-evaluation` `gen-ai-safety` + ObjectiveType string `json:"objectiveType,omitempty"` + // StatsName: If not specified, will return all the stats_names. + StatsName string `json:"statsName,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClusterId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClusterId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterGenAiStatsFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterGenAiStatsFilter + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilte // r: Tabular statistics filter. type GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter struct { @@ -35412,15 +35935,19 @@ func (s *GoogleCloudAiplatformV1beta1TunedModel) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1beta1TuningDataStats: The tuning data statistic // values for TuningJob. type GoogleCloudAiplatformV1beta1TuningDataStats struct { + // DistillationDataStats: Statistics for distillation. + DistillationDataStats *GoogleCloudAiplatformV1beta1DistillationDataStats `json:"distillationDataStats,omitempty"` + // ReinforcementLearningDataStats: Statistics for reinforcement learning. + ReinforcementLearningDataStats *GoogleCloudAiplatformV1beta1ReinforcementLearningDataStats `json:"reinforcementLearningDataStats,omitempty"` // SupervisedTuningDataStats: The SFT Tuning data stats. SupervisedTuningDataStats *GoogleCloudAiplatformV1beta1SupervisedTuningDataStats `json:"supervisedTuningDataStats,omitempty"` - // ForceSendFields is a list of field names (e.g. "SupervisedTuningDataStats") - // to unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "DistillationDataStats") to + // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SupervisedTuningDataStats") to + // NullFields is a list of field names (e.g. "DistillationDataStats") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -35470,6 +35997,8 @@ type GoogleCloudAiplatformV1beta1TuningJob struct { // with the TuningJob. Format: // `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`. PipelineJob string `json:"pipelineJob,omitempty"` + // ReinforcementLearningSpec: Tuning Spec for Reinforcement Learning. + ReinforcementLearningSpec *GoogleCloudAiplatformV1beta1ReinforcementLearningSpec `json:"reinforcementLearningSpec,omitempty"` // StartTime: Output only. Time when the TuningJob for the first time entered // the `JOB_STATE_RUNNING` state. StartTime string `json:"startTime,omitempty"` @@ -39747,7 +40276,485 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) Do(opts ...googleapi.Ca return ret, nil } -type ProjectsLocationsBatchPredictionJobsGetCall struct { +type ProjectsLocationsBatchPredictionJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a BatchPredictionJob +// +// - name: The name of the BatchPredictionJob resource. Format: +// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_predict +// ion_job}`. +func (r *ProjectsLocationsBatchPredictionJobsService) Get(name string) *ProjectsLocationsBatchPredictionJobsGetCall { + c := &ProjectsLocationsBatchPredictionJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchPredictionJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsBatchPredictionJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchPredictionJobsGetCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchPredictionJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.batchPredictionJobs.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1BatchPredictionJob.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchPredictionJob, 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 := &GoogleCloudAiplatformV1beta1BatchPredictionJob{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsBatchPredictionJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists BatchPredictionJobs in a Location. +// +// - parent: The resource name of the Location to list the BatchPredictionJobs +// from. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsBatchPredictionJobsService) List(parent string) *ProjectsLocationsBatchPredictionJobsListCall { + c := &ProjectsLocationsBatchPredictionJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +// Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` +// wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` +// supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, +// `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * +// `labels` supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of using the +// filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*" * +// `state!="JOB_STATE_FAILED" OR display_name="my_job" * `NOT +// display_name="my_job" * `create_time>"2021-05-18T00:00:00Z" * +// `labels.keyA=valueA` * `labels.keyB:*` +func (c *ProjectsLocationsBatchPredictionJobsListCall) Filter(filter string) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsBatchPredictionJobsListCall) PageSize(pageSize int64) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. Typically obtained via +// ListBatchPredictionJobsResponse.next_page_token of the previous +// JobService.ListBatchPredictionJobs call. +func (c *ProjectsLocationsBatchPredictionJobsListCall) PageToken(pageToken string) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying which +// fields to read. +func (c *ProjectsLocationsBatchPredictionJobsListCall) ReadMask(readMask string) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsBatchPredictionJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsBatchPredictionJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBatchPredictionJobsListCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsBatchPredictionJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/batchPredictionJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.batchPredictionJobs.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse.ServerResponse.H +// eader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse, 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 := &GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsBatchPredictionJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsCachedContentsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1cachedcontent *GoogleCloudAiplatformV1beta1CachedContent + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates cached content, this call will initialize the cached content +// in the data storage, and users need to pay for the cache data storage. +// +// - parent: The parent resource where the cached content will be created. +func (r *ProjectsLocationsCachedContentsService) Create(parent string, googlecloudaiplatformv1beta1cachedcontent *GoogleCloudAiplatformV1beta1CachedContent) *ProjectsLocationsCachedContentsCreateCall { + c := &ProjectsLocationsCachedContentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1cachedcontent = googlecloudaiplatformv1beta1cachedcontent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCachedContentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCachedContentsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCachedContentsCreateCall) Context(ctx context.Context) *ProjectsLocationsCachedContentsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCachedContentsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCachedContentsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cachedcontent) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/cachedContents") + 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.cachedContents.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1CachedContent.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCachedContentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CachedContent, 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 := &GoogleCloudAiplatformV1beta1CachedContent{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsCachedContentsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes cached content +// +// - name: The resource name referring to the cached content. +func (r *ProjectsLocationsCachedContentsService) Delete(name string) *ProjectsLocationsCachedContentsDeleteCall { + c := &ProjectsLocationsCachedContentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCachedContentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCachedContentsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCachedContentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCachedContentsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCachedContentsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCachedContentsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.cachedContents.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCachedContentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsCachedContentsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -39756,13 +40763,11 @@ type ProjectsLocationsBatchPredictionJobsGetCall struct { header_ http.Header } -// Get: Gets a BatchPredictionJob +// Get: Gets cached content configurations // -// - name: The name of the BatchPredictionJob resource. Format: -// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_predict -// ion_job}`. -func (r *ProjectsLocationsBatchPredictionJobsService) Get(name string) *ProjectsLocationsBatchPredictionJobsGetCall { - c := &ProjectsLocationsBatchPredictionJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name referring to the cached content. +func (r *ProjectsLocationsCachedContentsService) Get(name string) *ProjectsLocationsCachedContentsGetCall { + c := &ProjectsLocationsCachedContentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -39770,7 +40775,7 @@ func (r *ProjectsLocationsBatchPredictionJobsService) Get(name string) *Projects // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsGetCall { +func (c *ProjectsLocationsCachedContentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCachedContentsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39778,27 +40783,27 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) Fields(s ...googleapi.Fiel // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsGetCall { +func (c *ProjectsLocationsCachedContentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCachedContentsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsGetCall { +func (c *ProjectsLocationsCachedContentsGetCall) Context(ctx context.Context) *ProjectsLocationsCachedContentsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsCachedContentsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCachedContentsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -39819,13 +40824,13 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.get" call. +// Do executes the "aiplatform.projects.locations.cachedContents.get" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1BatchPredictionJob.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudAiplatformV1beta1CachedContent.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchPredictionJob, error) { +func (c *ProjectsLocationsCachedContentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CachedContent, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39844,7 +40849,7 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1BatchPredictionJob{ + ret := &GoogleCloudAiplatformV1beta1CachedContent{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -39857,7 +40862,7 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallO return ret, nil } -type ProjectsLocationsBatchPredictionJobsListCall struct { +type ProjectsLocationsCachedContentsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -39866,59 +40871,37 @@ type ProjectsLocationsBatchPredictionJobsListCall struct { header_ http.Header } -// List: Lists BatchPredictionJobs in a Location. +// List: Lists cached contents in a project // -// - parent: The resource name of the Location to list the BatchPredictionJobs -// from. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsBatchPredictionJobsService) List(parent string) *ProjectsLocationsBatchPredictionJobsListCall { - c := &ProjectsLocationsBatchPredictionJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent, which owns this collection of cached contents. +func (r *ProjectsLocationsCachedContentsService) List(parent string) *ProjectsLocationsCachedContentsListCall { + c := &ProjectsLocationsCachedContentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list filter. -// Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` -// wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` -// supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`, -// `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. * -// `labels` supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* - key existence Some examples of using the -// filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*" * -// `state!="JOB_STATE_FAILED" OR display_name="my_job" * `NOT -// display_name="my_job" * `create_time>"2021-05-18T00:00:00Z" * -// `labels.keyA=valueA` * `labels.keyB:*` -func (c *ProjectsLocationsBatchPredictionJobsListCall) Filter(filter string) *ProjectsLocationsBatchPredictionJobsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsBatchPredictionJobsListCall) PageSize(pageSize int64) *ProjectsLocationsBatchPredictionJobsListCall { +// PageSize sets the optional parameter "pageSize": The maximum number of +// cached contents to return. The service may return fewer than this value. If +// unspecified, some default (under maximum) number of items will be returned. +// The maximum value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsCachedContentsListCall) PageSize(pageSize int64) *ProjectsLocationsCachedContentsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list page -// token. Typically obtained via -// ListBatchPredictionJobsResponse.next_page_token of the previous -// JobService.ListBatchPredictionJobs call. -func (c *ProjectsLocationsBatchPredictionJobsListCall) PageToken(pageToken string) *ProjectsLocationsBatchPredictionJobsListCall { +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListCachedContents` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListCachedContents` must match the call that provided the page token. +func (c *ProjectsLocationsCachedContentsListCall) PageToken(pageToken string) *ProjectsLocationsCachedContentsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying which -// fields to read. -func (c *ProjectsLocationsBatchPredictionJobsListCall) ReadMask(readMask string) *ProjectsLocationsBatchPredictionJobsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsListCall { +func (c *ProjectsLocationsCachedContentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCachedContentsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39926,27 +40909,27 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Fields(s ...googleapi.Fie // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsBatchPredictionJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsListCall { +func (c *ProjectsLocationsCachedContentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCachedContentsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsListCall { +func (c *ProjectsLocationsCachedContentsListCall) Context(ctx context.Context) *ProjectsLocationsCachedContentsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Header() http.Header { +func (c *ProjectsLocationsCachedContentsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCachedContentsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -39954,7 +40937,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) doRequest(alt string) (*h var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/batchPredictionJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/cachedContents") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39967,13 +40950,15 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.list" call. +// Do executes the "aiplatform.projects.locations.cachedContents.list" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse.ServerResponse.H -// eader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse, error) { +// *GoogleCloudAiplatformV1beta1ListCachedContentsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCachedContentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListCachedContentsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39992,7 +40977,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListCachedContentsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -40008,7 +40993,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.Call // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse) error) error { +func (c *ProjectsLocationsCachedContentsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListCachedContentsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -40026,6 +41011,117 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Pages(ctx context.Context } } +type ProjectsLocationsCachedContentsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1cachedcontent *GoogleCloudAiplatformV1beta1CachedContent + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates cached content configurations +// +// - name: Immutable. Identifier. The resource name of the cached content +// Format: +// projects/{project}/locations/{location}/cachedContents/{cached_content}. +func (r *ProjectsLocationsCachedContentsService) Patch(name string, googlecloudaiplatformv1beta1cachedcontent *GoogleCloudAiplatformV1beta1CachedContent) *ProjectsLocationsCachedContentsPatchCall { + c := &ProjectsLocationsCachedContentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1cachedcontent = googlecloudaiplatformv1beta1cachedcontent + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The list of +// fields to update. +func (c *ProjectsLocationsCachedContentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCachedContentsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsCachedContentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCachedContentsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsCachedContentsPatchCall) Context(ctx context.Context) *ProjectsLocationsCachedContentsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsCachedContentsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCachedContentsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cachedcontent) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.cachedContents.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1CachedContent.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsCachedContentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CachedContent, 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 := &GoogleCloudAiplatformV1beta1CachedContent{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsCustomJobsCancelCall struct { s *Service name string @@ -54650,7 +55746,8 @@ func (r *ProjectsLocationsExtensionsService) Patch(name string, googlecloudaipla // UpdateMask sets the optional parameter "updateMask": Required. Mask // specifying which fields to update. Supported fields: * `display_name` * -// `description` * `tool_use_examples` +// `description` * `runtime_config` * `tool_use_examples` * +// `manifest.description` func (c *ProjectsLocationsExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsExtensionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -85533,6 +86630,116 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) Pages(ctx context.Cont } } +type ProjectsLocationsNotebookExecutionJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1notebookexecutionjob *GoogleCloudAiplatformV1beta1NotebookExecutionJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a NotebookExecutionJob. +// +// - parent: The resource name of the Location to create the +// NotebookExecutionJob. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNotebookExecutionJobsService) Create(parent string, googlecloudaiplatformv1beta1notebookexecutionjob *GoogleCloudAiplatformV1beta1NotebookExecutionJob) *ProjectsLocationsNotebookExecutionJobsCreateCall { + c := &ProjectsLocationsNotebookExecutionJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1notebookexecutionjob = googlecloudaiplatformv1beta1notebookexecutionjob + return c +} + +// NotebookExecutionJobId sets the optional parameter "notebookExecutionJobId": +// User specified ID for the NotebookExecutionJob. +func (c *ProjectsLocationsNotebookExecutionJobsCreateCall) NotebookExecutionJobId(notebookExecutionJobId string) *ProjectsLocationsNotebookExecutionJobsCreateCall { + c.urlParams_.Set("notebookExecutionJobId", notebookExecutionJobId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsNotebookExecutionJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookExecutionJobsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsNotebookExecutionJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsNotebookExecutionJobsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsNotebookExecutionJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookExecutionJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1notebookexecutionjob) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/notebookExecutionJobs") + 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.notebookExecutionJobs.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookExecutionJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsNotebookExecutionJobsDeleteCall struct { s *Service name string @@ -86771,6 +87978,117 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Pages(ctx context.Co } } +type ProjectsLocationsNotebookRuntimeTemplatesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1notebookruntimetemplate *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a NotebookRuntimeTemplate. +// +// - name: The resource name of the NotebookRuntimeTemplate. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Patch(name string, googlecloudaiplatformv1beta1notebookruntimetemplate *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate) *ProjectsLocationsNotebookRuntimeTemplatesPatchCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1notebookruntimetemplate = googlecloudaiplatformv1beta1notebookruntimetemplate + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The update +// mask applies to the resource. For the `FieldMask` definition, see +// google.protobuf.FieldMask. Input format: `{paths: "${updated_filed}"}` +// Updatable fields: * `encryption_spec.kms_key_name` +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsNotebookRuntimeTemplatesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1notebookruntimetemplate) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate.ServerResponse.Header +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimeTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate, 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 := &GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall struct { s *Service resource string diff --git a/backupdr/v1/backupdr-api.json b/backupdr/v1/backupdr-api.json index 2d4af03cd63..ea21ddd74b0 100644 --- a/backupdr/v1/backupdr-api.json +++ b/backupdr/v1/backupdr-api.json @@ -535,7 +535,7 @@ } } }, - "revision": "20240508", + "revision": "20240522", "rootUrl": "https://backupdr.googleapis.com/", "schemas": { "AuditConfig": { @@ -793,6 +793,16 @@ "readOnly": true, "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "state": { "description": "Output only. The ManagementServer state.", "enum": [ diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go index 73109198ced..2358bf3b2d4 100644 --- a/backupdr/v1/backupdr-gen.go +++ b/backupdr/v1/backupdr-gen.go @@ -598,6 +598,10 @@ type ManagementServer struct { // (see openid specification // https://openid.net/specs/openid-connect-core-1_0.html#IDToken). Oauth2ClientId string `json:"oauth2ClientId,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // State: Output only. The ManagementServer state. // // Possible values: diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index ee227a6d862..64d2cc04ca0 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -2427,7 +2427,7 @@ } } }, - "revision": "20240504", + "revision": "20240529", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -3103,6 +3103,11 @@ "description": "Connectors indicates a specific connector type, e.x. Salesforce, SAP etc.", "id": "Connector", "properties": { + "category": { + "description": "Output only. Category of the connector.", + "readOnly": true, + "type": "string" + }, "createTime": { "description": "Output only. Created time.", "format": "google-datetime", @@ -3166,6 +3171,14 @@ "readOnly": true, "type": "string" }, + "tags": { + "description": "Output only. Tags of the connector.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "updateTime": { "description": "Output only. Updated time.", "format": "google-datetime", diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 0b1e179b38d..4aa83961790 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -1035,6 +1035,8 @@ func (s *ConnectionStatus) MarshalJSON() ([]byte, error) { // Connector: Connectors indicates a specific connector type, e.x. Salesforce, // SAP etc. type Connector struct { + // Category: Output only. Category of the connector. + Category string `json:"category,omitempty"` // CreateTime: Output only. Created time. CreateTime string `json:"createTime,omitempty"` // Description: Output only. Description of the resource. @@ -1066,6 +1068,8 @@ type Connector struct { // projects/{project}/locations/{location}/providers/{provider}/connectors/{conn // ector} Only global location is supported for Connector resource. Name string `json:"name,omitempty"` + // Tags: Output only. Tags of the connector. + Tags []string `json:"tags,omitempty"` // UpdateTime: Output only. Updated time. UpdateTime string `json:"updateTime,omitempty"` // WebAssetsLocation: Output only. Cloud storage location of icons etc consumed @@ -1074,13 +1078,13 @@ type Connector struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "Category") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "Category") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/connectors/v2/connectors-api.json b/connectors/v2/connectors-api.json index de7cf07f5c4..d345a311bfb 100644 --- a/connectors/v2/connectors-api.json +++ b/connectors/v2/connectors-api.json @@ -650,6 +650,62 @@ ] } } + }, + "entitieswithacls": { + "methods": { + "list": { + "description": "Lists entity rows with ACLs of a particular entity type contained in the request. Note: 1. Currently, only max of one 'sort_by' column is supported. 2. If no 'sort_by' column is provided, the primary key of the table is used. If zero or more than one primary key is available, we default to the unpaginated list entities logic which only returns the first page. 3. The values of the 'sort_by' columns must uniquely identify an entity row, otherwise undefined behaviors may be observed during pagination. 4. Since transactions are not supported, any updates, inserts or deletes during pagination can lead to stale data being returned or other unexpected behaviors.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}/entityTypes/{entityTypesId}/entitieswithacls", + "httpMethod": "GET", + "id": "connectors.projects.locations.connections.entityTypes.entitieswithacls.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "conditions": { + "description": "Conditions to be used when listing entities. From a proto standpoint, There are no restrictions on what can be passed using this field. The connector documentation should have information about what format of filters/conditions are supported.", + "location": "query", + "type": "string" + }, + "gsutilUri": { + "description": "Format: gs://object_path", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Number of entity rows to return. Defaults page size = 25. Max page size = 200.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Page token value if available from a previous request.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the Entity Type. Format: projects/{project}/locations/{location}/connections/{connection}/entityTypes/{type}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/connections/[^/]+/entityTypes/[^/]+$", + "required": true, + "type": "string" + }, + "sortBy": { + "description": "List of 'sort_by' columns to use when returning the results.", + "location": "query", + "repeated": true, + "type": "string" + } + }, + "path": "v2/{+parent}/entitieswithacls", + "response": { + "$ref": "ListEntitiesWithACLsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -660,7 +716,7 @@ } } }, - "revision": "20240415", + "revision": "20240529", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AccessCredentials": { @@ -683,6 +739,20 @@ }, "type": "object" }, + "AclInfo": { + "description": "AclInfo has a list of readers for a resource. This is defined as per the below docs https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#aclinfo", + "id": "AclInfo", + "properties": { + "readers": { + "description": "A list of readers for a resource.", + "items": { + "$ref": "Readers" + }, + "type": "array" + } + }, + "type": "object" + }, "Action": { "description": "Action message contains metadata information about a single action present in the external system.", "id": "Action", @@ -887,6 +957,25 @@ }, "type": "object" }, + "EntityWithACL": { + "description": "EntityWithACL refers to a single row of an entity type with ACL information.", + "id": "EntityWithACL", + "properties": { + "acl_info": { + "$ref": "AclInfo", + "description": "ACL information of the entity." + }, + "id": { + "readOnly": true, + "type": "string" + }, + "jsonData": { + "description": "Entity data in JSON format.", + "type": "string" + } + }, + "type": "object" + }, "ExchangeAuthCodeRequest": { "description": "ExchangeAuthCodeRequest currently includes no fields.", "id": "ExchangeAuthCodeRequest", @@ -1703,6 +1792,24 @@ }, "type": "object" }, + "ListEntitiesWithACLsResponse": { + "description": "Response message for EntityService.ListEntitiesWithACLs", + "id": "ListEntitiesWithACLsResponse", + "properties": { + "entitiesWithAcl": { + "description": "List containing entity rows.", + "items": { + "$ref": "EntityWithACL" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Next page token if more records are available.", + "type": "string" + } + }, + "type": "object" + }, "ListEntityTypesResponse": { "description": "Response message for EntityService.ListEntityTypes", "id": "ListEntityTypesResponse", @@ -1893,6 +2000,21 @@ }, "type": "object" }, + "Principal": { + "description": "Principal is a user or group that has access to a resource.", + "id": "Principal", + "properties": { + "group_id": { + "description": "The group that has access to a resource.", + "type": "string" + }, + "user_id": { + "description": "The user that has access to a resource.", + "type": "string" + } + }, + "type": "object" + }, "ProvisionedResource": { "description": "Describes provisioned dataplane resources.", "id": "ProvisionedResource", @@ -2090,6 +2212,20 @@ }, "type": "object" }, + "Readers": { + "description": "Readers is a list of principals that have read access to a resource.", + "id": "Readers", + "properties": { + "principals": { + "description": "A list of principals that have read access to a resource.", + "items": { + "$ref": "Principal" + }, + "type": "array" + } + }, + "type": "object" + }, "Reference": { "id": "Reference", "properties": { diff --git a/connectors/v2/connectors-gen.go b/connectors/v2/connectors-gen.go index e8db63cc214..063556e3d86 100644 --- a/connectors/v2/connectors-gen.go +++ b/connectors/v2/connectors-gen.go @@ -205,6 +205,7 @@ type ProjectsLocationsConnectionsActionsService struct { func NewProjectsLocationsConnectionsEntityTypesService(s *Service) *ProjectsLocationsConnectionsEntityTypesService { rs := &ProjectsLocationsConnectionsEntityTypesService{s: s} rs.Entities = NewProjectsLocationsConnectionsEntityTypesEntitiesService(s) + rs.Entitieswithacls = NewProjectsLocationsConnectionsEntityTypesEntitieswithaclsService(s) return rs } @@ -212,6 +213,8 @@ type ProjectsLocationsConnectionsEntityTypesService struct { s *Service Entities *ProjectsLocationsConnectionsEntityTypesEntitiesService + + Entitieswithacls *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsService } func NewProjectsLocationsConnectionsEntityTypesEntitiesService(s *Service) *ProjectsLocationsConnectionsEntityTypesEntitiesService { @@ -223,6 +226,15 @@ type ProjectsLocationsConnectionsEntityTypesEntitiesService struct { s *Service } +func NewProjectsLocationsConnectionsEntityTypesEntitieswithaclsService(s *Service) *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsService { + rs := &ProjectsLocationsConnectionsEntityTypesEntitieswithaclsService{s: s} + return rs +} + +type ProjectsLocationsConnectionsEntityTypesEntitieswithaclsService struct { + s *Service +} + // AccessCredentials: AccessCredentials includes the OAuth access token, and // the other fields returned along with it. type AccessCredentials struct { @@ -250,6 +262,30 @@ func (s *AccessCredentials) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// AclInfo: AclInfo has a list of readers for a resource. This is defined as +// per the below docs +// https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.dataStores.branches.documents#aclinfo +type AclInfo struct { + // Readers: A list of readers for a resource. + Readers []*Readers `json:"readers,omitempty"` + // ForceSendFields is a list of field names (e.g. "Readers") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Readers") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *AclInfo) MarshalJSON() ([]byte, error) { + type NoMethod AclInfo + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // Action: Action message contains metadata information about a single action // present in the external system. type Action struct { @@ -529,6 +565,32 @@ func (s *EntityType) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// EntityWithACL: EntityWithACL refers to a single row of an entity type with +// ACL information. +type EntityWithACL struct { + // AclInfo: ACL information of the entity. + AclInfo *AclInfo `json:"acl_info,omitempty"` + Id string `json:"id,omitempty"` + // JsonData: Entity data in JSON format. + JsonData string `json:"jsonData,omitempty"` + // ForceSendFields is a list of field names (e.g. "AclInfo") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AclInfo") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *EntityWithACL) MarshalJSON() ([]byte, error) { + type NoMethod EntityWithACL + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // ExchangeAuthCodeRequest: ExchangeAuthCodeRequest currently includes no // fields. type ExchangeAuthCodeRequest struct { @@ -1114,6 +1176,34 @@ func (s *ListEntitiesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// ListEntitiesWithACLsResponse: Response message for +// EntityService.ListEntitiesWithACLs +type ListEntitiesWithACLsResponse struct { + // EntitiesWithAcl: List containing entity rows. + EntitiesWithAcl []*EntityWithACL `json:"entitiesWithAcl,omitempty"` + // NextPageToken: Next page token if more records are available. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "EntitiesWithAcl") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EntitiesWithAcl") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *ListEntitiesWithACLsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListEntitiesWithACLsResponse + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // ListEntityTypesResponse: Response message for EntityService.ListEntityTypes type ListEntityTypesResponse struct { // NextPageToken: Next page token if more entity types available. @@ -1379,6 +1469,30 @@ func (s *PerSliSloEligibility) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// Principal: Principal is a user or group that has access to a resource. +type Principal struct { + // GroupId: The group that has access to a resource. + GroupId string `json:"group_id,omitempty"` + // UserId: The user that has access to a resource. + UserId string `json:"user_id,omitempty"` + // ForceSendFields is a list of field names (e.g. "GroupId") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "GroupId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Principal) MarshalJSON() ([]byte, error) { + type NoMethod Principal + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // ProvisionedResource: Describes provisioned dataplane resources. type ProvisionedResource struct { // ResourceType: Type of the resource. This can be either a GCP resource or a @@ -1510,6 +1624,29 @@ func (s *QueryParameter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// Readers: Readers is a list of principals that have read access to a +// resource. +type Readers struct { + // Principals: A list of principals that have read access to a resource. + Principals []*Principal `json:"principals,omitempty"` + // ForceSendFields is a list of field names (e.g. "Principals") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Principals") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Readers) MarshalJSON() ([]byte, error) { + type NoMethod Readers + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + type Reference struct { // Name: Name of the reference field. Name string `json:"name,omitempty"` @@ -3866,3 +4003,179 @@ func (c *ProjectsLocationsConnectionsEntityTypesEntitiesUpdateEntitiesWithCondit } return ret, nil } + +type ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists entity rows with ACLs of a particular entity type contained in +// the request. Note: 1. Currently, only max of one 'sort_by' column is +// supported. 2. If no 'sort_by' column is provided, the primary key of the +// table is used. If zero or more than one primary key is available, we default +// to the unpaginated list entities logic which only returns the first page. 3. +// The values of the 'sort_by' columns must uniquely identify an entity row, +// otherwise undefined behaviors may be observed during pagination. 4. Since +// transactions are not supported, any updates, inserts or deletes during +// pagination can lead to stale data being returned or other unexpected +// behaviors. +// +// - parent: Resource name of the Entity Type. Format: +// projects/{project}/locations/{location}/connections/{connection}/entityType +// s/{type}. +func (r *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsService) List(parent string) *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall { + c := &ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Conditions sets the optional parameter "conditions": Conditions to be used +// when listing entities. From a proto standpoint, There are no restrictions on +// what can be passed using this field. The connector documentation should have +// information about what format of filters/conditions are supported. +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) Conditions(conditions string) *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall { + c.urlParams_.Set("conditions", conditions) + return c +} + +// GsutilUri sets the optional parameter "gsutilUri": Format: gs://object_path +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) GsutilUri(gsutilUri string) *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall { + c.urlParams_.Set("gsutilUri", gsutilUri) + return c +} + +// PageSize sets the optional parameter "pageSize": Number of entity rows to +// return. Defaults page size = 25. Max page size = 200. +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token value if +// available from a previous request. +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// SortBy sets the optional parameter "sortBy": List of 'sort_by' columns to +// use when returning the results. +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) SortBy(sortBy ...string) *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall { + c.urlParams_.SetMulti("sortBy", append([]string{}, sortBy...)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entitieswithacls") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "connectors.projects.locations.connections.entityTypes.entitieswithacls.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListEntitiesWithACLsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) Do(opts ...googleapi.CallOption) (*ListEntitiesWithACLsResponse, 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 := &ListEntitiesWithACLsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsConnectionsEntityTypesEntitieswithaclsListCall) Pages(ctx context.Context, f func(*ListEntitiesWithACLsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 88711b69819..802ffe2a6b0 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -2125,7 +2125,7 @@ } } }, - "revision": "20240430", + "revision": "20240522", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -2537,7 +2537,8 @@ "POSTGRES_12", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDescriptions": [ "Unspecified version.", @@ -2561,7 +2562,8 @@ "PostgreSQL 12.", "PostgreSQL 13.", "PostgreSQL 14.", - "PostgreSQL 15." + "PostgreSQL 15.", + "PostgreSQL 16." ], "type": "string" }, @@ -5729,6 +5731,10 @@ "$ref": "SqlServerDatabaseBackup" }, "type": "array" + }, + "useDiffBackup": { + "description": "Optional. Enable differential backups.", + "type": "boolean" } }, "type": "object" diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 115d891415b..54dd2987c89 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -795,6 +795,7 @@ type CloudSqlSettings struct { // "POSTGRES_13" - PostgreSQL 13. // "POSTGRES_14" - PostgreSQL 14. // "POSTGRES_15" - PostgreSQL 15. + // "POSTGRES_16" - PostgreSQL 16. DatabaseVersion string `json:"databaseVersion,omitempty"` // Edition: Optional. The edition of the given Cloud SQL instance. // @@ -4355,6 +4356,8 @@ type SqlServerHomogeneousMigrationJobConfig struct { BackupFilePattern string `json:"backupFilePattern,omitempty"` // DatabaseBackups: Required. Backup details per database in Cloud Storage. DatabaseBackups []*SqlServerDatabaseBackup `json:"databaseBackups,omitempty"` + // UseDiffBackup: Optional. Enable differential backups. + UseDiffBackup bool `json:"useDiffBackup,omitempty"` // ForceSendFields is a list of field names (e.g. "BackupFilePattern") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 93367c5e781..3d69de89ba2 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -5271,7 +5271,7 @@ } } }, - "revision": "20240419", + "revision": "20240523", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -6888,7 +6888,7 @@ }, "sqlAssertion": { "$ref": "GoogleCloudDataplexV1DataQualityRuleSqlAssertion", - "description": "Aggregate rule which evaluates the number of rows returned for the provided statement." + "description": "Aggregate rule which evaluates the number of rows returned for the provided statement. If any rows are returned, this rule fails." }, "statisticRangeExpectation": { "$ref": "GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation", @@ -6955,7 +6955,7 @@ "id": "GoogleCloudDataplexV1DataQualityRuleResult", "properties": { "assertionRowCount": { - "description": "Output only. The number of rows returned by the sql statement in the SqlAssertion rule.This field is only valid for SqlAssertion rules.", + "description": "Output only. The number of rows returned by the SQL statement in a SQL assertion rule.This field is only valid for SQL assertion rules.", "format": "int64", "readOnly": true, "type": "string" @@ -7021,7 +7021,7 @@ "type": "object" }, "GoogleCloudDataplexV1DataQualityRuleSqlAssertion": { - "description": "Queries for rows returned by the provided SQL statement. If any rows are are returned, this rule fails.The SQL statement needs to use BigQuery standard SQL syntax, and must not contain any semicolons.${data()} can be used to reference the rows being evaluated, i.e. the table after all additional filters (row filters, incremental data filters, sampling) are applied.Example: SELECT * FROM ${data()} WHERE price \u003c 0", + "description": "A SQL statement that is evaluated to return rows that match an invalid state. If any rows are are returned, this rule fails.The SQL statement must use BigQuery standard SQL syntax, and must not contain any semicolons.You can use the data reference parameter ${data()} to reference the source table with all of its precondition filters applied. Examples of precondition filters include row filters, incremental data filters, and sampling. For more information, see Data reference parameter (https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).Example: SELECT * FROM ${data()} WHERE price \u003c 0", "id": "GoogleCloudDataplexV1DataQualityRuleSqlAssertion", "properties": { "sqlStatement": { @@ -7092,7 +7092,7 @@ "id": "GoogleCloudDataplexV1DataQualityScanRuleResult", "properties": { "assertionRowCount": { - "description": "The number of rows returned by the sql statement in the SqlAssertion rule. This field is only valid for SqlAssertion rules.", + "description": "The number of rows returned by the SQL statement in a SQL assertion rule. This field is only valid for SQL assertion rules.", "format": "int64", "type": "string" }, @@ -7175,15 +7175,15 @@ ], "enumDescriptions": [ "An unspecified rule type.", - "Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#nonnullexpectation.", - "Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rangeexpectation.", - "Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#regexexpectation.", - "Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rowconditionexpectation.", - "Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#setexpectation.", - "Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#statisticrangeexpectation.", - "Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#tableconditionexpectation.", - "Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#uniquenessexpectation.", - "Please see https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#sqlAssertion." + "See DataQualityRule.NonNullExpectation.", + "See DataQualityRule.RangeExpectation.", + "See DataQualityRule.RegexExpectation.", + "See DataQualityRule.RowConditionExpectation.", + "See DataQualityRule.SetExpectation.", + "See DataQualityRule.StatisticRangeExpectation.", + "See DataQualityRule.TableConditionExpectation.", + "See DataQualityRule.UniquenessExpectation.", + "See DataQualityRule.SqlAssertion." ], "type": "string" }, @@ -9860,26 +9860,29 @@ "id": "GoogleCloudDataplexV1SearchEntriesResult", "properties": { "dataplexEntry": { - "$ref": "GoogleCloudDataplexV1Entry", - "description": "Entry format of the result." + "$ref": "GoogleCloudDataplexV1Entry" }, "linkedResource": { + "deprecated": true, "description": "Linked resource name.", "type": "string" }, "snippets": { "$ref": "GoogleCloudDataplexV1SearchEntriesResultSnippets", + "deprecated": true, "description": "Snippets." } }, "type": "object" }, "GoogleCloudDataplexV1SearchEntriesResultSnippets": { + "deprecated": true, "description": "Snippets for the entry, contains HTML-style highlighting for matched tokens, will be used in UI.", "id": "GoogleCloudDataplexV1SearchEntriesResultSnippets", "properties": { "dataplexEntry": { "$ref": "GoogleCloudDataplexV1Entry", + "deprecated": true, "description": "Entry" } }, diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index e8e8050c283..ad8f6371ee1 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -2502,7 +2502,7 @@ type GoogleCloudDataplexV1DataQualityRule struct { // contained by a specified set. SetExpectation *GoogleCloudDataplexV1DataQualityRuleSetExpectation `json:"setExpectation,omitempty"` // SqlAssertion: Aggregate rule which evaluates the number of rows returned for - // the provided statement. + // the provided statement. If any rows are returned, this rule fails. SqlAssertion *GoogleCloudDataplexV1DataQualityRuleSqlAssertion `json:"sqlAssertion,omitempty"` // StatisticRangeExpectation: Aggregate rule which evaluates whether the column // aggregate statistic lies between a specified range. @@ -2615,8 +2615,8 @@ func (s *GoogleCloudDataplexV1DataQualityRuleRegexExpectation) MarshalJSON() ([] // GoogleCloudDataplexV1DataQualityRuleResult: DataQualityRuleResult provides a // more detailed, per-rule view of the results. type GoogleCloudDataplexV1DataQualityRuleResult struct { - // AssertionRowCount: Output only. The number of rows returned by the sql - // statement in the SqlAssertion rule.This field is only valid for SqlAssertion + // AssertionRowCount: Output only. The number of rows returned by the SQL + // statement in a SQL assertion rule.This field is only valid for SQL assertion // rules. AssertionRowCount int64 `json:"assertionRowCount,omitempty,string"` // EvaluatedCount: The number of rows a rule was evaluated against.This field @@ -2720,13 +2720,16 @@ func (s *GoogleCloudDataplexV1DataQualityRuleSetExpectation) MarshalJSON() ([]by return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDataplexV1DataQualityRuleSqlAssertion: Queries for rows returned -// by the provided SQL statement. If any rows are are returned, this rule -// fails.The SQL statement needs to use BigQuery standard SQL syntax, and must -// not contain any semicolons.${data()} can be used to reference the rows being -// evaluated, i.e. the table after all additional filters (row filters, -// incremental data filters, sampling) are applied.Example: SELECT * FROM -// ${data()} WHERE price < 0 +// GoogleCloudDataplexV1DataQualityRuleSqlAssertion: A SQL statement that is +// evaluated to return rows that match an invalid state. If any rows are are +// returned, this rule fails.The SQL statement must use BigQuery standard SQL +// syntax, and must not contain any semicolons.You can use the data reference +// parameter ${data()} to reference the source table with all of its +// precondition filters applied. Examples of precondition filters include row +// filters, incremental data filters, and sampling. For more information, see +// Data reference parameter +// (https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).Example: +// SELECT * FROM ${data()} WHERE price < 0 type GoogleCloudDataplexV1DataQualityRuleSqlAssertion struct { // SqlStatement: Optional. The SQL statement. SqlStatement string `json:"sqlStatement,omitempty"` @@ -2827,8 +2830,8 @@ type GoogleCloudDataplexV1DataQualityRuleUniquenessExpectation struct { // of a data quality rule for data quality scan. The monitored resource is // 'DataScan'. type GoogleCloudDataplexV1DataQualityScanRuleResult struct { - // AssertionRowCount: The number of rows returned by the sql statement in the - // SqlAssertion rule. This field is only valid for SqlAssertion rules. + // AssertionRowCount: The number of rows returned by the SQL statement in a SQL + // assertion rule. This field is only valid for SQL assertion rules. AssertionRowCount int64 `json:"assertionRowCount,omitempty,string"` // Column: The column which this rule is evaluated against. Column string `json:"column,omitempty"` @@ -2866,24 +2869,17 @@ type GoogleCloudDataplexV1DataQualityScanRuleResult struct { // // Possible values: // "RULE_TYPE_UNSPECIFIED" - An unspecified rule type. - // "NON_NULL_EXPECTATION" - Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#nonnullexpectation. - // "RANGE_EXPECTATION" - Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rangeexpectation. - // "REGEX_EXPECTATION" - Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#regexexpectation. - // "ROW_CONDITION_EXPECTATION" - Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rowconditionexpectation. - // "SET_EXPECTATION" - Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#setexpectation. - // "STATISTIC_RANGE_EXPECTATION" - Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#statisticrangeexpectation. - // "TABLE_CONDITION_EXPECTATION" - Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#tableconditionexpectation. - // "UNIQUENESS_EXPECTATION" - Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#uniquenessexpectation. - // "SQL_ASSERTION" - Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#sqlAssertion. + // "NON_NULL_EXPECTATION" - See DataQualityRule.NonNullExpectation. + // "RANGE_EXPECTATION" - See DataQualityRule.RangeExpectation. + // "REGEX_EXPECTATION" - See DataQualityRule.RegexExpectation. + // "ROW_CONDITION_EXPECTATION" - See DataQualityRule.RowConditionExpectation. + // "SET_EXPECTATION" - See DataQualityRule.SetExpectation. + // "STATISTIC_RANGE_EXPECTATION" - See + // DataQualityRule.StatisticRangeExpectation. + // "TABLE_CONDITION_EXPECTATION" - See + // DataQualityRule.TableConditionExpectation. + // "UNIQUENESS_EXPECTATION" - See DataQualityRule.UniquenessExpectation. + // "SQL_ASSERTION" - See DataQualityRule.SqlAssertion. RuleType string `json:"ruleType,omitempty"` // ThresholdPercent: The passing threshold (0.0, 100.0) of the data quality // rule. @@ -5930,7 +5926,6 @@ func (s *GoogleCloudDataplexV1SearchEntriesResponse) MarshalJSON() ([]byte, erro // GoogleCloudDataplexV1SearchEntriesResult: A single result of a SearchEntries // request. type GoogleCloudDataplexV1SearchEntriesResult struct { - // DataplexEntry: Entry format of the result. DataplexEntry *GoogleCloudDataplexV1Entry `json:"dataplexEntry,omitempty"` // LinkedResource: Linked resource name. LinkedResource string `json:"linkedResource,omitempty"` diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index 3135ab9512d..5573d119fc0 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -950,7 +950,7 @@ "type": "string" }, "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" } @@ -983,7 +983,7 @@ "type": "string" }, "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" } @@ -2812,7 +2812,7 @@ } } }, - "revision": "20240506", + "revision": "20240523", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AcceptHubSpokeRequest": { @@ -2945,6 +2945,14 @@ "description": "The consumer project where PSC connections are allowed to be created in.", "type": "string" }, + "serviceAttachmentIpAddressMap": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. A map to store mapping between customer vip and target service attachment. Only service attachment with producer specified ip addresses are stored here.", + "readOnly": true, + "type": "object" + }, "state": { "description": "Output only. Overall state of PSC Connections management for this consumer psc config.", "enum": [ @@ -3095,7 +3103,7 @@ "type": "string" }, "protocolVersion": { - "description": "Required. Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported.", + "description": "Required. Internet protocol versions this policy-based route applies to. For this version, only IPV4 is supported. IPV6 is supported in preview.", "enum": [ "PROTOCOL_VERSION_UNSPECIFIED", "IPV4" @@ -4018,6 +4026,63 @@ }, "type": "object" }, + "NextHopInterconnectAttachment": { + "description": "A route next hop that leads to an interconnect attachment resource.", + "id": "NextHopInterconnectAttachment", + "properties": { + "siteToSiteDataTransfer": { + "description": "Indicates whether site-to-site data transfer is allowed for this interconnect attachment resource. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).", + "type": "boolean" + }, + "uri": { + "description": "The URI of the interconnect attachment resource.", + "type": "string" + }, + "vpcNetwork": { + "description": "The VPC network where this interconnect attachment is located.", + "type": "string" + } + }, + "type": "object" + }, + "NextHopRouterApplianceInstance": { + "description": "A route next hop that leads to a Router appliance instance.", + "id": "NextHopRouterApplianceInstance", + "properties": { + "siteToSiteDataTransfer": { + "description": "Indicates whether site-to-site data transfer is allowed for this Router appliance instance resource. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).", + "type": "boolean" + }, + "uri": { + "description": "The URI of the Router appliance instance.", + "type": "string" + }, + "vpcNetwork": { + "description": "The VPC network where this VM is located.", + "type": "string" + } + }, + "type": "object" + }, + "NextHopVPNTunnel": { + "description": "A route next hop that leads to a VPN tunnel resource.", + "id": "NextHopVPNTunnel", + "properties": { + "siteToSiteDataTransfer": { + "description": "Indicates whether site-to-site data transfer is allowed for this VPN tunnel resource. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).", + "type": "boolean" + }, + "uri": { + "description": "The URI of the VPN tunnel resource.", + "type": "string" + }, + "vpcNetwork": { + "description": "The VPC network where this VPN tunnel is located.", + "type": "string" + } + }, + "type": "object" + }, "NextHopVpcNetwork": { "id": "NextHopVpcNetwork", "properties": { @@ -4104,7 +4169,7 @@ "type": "object" }, "PolicyBasedRoute": { - "description": "Policy-based routes route L4 network traffic based on not just destination IP address, but also source IP address, protocol, and more. If a policy-based route conflicts with other types of routes, the policy-based route always take precedence.", + "description": "Policy-based routes route L4 network traffic based on not just destination IP address, but also source IP address, protocol, and more. If a policy-based route conflicts with other types of routes, the policy-based route always takes precedence.", "id": "PolicyBasedRoute", "properties": { "createTime": { @@ -4157,7 +4222,7 @@ ], "enumDescriptions": [ "Default value.", - "Use the routes from the default routing tables (system-generated routes, custom routes, peering route) to determine the next hop. This will effectively exclude matching packets being applied on other PBRs with a lower priority." + "Use the routes from the default routing tables (system-generated routes, custom routes, peering route) to determine the next hop. This effectively excludes matching packets being applied on other PBRs with a lower priority." ], "type": "string" }, @@ -4179,7 +4244,7 @@ }, "virtualMachine": { "$ref": "VirtualMachine", - "description": "Optional. VM instances to which this policy-based route applies to." + "description": "Optional. VM instances that this policy-based route applies to." }, "warnings": { "description": "Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.", @@ -4442,10 +4507,28 @@ "description": "Immutable. The name of the route. Route names must be unique. Route names use the following form: `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}/routes/{route_id}`", "type": "string" }, + "nextHopInterconnectAttachment": { + "$ref": "NextHopInterconnectAttachment", + "description": "Immutable. The next-hop VLAN attachment for packets on this route." + }, + "nextHopRouterApplianceInstance": { + "$ref": "NextHopRouterApplianceInstance", + "description": "Immutable. The next-hop Router appliance instance for packets on this route." + }, "nextHopVpcNetwork": { "$ref": "NextHopVpcNetwork", "description": "Immutable. The destination VPC network for packets on this route." }, + "nextHopVpnTunnel": { + "$ref": "NextHopVPNTunnel", + "description": "Immutable. The next-hop VPN tunnel for packets on this route." + }, + "priority": { + "description": "Output only. The priority of this route. Priority is used to break ties in cases where a destination matches more than one route. In these cases the route with the lowest-numbered priority value wins.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "spoke": { "description": "Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE", "type": "string" @@ -4482,12 +4565,14 @@ "enum": [ "ROUTE_TYPE_UNSPECIFIED", "VPC_PRIMARY_SUBNET", - "VPC_SECONDARY_SUBNET" + "VPC_SECONDARY_SUBNET", + "DYNAMIC_ROUTE" ], "enumDescriptions": [ "No route type information specified", "The route leads to a destination within the primary address range of the VPC network's subnet.", - "The route leads to a destination within the secondary address range of the VPC network's subnet." + "The route leads to a destination within the secondary address range of the VPC network's subnet.", + "The route leads to a destination in a dynamic route. Dynamic routes are derived from Border Gateway Protocol (BGP) advertisements received from an NCC hybrid spoke." ], "readOnly": true, "type": "string" @@ -5185,11 +5270,11 @@ "type": "object" }, "VirtualMachine": { - "description": "VM instances to which this policy-based route applies to.", + "description": "VM instances that this policy-based route applies to.", "id": "VirtualMachine", "properties": { "tags": { - "description": "Optional. A list of VM instance tags the this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.", + "description": "Optional. A list of VM instance tags that this policy-based route applies to. VM instances that have ANY of tags specified here installs this PBR.", "items": { "type": "string" }, @@ -5211,7 +5296,7 @@ ], "enumDescriptions": [ "Default value.", - "The policy-based route is not active and functioning. Common causes are the dependent network was deleted or the resource project was turned off.", + "The policy-based route is not active and functioning. Common causes are that the dependent network was deleted or the resource project was turned off.", "The policy-based route is being modified (e.g. created/deleted) at this time." ], "readOnly": true, diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index 8ca17c13991..9b797a58038 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -620,6 +620,10 @@ type ConsumerPscConfig struct { // Project: The consumer project where PSC connections are allowed to be // created in. Project string `json:"project,omitempty"` + // ServiceAttachmentIpAddressMap: Output only. A map to store mapping between + // customer vip and target service attachment. Only service attachment with + // producer specified ip addresses are stored here. + ServiceAttachmentIpAddressMap map[string]string `json:"serviceAttachmentIpAddressMap,omitempty"` // State: Output only. Overall state of PSC Connections management for this // consumer psc config. // @@ -792,7 +796,8 @@ type Filter struct { // to. Valid values are 'TCP', 'UDP', and 'ALL'. Default is 'ALL'. IpProtocol string `json:"ipProtocol,omitempty"` // ProtocolVersion: Required. Internet protocol versions this policy-based - // route applies to. For this version, only IPV4 is supported. + // route applies to. For this version, only IPV4 is supported. IPV6 is + // supported in preview. // // Possible values: // "PROTOCOL_VERSION_UNSPECIFIED" - Default value. @@ -1910,6 +1915,95 @@ func (s *LocationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// NextHopInterconnectAttachment: A route next hop that leads to an +// interconnect attachment resource. +type NextHopInterconnectAttachment struct { + // SiteToSiteDataTransfer: Indicates whether site-to-site data transfer is + // allowed for this interconnect attachment resource. Data transfer is + // available only in supported locations + // (https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + SiteToSiteDataTransfer bool `json:"siteToSiteDataTransfer,omitempty"` + // Uri: The URI of the interconnect attachment resource. + Uri string `json:"uri,omitempty"` + // VpcNetwork: The VPC network where this interconnect attachment is located. + VpcNetwork string `json:"vpcNetwork,omitempty"` + // ForceSendFields is a list of field names (e.g. "SiteToSiteDataTransfer") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SiteToSiteDataTransfer") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *NextHopInterconnectAttachment) MarshalJSON() ([]byte, error) { + type NoMethod NextHopInterconnectAttachment + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// NextHopRouterApplianceInstance: A route next hop that leads to a Router +// appliance instance. +type NextHopRouterApplianceInstance struct { + // SiteToSiteDataTransfer: Indicates whether site-to-site data transfer is + // allowed for this Router appliance instance resource. Data transfer is + // available only in supported locations + // (https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + SiteToSiteDataTransfer bool `json:"siteToSiteDataTransfer,omitempty"` + // Uri: The URI of the Router appliance instance. + Uri string `json:"uri,omitempty"` + // VpcNetwork: The VPC network where this VM is located. + VpcNetwork string `json:"vpcNetwork,omitempty"` + // ForceSendFields is a list of field names (e.g. "SiteToSiteDataTransfer") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SiteToSiteDataTransfer") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *NextHopRouterApplianceInstance) MarshalJSON() ([]byte, error) { + type NoMethod NextHopRouterApplianceInstance + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// NextHopVPNTunnel: A route next hop that leads to a VPN tunnel resource. +type NextHopVPNTunnel struct { + // SiteToSiteDataTransfer: Indicates whether site-to-site data transfer is + // allowed for this VPN tunnel resource. Data transfer is available only in + // supported locations + // (https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). + SiteToSiteDataTransfer bool `json:"siteToSiteDataTransfer,omitempty"` + // Uri: The URI of the VPN tunnel resource. + Uri string `json:"uri,omitempty"` + // VpcNetwork: The VPC network where this VPN tunnel is located. + VpcNetwork string `json:"vpcNetwork,omitempty"` + // ForceSendFields is a list of field names (e.g. "SiteToSiteDataTransfer") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SiteToSiteDataTransfer") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *NextHopVPNTunnel) MarshalJSON() ([]byte, error) { + type NoMethod NextHopVPNTunnel + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + type NextHopVpcNetwork struct { // Uri: The URI of the VPC network resource Uri string `json:"uri,omitempty"` @@ -2064,7 +2158,7 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // PolicyBasedRoute: Policy-based routes route L4 network traffic based on not // just destination IP address, but also source IP address, protocol, and more. // If a policy-based route conflicts with other types of routes, the -// policy-based route always take precedence. +// policy-based route always takes precedence. type PolicyBasedRoute struct { // CreateTime: Output only. Time when the policy-based route was created. CreateTime string `json:"createTime,omitempty"` @@ -2099,8 +2193,8 @@ type PolicyBasedRoute struct { // "OTHER_ROUTES_UNSPECIFIED" - Default value. // "DEFAULT_ROUTING" - Use the routes from the default routing tables // (system-generated routes, custom routes, peering route) to determine the - // next hop. This will effectively exclude matching packets being applied on - // other PBRs with a lower priority. + // next hop. This effectively excludes matching packets being applied on other + // PBRs with a lower priority. NextHopOtherRoutes string `json:"nextHopOtherRoutes,omitempty"` // Priority: Optional. The priority of this policy-based route. Priority is // used to break ties in cases where there are more than one matching @@ -2112,8 +2206,8 @@ type PolicyBasedRoute struct { SelfLink string `json:"selfLink,omitempty"` // UpdateTime: Output only. Time when the policy-based route was updated. UpdateTime string `json:"updateTime,omitempty"` - // VirtualMachine: Optional. VM instances to which this policy-based route - // applies to. + // VirtualMachine: Optional. VM instances that this policy-based route applies + // to. VirtualMachine *VirtualMachine `json:"virtualMachine,omitempty"` // Warnings: Output only. If potential misconfigurations are detected for this // route, this field will be populated with warning messages. @@ -2402,9 +2496,22 @@ type Route struct { // `projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_tab // le_id}/routes/{route_id}` Name string `json:"name,omitempty"` + // NextHopInterconnectAttachment: Immutable. The next-hop VLAN attachment for + // packets on this route. + NextHopInterconnectAttachment *NextHopInterconnectAttachment `json:"nextHopInterconnectAttachment,omitempty"` + // NextHopRouterApplianceInstance: Immutable. The next-hop Router appliance + // instance for packets on this route. + NextHopRouterApplianceInstance *NextHopRouterApplianceInstance `json:"nextHopRouterApplianceInstance,omitempty"` // NextHopVpcNetwork: Immutable. The destination VPC network for packets on // this route. NextHopVpcNetwork *NextHopVpcNetwork `json:"nextHopVpcNetwork,omitempty"` + // NextHopVpnTunnel: Immutable. The next-hop VPN tunnel for packets on this + // route. + NextHopVpnTunnel *NextHopVPNTunnel `json:"nextHopVpnTunnel,omitempty"` + // Priority: Output only. The priority of this route. Priority is used to break + // ties in cases where a destination matches more than one route. In these + // cases the route with the lowest-numbered priority value wins. + Priority int64 `json:"priority,omitempty,string"` // Spoke: Immutable. The spoke that this route leads to. Example: // projects/12345/locations/global/spokes/SPOKE Spoke string `json:"spoke,omitempty"` @@ -2431,6 +2538,9 @@ type Route struct { // address range of the VPC network's subnet. // "VPC_SECONDARY_SUBNET" - The route leads to a destination within the // secondary address range of the VPC network's subnet. + // "DYNAMIC_ROUTE" - The route leads to a destination in a dynamic route. + // Dynamic routes are derived from Border Gateway Protocol (BGP) advertisements + // received from an NCC hybrid spoke. Type string `json:"type,omitempty"` // Uid: Output only. The Google-generated UUID for the route. This value is // unique across all Network Connectivity Center route resources. If a route is @@ -3133,11 +3243,11 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// VirtualMachine: VM instances to which this policy-based route applies to. +// VirtualMachine: VM instances that this policy-based route applies to. type VirtualMachine struct { - // Tags: Optional. A list of VM instance tags the this policy-based route - // applies to. VM instances that have ANY of tags specified here will install - // this PBR. + // Tags: Optional. A list of VM instance tags that this policy-based route + // applies to. VM instances that have ANY of tags specified here installs this + // PBR. Tags []string `json:"tags,omitempty"` // ForceSendFields is a list of field names (e.g. "Tags") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3164,7 +3274,7 @@ type Warnings struct { // Possible values: // "WARNING_UNSPECIFIED" - Default value. // "RESOURCE_NOT_ACTIVE" - The policy-based route is not active and - // functioning. Common causes are the dependent network was deleted or the + // functioning. Common causes are that the dependent network was deleted or the // resource project was turned off. // "RESOURCE_BEING_MODIFIED" - The policy-based route is being modified (e.g. // created/deleted) at this time. @@ -6123,13 +6233,13 @@ func (c *ProjectsLocationsGlobalPolicyBasedRoutesCreateCall) PolicyBasedRouteId( // RequestId sets the optional parameter "requestId": An optional request ID to // identify requests. Specify a unique request ID so that if you must retry -// your request, the server will know to ignore the request if it has already -// been completed. The server will guarantee that for at least 60 minutes since -// the first request. For example, consider a situation where you make an -// initial request and the request times out. If you make the request again -// with the same request ID, the server can check if original operation with -// the same request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate commitments. The +// your request, the server knows to ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes since the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The // request ID must be a valid UUID with the exception that zero UUID is not // supported (00000000-0000-0000-0000-000000000000). func (c *ProjectsLocationsGlobalPolicyBasedRoutesCreateCall) RequestId(requestId string) *ProjectsLocationsGlobalPolicyBasedRoutesCreateCall { @@ -6239,13 +6349,13 @@ func (r *ProjectsLocationsGlobalPolicyBasedRoutesService) Delete(name string) *P // RequestId sets the optional parameter "requestId": An optional request ID to // identify requests. Specify a unique request ID so that if you must retry -// your request, the server will know to ignore the request if it has already -// been completed. The server will guarantee that for at least 60 minutes after -// the first request. For example, consider a situation where you make an -// initial request and the request times out. If you make the request again -// with the same request ID, the server can check if original operation with -// the same request ID was received, and if so, will ignore the second request. -// This prevents clients from accidentally creating duplicate commitments. The +// your request, the server knows to ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes after the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The // request ID must be a valid UUID with the exception that zero UUID is not // supported (00000000-0000-0000-0000-000000000000). func (c *ProjectsLocationsGlobalPolicyBasedRoutesDeleteCall) RequestId(requestId string) *ProjectsLocationsGlobalPolicyBasedRoutesDeleteCall { diff --git a/servicecontrol/v1/servicecontrol-api.json b/servicecontrol/v1/servicecontrol-api.json index f98c16309fd..b64100dd900 100644 --- a/servicecontrol/v1/servicecontrol-api.json +++ b/servicecontrol/v1/servicecontrol-api.json @@ -197,7 +197,7 @@ } } }, - "revision": "20240426", + "revision": "20240524", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "AllocateInfo": { @@ -1289,6 +1289,7 @@ "description": "Properties of the object.", "type": "any" }, + "deprecated": true, "description": "Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.", "type": "object" }, @@ -1296,6 +1297,7 @@ "additionalProperties": { "type": "string" }, + "deprecated": true, "description": "Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests. Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.", "type": "object" }, diff --git a/servicecontrol/v2/servicecontrol-api.json b/servicecontrol/v2/servicecontrol-api.json index 23c4eb07d85..13e80b31ad9 100644 --- a/servicecontrol/v2/servicecontrol-api.json +++ b/servicecontrol/v2/servicecontrol-api.json @@ -169,7 +169,7 @@ } } }, - "revision": "20240426", + "revision": "20240524", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "Api": { @@ -529,6 +529,7 @@ "description": "Properties of the object.", "type": "any" }, + "deprecated": true, "description": "Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.", "type": "object" }, @@ -536,6 +537,7 @@ "additionalProperties": { "type": "string" }, + "deprecated": true, "description": "Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests. Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.", "type": "object" }, diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index 5020fe2e494..4faad6bc3d1 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -457,7 +457,7 @@ } } }, - "revision": "20240129", + "revision": "20240528", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "Callback": { @@ -1006,6 +1006,11 @@ "description": "StepEntryMetadata contains metadata information about this step.", "id": "StepEntryMetadata", "properties": { + "expectedIteration": { + "description": "Expected iteration represents the expected number of iterations in the step's progress.", + "format": "int64", + "type": "string" + }, "progressNumber": { "description": "Progress number represents the current state of the current progress. eg: A step entry represents the 4th iteration in a progress of PROGRESS_TYPE_FOR.", "format": "int64", diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 43580677c7a..03288e7d036 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -850,6 +850,9 @@ func (s *StepEntry) MarshalJSON() ([]byte, error) { // StepEntryMetadata: StepEntryMetadata contains metadata information about // this step. type StepEntryMetadata struct { + // ExpectedIteration: Expected iteration represents the expected number of + // iterations in the step's progress. + ExpectedIteration int64 `json:"expectedIteration,omitempty,string"` // ProgressNumber: Progress number represents the current state of the current // progress. eg: A step entry represents the 4th iteration in a progress of // PROGRESS_TYPE_FOR. @@ -870,13 +873,13 @@ type StepEntryMetadata struct { ProgressType string `json:"progressType,omitempty"` // ThreadId: Child thread id that this step entry belongs to. ThreadId string `json:"threadId,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProgressNumber") to + // ForceSendFields is a list of field names (e.g. "ExpectedIteration") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ProgressNumber") to include in + // NullFields is a list of field names (e.g. "ExpectedIteration") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/workstations/v1/workstations-api.json b/workstations/v1/workstations-api.json index 25e15755934..3d2e409b873 100644 --- a/workstations/v1/workstations-api.json +++ b/workstations/v1/workstations-api.json @@ -1195,7 +1195,7 @@ } } }, - "revision": "20240424", + "revision": "20240528", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "Accelerator": { @@ -1347,11 +1347,11 @@ "type": "object" }, "DomainConfig": { - "description": "Configuration options for a custom domain.", + "description": "Configuration options for private workstation clusters.", "id": "DomainConfig", "properties": { "domain": { - "description": "Immutable. Domain used by Workstations for HTTP ingress.", + "description": "Immutable. Whether Workstations endpoint is private.", "type": "string" } }, @@ -1435,7 +1435,7 @@ "type": "boolean" }, "enableNestedVirtualization": { - "description": "Optional. Whether to enable nested virtualization on Cloud Workstations VMs created using this workstation configuration. Nested virtualization lets you run virtual machine (VM) instances inside your workstation. Before enabling nested virtualization, consider the following important considerations. Cloud Workstations instances are subject to the [same restrictions as Compute Engine instances](https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions): * **Organization policy**: projects, folders, or organizations may be restricted from creating nested VMs if the **Disable VM nested virtualization** constraint is enforced in the organization policy. For more information, see the Compute Engine section, [Checking whether nested virtualization is allowed](https://cloud.google.com/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed). * **Performance**: nested VMs might experience a 10% or greater decrease in performance for workloads that are CPU-bound and possibly greater than a 10% decrease for workloads that are input/output bound. * **Machine Type**: nested virtualization can only be enabled on workstation configurations that specify a machine_type in the N1 or N2 machine series. * **GPUs**: nested virtualization may not be enabled on workstation configurations with accelerators. * **Operating System**: Because [Container-Optimized OS](https://cloud.google.com/compute/docs/images/os-details#container-optimized_os_cos) does not support nested virtualization, when nested virtualization is enabled, the underlying Compute Engine VM instances boot from an [Ubuntu LTS](https://cloud.google.com/compute/docs/images/os-details#ubuntu_lts) image.", + "description": "Optional. Whether to enable nested virtualization on Cloud Workstations VMs created using this workstation configuration. Nested virtualization lets you run virtual machine (VM) instances inside your workstation. Before enabling nested virtualization, consider the following important considerations. Cloud Workstations instances are subject to the [same restrictions as Compute Engine instances](https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions): * **Organization policy**: projects, folders, or organizations may be restricted from creating nested VMs if the **Disable VM nested virtualization** constraint is enforced in the organization policy. For more information, see the Compute Engine section, [Checking whether nested virtualization is allowed](https://cloud.google.com/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed). * **Performance**: nested VMs might experience a 10% or greater decrease in performance for workloads that are CPU-bound and possibly greater than a 10% decrease for workloads that are input/output bound. * **Machine Type**: nested virtualization can only be enabled on workstation configurations that specify a machine_type in the N1 or N2 machine series. * **GPUs**: nested virtualization may not be enabled on workstation configurations with accelerators. * **Operating System**: because [Container-Optimized OS](https://cloud.google.com/compute/docs/images/os-details#container-optimized_os_cos) does not support nested virtualization, when nested virtualization is enabled, the underlying Compute Engine VM instances boot from an [Ubuntu LTS](https://cloud.google.com/compute/docs/images/os-details#ubuntu_lts) image.", "type": "boolean" }, "machineType": { @@ -1929,27 +1929,22 @@ "type": "object" }, "PrivateClusterConfig": { - "description": "Configuration options for private workstation clusters.", "id": "PrivateClusterConfig", "properties": { "allowedProjects": { - "description": "Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.", "items": { "type": "string" }, "type": "array" }, "clusterHostname": { - "description": "Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the workstation cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.", "readOnly": true, "type": "string" }, "enablePrivateEndpoint": { - "description": "Immutable. Whether Workstations endpoint is private.", "type": "boolean" }, "serviceAttachmentUri": { - "description": "Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).", "readOnly": true, "type": "string" } diff --git a/workstations/v1/workstations-gen.go b/workstations/v1/workstations-gen.go index e50c00441ac..74b5f4538ec 100644 --- a/workstations/v1/workstations-gen.go +++ b/workstations/v1/workstations-gen.go @@ -509,9 +509,9 @@ func (s *CustomerEncryptionKey) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// DomainConfig: Configuration options for a custom domain. +// DomainConfig: Configuration options for private workstation clusters. type DomainConfig struct { - // Domain: Immutable. Domain used by Workstations for HTTP ingress. + // Domain: Immutable. Whether Workstations endpoint is private. Domain string `json:"domain,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -669,7 +669,7 @@ type GceInstance struct { // nested virtualization can only be enabled on workstation configurations that // specify a machine_type in the N1 or N2 machine series. * **GPUs**: nested // virtualization may not be enabled on workstation configurations with - // accelerators. * **Operating System**: Because Container-Optimized OS + // accelerators. * **Operating System**: because Container-Optimized OS // (https://cloud.google.com/compute/docs/images/os-details#container-optimized_os_cos) // does not support nested virtualization, when nested virtualization is // enabled, the underlying Compute Engine VM instances boot from an Ubuntu LTS @@ -1384,27 +1384,11 @@ func (s *Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// PrivateClusterConfig: Configuration options for private workstation -// clusters. type PrivateClusterConfig struct { - // AllowedProjects: Optional. Additional projects that are allowed to attach to - // the workstation cluster's service attachment. By default, the workstation - // cluster's project and the VPC host project (if different) are allowed. - AllowedProjects []string `json:"allowedProjects,omitempty"` - // ClusterHostname: Output only. Hostname for the workstation cluster. This - // field will be populated only when private endpoint is enabled. To access - // workstations in the workstation cluster, create a new DNS zone mapping this - // domain name to an internal IP address and a forwarding rule mapping that - // address to the service attachment. - ClusterHostname string `json:"clusterHostname,omitempty"` - // EnablePrivateEndpoint: Immutable. Whether Workstations endpoint is private. - EnablePrivateEndpoint bool `json:"enablePrivateEndpoint,omitempty"` - // ServiceAttachmentUri: Output only. Service attachment URI for the - // workstation cluster. The service attachemnt is created when private endpoint - // is enabled. To access workstations in the workstation cluster, configure - // access to the managed service using Private Service Connect - // (https://cloud.google.com/vpc/docs/configure-private-service-connect-services). - ServiceAttachmentUri string `json:"serviceAttachmentUri,omitempty"` + AllowedProjects []string `json:"allowedProjects,omitempty"` + ClusterHostname string `json:"clusterHostname,omitempty"` + EnablePrivateEndpoint bool `json:"enablePrivateEndpoint,omitempty"` + ServiceAttachmentUri string `json:"serviceAttachmentUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowedProjects") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/workstations/v1beta/workstations-api.json b/workstations/v1beta/workstations-api.json index 6241578416b..fbef1a917f7 100644 --- a/workstations/v1beta/workstations-api.json +++ b/workstations/v1beta/workstations-api.json @@ -1127,7 +1127,7 @@ } } }, - "revision": "20240520", + "revision": "20240528", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "Accelerator": { @@ -1315,11 +1315,11 @@ "type": "object" }, "DomainConfig": { - "description": "Configuration options for a custom domain.", + "description": "Configuration options for private workstation clusters.", "id": "DomainConfig", "properties": { "domain": { - "description": "Immutable. Domain used by Workstations for HTTP ingress.", + "description": "Immutable. Whether Workstations endpoint is private.", "type": "string" } }, @@ -1410,7 +1410,7 @@ "type": "boolean" }, "enableNestedVirtualization": { - "description": "Optional. Whether to enable nested virtualization on Cloud Workstations VMs created using this workstation configuration. Nested virtualization lets you run virtual machine (VM) instances inside your workstation. Before enabling nested virtualization, consider the following important considerations. Cloud Workstations instances are subject to the [same restrictions as Compute Engine instances](https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions): * **Organization policy**: projects, folders, or organizations may be restricted from creating nested VMs if the **Disable VM nested virtualization** constraint is enforced in the organization policy. For more information, see the Compute Engine section, [Checking whether nested virtualization is allowed](https://cloud.google.com/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed). * **Performance**: nested VMs might experience a 10% or greater decrease in performance for workloads that are CPU-bound and possibly greater than a 10% decrease for workloads that are input/output bound. * **Machine Type**: nested virtualization can only be enabled on workstation configurations that specify a machine_type in the N1 or N2 machine series. * **GPUs**: nested virtualization may not be enabled on workstation configurations with accelerators. * **Operating System**: Because [Container-Optimized OS](https://cloud.google.com/compute/docs/images/os-details#container-optimized_os_cos) does not support nested virtualization, when nested virtualization is enabled, the underlying Compute Engine VM instances boot from an [Ubuntu LTS](https://cloud.google.com/compute/docs/images/os-details#ubuntu_lts) image.", + "description": "Optional. Whether to enable nested virtualization on Cloud Workstations VMs created using this workstation configuration. Nested virtualization lets you run virtual machine (VM) instances inside your workstation. Before enabling nested virtualization, consider the following important considerations. Cloud Workstations instances are subject to the [same restrictions as Compute Engine instances](https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions): * **Organization policy**: projects, folders, or organizations may be restricted from creating nested VMs if the **Disable VM nested virtualization** constraint is enforced in the organization policy. For more information, see the Compute Engine section, [Checking whether nested virtualization is allowed](https://cloud.google.com/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed). * **Performance**: nested VMs might experience a 10% or greater decrease in performance for workloads that are CPU-bound and possibly greater than a 10% decrease for workloads that are input/output bound. * **Machine Type**: nested virtualization can only be enabled on workstation configurations that specify a machine_type in the N1 or N2 machine series. * **GPUs**: nested virtualization may not be enabled on workstation configurations with accelerators. * **Operating System**: because [Container-Optimized OS](https://cloud.google.com/compute/docs/images/os-details#container-optimized_os_cos) does not support nested virtualization, when nested virtualization is enabled, the underlying Compute Engine VM instances boot from an [Ubuntu LTS](https://cloud.google.com/compute/docs/images/os-details#ubuntu_lts) image.", "type": "boolean" }, "machineType": { @@ -1550,7 +1550,7 @@ "type": "string" }, "port": { - "description": "Optional. Port for which the access token should be generated. If specified, the generated access token will grant access only to the specified port of the workstation. If specified, values must be within the range [1 - 65535]. If not specified, the generated access token will grant access to all ports of the workstation.", + "description": "Optional. Port for which the access token should be generated. If specified, the generated access token grants access only to the specified port of the workstation. If specified, values must be within the range [1 - 65535]. If not specified, the generated access token grants access to all ports of the workstation.", "format": "int32", "type": "integer" }, @@ -1864,7 +1864,7 @@ "type": "object" }, "PortRange": { - "description": "A PortsConfig defines a range of ports. Both first and last are inclusive. To specify a single port, both first and last should be same.", + "description": "A PortsConfig defines a range of ports. Both first and last are inclusive. To specify a single port, both first and last should be the same.", "id": "PortRange", "properties": { "first": { @@ -1881,27 +1881,22 @@ "type": "object" }, "PrivateClusterConfig": { - "description": "Configuration options for private workstation clusters.", "id": "PrivateClusterConfig", "properties": { "allowedProjects": { - "description": "Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed.", "items": { "type": "string" }, "type": "array" }, "clusterHostname": { - "description": "Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the workstation cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.", "readOnly": true, "type": "string" }, "enablePrivateEndpoint": { - "description": "Immutable. Whether Workstations endpoint is private.", "type": "boolean" }, "serviceAttachmentUri": { - "description": "Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).", "readOnly": true, "type": "string" } @@ -2232,7 +2227,7 @@ "id": "WorkstationConfig", "properties": { "allowedPorts": { - "description": "Optional. Single or Range of ports externally accessible in the workstation. If not specified defaults to ports 22, 80 and ports 1024-65535.", + "description": "Optional. A Single or Range of ports externally accessible in the workstation. If not specified defaults to ports 22, 80 and ports 1024-65535.", "items": { "$ref": "PortRange" }, diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go index b08795f82ab..fc41fc54c65 100644 --- a/workstations/v1beta/workstations-gen.go +++ b/workstations/v1beta/workstations-gen.go @@ -572,9 +572,9 @@ func (s *CustomerEncryptionKey) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// DomainConfig: Configuration options for a custom domain. +// DomainConfig: Configuration options for private workstation clusters. type DomainConfig struct { - // Domain: Immutable. Domain used by Workstations for HTTP ingress. + // Domain: Immutable. Whether Workstations endpoint is private. Domain string `json:"domain,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -735,7 +735,7 @@ type GceInstance struct { // nested virtualization can only be enabled on workstation configurations that // specify a machine_type in the N1 or N2 machine series. * **GPUs**: nested // virtualization may not be enabled on workstation configurations with - // accelerators. * **Operating System**: Because Container-Optimized OS + // accelerators. * **Operating System**: because Container-Optimized OS // (https://cloud.google.com/compute/docs/images/os-details#container-optimized_os_cos) // does not support nested virtualization, when nested virtualization is // enabled, the underlying Compute Engine VM instances boot from an Ubuntu LTS @@ -929,10 +929,10 @@ type GenerateAccessTokenRequest struct { // expiration time will be set to a default value of 1 hour in the future. ExpireTime string `json:"expireTime,omitempty"` // Port: Optional. Port for which the access token should be generated. If - // specified, the generated access token will grant access only to the - // specified port of the workstation. If specified, values must be within the - // range [1 - 65535]. If not specified, the generated access token will grant - // access to all ports of the workstation. + // specified, the generated access token grants access only to the specified + // port of the workstation. If specified, values must be within the range [1 - + // 65535]. If not specified, the generated access token grants access to all + // ports of the workstation. Port int64 `json:"port,omitempty"` // Ttl: Desired lifetime duration of the access token. This value must be at // most 24 hours. If a value is not specified, the token's lifetime will be set @@ -1397,7 +1397,7 @@ func (s *Policy) MarshalJSON() ([]byte, error) { } // PortRange: A PortsConfig defines a range of ports. Both first and last are -// inclusive. To specify a single port, both first and last should be same. +// inclusive. To specify a single port, both first and last should be the same. type PortRange struct { // First: Required. Starting port number for the current range of ports. First int64 `json:"first,omitempty"` @@ -1421,27 +1421,11 @@ func (s *PortRange) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// PrivateClusterConfig: Configuration options for private workstation -// clusters. type PrivateClusterConfig struct { - // AllowedProjects: Optional. Additional projects that are allowed to attach to - // the workstation cluster's service attachment. By default, the workstation - // cluster's project and the VPC host project (if different) are allowed. - AllowedProjects []string `json:"allowedProjects,omitempty"` - // ClusterHostname: Output only. Hostname for the workstation cluster. This - // field will be populated only when private endpoint is enabled. To access - // workstations in the workstation cluster, create a new DNS zone mapping this - // domain name to an internal IP address and a forwarding rule mapping that - // address to the service attachment. - ClusterHostname string `json:"clusterHostname,omitempty"` - // EnablePrivateEndpoint: Immutable. Whether Workstations endpoint is private. - EnablePrivateEndpoint bool `json:"enablePrivateEndpoint,omitempty"` - // ServiceAttachmentUri: Output only. Service attachment URI for the - // workstation cluster. The service attachemnt is created when private endpoint - // is enabled. To access workstations in the workstation cluster, configure - // access to the managed service using Private Service Connect - // (https://cloud.google.com/vpc/docs/configure-private-service-connect-services). - ServiceAttachmentUri string `json:"serviceAttachmentUri,omitempty"` + AllowedProjects []string `json:"allowedProjects,omitempty"` + ClusterHostname string `json:"clusterHostname,omitempty"` + EnablePrivateEndpoint bool `json:"enablePrivateEndpoint,omitempty"` + ServiceAttachmentUri string `json:"serviceAttachmentUri,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowedProjects") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1819,7 +1803,7 @@ func (s *WorkstationCluster) MarshalJSON() ([]byte, error) { // Management (IAM) (https://cloud.google.com/iam/docs/overview) rules to grant // access to teams or to individual developers. type WorkstationConfig struct { - // AllowedPorts: Optional. Single or Range of ports externally accessible in + // AllowedPorts: Optional. A Single or Range of ports externally accessible in // the workstation. If not specified defaults to ports 22, 80 and ports // 1024-65535. AllowedPorts []*PortRange `json:"allowedPorts,omitempty"`