Skip to content

Commit 477d209

Browse files
feat(aiplatform): update the api
#### aiplatform:v1 The following keys were added: - resources.projects.methods.getCacheConfig (Total Keys: 11) - resources.projects.methods.updateCacheConfig (Total Keys: 12) - resources.projects.resources.locations.resources.endpoints.methods.fetchPredictOperation (Total Keys: 12) - resources.projects.resources.locations.resources.endpoints.methods.predictLongRunning (Total Keys: 12) - resources.projects.resources.locations.resources.publishers.resources.models.methods.fetchPredictOperation (Total Keys: 12) - resources.projects.resources.locations.resources.publishers.resources.models.methods.predictLongRunning (Total Keys: 12) - schemas.CloudAiLargeModelsVisionVideo.properties.encodedVideo (Total Keys: 2) - schemas.CloudAiLargeModelsVisionVideo.properties.encoding.type (Total Keys: 1) - schemas.GoogleCloudAiplatformV1CacheConfig (Total Keys: 4) - schemas.GoogleCloudAiplatformV1FetchPredictOperationRequest (Total Keys: 3) - schemas.GoogleCloudAiplatformV1NotebookExecutionJob.properties.customEnvironmentSpec.$ref (Total Keys: 1) - schemas.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec (Total Keys: 5) - schemas.GoogleCloudAiplatformV1PredictLongRunningRequest (Total Keys: 5) - schemas.GoogleCloudAiplatformV1SchemaPromptApiSchema.properties.translationPrompt.$ref (Total Keys: 1) - schemas.GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair (Total Keys: 8) - schemas.GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample (Total Keys: 6) - schemas.GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource (Total Keys: 5) - schemas.GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource (Total Keys: 3) - schemas.GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption (Total Keys: 4) - schemas.GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt (Total Keys: 7) - schemas.GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput (Total Keys: 4) #### aiplatform:v1beta1 The following keys were added: - resources.projects.resources.locations.resources.endpoints.methods.fetchPredictOperation (Total Keys: 12) - resources.projects.resources.locations.resources.endpoints.methods.predictLongRunning (Total Keys: 12) - resources.projects.resources.locations.resources.featureGroups.resources.featureMonitors.methods.create (Total Keys: 14) - resources.projects.resources.locations.resources.featureGroups.resources.featureMonitors.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.featureGroups.resources.featureMonitors.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.featureGroups.resources.featureMonitors.methods.list (Total Keys: 20) - resources.projects.resources.locations.resources.featureGroups.resources.featureMonitors.resources.featureMonitorJobs.methods.create (Total Keys: 15) - resources.projects.resources.locations.resources.featureGroups.resources.featureMonitors.resources.featureMonitorJobs.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.featureGroups.resources.featureMonitors.resources.featureMonitorJobs.methods.list (Total Keys: 20) - resources.projects.resources.locations.resources.featureGroups.resources.features.methods.get.parameters.featureStatsAndAnomalySpec.latestStatsCount (Total Keys: 3) - resources.projects.resources.locations.resources.featureGroups.resources.features.methods.get.parameters.featureStatsAndAnomalySpec.statsTimeRange.endTime (Total Keys: 3) - resources.projects.resources.locations.resources.featureGroups.resources.features.methods.get.parameters.featureStatsAndAnomalySpec.statsTimeRange.startTime (Total Keys: 3) - resources.projects.resources.locations.resources.featurestores.resources.entityTypes.resources.features.methods.get.parameters.featureStatsAndAnomalySpec.latestStatsCount (Total Keys: 3) - resources.projects.resources.locations.resources.featurestores.resources.entityTypes.resources.features.methods.get.parameters.featureStatsAndAnomalySpec.statsTimeRange.endTime (Total Keys: 3) - resources.projects.resources.locations.resources.featurestores.resources.entityTypes.resources.features.methods.get.parameters.featureStatsAndAnomalySpec.statsTimeRange.startTime (Total Keys: 3) - resources.projects.resources.locations.resources.publishers.resources.models.methods.fetchPredictOperation (Total Keys: 12) - resources.projects.resources.locations.resources.publishers.resources.models.methods.predictLongRunning (Total Keys: 12) - schemas.CloudAiLargeModelsVisionVideo.properties.encodedVideo (Total Keys: 2) - schemas.CloudAiLargeModelsVisionVideo.properties.encoding.type (Total Keys: 1) - schemas.GoogleCloudAiplatformV1beta1DeployedModel.properties.fasterDeploymentConfig.$ref (Total Keys: 1) - schemas.GoogleCloudAiplatformV1beta1FasterDeploymentConfig (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1Feature.properties.featureStatsAndAnomaly (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1FeatureMonitor (Total Keys: 43) - schemas.GoogleCloudAiplatformV1beta1FeatureSelectionConfig (Total Keys: 9) - schemas.GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly (Total Keys: 14) - schemas.GoogleCloudAiplatformV1beta1FetchPredictOperationRequest (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse (Total Keys: 5) - schemas.GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse (Total Keys: 5) - schemas.GoogleCloudAiplatformV1beta1NotebookExecutionJob.properties.customEnvironmentSpec.$ref (Total Keys: 1) - schemas.GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec (Total Keys: 5) - schemas.GoogleCloudAiplatformV1beta1PredictLongRunningRequest (Total Keys: 5) - schemas.GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest.properties.classMethod.type (Total Keys: 1) - schemas.GoogleCloudAiplatformV1beta1ScheduleConfig (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1SchemaPromptApiSchema.properties.translationPrompt.$ref (Total Keys: 1) - schemas.GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair (Total Keys: 8) - schemas.GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample (Total Keys: 6) - schemas.GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource (Total Keys: 5) - schemas.GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationGcsInputSource (Total Keys: 3) - schemas.GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption (Total Keys: 4) - schemas.GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt (Total Keys: 7) - schemas.GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationSentenceFileInput (Total Keys: 4)
1 parent 5bda041 commit 477d209

