Skip to content

Commit 53945f2

Browse files
feat: Automated regeneration of AIPlatform client (#13247)
Auto-created at 2025-03-27 13:22:35 +0000 using the toys pull request generator.
1 parent 57c0ae7 commit 53945f2

13 files changed

+464
-6
lines changed

clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex

Lines changed: 219 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6101,6 +6101,78 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
61016101
)
61026102
end
61036103

6104+
@doc """
6105+
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
6106+
6107+
## Parameters
6108+
6109+
* `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server
6110+
* `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
6111+
* `optional_params` (*type:* `keyword()`) - Optional parameters
6112+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
6113+
* `:access_token` (*type:* `String.t`) - OAuth access token.
6114+
* `:alt` (*type:* `String.t`) - Data format for response.
6115+
* `:callback` (*type:* `String.t`) - JSONP
6116+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
6117+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
6118+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
6119+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
6120+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
6121+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
6122+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
6123+
* `:"options.requestedPolicyVersion"` (*type:* `integer()`) - Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
6124+
* `opts` (*type:* `keyword()`) - Call options
6125+
6126+
## Returns
6127+
6128+
* `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleIamV1Policy{}}` on success
6129+
* `{:error, info}` on failure
6130+
"""
6131+
@spec aiplatform_projects_locations_feature_groups_get_iam_policy(
6132+
Tesla.Env.client(),
6133+
String.t(),
6134+
keyword(),
6135+
keyword()
6136+
) ::
6137+
{:ok, GoogleApi.AIPlatform.V1.Model.GoogleIamV1Policy.t()}
6138+
| {:ok, Tesla.Env.t()}
6139+
| {:ok, list()}
6140+
| {:error, any()}
6141+
def aiplatform_projects_locations_feature_groups_get_iam_policy(
6142+
connection,
6143+
resource,
6144+
optional_params \\ [],
6145+
opts \\ []
6146+
) do
6147+
optional_params_config = %{
6148+
:"$.xgafv" => :query,
6149+
:access_token => :query,
6150+
:alt => :query,
6151+
:callback => :query,
6152+
:fields => :query,
6153+
:key => :query,
6154+
:oauth_token => :query,
6155+
:prettyPrint => :query,
6156+
:quotaUser => :query,
6157+
:uploadType => :query,
6158+
:upload_protocol => :query,
6159+
:"options.requestedPolicyVersion" => :query
6160+
}
6161+
6162+
request =
6163+
Request.new()
6164+
|> Request.method(:post)
6165+
|> Request.url("/v1/{+resource}:getIamPolicy", %{
6166+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
6167+
})
6168+
|> Request.add_optional_params(optional_params_config, optional_params)
6169+
|> Request.library_version(@library_version)
6170+
6171+
connection
6172+
|> Connection.execute(request)
6173+
|> Response.decode(opts ++ [struct: %GoogleApi.AIPlatform.V1.Model.GoogleIamV1Policy{}])
6174+
end
6175+
61046176
@doc """
61056177
Lists FeatureGroups in a given project and location.
61066178

@@ -6262,6 +6334,152 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
62626334
)
62636335
end
62646336

6337+
@doc """
6338+
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
6339+
6340+
## Parameters
6341+
6342+
* `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server
6343+
* `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
6344+
* `optional_params` (*type:* `keyword()`) - Optional parameters
6345+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
6346+
* `:access_token` (*type:* `String.t`) - OAuth access token.
6347+
* `:alt` (*type:* `String.t`) - Data format for response.
6348+
* `:callback` (*type:* `String.t`) - JSONP
6349+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
6350+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
6351+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
6352+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
6353+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
6354+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
6355+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
6356+
* `:body` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleIamV1SetIamPolicyRequest.t`) -
6357+
* `opts` (*type:* `keyword()`) - Call options
6358+
6359+
## Returns
6360+
6361+
* `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleIamV1Policy{}}` on success
6362+
* `{:error, info}` on failure
6363+
"""
6364+
@spec aiplatform_projects_locations_feature_groups_set_iam_policy(
6365+
Tesla.Env.client(),
6366+
String.t(),
6367+
keyword(),
6368+
keyword()
6369+
) ::
6370+
{:ok, GoogleApi.AIPlatform.V1.Model.GoogleIamV1Policy.t()}
6371+
| {:ok, Tesla.Env.t()}
6372+
| {:ok, list()}
6373+
| {:error, any()}
6374+
def aiplatform_projects_locations_feature_groups_set_iam_policy(
6375+
connection,
6376+
resource,
6377+
optional_params \\ [],
6378+
opts \\ []
6379+
) do
6380+
optional_params_config = %{
6381+
:"$.xgafv" => :query,
6382+
:access_token => :query,
6383+
:alt => :query,
6384+
:callback => :query,
6385+
:fields => :query,
6386+
:key => :query,
6387+
:oauth_token => :query,
6388+
:prettyPrint => :query,
6389+
:quotaUser => :query,
6390+
:uploadType => :query,
6391+
:upload_protocol => :query,
6392+
:body => :body
6393+
}
6394+
6395+
request =
6396+
Request.new()
6397+
|> Request.method(:post)
6398+
|> Request.url("/v1/{+resource}:setIamPolicy", %{
6399+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
6400+
})
6401+
|> Request.add_optional_params(optional_params_config, optional_params)
6402+
|> Request.library_version(@library_version)
6403+
6404+
connection
6405+
|> Connection.execute(request)
6406+
|> Response.decode(opts ++ [struct: %GoogleApi.AIPlatform.V1.Model.GoogleIamV1Policy{}])
6407+
end
6408+
6409+
@doc """
6410+
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
6411+
6412+
## Parameters
6413+
6414+
* `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server
6415+
* `resource` (*type:* `String.t`) - REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
6416+
* `optional_params` (*type:* `keyword()`) - Optional parameters
6417+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
6418+
* `:access_token` (*type:* `String.t`) - OAuth access token.
6419+
* `:alt` (*type:* `String.t`) - Data format for response.
6420+
* `:callback` (*type:* `String.t`) - JSONP
6421+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
6422+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
6423+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
6424+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
6425+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
6426+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
6427+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
6428+
* `:permissions` (*type:* `list(String.t)`) - The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
6429+
* `opts` (*type:* `keyword()`) - Call options
6430+
6431+
## Returns
6432+
6433+
* `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleIamV1TestIamPermissionsResponse{}}` on success
6434+
* `{:error, info}` on failure
6435+
"""
6436+
@spec aiplatform_projects_locations_feature_groups_test_iam_permissions(
6437+
Tesla.Env.client(),
6438+
String.t(),
6439+
keyword(),
6440+
keyword()
6441+
) ::
6442+
{:ok, GoogleApi.AIPlatform.V1.Model.GoogleIamV1TestIamPermissionsResponse.t()}
6443+
| {:ok, Tesla.Env.t()}
6444+
| {:ok, list()}
6445+
| {:error, any()}
6446+
def aiplatform_projects_locations_feature_groups_test_iam_permissions(
6447+
connection,
6448+
resource,
6449+
optional_params \\ [],
6450+
opts \\ []
6451+
) do
6452+
optional_params_config = %{
6453+
:"$.xgafv" => :query,
6454+
:access_token => :query,
6455+
:alt => :query,
6456+
:callback => :query,
6457+
:fields => :query,
6458+
:key => :query,
6459+
:oauth_token => :query,
6460+
:prettyPrint => :query,
6461+
:quotaUser => :query,
6462+
:uploadType => :query,
6463+
:upload_protocol => :query,
6464+
:permissions => :query
6465+
}
6466+
6467+
request =
6468+
Request.new()
6469+
|> Request.method(:post)
6470+
|> Request.url("/v1/{+resource}:testIamPermissions", %{
6471+
"resource" => URI.encode(resource, &URI.char_unreserved?/1)
6472+
})
6473+
|> Request.add_optional_params(optional_params_config, optional_params)
6474+
|> Request.library_version(@library_version)
6475+
6476+
connection
6477+
|> Connection.execute(request)
6478+
|> Response.decode(
6479+
opts ++ [struct: %GoogleApi.AIPlatform.V1.Model.GoogleIamV1TestIamPermissionsResponse{}]
6480+
)
6481+
end
6482+
62656483
@doc """
62666484
Creates a batch of Features in a given FeatureGroup.
62676485

@@ -39076,7 +39294,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
3907639294
end
3907739295

3907839296
@doc """
39079-
Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. It is only used for exporting conversation data to CCAI Insights.
39297+
Lists Annotations belongs to a dataitem.
3908039298

3908139299
## Parameters
3908239300

clients/ai_platform/lib/google_api/ai_platform/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.AIPlatform.V1 do
2020
API client metadata for GoogleApi.AIPlatform.V1.
2121
"""
2222

23-
@discovery_revision "20250307"
23+
@discovery_revision "20250319"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_feature_group.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureGroup do
2727
* `etag` (*type:* `String.t`, *default:* `nil`) - Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
2828
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. The labels with user-defined metadata to organize your FeatureGroup. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureGroup(System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
2929
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Name of the FeatureGroup. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`
30+
* `serviceAccountEmail` (*type:* `String.t`, *default:* `nil`) - Output only. A Service Account unique to this FeatureGroup. The role bigquery.dataViewer should be granted to this service account to allow Vertex AI Feature Store to access source data while running jobs under this FeatureGroup.
31+
* `serviceAgentType` (*type:* `String.t`, *default:* `nil`) - Optional. Service agent type used during jobs under a FeatureGroup. By default, the Vertex AI Service Agent is used. When using an IAM Policy to isolate this FeatureGroup within a project, a separate service account should be provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_GROUP`. This will generate a separate service account to access the BigQuery source table.
3032
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this FeatureGroup was last updated.
3133
"""
3234

@@ -40,6 +42,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureGroup do
4042
:etag => String.t() | nil,
4143
:labels => map() | nil,
4244
:name => String.t() | nil,
45+
:serviceAccountEmail => String.t() | nil,
46+
:serviceAgentType => String.t() | nil,
4347
:updateTime => DateTime.t() | nil
4448
}
4549

@@ -49,6 +53,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureGroup do
4953
field(:etag)
5054
field(:labels, type: :map)
5155
field(:name)
56+
field(:serviceAccountEmail)
57+
field(:serviceAgentType)
5258
field(:updateTime, as: DateTime)
5359
end
5460

clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_grounding_chunk_web.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,20 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GroundingChunkWeb
2121
2222
## Attributes
2323
24+
* `domain` (*type:* `String.t`, *default:* `nil`) - Domain of the (original) URI.
2425
* `title` (*type:* `String.t`, *default:* `nil`) - Title of the chunk.
2526
* `uri` (*type:* `String.t`, *default:* `nil`) - URI reference of the chunk.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
32+
:domain => String.t() | nil,
3133
:title => String.t() | nil,
3234
:uri => String.t() | nil
3335
}
3436

37+
field(:domain)
3538
field(:title)
3639
field(:uri)
3740
end

clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_corpus.ex

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagCorpus do
2828
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the RagCorpus.
2929
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this RagCorpus was last updated.
3030
* `vectorDbConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfig.t`, *default:* `nil`) - Optional. Immutable. The config for the Vector DBs.
31+
* `vertexAiSearchConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1VertexAiSearchConfig.t`, *default:* `nil`) - Optional. Immutable. The config for the Vertex AI Search.
3132
"""
3233

3334
use GoogleApi.Gax.ModelBase
@@ -41,7 +42,9 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagCorpus do
4142
:name => String.t() | nil,
4243
:updateTime => DateTime.t() | nil,
4344
:vectorDbConfig =>
44-
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfig.t() | nil
45+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfig.t() | nil,
46+
:vertexAiSearchConfig =>
47+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1VertexAiSearchConfig.t() | nil
4548
}
4649

