-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of TPU client
- Loading branch information
1 parent
f7ca789
commit dd6bb08
Showing
56 changed files
with
4,299 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,673 changes: 1,673 additions & 0 deletions
1,673
clients/tpu/lib/google_api/tpu/v2/api/projects.ex
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
49
clients/tpu/lib/google_api/tpu/v2/model/accelerator_config.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
52
clients/tpu/lib/google_api/tpu/v2/model/accelerator_type.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.