Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of AIPlatform client #11383

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/ai_platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_ai_platform, "~> 0.6"}]
[{:google_api_ai_platform, "~> 0.7"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4271,6 +4271,82 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
)
end

@doc """
Updates a DatasetVersion.

## Parameters

* `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server
* `name` (*type:* `String.t`) - Output only. The resource name of the DatasetVersion.
* `optional_params` (*type:* `keyword()`) - Optional parameters
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
* `:access_token` (*type:* `String.t`) - OAuth access token.
* `:alt` (*type:* `String.t`) - Data format for response.
* `:callback` (*type:* `String.t`) - JSONP
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
* `: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.
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
* `: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.
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
* `:updateMask` (*type:* `String.t`) - Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name`
* `:body` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DatasetVersion.t`) -
* `opts` (*type:* `keyword()`) - Call options

## Returns

* `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DatasetVersion{}}` on success
* `{:error, info}` on failure
"""
@spec aiplatform_projects_locations_datasets_dataset_versions_patch(
Tesla.Env.client(),
String.t(),
keyword(),
keyword()
) ::
{:ok, GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DatasetVersion.t()}
| {:ok, Tesla.Env.t()}
| {:ok, list()}
| {:error, any()}
def aiplatform_projects_locations_datasets_dataset_versions_patch(
connection,
name,
optional_params \\ [],
opts \\ []
) do
optional_params_config = %{
:"$.xgafv" => :query,
:access_token => :query,
:alt => :query,
:callback => :query,
:fields => :query,
:key => :query,
:oauth_token => :query,
:prettyPrint => :query,
:quotaUser => :query,
:uploadType => :query,
:upload_protocol => :query,
:updateMask => :query,
:body => :body
}

request =
Request.new()
|> Request.method(:patch)
|> Request.url("/v1/{+name}", %{
"name" => URI.encode(name, &URI.char_unreserved?/1)
})
|> Request.add_optional_params(optional_params_config, optional_params)
|> Request.library_version(@library_version)

connection
|> Connection.execute(request)
|> Response.decode(
opts ++ [struct: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DatasetVersion{}]
)
end

@doc """
Restores a dataset version.

Expand Down Expand Up @@ -7759,7 +7835,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
## Parameters

* `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server
* `parent` (*type:* `String.t`) - Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`
* `parent` (*type:* `String.t`) - Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}`
* `optional_params` (*type:* `keyword()`) - Optional parameters
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
* `:access_token` (*type:* `String.t`) - OAuth access token.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.AIPlatform.V1 do
API client metadata for GoogleApi.AIPlatform.V1.
"""

@discovery_revision "20240328"
@discovery_revision "20240510"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoRes
## Attributes

* `generatedSamples` (*type:* `list(GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionMedia.t)`, *default:* `nil`) - The generates samples.
* `raiErrorMessage` (*type:* `String.t`, *default:* `nil`) - Returns rai error message for filtered videos.
* `raiMediaFilteredCount` (*type:* `integer()`, *default:* `nil`) - Returns if any videos were filtered due to RAI policies.
* `raiMediaFilteredReasons` (*type:* `list(String.t)`, *default:* `nil`) - Returns rai failure reasons if any.
* `raiTextFilteredReason` (*type:* `GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionFilteredText.t`, *default:* `nil`) - Returns filtered text rai info.
Expand All @@ -32,6 +33,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoRes
@type t :: %__MODULE__{
:generatedSamples =>
list(GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionMedia.t()) | nil,
:raiErrorMessage => String.t() | nil,
:raiMediaFilteredCount => integer() | nil,
:raiMediaFilteredReasons => list(String.t()) | nil,
:raiTextFilteredReason =>
Expand All @@ -43,6 +45,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoRes
type: :list
)

field(:raiErrorMessage)
field(:raiMediaFilteredCount)
field(:raiMediaFilteredReasons, type: :list)

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading