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 TPU client #11057

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/tpu/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_tpu, "~> 0.15"}]
[{:google_api_tpu, "~> 0.16"}]
end
```

Expand Down
1,673 changes: 1,673 additions & 0 deletions clients/tpu/lib/google_api/tpu/v2/api/projects.ex

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions clients/tpu/lib/google_api/tpu/v2/connection.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.TPU.V2.Connection do
@moduledoc """
Handle Tesla connections for GoogleApi.TPU.V2.
"""

@type t :: Tesla.Env.client()

use GoogleApi.Gax.Connection,
scopes: [
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
"https://www.googleapis.com/auth/cloud-platform"
],
otp_app: :google_api_tpu,
base_url: "https://tpu.googleapis.com/"
end
26 changes: 26 additions & 0 deletions clients/tpu/lib/google_api/tpu/v2/metadata.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.TPU.V2 do
@moduledoc """
API client metadata for GoogleApi.TPU.V2.
"""

@discovery_revision "20240222"

def discovery_revision(), do: @discovery_revision
end
49 changes: 49 additions & 0 deletions clients/tpu/lib/google_api/tpu/v2/model/accelerator_config.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.TPU.V2.Model.AcceleratorConfig do
@moduledoc """
A TPU accelerator configuration.

## Attributes

* `topology` (*type:* `String.t`, *default:* `nil`) - Required. Topology of TPU in chips.
* `type` (*type:* `String.t`, *default:* `nil`) - Required. Type of TPU.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:topology => String.t() | nil,
:type => String.t() | nil
}

field(:topology)
field(:type)
end

defimpl Poison.Decoder, for: GoogleApi.TPU.V2.Model.AcceleratorConfig do
def decode(value, options) do
GoogleApi.TPU.V2.Model.AcceleratorConfig.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.TPU.V2.Model.AcceleratorConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
52 changes: 52 additions & 0 deletions clients/tpu/lib/google_api/tpu/v2/model/accelerator_type.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.TPU.V2.Model.AcceleratorType do
@moduledoc """
A accelerator type that a Node can be configured with.

## Attributes

* `acceleratorConfigs` (*type:* `list(GoogleApi.TPU.V2.Model.AcceleratorConfig.t)`, *default:* `nil`) - The accelerator config.
* `name` (*type:* `String.t`, *default:* `nil`) - The resource name.
* `type` (*type:* `String.t`, *default:* `nil`) - The accelerator type.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:acceleratorConfigs => list(GoogleApi.TPU.V2.Model.AcceleratorConfig.t()) | nil,
:name => String.t() | nil,
:type => String.t() | nil
}

field(:acceleratorConfigs, as: GoogleApi.TPU.V2.Model.AcceleratorConfig, type: :list)
field(:name)
field(:type)
end

defimpl Poison.Decoder, for: GoogleApi.TPU.V2.Model.AcceleratorType do
def decode(value, options) do
GoogleApi.TPU.V2.Model.AcceleratorType.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.TPU.V2.Model.AcceleratorType do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
41 changes: 41 additions & 0 deletions clients/tpu/lib/google_api/tpu/v2/model/accepted_data.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.TPU.V2.Model.AcceptedData do
@moduledoc """
Further data for the accepted state.

## Attributes

"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{}
end

defimpl Poison.Decoder, for: GoogleApi.TPU.V2.Model.AcceptedData do
def decode(value, options) do
GoogleApi.TPU.V2.Model.AcceptedData.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.TPU.V2.Model.AcceptedData do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
46 changes: 46 additions & 0 deletions clients/tpu/lib/google_api/tpu/v2/model/access_config.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.TPU.V2.Model.AccessConfig do
@moduledoc """
An access config attached to the TPU worker.

## Attributes

* `externalIp` (*type:* `String.t`, *default:* `nil`) - Output only. An external IP address associated with the TPU worker.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:externalIp => String.t() | nil
}

field(:externalIp)
end

defimpl Poison.Decoder, for: GoogleApi.TPU.V2.Model.AccessConfig do
def decode(value, options) do
GoogleApi.TPU.V2.Model.AccessConfig.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.TPU.V2.Model.AccessConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
41 changes: 41 additions & 0 deletions clients/tpu/lib/google_api/tpu/v2/model/active_data.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.TPU.V2.Model.ActiveData do
@moduledoc """
Further data for the active state.

## Attributes

"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{}
end

defimpl Poison.Decoder, for: GoogleApi.TPU.V2.Model.ActiveData do
def decode(value, options) do
GoogleApi.TPU.V2.Model.ActiveData.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.TPU.V2.Model.ActiveData do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
49 changes: 49 additions & 0 deletions clients/tpu/lib/google_api/tpu/v2/model/attached_disk.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.TPU.V2.Model.AttachedDisk do
@moduledoc """
A node-attached disk resource. Next ID: 8;

## Attributes

* `mode` (*type:* `String.t`, *default:* `nil`) - The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.
* `sourceDisk` (*type:* `String.t`, *default:* `nil`) - Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:mode => String.t() | nil,
:sourceDisk => String.t() | nil
}

field(:mode)
field(:sourceDisk)
end

defimpl Poison.Decoder, for: GoogleApi.TPU.V2.Model.AttachedDisk do
def decode(value, options) do
GoogleApi.TPU.V2.Model.AttachedDisk.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.TPU.V2.Model.AttachedDisk do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
41 changes: 41 additions & 0 deletions clients/tpu/lib/google_api/tpu/v2/model/creating_data.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.TPU.V2.Model.CreatingData do
@moduledoc """
Further data for the creating state.

## Attributes

"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{}
end

defimpl Poison.Decoder, for: GoogleApi.TPU.V2.Model.CreatingData do
def decode(value, options) do
GoogleApi.TPU.V2.Model.CreatingData.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.TPU.V2.Model.CreatingData do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading
Loading