File tree

27 files changed

+3016
-57
lines changed

27 files changed

+3016
-57
lines changed

docs/dyn/aiplatform_v1.endpoints.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ <h3>Method Details</h3>
310310
&quot;tools&quot;: [ # Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
311311
{ # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
312312
&quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided.
313-
{ # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
313+
{ # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
314314
&quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
315315
&quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.
316316
&quot;parameters&quot;: { # Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed. # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
@@ -584,7 +584,7 @@ <h3>Method Details</h3>
584584
&quot;tools&quot;: [ # Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
585585
{ # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
586586
&quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided.
587-
{ # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
587+
{ # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
588588
&quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
589589
&quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.
590590
&quot;parameters&quot;: { # Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed. # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1
@@ -1003,7 +1003,7 @@ <h3>Method Details</h3>
10031003
&quot;tools&quot;: [ # Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
10041004
{ # Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).
10051005
&quot;functionDeclarations&quot;: [ # Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided.
1006-
{ # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
1006+
{ # Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
10071007
&quot;description&quot;: &quot;A String&quot;, # Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.
10081008
&quot;name&quot;: &quot;A String&quot;, # Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.
10091009
&quot;parameters&quot;: { # Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed. # Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1

docs/dyn/aiplatform_v1.projects.html

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,79 @@ <h2>Instance Methods</h2>
8282
<p class="toc_element">
8383
<code><a href="#close">close()</a></code></p>
8484
<p class="firstline">Close httplib2 connections.</p>
85+
<p class="toc_element">
86+
<code><a href="#getCacheConfig">getCacheConfig(name, x__xgafv=None)</a></code></p>
87+
<p class="firstline">Gets a GenAI cache config.</p>
88+
<p class="toc_element">
89+
<code><a href="#updateCacheConfig">updateCacheConfig(name, body=None, x__xgafv=None)</a></code></p>
90+
<p class="firstline">Updates a cache config.</p>
8591
<h3>Method Details</h3>
8692
<div class="method">
8793
<code class="details" id="close">close()</code>
8894
<pre>Close httplib2 connections.</pre>
8995
</div>
9096

97+
<div class="method">
98+
<code class="details" id="getCacheConfig">getCacheConfig(name, x__xgafv=None)</code>
99+
<pre>Gets a GenAI cache config.
100+
101+
Args:
102+
name: string, Required. Name of the cache config. Format: - `projects/{project}/cacheConfig`. (required)
103+
x__xgafv: string, V1 error format.
104+
Allowed values
105+
1 - v1 error format
106+
2 - v2 error format
107+
108+
Returns:
109+
An object of the form:
110+
111+
{ # Config of GenAI caching features. This is a singleton resource.
112+
&quot;disableCache&quot;: True or False, # If set to true, disables GenAI caching. Otherwise caching is enabled.
113+
&quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`.
114+
}</pre>
115+
</div>
116+
117+
<div class="method">
118+
<code class="details" id="updateCacheConfig">updateCacheConfig(name, body=None, x__xgafv=None)</code>
119+
<pre>Updates a cache config.
120+
121+
Args:
122+
name: string, Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`. (required)
123+
body: object, The request body.
124+
The object takes the form of:
125+
126+
{ # Config of GenAI caching features. This is a singleton resource.
127+
&quot;disableCache&quot;: True or False, # If set to true, disables GenAI caching. Otherwise caching is enabled.
128+
&quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`.
129+
}
130+
131+
x__xgafv: string, V1 error format.
132+
Allowed values
133+
1 - v1 error format
134+
2 - v2 error format
135+
136+
Returns:
137+
An object of the form:
138+
139+
{ # This resource represents a long-running operation that is the result of a network API call.
140+
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
141+
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
142+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
143+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
144+
{
145+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
146+
},
147+
],
148+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
149+
},
150+
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
151+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
152+
},
153+
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
154+
&quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
155+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
156+
},
157+
}</pre>
158+
</div>
159+
91160
</body></html>

0 commit comments

Comments
 (0)