diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 110d48afb31..88b70774657 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -3686,7 +3686,7 @@ "type": "string" }, "parent": { - "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`", + "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -16204,7 +16204,7 @@ } } }, - "revision": "20240424", + "revision": "20240429", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -22707,7 +22707,7 @@ "description": "The datapoint of the neighbor. Note that full datapoints are returned only when \"return_full_datapoint\" is set to true. Otherwise, only the \"datapoint_id\" and \"crowding_tag\" fields are populated." }, "distance": { - "description": "The distance between the neighbor and the query vector.", + "description": "The distance between the neighbor and the dense embedding query.", "format": "double", "type": "number" } @@ -23033,6 +23033,10 @@ "description": "Metadata returned to client when grounding is enabled.", "id": "GoogleCloudAiplatformV1GroundingMetadata", "properties": { + "searchEntryPoint": { + "$ref": "GoogleCloudAiplatformV1SearchEntryPoint", + "description": "Optional. Google search entry for the following-up web searches." + }, "webSearchQueries": { "description": "Optional. Web search queries for the following-up web search.", "items": { @@ -23480,7 +23484,7 @@ "type": "string" }, "featureVector": { - "description": "Required. Feature embedding vector. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].", + "description": "Required. Feature embedding vector for dense index. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].", "items": { "format": "float", "type": "number" @@ -23701,7 +23705,7 @@ "type": "integer" }, "vectorsCount": { - "description": "Output only. The number of vectors in the Index.", + "description": "Output only. The number of dense vectors in the Index.", "format": "int64", "readOnly": true, "type": "string" @@ -24720,7 +24724,8 @@ "NVIDIA_H100_80GB", "TPU_V2", "TPU_V3", - "TPU_V4_POD" + "TPU_V4_POD", + "TPU_V5_LITEPOD" ], "enumDescriptions": [ "Unspecified accelerator type, which means no accelerator.", @@ -24735,7 +24740,8 @@ "Nvidia H100 80Gb GPU.", "TPU v2.", "TPU v3.", - "TPU v4." + "TPU v4.", + "TPU v5." ], "type": "string" }, @@ -26840,7 +26846,8 @@ "OP_IN_DATAPOINT", "MULTIPLE_VALUES", "INVALID_NUMERIC_VALUE", - "INVALID_ENCODING" + "INVALID_ENCODING", + "INVALID_TOKEN_VALUE" ], "enumDescriptions": [ "Default, shall not be used.", @@ -26849,14 +26856,15 @@ "Invalid csv format.", "Invalid avro format.", "The embedding id is not valid.", - "The size of the embedding vectors does not match with the specified dimension.", + "The size of the dense embedding vectors does not match with the specified dimension.", "The `namespace` field is missing.", "Generic catch-all error. Only used for validation failure where the root cause cannot be easily retrieved programmatically.", "There are multiple restricts with the same `namespace` value.", "Numeric restrict has operator specified in datapoint.", "Numeric restrict has multiple values specified.", "Numeric restrict has invalid numeric value specified.", - "File is not in UTF_8 format." + "File is not in UTF_8 format.", + "Token restrict value is invalid." ], "type": "string" }, @@ -28260,6 +28268,10 @@ "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke", "description": "Optional. Deploy PublisherModel to Google Kubernetes Engine." }, + "fineTune": { + "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences", + "description": "Optional. Fine tune the PublisherModel with the third-party model tuning UI." + }, "openEvaluationPipeline": { "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open evaluation pipeline of the PublisherModel." @@ -28323,6 +28335,10 @@ "$ref": "GoogleCloudAiplatformV1DedicatedResources", "description": "A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration." }, + "deployTaskName": { + "description": "Optional. The name of the deploy task (e.g., \"text to image generation\").", + "type": "string" + }, "largeModelReference": { "$ref": "GoogleCloudAiplatformV1LargeModelReference", "description": "Optional. Large model reference. When this is set, model_artifact_spec is not needed." @@ -31569,6 +31585,10 @@ }, "type": "array" }, + "systemInstructionGcsUri": { + "description": "The Google Cloud Storage URI that stores the system instruction, starting with gs://.", + "type": "string" + }, "temperature": { "description": "Temperature value used for sampling set when the dataset was saved. This value is used to tune the degree of randomness.", "format": "float", @@ -33413,6 +33433,22 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1SearchEntryPoint": { + "description": "Google search entry point.", + "id": "GoogleCloudAiplatformV1SearchEntryPoint", + "properties": { + "renderedContent": { + "description": "Optional. Web content snippet that can be embedded in a web page or an app webview.", + "type": "string" + }, + "sdkBlob": { + "description": "Optional. Base64 encoded JSON representing array of tuple.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SearchFeaturesResponse": { "description": "Response message for FeaturestoreService.SearchFeatures.", "id": "GoogleCloudAiplatformV1SearchFeaturesResponse", @@ -37339,7 +37375,7 @@ "id": "LanguageLabsAidaTrustRecitationProtoSegmentResult", "properties": { "attributionDataset": { - "description": "The dataset the segment came from.", + "description": "The dataset the segment came from. Datasets change often as model evolves. Treat this field as informational only and avoid depending on it directly.", "enum": [ "DATASET_UNSPECIFIED", "WIKIPEDIA", @@ -38047,8 +38083,7 @@ "type": "string" }, "docAttribution": { - "$ref": "LanguageLabsAidaTrustRecitationProtoDocAttribution", - "description": "populated when recitation_action == CITE" + "$ref": "LanguageLabsAidaTrustRecitationProtoDocAttribution" }, "docOccurrences": { "description": "number of documents that contained this segment", @@ -38080,6 +38115,32 @@ ], "type": "string" }, + "sourceCategory": { + "description": "The category of the source dataset where the segment came from. This is more stable than Dataset.", + "enum": [ + "SOURCE_CATEGORY_UNSPECIFIED", + "SOURCE_CATEGORY_WIKIPEDIA", + "SOURCE_CATEGORY_WEBDOCS", + "SOURCE_CATEGORY_GITHUB", + "SOURCE_CATEGORY_ARXIV", + "SOURCE_CATEGORY_PRIVATE_BOOKS", + "SOURCE_CATEGORY_OTHERS", + "SOURCE_CATEGORY_PUBLIC_BOOKS", + "SOURCE_CATEGORY_GNEWS" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, "startIndex": { "description": "The segment boundary start (inclusive) and end index (exclusive) in the given text. In the streaming RPC, the indexes always start from the beginning of the first text in the entire stream. The indexes are measured in UTF-16 code units.", "format": "int32", @@ -38978,7 +39039,7 @@ "id": "LearningGenaiRecitationSegmentResult", "properties": { "attributionDataset": { - "description": "The dataset the segment came from.", + "description": "The dataset the segment came from. Datasets change often as model evolves. Treat this field as informational only and avoid depending on it directly.", "enum": [ "DATASET_UNSPECIFIED", "WIKIPEDIA", @@ -39686,8 +39747,7 @@ "type": "string" }, "docAttribution": { - "$ref": "LearningGenaiRecitationDocAttribution", - "description": "populated when recitation_action == CITE" + "$ref": "LearningGenaiRecitationDocAttribution" }, "docOccurrences": { "description": "number of documents that contained this segment", @@ -39719,6 +39779,32 @@ ], "type": "string" }, + "sourceCategory": { + "description": "The category of the source dataset where the segment came from. This is more stable than Dataset.", + "enum": [ + "SOURCE_CATEGORY_UNSPECIFIED", + "SOURCE_CATEGORY_WIKIPEDIA", + "SOURCE_CATEGORY_WEBDOCS", + "SOURCE_CATEGORY_GITHUB", + "SOURCE_CATEGORY_ARXIV", + "SOURCE_CATEGORY_PRIVATE_BOOKS", + "SOURCE_CATEGORY_OTHERS", + "SOURCE_CATEGORY_PUBLIC_BOOKS", + "SOURCE_CATEGORY_GNEWS" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, "startIndex": { "description": "The segment boundary start (inclusive) and end index (exclusive) in the given text. In the streaming RPC, the indexes always start from the beginning of the first text in the entire stream. The indexes are measured in UTF-16 code units.", "format": "int32", @@ -41309,7 +41395,7 @@ "type": "boolean" }, "totalDecodedTokenCount": { - "description": "NOT YET IMPLEMENTED. Aggregated number of total tokens decoded so far. For streaming, this is sum of all the tokens decoded so far i.e. aggregated count.", + "description": "Total tokens decoded so far per response_candidate. For streaming: Count of all the tokens decoded so far (aggregated count). For unary: Count of all the tokens decoded per response_candidate.", "format": "int32", "type": "integer" }, diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 733d2956afd..c1fffa1fd8d 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -10606,7 +10606,7 @@ type GoogleCloudAiplatformV1FindNeighborsResponseNeighbor struct { // returned only when "return_full_datapoint" is set to true. Otherwise, only // the "datapoint_id" and "crowding_tag" fields are populated. Datapoint *GoogleCloudAiplatformV1IndexDatapoint `json:"datapoint,omitempty"` - // Distance: The distance between the neighbor and the query vector. + // Distance: The distance between the neighbor and the dense embedding query. Distance float64 `json:"distance,omitempty"` // ForceSendFields is a list of field names (e.g. "Datapoint") to // unconditionally include in API requests. By default, fields with empty or @@ -11098,16 +11098,19 @@ func (s *GoogleCloudAiplatformV1GenieSource) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1GroundingMetadata: Metadata returned to client when // grounding is enabled. type GoogleCloudAiplatformV1GroundingMetadata struct { + // SearchEntryPoint: Optional. Google search entry for the following-up web + // searches. + SearchEntryPoint *GoogleCloudAiplatformV1SearchEntryPoint `json:"searchEntryPoint,omitempty"` // WebSearchQueries: Optional. Web search queries for the following-up web // search. WebSearchQueries []string `json:"webSearchQueries,omitempty"` - // ForceSendFields is a list of field names (e.g. "WebSearchQueries") to + // ForceSendFields is a list of field names (e.g. "SearchEntryPoint") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "WebSearchQueries") to include in + // NullFields is a list of field names (e.g. "SearchEntryPoint") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -11606,8 +11609,8 @@ type GoogleCloudAiplatformV1IndexDatapoint struct { CrowdingTag *GoogleCloudAiplatformV1IndexDatapointCrowdingTag `json:"crowdingTag,omitempty"` // DatapointId: Required. Unique identifier of the datapoint. DatapointId string `json:"datapointId,omitempty"` - // FeatureVector: Required. Feature embedding vector. An array of numbers with - // the length of [NearestNeighborSearchConfig.dimensions]. + // FeatureVector: Required. Feature embedding vector for dense index. An array + // of numbers with the length of [NearestNeighborSearchConfig.dimensions]. FeatureVector []float64 `json:"featureVector,omitempty"` // NumericRestricts: Optional. List of Restrict of the datapoint, used to // perform "restricted searches" where boolean rule are used to filter the @@ -11882,7 +11885,7 @@ func (s *GoogleCloudAiplatformV1IndexPrivateEndpoints) MarshalJSON() ([]byte, er type GoogleCloudAiplatformV1IndexStats struct { // ShardsCount: Output only. The number of shards in the Index. ShardsCount int64 `json:"shardsCount,omitempty"` - // VectorsCount: Output only. The number of vectors in the Index. + // VectorsCount: Output only. The number of dense vectors in the Index. VectorsCount int64 `json:"vectorsCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ShardsCount") to // unconditionally include in API requests. By default, fields with empty or @@ -13552,6 +13555,7 @@ type GoogleCloudAiplatformV1MachineSpec struct { // "TPU_V2" - TPU v2. // "TPU_V3" - TPU v3. // "TPU_V4_POD" - TPU v4. + // "TPU_V5_LITEPOD" - TPU v5. AcceleratorType string `json:"acceleratorType,omitempty"` // MachineType: Immutable. The type of the machine. See the list of machine // types supported for prediction @@ -16481,8 +16485,8 @@ type GoogleCloudAiplatformV1NearestNeighborSearchOperationMetadataRecordError st // "INVALID_CSV_SYNTAX" - Invalid csv format. // "INVALID_AVRO_SYNTAX" - Invalid avro format. // "INVALID_EMBEDDING_ID" - The embedding id is not valid. - // "EMBEDDING_SIZE_MISMATCH" - The size of the embedding vectors does not - // match with the specified dimension. + // "EMBEDDING_SIZE_MISMATCH" - The size of the dense embedding vectors does + // not match with the specified dimension. // "NAMESPACE_MISSING" - The `namespace` field is missing. // "PARSING_ERROR" - Generic catch-all error. Only used for validation // failure where the root cause cannot be easily retrieved programmatically. @@ -16493,6 +16497,7 @@ type GoogleCloudAiplatformV1NearestNeighborSearchOperationMetadataRecordError st // "INVALID_NUMERIC_VALUE" - Numeric restrict has invalid numeric value // specified. // "INVALID_ENCODING" - File is not in UTF_8 format. + // "INVALID_TOKEN_VALUE" - Token restrict value is invalid. ErrorType string `json:"errorType,omitempty"` // RawRecord: The original content of this record. RawRecord string `json:"rawRecord,omitempty"` @@ -18170,6 +18175,9 @@ type GoogleCloudAiplatformV1PublisherModelCallToAction struct { Deploy *GoogleCloudAiplatformV1PublisherModelCallToActionDeploy `json:"deploy,omitempty"` // DeployGke: Optional. Deploy PublisherModel to Google Kubernetes Engine. DeployGke *GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke `json:"deployGke,omitempty"` + // FineTune: Optional. Fine tune the PublisherModel with the third-party model + // tuning UI. + FineTune *GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences `json:"fineTune,omitempty"` // OpenEvaluationPipeline: Optional. Open evaluation pipeline of the // PublisherModel. OpenEvaluationPipeline *GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences `json:"openEvaluationPipeline,omitempty"` @@ -18227,6 +18235,9 @@ type GoogleCloudAiplatformV1PublisherModelCallToActionDeploy struct { // DedicatedResources: A description of resources that are dedicated to the // DeployedModel, and that need a higher degree of manual configuration. DedicatedResources *GoogleCloudAiplatformV1DedicatedResources `json:"dedicatedResources,omitempty"` + // DeployTaskName: Optional. The name of the deploy task (e.g., "text to image + // generation"). + DeployTaskName string `json:"deployTaskName,omitempty"` // LargeModelReference: Optional. Large model reference. When this is set, // model_artifact_spec is not needed. LargeModelReference *GoogleCloudAiplatformV1LargeModelReference `json:"largeModelReference,omitempty"` @@ -23265,6 +23276,9 @@ type GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata struct { PromptType string `json:"promptType,omitempty"` // StopSequences: Customized stop sequences. StopSequences []string `json:"stopSequences,omitempty"` + // SystemInstructionGcsUri: The Google Cloud Storage URI that stores the system + // instruction, starting with gs://. + SystemInstructionGcsUri string `json:"systemInstructionGcsUri,omitempty"` // Temperature: Temperature value used for sampling set when the dataset was // saved. This value is used to tune the degree of randomness. Temperature float64 `json:"temperature,omitempty"` @@ -26336,6 +26350,31 @@ func (s *GoogleCloudAiplatformV1SearchDataItemsResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1SearchEntryPoint: Google search entry point. +type GoogleCloudAiplatformV1SearchEntryPoint struct { + // RenderedContent: Optional. Web content snippet that can be embedded in a web + // page or an app webview. + RenderedContent string `json:"renderedContent,omitempty"` + // SdkBlob: Optional. Base64 encoded JSON representing array of tuple. + SdkBlob string `json:"sdkBlob,omitempty"` + // ForceSendFields is a list of field names (e.g. "RenderedContent") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RenderedContent") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1SearchEntryPoint) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SearchEntryPoint + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1SearchFeaturesResponse: Response message for // FeaturestoreService.SearchFeatures. type GoogleCloudAiplatformV1SearchFeaturesResponse struct { @@ -31547,7 +31586,9 @@ func (s *LanguageLabsAidaTrustRecitationProtoRecitationResult) MarshalJSON() ([] // LanguageLabsAidaTrustRecitationProtoSegmentResult: The recitation result for // each segment in a given input. type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { - // AttributionDataset: The dataset the segment came from. + // AttributionDataset: The dataset the segment came from. Datasets change often + // as model evolves. Treat this field as informational only and avoid depending + // on it directly. // // Possible values: // "DATASET_UNSPECIFIED" @@ -31998,9 +32039,8 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains information // from doc_attribution which could be shown by clients - DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` - // DocAttribution: populated when recitation_action == CITE - DocAttribution *LanguageLabsAidaTrustRecitationProtoDocAttribution `json:"docAttribution,omitempty"` + DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` + DocAttribution *LanguageLabsAidaTrustRecitationProtoDocAttribution `json:"docAttribution,omitempty"` // DocOccurrences: number of documents that contained this segment DocOccurrences int64 `json:"docOccurrences,omitempty"` EndIndex int64 `json:"endIndex,omitempty"` @@ -32016,6 +32056,20 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and is // exempted from overall results SegmentRecitationAction string `json:"segmentRecitationAction,omitempty"` + // SourceCategory: The category of the source dataset where the segment came + // from. This is more stable than Dataset. + // + // Possible values: + // "SOURCE_CATEGORY_UNSPECIFIED" + // "SOURCE_CATEGORY_WIKIPEDIA" + // "SOURCE_CATEGORY_WEBDOCS" + // "SOURCE_CATEGORY_GITHUB" + // "SOURCE_CATEGORY_ARXIV" + // "SOURCE_CATEGORY_PRIVATE_BOOKS" + // "SOURCE_CATEGORY_OTHERS" + // "SOURCE_CATEGORY_PUBLIC_BOOKS" + // "SOURCE_CATEGORY_GNEWS" + SourceCategory string `json:"sourceCategory,omitempty"` // StartIndex: The segment boundary start (inclusive) and end index (exclusive) // in the given text. In the streaming RPC, the indexes always start from the // beginning of the first text in the entire stream. The indexes are measured @@ -32659,7 +32713,9 @@ func (s *LearningGenaiRecitationRecitationResult) MarshalJSON() ([]byte, error) // LearningGenaiRecitationSegmentResult: The recitation result for each segment // in a given input. type LearningGenaiRecitationSegmentResult struct { - // AttributionDataset: The dataset the segment came from. + // AttributionDataset: The dataset the segment came from. Datasets change often + // as model evolves. Treat this field as informational only and avoid depending + // on it directly. // // Possible values: // "DATASET_UNSPECIFIED" @@ -33110,9 +33166,8 @@ type LearningGenaiRecitationSegmentResult struct { AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains information // from doc_attribution which could be shown by clients - DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` - // DocAttribution: populated when recitation_action == CITE - DocAttribution *LearningGenaiRecitationDocAttribution `json:"docAttribution,omitempty"` + DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` + DocAttribution *LearningGenaiRecitationDocAttribution `json:"docAttribution,omitempty"` // DocOccurrences: number of documents that contained this segment DocOccurrences int64 `json:"docOccurrences,omitempty"` EndIndex int64 `json:"endIndex,omitempty"` @@ -33128,6 +33183,20 @@ type LearningGenaiRecitationSegmentResult struct { // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and is // exempted from overall results SegmentRecitationAction string `json:"segmentRecitationAction,omitempty"` + // SourceCategory: The category of the source dataset where the segment came + // from. This is more stable than Dataset. + // + // Possible values: + // "SOURCE_CATEGORY_UNSPECIFIED" + // "SOURCE_CATEGORY_WIKIPEDIA" + // "SOURCE_CATEGORY_WEBDOCS" + // "SOURCE_CATEGORY_GITHUB" + // "SOURCE_CATEGORY_ARXIV" + // "SOURCE_CATEGORY_PRIVATE_BOOKS" + // "SOURCE_CATEGORY_OTHERS" + // "SOURCE_CATEGORY_PUBLIC_BOOKS" + // "SOURCE_CATEGORY_GNEWS" + SourceCategory string `json:"sourceCategory,omitempty"` // StartIndex: The segment boundary start (inclusive) and end index (exclusive) // in the given text. In the streaming RPC, the indexes always start from the // beginning of the first text in the entire stream. The indexes are measured @@ -34964,9 +35033,9 @@ type LearningServingLlmMessageMetadata struct { // StreamTerminated: Whether the response is terminated during streaming // return. Only used for streaming requests. StreamTerminated bool `json:"streamTerminated,omitempty"` - // TotalDecodedTokenCount: NOT YET IMPLEMENTED. Aggregated number of total - // tokens decoded so far. For streaming, this is sum of all the tokens decoded - // so far i.e. aggregated count. + // TotalDecodedTokenCount: Total tokens decoded so far per response_candidate. + // For streaming: Count of all the tokens decoded so far (aggregated count). + // For unary: Count of all the tokens decoded per response_candidate. TotalDecodedTokenCount int64 `json:"totalDecodedTokenCount,omitempty"` // TranslatedUserPrompts: Translated user-prompt used for RAI post processing. // This is for internal processing only. We will translate in pre-processor and @@ -47467,7 +47536,7 @@ type ProjectsLocationsFeatureGroupsCreateCall struct { // Create: Creates a new FeatureGroup in a given project and location. // // - parent: The resource name of the Location to create FeatureGroups. Format: -// `projects/{project}/locations/{location}'`. +// `projects/{project}/locations/{location}`. func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googlecloudaiplatformv1featuregroup *GoogleCloudAiplatformV1FeatureGroup) *ProjectsLocationsFeatureGroupsCreateCall { c := &ProjectsLocationsFeatureGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 573c9b13c0d..4d6f80a9971 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -460,6 +460,316 @@ } }, "resources": { + "agents": { + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.agents.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.agents.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.agents.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.agents.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.agents.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "apps": { + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.apps.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.apps.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.apps.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.apps.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/apps/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.apps.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, "batchPredictionJobs": { "methods": { "cancel": { @@ -4622,161 +4932,6 @@ } }, "resources": { - "deployments": { - "resources": { - "operations": { - "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.extensions.deployments.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}:cancel", - "response": { - "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.extensions.deployments.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.extensions.deployments.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.extensions.deployments.operations.list", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:wait", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.extensions.deployments.operations.wait", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to wait on.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - }, - "timeout": { - "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - "format": "google-duration", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+name}:wait", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - }, "operations": { "methods": { "cancel": { @@ -4947,7 +5102,7 @@ "type": "string" }, "parent": { - "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`", + "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -18971,7 +19126,7 @@ } } }, - "revision": "20240424", + "revision": "20240429", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -26407,7 +26562,7 @@ "description": "The datapoint of the neighbor. Note that full datapoints are returned only when \"return_full_datapoint\" is set to true. Otherwise, only the \"datapoint_id\" and \"crowding_tag\" fields are populated." }, "distance": { - "description": "The distance between the neighbor and the query vector.", + "description": "The distance between the neighbor and the dense embedding query.", "format": "double", "type": "number" } @@ -27007,6 +27162,10 @@ }, "type": "array" }, + "searchEntryPoint": { + "$ref": "GoogleCloudAiplatformV1beta1SearchEntryPoint", + "description": "Optional. Google search entry for the following-up web searches." + }, "webSearchQueries": { "description": "Optional. Web search queries for the following-up web search.", "items": { @@ -27465,7 +27624,7 @@ "type": "string" }, "featureVector": { - "description": "Required. Feature embedding vector. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].", + "description": "Required. Feature embedding vector for dense index. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].", "items": { "format": "float", "type": "number" @@ -27686,7 +27845,7 @@ "type": "integer" }, "vectorsCount": { - "description": "Output only. The number of vectors in the Index.", + "description": "Output only. The number of dense vectors in the Index.", "format": "int64", "readOnly": true, "type": "string" @@ -30889,10 +31048,6 @@ }, "type": "array" }, - "instanceType": { - "description": "The prediction instance type that the Model accepts when serving. Supported values are: * `object`: Each input is a JSON object format. * `array`: Each input is a JSON array format.", - "type": "string" - }, "predictionFields": { "description": "Prediction output names of the model. The requirements are the same as the feature_fields. For AutoML Tables, the prediction output name presented in schema will be: `predicted_{target_column}`, the `target_column` is the one you specified when you train the model. For Prediction output drift analysis: * AutoML Classification, the distribution of the argmax label will be analyzed. * AutoML Regression, the distribution of the value will be analyzed.", "items": { @@ -31727,7 +31882,8 @@ "OP_IN_DATAPOINT", "MULTIPLE_VALUES", "INVALID_NUMERIC_VALUE", - "INVALID_ENCODING" + "INVALID_ENCODING", + "INVALID_TOKEN_VALUE" ], "enumDescriptions": [ "Default, shall not be used.", @@ -31736,14 +31892,15 @@ "Invalid csv format.", "Invalid avro format.", "The embedding id is not valid.", - "The size of the embedding vectors does not match with the specified dimension.", + "The size of the dense embedding vectors does not match with the specified dimension.", "The `namespace` field is missing.", "Generic catch-all error. Only used for validation failure where the root cause cannot be easily retrieved programmatically.", "There are multiple restricts with the same `namespace` value.", "Numeric restrict has operator specified in datapoint.", "Numeric restrict has multiple values specified.", "Numeric restrict has invalid numeric value specified.", - "File is not in UTF_8 format." + "File is not in UTF_8 format.", + "Token restrict value is invalid." ], "type": "string" }, @@ -31874,10 +32031,18 @@ "readOnly": true, "type": "string" }, + "customEnvironmentSpec": { + "$ref": "GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec", + "description": "The custom compute configuration for an execution job." + }, "dataformRepositorySource": { "$ref": "GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource", "description": "The Dataform Repository pointing to a single file notebook repository." }, + "directNotebookSource": { + "$ref": "GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource", + "description": "The contents of an input notebook file." + }, "displayName": { "description": "The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.", "type": "string" @@ -31964,6 +32129,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec": { + "description": "Compute configuration to use for an execution job.", + "id": "GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec", + "properties": { + "machineSpec": { + "$ref": "GoogleCloudAiplatformV1beta1MachineSpec", + "description": "The specification of a single machine for the execution job." + }, + "networkSpec": { + "$ref": "GoogleCloudAiplatformV1beta1NetworkSpec", + "description": "The network configuration to use for the execution job." + }, + "persistentDiskSpec": { + "$ref": "GoogleCloudAiplatformV1beta1PersistentDiskSpec", + "description": "The specification of a persistent disk to attach for the execution job." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource": { "description": "The Dataform Repository containing the input notebook.", "id": "GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource", @@ -31979,6 +32163,18 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource": { + "description": "The content of the input notebook in ipynb format.", + "id": "GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource", + "properties": { + "content": { + "description": "The base64-encoded contents of the input notebook file.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource": { "description": "The Cloud Storage uri for the input notebook.", "id": "GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource", @@ -33471,6 +33667,10 @@ "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke", "description": "Optional. Deploy PublisherModel to Google Kubernetes Engine." }, + "fineTune": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences", + "description": "Optional. Fine tune the PublisherModel with the third-party model tuning UI." + }, "openEvaluationPipeline": { "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open evaluation pipeline of the PublisherModel." @@ -33534,6 +33734,10 @@ "$ref": "GoogleCloudAiplatformV1beta1DedicatedResources", "description": "A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration." }, + "deployTaskName": { + "description": "Optional. The name of the deploy task (e.g., \"text to image generation\").", + "type": "string" + }, "largeModelReference": { "$ref": "GoogleCloudAiplatformV1beta1LargeModelReference", "description": "Optional. Large model reference. When this is set, model_artifact_spec is not needed." @@ -39308,6 +39512,22 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SearchEntryPoint": { + "description": "Google search entry point.", + "id": "GoogleCloudAiplatformV1beta1SearchEntryPoint", + "properties": { + "renderedContent": { + "description": "Optional. Web content snippet that can be embedded in a web page or an app webview.", + "type": "string" + }, + "sdkBlob": { + "description": "Optional. Base64 encoded JSON representing array of tuple.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1SearchFeaturesResponse": { "description": "Response message for FeaturestoreService.SearchFeatures.", "id": "GoogleCloudAiplatformV1beta1SearchFeaturesResponse", @@ -43796,7 +44016,7 @@ "id": "LanguageLabsAidaTrustRecitationProtoSegmentResult", "properties": { "attributionDataset": { - "description": "The dataset the segment came from.", + "description": "The dataset the segment came from. Datasets change often as model evolves. Treat this field as informational only and avoid depending on it directly.", "enum": [ "DATASET_UNSPECIFIED", "WIKIPEDIA", @@ -44504,8 +44724,7 @@ "type": "string" }, "docAttribution": { - "$ref": "LanguageLabsAidaTrustRecitationProtoDocAttribution", - "description": "populated when recitation_action == CITE" + "$ref": "LanguageLabsAidaTrustRecitationProtoDocAttribution" }, "docOccurrences": { "description": "number of documents that contained this segment", @@ -44537,6 +44756,32 @@ ], "type": "string" }, + "sourceCategory": { + "description": "The category of the source dataset where the segment came from. This is more stable than Dataset.", + "enum": [ + "SOURCE_CATEGORY_UNSPECIFIED", + "SOURCE_CATEGORY_WIKIPEDIA", + "SOURCE_CATEGORY_WEBDOCS", + "SOURCE_CATEGORY_GITHUB", + "SOURCE_CATEGORY_ARXIV", + "SOURCE_CATEGORY_PRIVATE_BOOKS", + "SOURCE_CATEGORY_OTHERS", + "SOURCE_CATEGORY_PUBLIC_BOOKS", + "SOURCE_CATEGORY_GNEWS" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, "startIndex": { "description": "The segment boundary start (inclusive) and end index (exclusive) in the given text. In the streaming RPC, the indexes always start from the beginning of the first text in the entire stream. The indexes are measured in UTF-16 code units.", "format": "int32", @@ -45435,7 +45680,7 @@ "id": "LearningGenaiRecitationSegmentResult", "properties": { "attributionDataset": { - "description": "The dataset the segment came from.", + "description": "The dataset the segment came from. Datasets change often as model evolves. Treat this field as informational only and avoid depending on it directly.", "enum": [ "DATASET_UNSPECIFIED", "WIKIPEDIA", @@ -46143,8 +46388,7 @@ "type": "string" }, "docAttribution": { - "$ref": "LearningGenaiRecitationDocAttribution", - "description": "populated when recitation_action == CITE" + "$ref": "LearningGenaiRecitationDocAttribution" }, "docOccurrences": { "description": "number of documents that contained this segment", @@ -46176,6 +46420,32 @@ ], "type": "string" }, + "sourceCategory": { + "description": "The category of the source dataset where the segment came from. This is more stable than Dataset.", + "enum": [ + "SOURCE_CATEGORY_UNSPECIFIED", + "SOURCE_CATEGORY_WIKIPEDIA", + "SOURCE_CATEGORY_WEBDOCS", + "SOURCE_CATEGORY_GITHUB", + "SOURCE_CATEGORY_ARXIV", + "SOURCE_CATEGORY_PRIVATE_BOOKS", + "SOURCE_CATEGORY_OTHERS", + "SOURCE_CATEGORY_PUBLIC_BOOKS", + "SOURCE_CATEGORY_GNEWS" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, "startIndex": { "description": "The segment boundary start (inclusive) and end index (exclusive) in the given text. In the streaming RPC, the indexes always start from the beginning of the first text in the entire stream. The indexes are measured in UTF-16 code units.", "format": "int32", @@ -47766,7 +48036,7 @@ "type": "boolean" }, "totalDecodedTokenCount": { - "description": "NOT YET IMPLEMENTED. Aggregated number of total tokens decoded so far. For streaming, this is sum of all the tokens decoded so far i.e. aggregated count.", + "description": "Total tokens decoded so far per response_candidate. For streaming: Count of all the tokens decoded so far (aggregated count). For unary: Count of all the tokens decoded per response_candidate.", "format": "int32", "type": "integer" }, diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index d839ea5eca2..dfcffa5d69d 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -182,6 +182,8 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.Agents = NewProjectsLocationsAgentsService(s) + rs.Apps = NewProjectsLocationsAppsService(s) rs.BatchPredictionJobs = NewProjectsLocationsBatchPredictionJobsService(s) rs.CustomJobs = NewProjectsLocationsCustomJobsService(s) rs.DataLabelingJobs = NewProjectsLocationsDataLabelingJobsService(s) @@ -226,6 +228,10 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + Agents *ProjectsLocationsAgentsService + + Apps *ProjectsLocationsAppsService + BatchPredictionJobs *ProjectsLocationsBatchPredictionJobsService CustomJobs *ProjectsLocationsCustomJobsService @@ -303,6 +309,48 @@ type ProjectsLocationsService struct { TrainingPipelines *ProjectsLocationsTrainingPipelinesService } +func NewProjectsLocationsAgentsService(s *Service) *ProjectsLocationsAgentsService { + rs := &ProjectsLocationsAgentsService{s: s} + rs.Operations = NewProjectsLocationsAgentsOperationsService(s) + return rs +} + +type ProjectsLocationsAgentsService struct { + s *Service + + Operations *ProjectsLocationsAgentsOperationsService +} + +func NewProjectsLocationsAgentsOperationsService(s *Service) *ProjectsLocationsAgentsOperationsService { + rs := &ProjectsLocationsAgentsOperationsService{s: s} + return rs +} + +type ProjectsLocationsAgentsOperationsService struct { + s *Service +} + +func NewProjectsLocationsAppsService(s *Service) *ProjectsLocationsAppsService { + rs := &ProjectsLocationsAppsService{s: s} + rs.Operations = NewProjectsLocationsAppsOperationsService(s) + return rs +} + +type ProjectsLocationsAppsService struct { + s *Service + + Operations *ProjectsLocationsAppsOperationsService +} + +func NewProjectsLocationsAppsOperationsService(s *Service) *ProjectsLocationsAppsOperationsService { + rs := &ProjectsLocationsAppsOperationsService{s: s} + return rs +} + +type ProjectsLocationsAppsOperationsService struct { + s *Service +} + func NewProjectsLocationsBatchPredictionJobsService(s *Service) *ProjectsLocationsBatchPredictionJobsService { rs := &ProjectsLocationsBatchPredictionJobsService{s: s} return rs @@ -611,7 +659,6 @@ type ProjectsLocationsExtensionControllersOperationsService struct { func NewProjectsLocationsExtensionsService(s *Service) *ProjectsLocationsExtensionsService { rs := &ProjectsLocationsExtensionsService{s: s} - rs.Deployments = NewProjectsLocationsExtensionsDeploymentsService(s) rs.Operations = NewProjectsLocationsExtensionsOperationsService(s) return rs } @@ -619,32 +666,9 @@ func NewProjectsLocationsExtensionsService(s *Service) *ProjectsLocationsExtensi type ProjectsLocationsExtensionsService struct { s *Service - Deployments *ProjectsLocationsExtensionsDeploymentsService - Operations *ProjectsLocationsExtensionsOperationsService } -func NewProjectsLocationsExtensionsDeploymentsService(s *Service) *ProjectsLocationsExtensionsDeploymentsService { - rs := &ProjectsLocationsExtensionsDeploymentsService{s: s} - rs.Operations = NewProjectsLocationsExtensionsDeploymentsOperationsService(s) - return rs -} - -type ProjectsLocationsExtensionsDeploymentsService struct { - s *Service - - Operations *ProjectsLocationsExtensionsDeploymentsOperationsService -} - -func NewProjectsLocationsExtensionsDeploymentsOperationsService(s *Service) *ProjectsLocationsExtensionsDeploymentsOperationsService { - rs := &ProjectsLocationsExtensionsDeploymentsOperationsService{s: s} - return rs -} - -type ProjectsLocationsExtensionsDeploymentsOperationsService struct { - s *Service -} - func NewProjectsLocationsExtensionsOperationsService(s *Service) *ProjectsLocationsExtensionsOperationsService { rs := &ProjectsLocationsExtensionsOperationsService{s: s} return rs @@ -12152,7 +12176,7 @@ type GoogleCloudAiplatformV1beta1FindNeighborsResponseNeighbor struct { // returned only when "return_full_datapoint" is set to true. Otherwise, only // the "datapoint_id" and "crowding_tag" fields are populated. Datapoint *GoogleCloudAiplatformV1beta1IndexDatapoint `json:"datapoint,omitempty"` - // Distance: The distance between the neighbor and the query vector. + // Distance: The distance between the neighbor and the dense embedding query. Distance float64 `json:"distance,omitempty"` // ForceSendFields is a list of field names (e.g. "Datapoint") to // unconditionally include in API requests. By default, fields with empty or @@ -13093,6 +13117,9 @@ func (s *GoogleCloudAiplatformV1beta1GroundednessSpec) MarshalJSON() ([]byte, er type GoogleCloudAiplatformV1beta1GroundingMetadata struct { // RetrievalQueries: Optional. Queries executed by the retrieval tools. RetrievalQueries []string `json:"retrievalQueries,omitempty"` + // SearchEntryPoint: Optional. Google search entry for the following-up web + // searches. + SearchEntryPoint *GoogleCloudAiplatformV1beta1SearchEntryPoint `json:"searchEntryPoint,omitempty"` // WebSearchQueries: Optional. Web search queries for the following-up web // search. WebSearchQueries []string `json:"webSearchQueries,omitempty"` @@ -13624,8 +13651,8 @@ type GoogleCloudAiplatformV1beta1IndexDatapoint struct { CrowdingTag *GoogleCloudAiplatformV1beta1IndexDatapointCrowdingTag `json:"crowdingTag,omitempty"` // DatapointId: Required. Unique identifier of the datapoint. DatapointId string `json:"datapointId,omitempty"` - // FeatureVector: Required. Feature embedding vector. An array of numbers with - // the length of [NearestNeighborSearchConfig.dimensions]. + // FeatureVector: Required. Feature embedding vector for dense index. An array + // of numbers with the length of [NearestNeighborSearchConfig.dimensions]. FeatureVector []float64 `json:"featureVector,omitempty"` // NumericRestricts: Optional. List of Restrict of the datapoint, used to // perform "restricted searches" where boolean rule are used to filter the @@ -13901,7 +13928,7 @@ func (s *GoogleCloudAiplatformV1beta1IndexPrivateEndpoints) MarshalJSON() ([]byt type GoogleCloudAiplatformV1beta1IndexStats struct { // ShardsCount: Output only. The number of shards in the Index. ShardsCount int64 `json:"shardsCount,omitempty"` - // VectorsCount: Output only. The number of vectors in the Index. + // VectorsCount: Output only. The number of dense vectors in the Index. VectorsCount int64 `json:"vectorsCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "ShardsCount") to // unconditionally include in API requests. By default, fields with empty or @@ -18688,10 +18715,6 @@ type GoogleCloudAiplatformV1beta1ModelMonitoringSchema struct { FeatureFields []*GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema `json:"featureFields,omitempty"` // GroundTruthFields: Target /ground truth names of the model. GroundTruthFields []*GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema `json:"groundTruthFields,omitempty"` - // InstanceType: The prediction instance type that the Model accepts when - // serving. Supported values are: * `object`: Each input is a JSON object - // format. * `array`: Each input is a JSON array format. - InstanceType string `json:"instanceType,omitempty"` // PredictionFields: Prediction output names of the model. The requirements are // the same as the feature_fields. For AutoML Tables, the prediction output // name presented in schema will be: `predicted_{target_column}`, the @@ -19828,8 +19851,8 @@ type GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadataRecordErr // "INVALID_CSV_SYNTAX" - Invalid csv format. // "INVALID_AVRO_SYNTAX" - Invalid avro format. // "INVALID_EMBEDDING_ID" - The embedding id is not valid. - // "EMBEDDING_SIZE_MISMATCH" - The size of the embedding vectors does not - // match with the specified dimension. + // "EMBEDDING_SIZE_MISMATCH" - The size of the dense embedding vectors does + // not match with the specified dimension. // "NAMESPACE_MISSING" - The `namespace` field is missing. // "PARSING_ERROR" - Generic catch-all error. Only used for validation // failure where the root cause cannot be easily retrieved programmatically. @@ -19840,6 +19863,7 @@ type GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadataRecordErr // "INVALID_NUMERIC_VALUE" - Numeric restrict has invalid numeric value // specified. // "INVALID_ENCODING" - File is not in UTF_8 format. + // "INVALID_TOKEN_VALUE" - Token restrict value is invalid. ErrorType string `json:"errorType,omitempty"` // RawRecord: The original content of this record. RawRecord string `json:"rawRecord,omitempty"` @@ -20069,9 +20093,14 @@ type GoogleCloudAiplatformV1beta1NotebookExecutionJob struct { // CreateTime: Output only. Timestamp when this NotebookExecutionJob was // created. CreateTime string `json:"createTime,omitempty"` + // CustomEnvironmentSpec: The custom compute configuration for an execution + // job. + CustomEnvironmentSpec *GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec `json:"customEnvironmentSpec,omitempty"` // DataformRepositorySource: The Dataform Repository pointing to a single file // notebook repository. DataformRepositorySource *GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource `json:"dataformRepositorySource,omitempty"` + // DirectNotebookSource: The contents of an input notebook file. + DirectNotebookSource *GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource `json:"directNotebookSource,omitempty"` // DisplayName: The display name of the NotebookExecutionJob. The name can be // up to 128 characters long and can consist of any UTF-8 characters. DisplayName string `json:"displayName,omitempty"` @@ -20149,6 +20178,34 @@ func (s *GoogleCloudAiplatformV1beta1NotebookExecutionJob) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec: +// Compute configuration to use for an execution job. +type GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec struct { + // MachineSpec: The specification of a single machine for the execution job. + MachineSpec *GoogleCloudAiplatformV1beta1MachineSpec `json:"machineSpec,omitempty"` + // NetworkSpec: The network configuration to use for the execution job. + NetworkSpec *GoogleCloudAiplatformV1beta1NetworkSpec `json:"networkSpec,omitempty"` + // PersistentDiskSpec: The specification of a persistent disk to attach for the + // execution job. + PersistentDiskSpec *GoogleCloudAiplatformV1beta1PersistentDiskSpec `json:"persistentDiskSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "MachineSpec") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MachineSpec") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource: // The Dataform Repository containing the input notebook. type GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource struct { @@ -20177,6 +20234,29 @@ func (s *GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySourc return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource: The +// content of the input notebook in ipynb format. +type GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource struct { + // Content: The base64-encoded contents of the input notebook file. + Content string `json:"content,omitempty"` + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource: The Cloud // Storage uri for the input notebook. type GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource struct { @@ -21928,6 +22008,9 @@ type GoogleCloudAiplatformV1beta1PublisherModelCallToAction struct { Deploy *GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy `json:"deploy,omitempty"` // DeployGke: Optional. Deploy PublisherModel to Google Kubernetes Engine. DeployGke *GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke `json:"deployGke,omitempty"` + // FineTune: Optional. Fine tune the PublisherModel with the third-party model + // tuning UI. + FineTune *GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences `json:"fineTune,omitempty"` // OpenEvaluationPipeline: Optional. Open evaluation pipeline of the // PublisherModel. OpenEvaluationPipeline *GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences `json:"openEvaluationPipeline,omitempty"` @@ -21985,6 +22068,9 @@ type GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy struct { // DedicatedResources: A description of resources that are dedicated to the // DeployedModel, and that need a higher degree of manual configuration. DedicatedResources *GoogleCloudAiplatformV1beta1DedicatedResources `json:"dedicatedResources,omitempty"` + // DeployTaskName: Optional. The name of the deploy task (e.g., "text to image + // generation"). + DeployTaskName string `json:"deployTaskName,omitempty"` // LargeModelReference: Optional. Large model reference. When this is set, // model_artifact_spec is not needed. LargeModelReference *GoogleCloudAiplatformV1beta1LargeModelReference `json:"largeModelReference,omitempty"` @@ -31236,6 +31322,31 @@ func (s *GoogleCloudAiplatformV1beta1SearchDataItemsResponse) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SearchEntryPoint: Google search entry point. +type GoogleCloudAiplatformV1beta1SearchEntryPoint struct { + // RenderedContent: Optional. Web content snippet that can be embedded in a web + // page or an app webview. + RenderedContent string `json:"renderedContent,omitempty"` + // SdkBlob: Optional. Base64 encoded JSON representing array of tuple. + SdkBlob string `json:"sdkBlob,omitempty"` + // ForceSendFields is a list of field names (e.g. "RenderedContent") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "RenderedContent") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1SearchEntryPoint) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SearchEntryPoint + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1SearchFeaturesResponse: Response message for // FeaturestoreService.SearchFeatures. type GoogleCloudAiplatformV1beta1SearchFeaturesResponse struct { @@ -37507,7 +37618,9 @@ func (s *LanguageLabsAidaTrustRecitationProtoRecitationResult) MarshalJSON() ([] // LanguageLabsAidaTrustRecitationProtoSegmentResult: The recitation result for // each segment in a given input. type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { - // AttributionDataset: The dataset the segment came from. + // AttributionDataset: The dataset the segment came from. Datasets change often + // as model evolves. Treat this field as informational only and avoid depending + // on it directly. // // Possible values: // "DATASET_UNSPECIFIED" @@ -37958,9 +38071,8 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains information // from doc_attribution which could be shown by clients - DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` - // DocAttribution: populated when recitation_action == CITE - DocAttribution *LanguageLabsAidaTrustRecitationProtoDocAttribution `json:"docAttribution,omitempty"` + DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` + DocAttribution *LanguageLabsAidaTrustRecitationProtoDocAttribution `json:"docAttribution,omitempty"` // DocOccurrences: number of documents that contained this segment DocOccurrences int64 `json:"docOccurrences,omitempty"` EndIndex int64 `json:"endIndex,omitempty"` @@ -37976,6 +38088,20 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and is // exempted from overall results SegmentRecitationAction string `json:"segmentRecitationAction,omitempty"` + // SourceCategory: The category of the source dataset where the segment came + // from. This is more stable than Dataset. + // + // Possible values: + // "SOURCE_CATEGORY_UNSPECIFIED" + // "SOURCE_CATEGORY_WIKIPEDIA" + // "SOURCE_CATEGORY_WEBDOCS" + // "SOURCE_CATEGORY_GITHUB" + // "SOURCE_CATEGORY_ARXIV" + // "SOURCE_CATEGORY_PRIVATE_BOOKS" + // "SOURCE_CATEGORY_OTHERS" + // "SOURCE_CATEGORY_PUBLIC_BOOKS" + // "SOURCE_CATEGORY_GNEWS" + SourceCategory string `json:"sourceCategory,omitempty"` // StartIndex: The segment boundary start (inclusive) and end index (exclusive) // in the given text. In the streaming RPC, the indexes always start from the // beginning of the first text in the entire stream. The indexes are measured @@ -38619,7 +38745,9 @@ func (s *LearningGenaiRecitationRecitationResult) MarshalJSON() ([]byte, error) // LearningGenaiRecitationSegmentResult: The recitation result for each segment // in a given input. type LearningGenaiRecitationSegmentResult struct { - // AttributionDataset: The dataset the segment came from. + // AttributionDataset: The dataset the segment came from. Datasets change often + // as model evolves. Treat this field as informational only and avoid depending + // on it directly. // // Possible values: // "DATASET_UNSPECIFIED" @@ -39070,9 +39198,8 @@ type LearningGenaiRecitationSegmentResult struct { AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains information // from doc_attribution which could be shown by clients - DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` - // DocAttribution: populated when recitation_action == CITE - DocAttribution *LearningGenaiRecitationDocAttribution `json:"docAttribution,omitempty"` + DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` + DocAttribution *LearningGenaiRecitationDocAttribution `json:"docAttribution,omitempty"` // DocOccurrences: number of documents that contained this segment DocOccurrences int64 `json:"docOccurrences,omitempty"` EndIndex int64 `json:"endIndex,omitempty"` @@ -39088,6 +39215,20 @@ type LearningGenaiRecitationSegmentResult struct { // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and is // exempted from overall results SegmentRecitationAction string `json:"segmentRecitationAction,omitempty"` + // SourceCategory: The category of the source dataset where the segment came + // from. This is more stable than Dataset. + // + // Possible values: + // "SOURCE_CATEGORY_UNSPECIFIED" + // "SOURCE_CATEGORY_WIKIPEDIA" + // "SOURCE_CATEGORY_WEBDOCS" + // "SOURCE_CATEGORY_GITHUB" + // "SOURCE_CATEGORY_ARXIV" + // "SOURCE_CATEGORY_PRIVATE_BOOKS" + // "SOURCE_CATEGORY_OTHERS" + // "SOURCE_CATEGORY_PUBLIC_BOOKS" + // "SOURCE_CATEGORY_GNEWS" + SourceCategory string `json:"sourceCategory,omitempty"` // StartIndex: The segment boundary start (inclusive) and end index (exclusive) // in the given text. In the streaming RPC, the indexes always start from the // beginning of the first text in the entire stream. The indexes are measured @@ -40924,9 +41065,9 @@ type LearningServingLlmMessageMetadata struct { // StreamTerminated: Whether the response is terminated during streaming // return. Only used for streaming requests. StreamTerminated bool `json:"streamTerminated,omitempty"` - // TotalDecodedTokenCount: NOT YET IMPLEMENTED. Aggregated number of total - // tokens decoded so far. For streaming, this is sum of all the tokens decoded - // so far i.e. aggregated count. + // TotalDecodedTokenCount: Total tokens decoded so far per response_candidate. + // For streaming: Count of all the tokens decoded so far (aggregated count). + // For unary: Count of all the tokens decoded per response_candidate. TotalDecodedTokenCount int64 `json:"totalDecodedTokenCount,omitempty"` // TranslatedUserPrompts: Translated user-prompt used for RAI post processing. // This is for internal processing only. We will translate in pre-processor and @@ -41739,6 +41880,1158 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleClo } } +type ProjectsLocationsAgentsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsAgentsOperationsService) Cancel(name string) *ProjectsLocationsAgentsOperationsCancelCall { + c := &ProjectsLocationsAgentsOperationsCancelCall{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 *ProjectsLocationsAgentsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsAgentsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsOperationsCancelCall) 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}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.agents.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAgentsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAgentsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsAgentsOperationsService) Delete(name string) *ProjectsLocationsAgentsOperationsDeleteCall { + c := &ProjectsLocationsAgentsOperationsDeleteCall{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 *ProjectsLocationsAgentsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsOperationsDeleteCall) 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.agents.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAgentsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAgentsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsAgentsOperationsService) Get(name string) *ProjectsLocationsAgentsOperationsGetCall { + c := &ProjectsLocationsAgentsOperationsGetCall{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 *ProjectsLocationsAgentsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsOperationsGetCall { + 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 *ProjectsLocationsAgentsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsOperationsGetCall) 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.agents.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAgentsOperationsGetCall) 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 ProjectsLocationsAgentsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsAgentsOperationsService) List(name string) *ProjectsLocationsAgentsOperationsListCall { + c := &ProjectsLocationsAgentsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsAgentsOperationsListCall) Filter(filter string) *ProjectsLocationsAgentsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsAgentsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsAgentsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAgentsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsOperationsListCall { + 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 *ProjectsLocationsAgentsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.agents.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAgentsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAgentsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAgentsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsAgentsOperationsService) Wait(name string) *ProjectsLocationsAgentsOperationsWaitCall { + c := &ProjectsLocationsAgentsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *ProjectsLocationsAgentsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsAgentsOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAgentsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsAgentsOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.agents.operations.wait" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAgentsOperationsWaitCall) 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 ProjectsLocationsAppsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsAppsOperationsService) Cancel(name string) *ProjectsLocationsAppsOperationsCancelCall { + c := &ProjectsLocationsAppsOperationsCancelCall{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 *ProjectsLocationsAppsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAppsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsAppsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAppsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppsOperationsCancelCall) 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}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.apps.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAppsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAppsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsAppsOperationsService) Delete(name string) *ProjectsLocationsAppsOperationsDeleteCall { + c := &ProjectsLocationsAppsOperationsDeleteCall{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 *ProjectsLocationsAppsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAppsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAppsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAppsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppsOperationsDeleteCall) 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.apps.operations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAppsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsLocationsAppsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsAppsOperationsService) Get(name string) *ProjectsLocationsAppsOperationsGetCall { + c := &ProjectsLocationsAppsOperationsGetCall{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 *ProjectsLocationsAppsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsOperationsGetCall { + 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 *ProjectsLocationsAppsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAppsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsAppsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAppsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppsOperationsGetCall) 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.apps.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAppsOperationsGetCall) 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 ProjectsLocationsAppsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsAppsOperationsService) List(name string) *ProjectsLocationsAppsOperationsListCall { + c := &ProjectsLocationsAppsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsAppsOperationsListCall) Filter(filter string) *ProjectsLocationsAppsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsAppsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsAppsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsAppsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsAppsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAppsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsOperationsListCall { + 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 *ProjectsLocationsAppsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAppsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAppsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsAppsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAppsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.apps.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAppsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAppsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAppsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or reaches at +// most a specified timeout, returning the latest state. If the operation is +// already done, the latest state is immediately returned. If the timeout +// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout +// is used. If the server does not support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort +// basis. It may return the latest state before the specified timeout +// (including immediately), meaning even an immediate response is no guarantee +// that the operation is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsAppsOperationsService) Wait(name string) *ProjectsLocationsAppsOperationsWaitCall { + c := &ProjectsLocationsAppsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration to wait +// before timing out. If left blank, the wait will be at most the time +// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is +// also specified, the shorter one will be used. +func (c *ProjectsLocationsAppsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsAppsOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAppsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsAppsOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAppsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsAppsOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAppsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAppsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.apps.operations.wait" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAppsOperationsWaitCall) 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 ProjectsLocationsBatchPredictionJobsCancelCall struct { s *Service name string @@ -56458,433 +57751,59 @@ func (c *ProjectsLocationsExtensionsGetCall) Do(opts ...googleapi.CallOption) (* return ret, nil } -type ProjectsLocationsExtensionsImportCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Import: Imports an Extension. -// -// - parent: The resource name of the Location to import the Extension in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsExtensionsService) Import(parent string, googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension) *ProjectsLocationsExtensionsImportCall { - c := &ProjectsLocationsExtensionsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1extension = googlecloudaiplatformv1beta1extension - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsExtensionsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsImportCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsExtensionsImportCall) Context(ctx context.Context) *ProjectsLocationsExtensionsImportCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsExtensionsImportCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsExtensionsImportCall) 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.googlecloudaiplatformv1beta1extension) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/extensions:import") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.extensions.import" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsImportCall) 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 ProjectsLocationsExtensionsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists Extensions in a location. -// -// - parent: The resource name of the Location to list the Extensions from. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsExtensionsService) List(parent string) *ProjectsLocationsExtensionsListCall { - c := &ProjectsLocationsExtensionsListCall{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` * `create_time` * `update_time` More -// detail in AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsExtensionsListCall) Filter(filter string) *ProjectsLocationsExtensionsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": A comma-separated list of -// fields to order by, sorted in ascending order. Use "desc" after a field name -// for descending. Supported fields: * `display_name` * `create_time` * -// `update_time` Example: `display_name, create_time desc`. -func (c *ProjectsLocationsExtensionsListCall) OrderBy(orderBy string) *ProjectsLocationsExtensionsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsExtensionsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *ProjectsLocationsExtensionsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsExtensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsListCall { - 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 *ProjectsLocationsExtensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsExtensionsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsListCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsExtensionsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsExtensionsListCall) 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}/extensions") - 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.extensions.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1ListExtensionsResponse.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListExtensionsResponse, 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 := &GoogleCloudAiplatformV1beta1ListExtensionsResponse{ - 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 *ProjectsLocationsExtensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListExtensionsResponse) 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 ProjectsLocationsExtensionsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an Extension. -// -// - name: Identifier. The resource name of the Extension. -func (r *ProjectsLocationsExtensionsService) Patch(name string, googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension) *ProjectsLocationsExtensionsPatchCall { - c := &ProjectsLocationsExtensionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1extension = googlecloudaiplatformv1beta1extension - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. Mask -// specifying which fields to update. Supported fields: * `display_name` * -// `description` * `tool_use_examples` -func (c *ProjectsLocationsExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsExtensionsPatchCall { - 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 *ProjectsLocationsExtensionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsExtensionsPatchCall) Context(ctx context.Context) *ProjectsLocationsExtensionsPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsExtensionsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsExtensionsPatchCall) 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.googlecloudaiplatformv1beta1extension) - 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.extensions.patch" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1Extension.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Extension, 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 := &GoogleCloudAiplatformV1beta1Extension{ - 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 ProjectsLocationsExtensionsQueryCall struct { - s *Service - nameid string - googlecloudaiplatformv1beta1queryextensionrequest *GoogleCloudAiplatformV1beta1QueryExtensionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsImportCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Query: Queries an extension with a default controller. +// Import: Imports an Extension. // -// - name: Name (identifier) of the extension; Format: -// `projects/{project}/locations/{location}/extensions/{extension}`. -func (r *ProjectsLocationsExtensionsService) Query(nameid string, googlecloudaiplatformv1beta1queryextensionrequest *GoogleCloudAiplatformV1beta1QueryExtensionRequest) *ProjectsLocationsExtensionsQueryCall { - c := &ProjectsLocationsExtensionsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.nameid = nameid - c.googlecloudaiplatformv1beta1queryextensionrequest = googlecloudaiplatformv1beta1queryextensionrequest +// - parent: The resource name of the Location to import the Extension in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsExtensionsService) Import(parent string, googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension) *ProjectsLocationsExtensionsImportCall { + c := &ProjectsLocationsExtensionsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1extension = googlecloudaiplatformv1beta1extension return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsExtensionsQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsQueryCall { +func (c *ProjectsLocationsExtensionsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsImportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsExtensionsQueryCall) Context(ctx context.Context) *ProjectsLocationsExtensionsQueryCall { +func (c *ProjectsLocationsExtensionsImportCall) Context(ctx context.Context) *ProjectsLocationsExtensionsImportCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsExtensionsQueryCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsImportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsQueryCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsImportCall) 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.googlecloudaiplatformv1beta1queryextensionrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1extension) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:query") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/extensions:import") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -56892,18 +57811,18 @@ func (c *ProjectsLocationsExtensionsQueryCall) doRequest(alt string) (*http.Resp } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.nameid, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.query" call. +// Do executes the "aiplatform.projects.locations.extensions.import" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudAiplatformV1beta1QueryExtensionResponse.ServerResponse.Header or -// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1QueryExtensionResponse, error) { +func (c *ProjectsLocationsExtensionsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56922,7 +57841,7 @@ func (c *ProjectsLocationsExtensionsQueryCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1QueryExtensionResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -56935,233 +57854,60 @@ func (c *ProjectsLocationsExtensionsQueryCall) Do(opts ...googleapi.CallOption) return ret, nil } -type ProjectsLocationsExtensionsDeploymentsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. The -// server makes a best effort to cancel the operation, but success is not -// guaranteed. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or -// other methods to check whether the cancellation succeeded or whether the -// operation completed despite cancellation. On successful cancellation, the -// operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// List: Lists Extensions in a location. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsCancelCall{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 *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { - c.ctx_ = ctx +// - parent: The resource name of the Location to list the Extensions from. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsExtensionsService) List(parent string) *ProjectsLocationsExtensionsListCall { + c := &ProjectsLocationsExtensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) 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}:cancel") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.cancel" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a long-running operation. This method indicates that the -// client is no longer interested in the operation result. It does not cancel -// the operation. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. -// -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Delete(name string) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Filter sets the optional parameter "filter": The standard list filter. +// Supported fields: * `display_name` * `create_time` * `update_time` More +// detail in AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsExtensionsListCall) Filter(filter string) *ProjectsLocationsExtensionsListCall { + c.urlParams_.Set("filter", filter) return c } -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) +// OrderBy sets the optional parameter "orderBy": A comma-separated list of +// fields to order by, sorted in ascending order. Use "desc" after a field name +// for descending. Supported fields: * `display_name` * `create_time` * +// `update_time` Example: `display_name, create_time desc`. +func (c *ProjectsLocationsExtensionsListCall) OrderBy(orderBy string) *ProjectsLocationsExtensionsListCall { + c.urlParams_.Set("orderBy", orderBy) return c } -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { - c.ctx_ = ctx +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsExtensionsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) 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.extensions.deployments.operations.delete" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsExtensionsDeploymentsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the latest state of a long-running operation. Clients can use this -// method to poll the operation result at intervals as recommended by the API -// service. -// -// - name: The name of the operation resource. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Get(name string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsExtensionsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsExtensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -57169,27 +57915,27 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...go // 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 *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsExtensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsExtensionsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -57197,7 +57943,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/extensions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -57205,18 +57951,18 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.get" call. +// Do executes the "aiplatform.projects.locations.extensions.list" 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 +// *GoogleCloudAiplatformV1beta1ListExtensionsResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListExtensionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57235,7 +57981,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ListExtensionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -57248,87 +57994,89 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo return ret, nil } -type ProjectsLocationsExtensionsDeploymentsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists operations that match the specified filter in the request. If -// the server doesn't support this method, it returns `UNIMPLEMENTED`. -// -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) List(name string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c +// 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 *ProjectsLocationsExtensionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListExtensionsResponse) 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) + } } -// Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c +type ProjectsLocationsExtensionsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// Patch: Updates an Extension. +// +// - name: Identifier. The resource name of the Extension. +func (r *ProjectsLocationsExtensionsService) Patch(name string, googlecloudaiplatformv1beta1extension *GoogleCloudAiplatformV1beta1Extension) *ProjectsLocationsExtensionsPatchCall { + c := &ProjectsLocationsExtensionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1extension = googlecloudaiplatformv1beta1extension return c } -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// UpdateMask sets the optional parameter "updateMask": Required. Mask +// specifying which fields to update. Supported fields: * `display_name` * +// `description` * `tool_use_examples` +func (c *ProjectsLocationsExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsExtensionsPatchCall { + 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 *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsExtensionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsPatchCall { 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 *ProjectsLocationsExtensionsDeploymentsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsExtensionsPatchCall) Context(ctx context.Context) *ProjectsLocationsExtensionsPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } +func (c *ProjectsLocationsExtensionsPatchCall) 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.googlecloudaiplatformv1beta1extension) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -57339,13 +58087,13 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.list" call. +// Do executes the "aiplatform.projects.locations.extensions.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// *GoogleCloudAiplatformV1beta1Extension.ServerResponse.Header or (if a // response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsExtensionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Extension, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57364,7 +58112,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1Extension{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -57377,90 +58125,59 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go 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 *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsExtensionsDeploymentsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsQueryCall struct { + s *Service + nameid string + googlecloudaiplatformv1beta1queryextensionrequest *GoogleCloudAiplatformV1beta1QueryExtensionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or reaches at -// most a specified timeout, returning the latest state. If the operation is -// already done, the latest state is immediately returned. If the timeout -// specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout -// is used. If the server does not support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort -// basis. It may return the latest state before the specified timeout -// (including immediately), meaning even an immediate response is no guarantee -// that the operation is done. +// Query: Queries an extension with a default controller. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Wait(name string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Timeout sets the optional parameter "timeout": The maximum duration to wait -// before timing out. If left blank, the wait will be at most the time -// permitted by the underlying HTTP/RPC protocol. If RPC context deadline is -// also specified, the shorter one will be used. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// - name: Name (identifier) of the extension; Format: +// `projects/{project}/locations/{location}/extensions/{extension}`. +func (r *ProjectsLocationsExtensionsService) Query(nameid string, googlecloudaiplatformv1beta1queryextensionrequest *GoogleCloudAiplatformV1beta1QueryExtensionRequest) *ProjectsLocationsExtensionsQueryCall { + c := &ProjectsLocationsExtensionsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.googlecloudaiplatformv1beta1queryextensionrequest = googlecloudaiplatformv1beta1queryextensionrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsExtensionsQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsExtensionsQueryCall) Context(ctx context.Context) *ProjectsLocationsExtensionsQueryCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsExtensionsQueryCall) 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.googlecloudaiplatformv1beta1queryextensionrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:query") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -57468,18 +58185,18 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "name": c.nameid, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.wait" call. +// Do executes the "aiplatform.projects.locations.extensions.query" 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 +// *GoogleCloudAiplatformV1beta1QueryExtensionResponse.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1QueryExtensionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57498,7 +58215,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1QueryExtensionResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -58099,7 +58816,7 @@ type ProjectsLocationsFeatureGroupsCreateCall struct { // Create: Creates a new FeatureGroup in a given project and location. // // - parent: The resource name of the Location to create FeatureGroups. Format: -// `projects/{project}/locations/{location}'`. +// `projects/{project}/locations/{location}`. func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup) *ProjectsLocationsFeatureGroupsCreateCall { c := &ProjectsLocationsFeatureGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index e04b0562cba..d2827007f95 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -842,6 +842,54 @@ } } }, + "genericArtifacts": { + "methods": { + "upload": { + "description": "Directly uploads a Generic artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS error.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/genericArtifacts:create", + "httpMethod": "POST", + "id": "artifactregistry.projects.locations.repositories.genericArtifacts.upload", + "mediaUpload": { + "accept": [ + "*/*" + ], + "protocols": { + "resumable": { + "multipart": true, + "path": "/resumable/upload/v1/{+parent}/genericArtifacts:create" + }, + "simple": { + "multipart": true, + "path": "/upload/v1/{+parent}/genericArtifacts:create" + } + } + }, + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The resource name of the repository where the generic artifact will be uploaded.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/genericArtifacts:create", + "request": { + "$ref": "UploadGenericArtifactRequest" + }, + "response": { + "$ref": "UploadGenericArtifactMediaResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ], + "supportsMediaUpload": true + } + } + }, "goModules": { "methods": { "upload": { @@ -1734,7 +1782,7 @@ } } }, - "revision": "20240322", + "revision": "20240425", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -2076,6 +2124,33 @@ }, "type": "object" }, + "GenericArtifact": { + "description": "GenericArtifact represents a generic artifact", + "id": "GenericArtifact", + "properties": { + "createTime": { + "description": "Output only. The time when the Generic module is created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Resource name of the generic artifact. project, location, repository, package_id and version_id create a unique generic artifact. i.e. \"projects/test-project/locations/us-west4/repositories/test-repo/ genericArtifacts/package_id:version_id\"", + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the Generic module is updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "version": { + "description": "The version of the generic artifact.", + "type": "string" + } + }, + "type": "object" + }, "GoModule": { "description": "GoModule represents a Go module.", "id": "GoModule", @@ -3192,7 +3267,8 @@ "GOOGET", "PYTHON", "KFP", - "GO" + "GO", + "GENERIC" ], "enumDescriptions": [ "Unspecified package format.", @@ -3204,7 +3280,8 @@ "GooGet package format.", "Python package format.", "Kubeflow Pipelines package format.", - "Go package format." + "Go package format.", + "Generic package format." ], "type": "string" }, @@ -3391,6 +3468,47 @@ }, "type": "object" }, + "UploadGenericArtifactMediaResponse": { + "description": "The response to upload a generic artifact.", + "id": "UploadGenericArtifactMediaResponse", + "properties": { + "operation": { + "$ref": "Operation", + "description": "Operation that will be returned to the user." + } + }, + "type": "object" + }, + "UploadGenericArtifactMetadata": { + "description": "The operation metadata for uploading generic artifacts.", + "id": "UploadGenericArtifactMetadata", + "properties": {}, + "type": "object" + }, + "UploadGenericArtifactRequest": { + "description": "The request to upload a generic artifact. The created GenericArtifact will have the resource name {parent}/genericArtifacts/package_id:version_id. The created file will have the resource name {parent}/files/package_id:version_id:filename.", + "id": "UploadGenericArtifactRequest", + "properties": { + "filename": { + "description": "The name of the file of the generic artifact to be uploaded. E.g. \"example-file.zip\" The filename should only include letters, numbers, and url safe characters, i.e. [a-zA-Z0-9-_.~@].", + "type": "string" + }, + "name": { + "deprecated": true, + "description": "Deprecated. Use package_id, version_id and filename instead. The resource name of the generic artifact. E.g. \"projects/math/locations/us/repositories/operations/genericArtifacts/addition/1.0.0/add.py\"", + "type": "string" + }, + "packageId": { + "description": "The ID of the package of the generic artifact. If the package does not exist, a new package will be created. E.g. \"pkg-1\" The package_id must start with a letter, end with a letter or number, only contain letters, numbers, hyphens and periods i.e. [a-z0-9-.], and cannot exceed 256 characters.", + "type": "string" + }, + "versionId": { + "description": "The ID of the version of the generic artifact. If the version does not exist, a new version will be created. E.g.\"1.0.0\" The version_id must start and end with a letter or number, can only contain lowercase letters, numbers, hyphens and periods, i.e. [a-z0-9-.] and cannot exceed a total of 128 characters. While \"latest\" is a well-known name for the latest version of a package, it is not yet supported and is reserved for future use. Creating a version called \"latest\" is not allowed.", + "type": "string" + } + }, + "type": "object" + }, "UploadGoModuleMediaResponse": { "description": "The response to upload a Go module.", "id": "UploadGoModuleMediaResponse", diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index 435f607c574..b9c797cd4e4 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -218,6 +218,7 @@ func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepos rs.AptArtifacts = NewProjectsLocationsRepositoriesAptArtifactsService(s) rs.DockerImages = NewProjectsLocationsRepositoriesDockerImagesService(s) rs.Files = NewProjectsLocationsRepositoriesFilesService(s) + rs.GenericArtifacts = NewProjectsLocationsRepositoriesGenericArtifactsService(s) rs.GoModules = NewProjectsLocationsRepositoriesGoModulesService(s) rs.GoogetArtifacts = NewProjectsLocationsRepositoriesGoogetArtifactsService(s) rs.KfpArtifacts = NewProjectsLocationsRepositoriesKfpArtifactsService(s) @@ -238,6 +239,8 @@ type ProjectsLocationsRepositoriesService struct { Files *ProjectsLocationsRepositoriesFilesService + GenericArtifacts *ProjectsLocationsRepositoriesGenericArtifactsService + GoModules *ProjectsLocationsRepositoriesGoModulesService GoogetArtifacts *ProjectsLocationsRepositoriesGoogetArtifactsService @@ -282,6 +285,15 @@ type ProjectsLocationsRepositoriesFilesService struct { s *Service } +func NewProjectsLocationsRepositoriesGenericArtifactsService(s *Service) *ProjectsLocationsRepositoriesGenericArtifactsService { + rs := &ProjectsLocationsRepositoriesGenericArtifactsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesGenericArtifactsService struct { + s *Service +} + func NewProjectsLocationsRepositoriesGoModulesService(s *Service) *ProjectsLocationsRepositoriesGoModulesService { rs := &ProjectsLocationsRepositoriesGoModulesService{s: s} return rs @@ -872,6 +884,37 @@ func (s *Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GenericArtifact: GenericArtifact represents a generic artifact +type GenericArtifact struct { + // CreateTime: Output only. The time when the Generic module is created. + CreateTime string `json:"createTime,omitempty"` + // Name: Resource name of the generic artifact. project, location, repository, + // package_id and version_id create a unique generic artifact. i.e. + // "projects/test-project/locations/us-west4/repositories/test-repo/ + // genericArtifacts/package_id:version_id" + Name string `json:"name,omitempty"` + // UpdateTime: Output only. The time when the Generic module is updated. + UpdateTime string `json:"updateTime,omitempty"` + // Version: The version of the generic artifact. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GenericArtifact) MarshalJSON() ([]byte, error) { + type NoMethod GenericArtifact + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoModule: GoModule represents a Go module. type GoModule struct { // CreateTime: Output only. The time when the Go module is created. @@ -2406,6 +2449,7 @@ type Repository struct { // "PYTHON" - Python package format. // "KFP" - Kubeflow Pipelines package format. // "GO" - Go package format. + // "GENERIC" - Generic package format. Format string `json:"format,omitempty"` // KmsKeyName: The Cloud KMS resource name of the customer managed encryption // key that's used to encrypt the contents of the Repository. Has the form: @@ -2672,6 +2716,83 @@ func (s *UploadAptArtifactResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// UploadGenericArtifactMediaResponse: The response to upload a generic +// artifact. +type UploadGenericArtifactMediaResponse struct { + // Operation: Operation that will be returned to the user. + Operation *Operation `json:"operation,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Operation") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Operation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *UploadGenericArtifactMediaResponse) MarshalJSON() ([]byte, error) { + type NoMethod UploadGenericArtifactMediaResponse + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// UploadGenericArtifactMetadata: The operation metadata for uploading generic +// artifacts. +type UploadGenericArtifactMetadata struct { +} + +// UploadGenericArtifactRequest: The request to upload a generic artifact. The +// created GenericArtifact will have the resource name +// {parent}/genericArtifacts/package_id:version_id. The created file will have +// the resource name {parent}/files/package_id:version_id:filename. +type UploadGenericArtifactRequest struct { + // Filename: The name of the file of the generic artifact to be uploaded. E.g. + // "example-file.zip" The filename should only include letters, numbers, and + // url safe characters, i.e. [a-zA-Z0-9-_.~@]. + Filename string `json:"filename,omitempty"` + // Name: Deprecated. Use package_id, version_id and filename instead. The + // resource name of the generic artifact. E.g. + // "projects/math/locations/us/repositories/operations/genericArtifacts/addition + // /1.0.0/add.py" + Name string `json:"name,omitempty"` + // PackageId: The ID of the package of the generic artifact. If the package + // does not exist, a new package will be created. E.g. "pkg-1" The package_id + // must start with a letter, end with a letter or number, only contain letters, + // numbers, hyphens and periods i.e. [a-z0-9-.], and cannot exceed 256 + // characters. + PackageId string `json:"packageId,omitempty"` + // VersionId: The ID of the version of the generic artifact. If the version + // does not exist, a new version will be created. E.g."1.0.0" The version_id + // must start and end with a letter or number, can only contain lowercase + // letters, numbers, hyphens and periods, i.e. [a-z0-9-.] and cannot exceed a + // total of 128 characters. While "latest" is a well-known name for the latest + // version of a package, it is not yet supported and is reserved for future + // use. Creating a version called "latest" is not allowed. + VersionId string `json:"versionId,omitempty"` + // ForceSendFields is a list of field names (e.g. "Filename") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Filename") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *UploadGenericArtifactRequest) MarshalJSON() ([]byte, error) { + type NoMethod UploadGenericArtifactRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // UploadGoModuleMediaResponse: The response to upload a Go module. type UploadGoModuleMediaResponse struct { // Operation: Operation to be returned to the user. @@ -5755,6 +5876,179 @@ func (c *ProjectsLocationsRepositoriesFilesListCall) Pages(ctx context.Context, } } +type ProjectsLocationsRepositoriesGenericArtifactsUploadCall struct { + s *Service + parent string + uploadgenericartifactrequest *UploadGenericArtifactRequest + urlParams_ gensupport.URLParams + mediaInfo_ *gensupport.MediaInfo + ctx_ context.Context + header_ http.Header +} + +// Upload: Directly uploads a Generic artifact. The returned Operation will +// complete once the resources are uploaded. Package, Version, and File +// resources are created based on the uploaded artifact. Uploaded artifacts +// that conflict with existing resources will raise an ALREADY_EXISTS error. +// +// - parent: The resource name of the repository where the generic artifact +// will be uploaded. +func (r *ProjectsLocationsRepositoriesGenericArtifactsService) Upload(parent string, uploadgenericartifactrequest *UploadGenericArtifactRequest) *ProjectsLocationsRepositoriesGenericArtifactsUploadCall { + c := &ProjectsLocationsRepositoriesGenericArtifactsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.uploadgenericartifactrequest = uploadgenericartifactrequest + return c +} + +// Media specifies the media to upload in one or more chunks. The chunk size +// may be controlled by supplying a MediaOption generated by +// googleapi.ChunkSize. The chunk size defaults to +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload +// request will be determined by sniffing the contents of r, unless a +// MediaOption generated by googleapi.ContentType is supplied. +// At most one of Media and ResumableMedia may be set. +func (c *ProjectsLocationsRepositoriesGenericArtifactsUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *ProjectsLocationsRepositoriesGenericArtifactsUploadCall { + c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) + return c +} + +// ResumableMedia specifies the media to upload in chunks and can be canceled +// with ctx. +// +// Deprecated: use Media instead. +// +// At most one of Media and ResumableMedia may be set. mediaType identifies the +// MIME media type of the upload, such as "image/png". If mediaType is "", it +// will be auto-detected. The provided ctx will supersede any context +// previously provided to the Context method. +func (c *ProjectsLocationsRepositoriesGenericArtifactsUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ProjectsLocationsRepositoriesGenericArtifactsUploadCall { + c.ctx_ = ctx + c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) + return c +} + +// ProgressUpdater provides a callback function that will be called after every +// chunk. It should be a low-latency function in order to not slow down the +// upload operation. This should only be called when using ResumableMedia (as +// opposed to Media). +func (c *ProjectsLocationsRepositoriesGenericArtifactsUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ProjectsLocationsRepositoriesGenericArtifactsUploadCall { + c.mediaInfo_.SetProgressUpdater(pu) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsRepositoriesGenericArtifactsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesGenericArtifactsUploadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +// This context will supersede any context previously provided to the +// ResumableMedia method. +func (c *ProjectsLocationsRepositoriesGenericArtifactsUploadCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesGenericArtifactsUploadCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsRepositoriesGenericArtifactsUploadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesGenericArtifactsUploadCall) 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.uploadgenericartifactrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/genericArtifacts:create") + if c.mediaInfo_ != nil { + urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/v1/{+parent}/genericArtifacts:create") + c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType()) + } + if body == nil { + body = new(bytes.Buffer) + reqHeaders.Set("Content-Type", "application/json") + } + body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body) + defer cleanup() + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + req.GetBody = getBody + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "artifactregistry.projects.locations.repositories.genericArtifacts.upload" call. +// Any non-2xx status code is an error. Response headers are in either +// *UploadGenericArtifactMediaResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsRepositoriesGenericArtifactsUploadCall) Do(opts ...googleapi.CallOption) (*UploadGenericArtifactMediaResponse, 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) + } + rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) + if rx != nil { + rx.Client = c.s.client + rx.UserAgent = c.s.userAgent() + ctx := c.ctx_ + if ctx == nil { + ctx = context.TODO() + } + res, err = rx.Upload(ctx) + if err != nil { + return nil, err + } + defer res.Body.Close() + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + } + ret := &UploadGenericArtifactMediaResponse{ + 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 ProjectsLocationsRepositoriesGoModulesUploadCall struct { s *Service parent string diff --git a/cloudsupport/v2beta/cloudsupport-api.json b/cloudsupport/v2beta/cloudsupport-api.json index af34a67637e..59ce0538888 100644 --- a/cloudsupport/v2beta/cloudsupport-api.json +++ b/cloudsupport/v2beta/cloudsupport-api.json @@ -415,7 +415,7 @@ "type": "integer" }, "pageToken": { - "description": "Optional. A token identifying the page of results to return. If unspecified, the first page is retrieved.", + "description": "Optional. A token identifying the page of results to return. If unspecified, it retrieves the first page.", "location": "query", "type": "string" }, @@ -619,7 +619,7 @@ } } }, - "revision": "20240428", + "revision": "20240429", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { @@ -1128,7 +1128,7 @@ }, "bodyContent": { "$ref": "TextContent", - "description": "Output only. The full email message body in both plaintext and richtext. The plaintext field of body_content will be elided in a best-effort attempt to remove extraneous reply threads.", + "description": "Output only. The full email message body. A best-effort attempt is made to remove extraneous reply threads.", "readOnly": true }, "ccEmailAddresses": { @@ -1561,15 +1561,11 @@ "type": "object" }, "TextContent": { - "description": "Used for content on cases/comments/etc. On input either plain_text or rich_text should be supplied but not both.", + "description": "Stores text attached to a support object.", "id": "TextContent", "properties": { "plainText": { - "description": "Content in this field should be rendered and interpreted as-is. If not provided on input, then rich_text must be provided and this field will contain the plain text extracted from the rich_text input.", - "type": "string" - }, - "richText": { - "description": "Content in this field should be rendered and interpreted as HTML. If not provided on input, then plain_text must be provided and this field will contain the escaped plain text content. Only a subset of HTML tags and styles are allowed on input, all other tags will be stripped/sanitized. Output will always contain safe and valid HTML.", + "description": "Content in this field should be rendered and interpreted as-is.", "type": "string" } }, diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index b05a03ea4cb..207a6eb72c6 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -777,9 +777,8 @@ type EmailMessage struct { // Actor: Output only. The user or Google Support agent that created this email // message. This is inferred from the headers on the email message. Actor *Actor `json:"actor,omitempty"` - // BodyContent: Output only. The full email message body in both plaintext and - // richtext. The plaintext field of body_content will be elided in a - // best-effort attempt to remove extraneous reply threads. + // BodyContent: Output only. The full email message body. A best-effort attempt + // is made to remove extraneous reply threads. BodyContent *TextContent `json:"bodyContent,omitempty"` // CcEmailAddresses: Output only. Email addresses CCed on the email. CcEmailAddresses []string `json:"ccEmailAddresses,omitempty"` @@ -1232,19 +1231,10 @@ func (s *ShowFeedResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// TextContent: Used for content on cases/comments/etc. On input either -// plain_text or rich_text should be supplied but not both. +// TextContent: Stores text attached to a support object. type TextContent struct { // PlainText: Content in this field should be rendered and interpreted as-is. - // If not provided on input, then rich_text must be provided and this field - // will contain the plain text extracted from the rich_text input. PlainText string `json:"plainText,omitempty"` - // RichText: Content in this field should be rendered and interpreted as HTML. - // If not provided on input, then plain_text must be provided and this field - // will contain the escaped plain text content. Only a subset of HTML tags and - // styles are allowed on input, all other tags will be stripped/sanitized. - // Output will always contain safe and valid HTML. - RichText string `json:"richText,omitempty"` // ForceSendFields is a list of field names (e.g. "PlainText") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -2471,7 +2461,7 @@ func (c *CasesShowFeedCall) PageSize(pageSize int64) *CasesShowFeedCall { } // PageToken sets the optional parameter "pageToken": A token identifying the -// page of results to return. If unspecified, the first page is retrieved. +// page of results to return. If unspecified, it retrieves the first page. func (c *CasesShowFeedCall) PageToken(pageToken string) *CasesShowFeedCall { c.urlParams_.Set("pageToken", pageToken) return c diff --git a/ondemandscanning/v1/ondemandscanning-api.json b/ondemandscanning/v1/ondemandscanning-api.json index 3bb47e71196..768f6829e07 100644 --- a/ondemandscanning/v1/ondemandscanning-api.json +++ b/ondemandscanning/v1/ondemandscanning-api.json @@ -339,7 +339,7 @@ } } }, - "revision": "20231204", + "revision": "20240429", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -945,6 +945,29 @@ "$ref": "NonCompliantFile" }, "type": "array" + }, + "version": { + "$ref": "ComplianceVersion", + "description": "The OS and config version the benchmark was run on." + } + }, + "type": "object" + }, + "ComplianceVersion": { + "description": "Describes the CIS benchmark version that is applicable to a given OS and os version.", + "id": "ComplianceVersion", + "properties": { + "benchmarkDocument": { + "description": "The name of the document that defines this benchmark, e.g. \"CIS Container-Optimized OS\".", + "type": "string" + }, + "cpeUri": { + "description": "The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.", + "type": "string" + }, + "version": { + "description": "The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.", + "type": "string" } }, "type": "object" diff --git a/ondemandscanning/v1/ondemandscanning-gen.go b/ondemandscanning/v1/ondemandscanning-gen.go index 9de73859333..ed7c325d828 100644 --- a/ondemandscanning/v1/ondemandscanning-gen.go +++ b/ondemandscanning/v1/ondemandscanning-gen.go @@ -890,6 +890,8 @@ func (s *Completeness) MarshalJSON() ([]byte, error) { type ComplianceOccurrence struct { NonComplianceReason string `json:"nonComplianceReason,omitempty"` NonCompliantFiles []*NonCompliantFile `json:"nonCompliantFiles,omitempty"` + // Version: The OS and config version the benchmark was run on. + Version *ComplianceVersion `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "NonComplianceReason") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -908,6 +910,36 @@ func (s *ComplianceOccurrence) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// ComplianceVersion: Describes the CIS benchmark version that is applicable to +// a given OS and os version. +type ComplianceVersion struct { + // BenchmarkDocument: The name of the document that defines this benchmark, + // e.g. "CIS Container-Optimized OS". + BenchmarkDocument string `json:"benchmarkDocument,omitempty"` + // CpeUri: The CPE URI (https://cpe.mitre.org/specification/) this benchmark is + // applicable to. + CpeUri string `json:"cpeUri,omitempty"` + // Version: The version of the benchmark. This is set to the version of the + // OS-specific CIS document the benchmark is defined in. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "BenchmarkDocument") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BenchmarkDocument") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *ComplianceVersion) MarshalJSON() ([]byte, error) { + type NoMethod ComplianceVersion + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // DSSEAttestationOccurrence: Deprecated. Prefer to use a regular Occurrence, // and populate the Envelope at the top level of the Occurrence. type DSSEAttestationOccurrence struct { diff --git a/ondemandscanning/v1beta1/ondemandscanning-api.json b/ondemandscanning/v1beta1/ondemandscanning-api.json index 6990e9ce52c..6a4f315de4f 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-api.json +++ b/ondemandscanning/v1beta1/ondemandscanning-api.json @@ -339,7 +339,7 @@ } } }, - "revision": "20231204", + "revision": "20240429", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -940,6 +940,29 @@ "$ref": "NonCompliantFile" }, "type": "array" + }, + "version": { + "$ref": "ComplianceVersion", + "description": "The OS and config version the benchmark was run on." + } + }, + "type": "object" + }, + "ComplianceVersion": { + "description": "Describes the CIS benchmark version that is applicable to a given OS and os version.", + "id": "ComplianceVersion", + "properties": { + "benchmarkDocument": { + "description": "The name of the document that defines this benchmark, e.g. \"CIS Container-Optimized OS\".", + "type": "string" + }, + "cpeUri": { + "description": "The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.", + "type": "string" + }, + "version": { + "description": "The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.", + "type": "string" } }, "type": "object" diff --git a/ondemandscanning/v1beta1/ondemandscanning-gen.go b/ondemandscanning/v1beta1/ondemandscanning-gen.go index dfedafbdbf8..82992deb7b7 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-gen.go +++ b/ondemandscanning/v1beta1/ondemandscanning-gen.go @@ -886,6 +886,8 @@ func (s *Completeness) MarshalJSON() ([]byte, error) { type ComplianceOccurrence struct { NonComplianceReason string `json:"nonComplianceReason,omitempty"` NonCompliantFiles []*NonCompliantFile `json:"nonCompliantFiles,omitempty"` + // Version: The OS and config version the benchmark was run on. + Version *ComplianceVersion `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "NonComplianceReason") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -904,6 +906,36 @@ func (s *ComplianceOccurrence) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// ComplianceVersion: Describes the CIS benchmark version that is applicable to +// a given OS and os version. +type ComplianceVersion struct { + // BenchmarkDocument: The name of the document that defines this benchmark, + // e.g. "CIS Container-Optimized OS". + BenchmarkDocument string `json:"benchmarkDocument,omitempty"` + // CpeUri: The CPE URI (https://cpe.mitre.org/specification/) this benchmark is + // applicable to. + CpeUri string `json:"cpeUri,omitempty"` + // Version: The version of the benchmark. This is set to the version of the + // OS-specific CIS document the benchmark is defined in. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "BenchmarkDocument") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BenchmarkDocument") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *ComplianceVersion) MarshalJSON() ([]byte, error) { + type NoMethod ComplianceVersion + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // DSSEAttestationOccurrence: Deprecated. Prefer to use a regular Occurrence, // and populate the Envelope at the top level of the Occurrence. type DSSEAttestationOccurrence struct { diff --git a/recommender/v1/recommender-api.json b/recommender/v1/recommender-api.json index 1e940fe6ada..e4c7dbf796f 100644 --- a/recommender/v1/recommender-api.json +++ b/recommender/v1/recommender-api.json @@ -146,7 +146,7 @@ ], "parameters": { "name": { - "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", + "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "location": "path", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "required": true, @@ -314,7 +314,7 @@ ], "parameters": { "name": { - "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", + "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "location": "path", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true, @@ -870,7 +870,7 @@ ], "parameters": { "name": { - "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", + "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "required": true, @@ -1038,7 +1038,7 @@ ], "parameters": { "name": { - "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", + "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true, @@ -1298,7 +1298,7 @@ ], "parameters": { "name": { - "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", + "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "required": true, @@ -1466,7 +1466,7 @@ ], "parameters": { "name": { - "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", + "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true, @@ -1686,7 +1686,7 @@ } } }, - "revision": "20240414", + "revision": "20240428", "rootUrl": "https://recommender.googleapis.com/", "schemas": { "GoogleCloudRecommenderV1CostProjection": { @@ -1918,7 +1918,7 @@ "description": "InsightTypeGenerationConfig which configures the generation of insights for this insight type." }, "name": { - "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", + "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "type": "string" }, "revisionId": { @@ -2305,7 +2305,7 @@ "type": "string" }, "name": { - "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", + "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "type": "string" }, "recommenderGenerationConfig": { diff --git a/recommender/v1/recommender-gen.go b/recommender/v1/recommender-gen.go index 008c7a9a761..e45ada56cf5 100644 --- a/recommender/v1/recommender-gen.go +++ b/recommender/v1/recommender-gen.go @@ -668,7 +668,7 @@ type GoogleCloudRecommenderV1InsightTypeConfig struct { // InsightTypeGenerationConfig: InsightTypeGenerationConfig which configures // the generation of insights for this insight type. InsightTypeGenerationConfig *GoogleCloudRecommenderV1InsightTypeGenerationConfig `json:"insightTypeGenerationConfig,omitempty"` - // Name: Name of insight type config. Eg, + // Name: Identifier. Name of insight type config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID] // /config Name string `json:"name,omitempty"` @@ -1200,7 +1200,7 @@ type GoogleCloudRecommenderV1RecommenderConfig struct { // Etag: Fingerprint of the RecommenderConfig. Provides optimistic locking when // updating. Etag string `json:"etag,omitempty"` - // Name: Name of recommender config. Eg, + // Name: Identifier. Name of recommender config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/ // config Name string `json:"name,omitempty"` @@ -1540,7 +1540,7 @@ type BillingAccountsLocationsInsightTypesUpdateConfigCall struct { // UpdateConfig: Updates an InsightTypeConfig change. This will create a new // revision of the config. // -// - name: Name of insight type config. Eg, +// - name: Identifier. Name of insight type config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_I // D]/config. func (r *BillingAccountsLocationsInsightTypesService) UpdateConfig(name string, googlecloudrecommenderv1insighttypeconfig *GoogleCloudRecommenderV1InsightTypeConfig) *BillingAccountsLocationsInsightTypesUpdateConfigCall { @@ -2168,7 +2168,7 @@ type BillingAccountsLocationsRecommendersUpdateConfigCall struct { // UpdateConfig: Updates a Recommender Config. This will create a new revision // of the config. // -// - name: Name of recommender config. Eg, +// - name: Identifier. Name of recommender config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID // ]/config. func (r *BillingAccountsLocationsRecommendersService) UpdateConfig(name string, googlecloudrecommenderv1recommenderconfig *GoogleCloudRecommenderV1RecommenderConfig) *BillingAccountsLocationsRecommendersUpdateConfigCall { @@ -4226,7 +4226,7 @@ type OrganizationsLocationsInsightTypesUpdateConfigCall struct { // UpdateConfig: Updates an InsightTypeConfig change. This will create a new // revision of the config. // -// - name: Name of insight type config. Eg, +// - name: Identifier. Name of insight type config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_I // D]/config. func (r *OrganizationsLocationsInsightTypesService) UpdateConfig(name string, googlecloudrecommenderv1insighttypeconfig *GoogleCloudRecommenderV1InsightTypeConfig) *OrganizationsLocationsInsightTypesUpdateConfigCall { @@ -4854,7 +4854,7 @@ type OrganizationsLocationsRecommendersUpdateConfigCall struct { // UpdateConfig: Updates a Recommender Config. This will create a new revision // of the config. // -// - name: Name of recommender config. Eg, +// - name: Identifier. Name of recommender config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID // ]/config. func (r *OrganizationsLocationsRecommendersService) UpdateConfig(name string, googlecloudrecommenderv1recommenderconfig *GoogleCloudRecommenderV1RecommenderConfig) *OrganizationsLocationsRecommendersUpdateConfigCall { @@ -5805,7 +5805,7 @@ type ProjectsLocationsInsightTypesUpdateConfigCall struct { // UpdateConfig: Updates an InsightTypeConfig change. This will create a new // revision of the config. // -// - name: Name of insight type config. Eg, +// - name: Identifier. Name of insight type config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_I // D]/config. func (r *ProjectsLocationsInsightTypesService) UpdateConfig(name string, googlecloudrecommenderv1insighttypeconfig *GoogleCloudRecommenderV1InsightTypeConfig) *ProjectsLocationsInsightTypesUpdateConfigCall { @@ -6433,7 +6433,7 @@ type ProjectsLocationsRecommendersUpdateConfigCall struct { // UpdateConfig: Updates a Recommender Config. This will create a new revision // of the config. // -// - name: Name of recommender config. Eg, +// - name: Identifier. Name of recommender config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID // ]/config. func (r *ProjectsLocationsRecommendersService) UpdateConfig(name string, googlecloudrecommenderv1recommenderconfig *GoogleCloudRecommenderV1RecommenderConfig) *ProjectsLocationsRecommendersUpdateConfigCall { diff --git a/recommender/v1beta1/recommender-api.json b/recommender/v1beta1/recommender-api.json index 7b5073fd10c..e2725590457 100644 --- a/recommender/v1beta1/recommender-api.json +++ b/recommender/v1beta1/recommender-api.json @@ -189,7 +189,7 @@ ], "parameters": { "name": { - "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", + "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "location": "path", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "required": true, @@ -357,7 +357,7 @@ ], "parameters": { "name": { - "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", + "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "location": "path", "pattern": "^billingAccounts/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true, @@ -1030,7 +1030,7 @@ ], "parameters": { "name": { - "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", + "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "required": true, @@ -1198,7 +1198,7 @@ ], "parameters": { "name": { - "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", + "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true, @@ -1501,7 +1501,7 @@ ], "parameters": { "name": { - "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", + "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "required": true, @@ -1669,7 +1669,7 @@ ], "parameters": { "name": { - "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", + "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true, @@ -1920,7 +1920,7 @@ } } }, - "revision": "20240414", + "revision": "20240428", "rootUrl": "https://recommender.googleapis.com/", "schemas": { "GoogleCloudLocationListLocationsResponse": { @@ -2229,7 +2229,7 @@ "description": "InsightTypeGenerationConfig which configures the generation of insights for this insight type." }, "name": { - "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", + "description": "Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "type": "string" }, "revisionId": { @@ -2652,7 +2652,7 @@ "type": "string" }, "name": { - "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", + "description": "Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "type": "string" }, "recommenderGenerationConfig": { diff --git a/recommender/v1beta1/recommender-gen.go b/recommender/v1beta1/recommender-gen.go index 2c7fc3cf09a..9dfc5cee661 100644 --- a/recommender/v1beta1/recommender-gen.go +++ b/recommender/v1beta1/recommender-gen.go @@ -788,7 +788,7 @@ type GoogleCloudRecommenderV1beta1InsightTypeConfig struct { // InsightTypeGenerationConfig: InsightTypeGenerationConfig which configures // the generation of insights for this insight type. InsightTypeGenerationConfig *GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig `json:"insightTypeGenerationConfig,omitempty"` - // Name: Name of insight type config. Eg, + // Name: Identifier. Name of insight type config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID] // /config Name string `json:"name,omitempty"` @@ -1379,7 +1379,7 @@ type GoogleCloudRecommenderV1beta1RecommenderConfig struct { // Etag: Fingerprint of the RecommenderConfig. Provides optimistic locking when // updating. Etag string `json:"etag,omitempty"` - // Name: Name of recommender config. Eg, + // Name: Identifier. Name of recommender config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/ // config Name string `json:"name,omitempty"` @@ -1895,7 +1895,7 @@ type BillingAccountsLocationsInsightTypesUpdateConfigCall struct { // UpdateConfig: Updates an InsightTypeConfig change. This will create a new // revision of the config. // -// - name: Name of insight type config. Eg, +// - name: Identifier. Name of insight type config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_I // D]/config. func (r *BillingAccountsLocationsInsightTypesService) UpdateConfig(name string, googlecloudrecommenderv1beta1insighttypeconfig *GoogleCloudRecommenderV1beta1InsightTypeConfig) *BillingAccountsLocationsInsightTypesUpdateConfigCall { @@ -2523,7 +2523,7 @@ type BillingAccountsLocationsRecommendersUpdateConfigCall struct { // UpdateConfig: Updates a Recommender Config. This will create a new revision // of the config. // -// - name: Name of recommender config. Eg, +// - name: Identifier. Name of recommender config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID // ]/config. func (r *BillingAccountsLocationsRecommendersService) UpdateConfig(name string, googlecloudrecommenderv1beta1recommenderconfig *GoogleCloudRecommenderV1beta1RecommenderConfig) *BillingAccountsLocationsRecommendersUpdateConfigCall { @@ -5024,7 +5024,7 @@ type OrganizationsLocationsInsightTypesUpdateConfigCall struct { // UpdateConfig: Updates an InsightTypeConfig change. This will create a new // revision of the config. // -// - name: Name of insight type config. Eg, +// - name: Identifier. Name of insight type config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_I // D]/config. func (r *OrganizationsLocationsInsightTypesService) UpdateConfig(name string, googlecloudrecommenderv1beta1insighttypeconfig *GoogleCloudRecommenderV1beta1InsightTypeConfig) *OrganizationsLocationsInsightTypesUpdateConfigCall { @@ -5652,7 +5652,7 @@ type OrganizationsLocationsRecommendersUpdateConfigCall struct { // UpdateConfig: Updates a Recommender Config. This will create a new revision // of the config. // -// - name: Name of recommender config. Eg, +// - name: Identifier. Name of recommender config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID // ]/config. func (r *OrganizationsLocationsRecommendersService) UpdateConfig(name string, googlecloudrecommenderv1beta1recommenderconfig *GoogleCloudRecommenderV1beta1RecommenderConfig) *OrganizationsLocationsRecommendersUpdateConfigCall { @@ -6756,7 +6756,7 @@ type ProjectsLocationsInsightTypesUpdateConfigCall struct { // UpdateConfig: Updates an InsightTypeConfig change. This will create a new // revision of the config. // -// - name: Name of insight type config. Eg, +// - name: Identifier. Name of insight type config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_I // D]/config. func (r *ProjectsLocationsInsightTypesService) UpdateConfig(name string, googlecloudrecommenderv1beta1insighttypeconfig *GoogleCloudRecommenderV1beta1InsightTypeConfig) *ProjectsLocationsInsightTypesUpdateConfigCall { @@ -7384,7 +7384,7 @@ type ProjectsLocationsRecommendersUpdateConfigCall struct { // UpdateConfig: Updates a Recommender Config. This will create a new revision // of the config. // -// - name: Name of recommender config. Eg, +// - name: Identifier. Name of recommender config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID // ]/config. func (r *ProjectsLocationsRecommendersService) UpdateConfig(name string, googlecloudrecommenderv1beta1recommenderconfig *GoogleCloudRecommenderV1beta1RecommenderConfig) *ProjectsLocationsRecommendersUpdateConfigCall { diff --git a/secretmanager/v1/secretmanager-api.json b/secretmanager/v1/secretmanager-api.json index 6dabef0c908..7fff792fb0c 100644 --- a/secretmanager/v1/secretmanager-api.json +++ b/secretmanager/v1/secretmanager-api.json @@ -20,6 +20,16 @@ "description": "Regional Endpoint", "endpointUrl": "https://secretmanager.me-central2.rep.googleapis.com/", "location": "me-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.me-west1.rep.googleapis.com/", + "location": "me-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.us-central1.rep.googleapis.com/", + "location": "us-central1" } ], "fullyEncodeReservedExpansion": true, @@ -1115,7 +1125,7 @@ } } }, - "revision": "20240314", + "revision": "20240424", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { diff --git a/secretmanager/v1beta1/secretmanager-api.json b/secretmanager/v1beta1/secretmanager-api.json index 0974b6a998a..c60093d7423 100644 --- a/secretmanager/v1beta1/secretmanager-api.json +++ b/secretmanager/v1beta1/secretmanager-api.json @@ -20,6 +20,16 @@ "description": "Regional Endpoint", "endpointUrl": "https://secretmanager.me-central2.rep.googleapis.com/", "location": "me-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.me-west1.rep.googleapis.com/", + "location": "me-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.us-central1.rep.googleapis.com/", + "location": "us-central1" } ], "fullyEncodeReservedExpansion": true, @@ -635,7 +645,7 @@ } } }, - "revision": "20240314", + "revision": "20240424", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { diff --git a/secretmanager/v1beta2/secretmanager-api.json b/secretmanager/v1beta2/secretmanager-api.json index fbdfd4e1fbb..17ba083625d 100644 --- a/secretmanager/v1beta2/secretmanager-api.json +++ b/secretmanager/v1beta2/secretmanager-api.json @@ -20,6 +20,16 @@ "description": "Regional Endpoint", "endpointUrl": "https://secretmanager.me-central2.rep.googleapis.com/", "location": "me-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.me-west1.rep.googleapis.com/", + "location": "me-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://secretmanager.us-central1.rep.googleapis.com/", + "location": "us-central1" } ], "fullyEncodeReservedExpansion": true, @@ -1115,7 +1125,7 @@ } } }, - "revision": "20240314", + "revision": "20240424", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index 1a32745375e..9c988ae6947 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -870,7 +870,7 @@ } } }, - "revision": "20240422", + "revision": "20240423", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -2329,6 +2329,54 @@ }, "type": "object" }, + "CancelDataSourceRefreshRequest": { + "description": "Cancels one or multiple refreshes of data source objects in the spreadsheet by the specified references.", + "id": "CancelDataSourceRefreshRequest", + "properties": { + "dataSourceId": { + "description": "Reference to a DataSource. If specified, cancels all associated data source object refreshes for this data source.", + "type": "string" + }, + "isAll": { + "description": "Cancels all existing data source object refreshes for all data sources in the spreadsheet.", + "type": "boolean" + }, + "references": { + "$ref": "DataSourceObjectReferences", + "description": "References to data source objects whose refreshes are to be cancelled." + } + }, + "type": "object" + }, + "CancelDataSourceRefreshResponse": { + "description": "The response from cancelling one or multiple data source object refreshes.", + "id": "CancelDataSourceRefreshResponse", + "properties": { + "statuses": { + "description": "The cancellation statuses of refreshes of all data source objects specified in the request. If is_all is specified, the field contains only those in failure status. Refreshing and canceling refresh the same data source object is also not allowed in the same `batchUpdate`.", + "items": { + "$ref": "CancelDataSourceRefreshStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "CancelDataSourceRefreshStatus": { + "description": "The status of cancelling a single data source object refresh.", + "id": "CancelDataSourceRefreshStatus", + "properties": { + "reference": { + "$ref": "DataSourceObjectReference", + "description": "Reference to the data source object whose refresh is being cancelled." + }, + "refreshCancellationStatus": { + "$ref": "RefreshCancellationStatus", + "description": "The cancellation status." + } + }, + "type": "object" + }, "CandlestickChartSpec": { "description": "A candlestick chart.", "id": "CandlestickChartSpec", @@ -5855,6 +5903,47 @@ }, "type": "object" }, + "RefreshCancellationStatus": { + "description": "The status of a refresh cancellation. You can send cancel request to explicitly cancel one or multiple data source object refreshes.", + "id": "RefreshCancellationStatus", + "properties": { + "errorCode": { + "description": "The error code.", + "enum": [ + "REFRESH_CANCELLATION_ERROR_CODE_UNSPECIFIED", + "EXECUTION_NOT_FOUND", + "CANCEL_PERMISSION_DENIED", + "QUERY_EXECUTION_COMPLETED", + "CONCURRENT_CANCELLATION", + "CANCEL_OTHER_ERROR" + ], + "enumDescriptions": [ + "Default value, do not use.", + "Execution to be cancelled not found in the query engine or in Sheets.", + "The user does not have permission to cancel the query.", + "The query execution has already completed and thus could not be cancelled.", + "There is already another cancellation in process.", + "All other errors." + ], + "type": "string" + }, + "state": { + "description": "The state of a call to cancel a refresh in Sheets.", + "enum": [ + "REFRESH_CANCELLATION_STATE_UNSPECIFIED", + "CANCEL_SUCCEEDED", + "CANCEL_FAILED" + ], + "enumDescriptions": [ + "Default value, do not use.", + "The API call to Sheets to cancel a refresh has succeeded. This does not mean that the cancel happened successfully, but that the call has been made successfully.", + "The API call to Sheets to cancel a refresh has failed." + ], + "type": "string" + } + }, + "type": "object" + }, "RefreshDataSourceObjectExecutionStatus": { "description": "The execution status of refreshing one data source object.", "id": "RefreshDataSourceObjectExecutionStatus", @@ -5987,6 +6076,10 @@ "$ref": "AutoResizeDimensionsRequest", "description": "Automatically resizes one or more dimensions based on the contents of the cells in that dimension." }, + "cancelDataSourceRefresh": { + "$ref": "CancelDataSourceRefreshRequest", + "description": "Cancels refreshes of one or multiple data sources and associated dbobjects." + }, "clearBasicFilter": { "$ref": "ClearBasicFilterRequest", "description": "Clears the basic filter on a sheet." @@ -6234,6 +6327,10 @@ "$ref": "AddSlicerResponse", "description": "A reply from adding a slicer." }, + "cancelDataSourceRefresh": { + "$ref": "CancelDataSourceRefreshResponse", + "description": "A reply from cancelling data source object refreshes." + }, "createDeveloperMetadata": { "$ref": "CreateDeveloperMetadataResponse", "description": "A reply from creating a developer metadata entry." diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index 9e411c8e5a3..0a44681a1e8 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -2228,6 +2228,88 @@ func (s *BubbleChartSpec) UnmarshalJSON(data []byte) error { return nil } +// CancelDataSourceRefreshRequest: Cancels one or multiple refreshes of data +// source objects in the spreadsheet by the specified references. +type CancelDataSourceRefreshRequest struct { + // DataSourceId: Reference to a DataSource. If specified, cancels all + // associated data source object refreshes for this data source. + DataSourceId string `json:"dataSourceId,omitempty"` + // IsAll: Cancels all existing data source object refreshes for all data + // sources in the spreadsheet. + IsAll bool `json:"isAll,omitempty"` + // References: References to data source objects whose refreshes are to be + // cancelled. + References *DataSourceObjectReferences `json:"references,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataSourceId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataSourceId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *CancelDataSourceRefreshRequest) MarshalJSON() ([]byte, error) { + type NoMethod CancelDataSourceRefreshRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// CancelDataSourceRefreshResponse: The response from cancelling one or +// multiple data source object refreshes. +type CancelDataSourceRefreshResponse struct { + // Statuses: The cancellation statuses of refreshes of all data source objects + // specified in the request. If is_all is specified, the field contains only + // those in failure status. Refreshing and canceling refresh the same data + // source object is also not allowed in the same `batchUpdate`. + Statuses []*CancelDataSourceRefreshStatus `json:"statuses,omitempty"` + // ForceSendFields is a list of field names (e.g. "Statuses") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Statuses") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *CancelDataSourceRefreshResponse) MarshalJSON() ([]byte, error) { + type NoMethod CancelDataSourceRefreshResponse + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// CancelDataSourceRefreshStatus: The status of cancelling a single data source +// object refresh. +type CancelDataSourceRefreshStatus struct { + // Reference: Reference to the data source object whose refresh is being + // cancelled. + Reference *DataSourceObjectReference `json:"reference,omitempty"` + // RefreshCancellationStatus: The cancellation status. + RefreshCancellationStatus *RefreshCancellationStatus `json:"refreshCancellationStatus,omitempty"` + // ForceSendFields is a list of field names (e.g. "Reference") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Reference") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *CancelDataSourceRefreshStatus) MarshalJSON() ([]byte, error) { + type NoMethod CancelDataSourceRefreshStatus + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // CandlestickChartSpec: A candlestick chart. type CandlestickChartSpec struct { // Data: The Candlestick chart data. Only one CandlestickData is supported. @@ -6851,6 +6933,51 @@ func (s *RandomizeRangeRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// RefreshCancellationStatus: The status of a refresh cancellation. You can +// send cancel request to explicitly cancel one or multiple data source object +// refreshes. +type RefreshCancellationStatus struct { + // ErrorCode: The error code. + // + // Possible values: + // "REFRESH_CANCELLATION_ERROR_CODE_UNSPECIFIED" - Default value, do not use. + // "EXECUTION_NOT_FOUND" - Execution to be cancelled not found in the query + // engine or in Sheets. + // "CANCEL_PERMISSION_DENIED" - The user does not have permission to cancel + // the query. + // "QUERY_EXECUTION_COMPLETED" - The query execution has already completed + // and thus could not be cancelled. + // "CONCURRENT_CANCELLATION" - There is already another cancellation in + // process. + // "CANCEL_OTHER_ERROR" - All other errors. + ErrorCode string `json:"errorCode,omitempty"` + // State: The state of a call to cancel a refresh in Sheets. + // + // Possible values: + // "REFRESH_CANCELLATION_STATE_UNSPECIFIED" - Default value, do not use. + // "CANCEL_SUCCEEDED" - The API call to Sheets to cancel a refresh has + // succeeded. This does not mean that the cancel happened successfully, but + // that the call has been made successfully. + // "CANCEL_FAILED" - The API call to Sheets to cancel a refresh has failed. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorCode") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ErrorCode") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *RefreshCancellationStatus) MarshalJSON() ([]byte, error) { + type NoMethod RefreshCancellationStatus + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // RefreshDataSourceObjectExecutionStatus: The execution status of refreshing // one data source object. type RefreshDataSourceObjectExecutionStatus struct { @@ -7004,6 +7131,9 @@ type Request struct { // AutoResizeDimensions: Automatically resizes one or more dimensions based on // the contents of the cells in that dimension. AutoResizeDimensions *AutoResizeDimensionsRequest `json:"autoResizeDimensions,omitempty"` + // CancelDataSourceRefresh: Cancels refreshes of one or multiple data sources + // and associated dbobjects. + CancelDataSourceRefresh *CancelDataSourceRefreshRequest `json:"cancelDataSourceRefresh,omitempty"` // ClearBasicFilter: Clears the basic filter on a sheet. ClearBasicFilter *ClearBasicFilterRequest `json:"clearBasicFilter,omitempty"` // CopyPaste: Copies data from one area and pastes it to another. @@ -7150,6 +7280,9 @@ type Response struct { AddSheet *AddSheetResponse `json:"addSheet,omitempty"` // AddSlicer: A reply from adding a slicer. AddSlicer *AddSlicerResponse `json:"addSlicer,omitempty"` + // CancelDataSourceRefresh: A reply from cancelling data source object + // refreshes. + CancelDataSourceRefresh *CancelDataSourceRefreshResponse `json:"cancelDataSourceRefresh,omitempty"` // CreateDeveloperMetadata: A reply from creating a developer metadata entry. CreateDeveloperMetadata *CreateDeveloperMetadataResponse `json:"createDeveloperMetadata,omitempty"` // DeleteConditionalFormatRule: A reply from deleting a conditional format diff --git a/storagetransfer/v1/storagetransfer-api.json b/storagetransfer/v1/storagetransfer-api.json index 80ecb376f16..0e60ec996d6 100644 --- a/storagetransfer/v1/storagetransfer-api.json +++ b/storagetransfer/v1/storagetransfer-api.json @@ -632,7 +632,7 @@ } } }, - "revision": "20240412", + "revision": "20240427", "rootUrl": "https://storagetransfer.googleapis.com/", "schemas": { "AgentPool": { @@ -733,6 +733,10 @@ "description": "Optional. The Resource name of a secret in Secret Manager. AWS credentials must be stored in Secret Manager in JSON format: { \"access_key_id\": \"ACCESS_KEY_ID\", \"secret_access_key\": \"SECRET_ACCESS_KEY\" } GoogleServiceAccount must be granted `roles/secretmanager.secretAccessor` for the resource. See [Configure access to a source: Amazon S3] (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager) for more information. If `credentials_secret` is specified, do not specify role_arn or aws_access_key. Format: `projects/{project_number}/secrets/{secret_name}`", "type": "string" }, + "managedPrivateNetwork": { + "description": "Egress bytes over a Google-managed private network. This network is shared between other users of Storage Transfer Service.", + "type": "boolean" + }, "path": { "description": "Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'.", "type": "string" diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go index 2d3c2b3ed69..5071bdd8d1c 100644 --- a/storagetransfer/v1/storagetransfer-gen.go +++ b/storagetransfer/v1/storagetransfer-gen.go @@ -344,6 +344,9 @@ type AwsS3Data struct { // role_arn or aws_access_key. Format: // `projects/{project_number}/secrets/{secret_name}` CredentialsSecret string `json:"credentialsSecret,omitempty"` + // ManagedPrivateNetwork: Egress bytes over a Google-managed private network. + // This network is shared between other users of Storage Transfer Service. + ManagedPrivateNetwork bool `json:"managedPrivateNetwork,omitempty"` // Path: Root path to transfer objects. Must be an empty string or full path // name that ends with a '/'. This field is treated as an object prefix. As // such, it should generally not begin with a '/'. diff --git a/walletobjects/v1/walletobjects-api.json b/walletobjects/v1/walletobjects-api.json index e25aeb083d4..95e84d53c9e 100644 --- a/walletobjects/v1/walletobjects-api.json +++ b/walletobjects/v1/walletobjects-api.json @@ -2681,7 +2681,7 @@ } } }, - "revision": "20240312", + "revision": "20240430", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -5219,7 +5219,7 @@ "type": "object" }, "GenericObject": { - "description": "Generic Object Next ID: 121", + "description": "Generic Object", "id": "GenericObject", "properties": { "appLinkData": { diff --git a/walletobjects/v1/walletobjects-gen.go b/walletobjects/v1/walletobjects-gen.go index 09d2c90b464..9a65366b20c 100644 --- a/walletobjects/v1/walletobjects-gen.go +++ b/walletobjects/v1/walletobjects-gen.go @@ -3183,7 +3183,7 @@ func (s *GenericClassListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// GenericObject: Generic Object Next ID: 121 +// GenericObject: Generic Object type GenericObject struct { // AppLinkData: Information about the partner app link. The maximum number of // these fields displayed is 10.