4750
field(:corpusStatus, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CorpusStatus)
@@ -54,6 +57,10 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagCorpus do
5457
field(:vectorDbConfig,
5558
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagVectorDbConfig
5659
)
60+
61+
field(:vertexAiSearchConfig,
62+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1VertexAiSearchConfig
63+
)
5764
end
5865

5966
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagCorpus do

clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_rag_retrieval_config.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagRetrievalConfi
2222
## Attributes
2323
2424
* `filter` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagRetrievalConfigFilter.t`, *default:* `nil`) - Optional. Config for filters.
25+
* `ranking` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagRetrievalConfigRanking.t`, *default:* `nil`) - Optional. Config for ranking and reranking.
2526
* `topK` (*type:* `integer()`, *default:* `nil`) - Optional. The number of contexts to retrieve.
2627
"""
2728

@@ -31,11 +32,18 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagRetrievalConfi
3132
:filter =>
3233
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagRetrievalConfigFilter.t()
3334
| nil,
35+
:ranking =>
36+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagRetrievalConfigRanking.t()
37+
| nil,
3438
:topK => integer() | nil
3539
}
3640

3741
field(:filter, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagRetrievalConfigFilter)
3842

43+
field(:ranking,
44+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagRetrievalConfigRanking
45+
)
46+
3947
field(:topK)
4048
end
4149

0 commit comments

Comments
 (0)