-
Notifications
You must be signed in to change notification settings - Fork 460
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 BareMetalSolution client (#10055)
Auto-created at 2022-07-15 21:16:05 +0000 using the toys pull request generator.
- Loading branch information
1 parent
06357dd
commit fac72d1
Showing
53 changed files
with
4,994 additions
and
3 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
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
2,162 changes: 2,162 additions & 0 deletions
2,162
clients/bare_metal_solution/lib/google_api/bare_metal_solution/v2/api/projects.ex
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
clients/bare_metal_solution/lib/google_api/bare_metal_solution/v2/connection.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,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.BareMetalSolution.V2.Connection do | ||
@moduledoc """ | ||
Handle Tesla connections for GoogleApi.BareMetalSolution.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_bare_metal_solution, | ||
base_url: "https://baremetalsolution.googleapis.com/" | ||
end |
26 changes: 26 additions & 0 deletions
26
clients/bare_metal_solution/lib/google_api/bare_metal_solution/v2/metadata.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,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.BareMetalSolution.V2 do | ||
@moduledoc """ | ||
API client metadata for GoogleApi.BareMetalSolution.V2. | ||
""" | ||
|
||
@discovery_revision "20220706" | ||
|
||
def discovery_revision(), do: @discovery_revision | ||
end |
64 changes: 64 additions & 0 deletions
64
clients/bare_metal_solution/lib/google_api/bare_metal_solution/v2/model/allowed_client.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,64 @@ | ||
# 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.BareMetalSolution.V2.Model.AllowedClient do | ||
@moduledoc """ | ||
Represents an 'access point' for the share. | ||
## Attributes | ||
* `allowDev` (*type:* `boolean()`, *default:* `nil`) - Allow dev flag. Which controls whether to allow creation of devices. | ||
* `allowSuid` (*type:* `boolean()`, *default:* `nil`) - Allow the setuid flag. | ||
* `allowedClientsCidr` (*type:* `String.t`, *default:* `nil`) - The subnet of IP addresses permitted to access the share. | ||
* `mountPermissions` (*type:* `String.t`, *default:* `nil`) - Mount permissions. | ||
* `network` (*type:* `String.t`, *default:* `nil`) - The network the access point sits on. | ||
* `noRootSquash` (*type:* `boolean()`, *default:* `nil`) - Disable root squashing, which is a feature of NFS. Root squash is a special mapping of the remote superuser (root) identity when using identity authentication. | ||
* `shareIp` (*type:* `String.t`, *default:* `nil`) - The IP address of the share on this network. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:allowDev => boolean() | nil, | ||
:allowSuid => boolean() | nil, | ||
:allowedClientsCidr => String.t() | nil, | ||
:mountPermissions => String.t() | nil, | ||
:network => String.t() | nil, | ||
:noRootSquash => boolean() | nil, | ||
:shareIp => String.t() | nil | ||
} | ||
|
||
field(:allowDev) | ||
field(:allowSuid) | ||
field(:allowedClientsCidr) | ||
field(:mountPermissions) | ||
field(:network) | ||
field(:noRootSquash) | ||
field(:shareIp) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.BareMetalSolution.V2.Model.AllowedClient do | ||
def decode(value, options) do | ||
GoogleApi.BareMetalSolution.V2.Model.AllowedClient.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.BareMetalSolution.V2.Model.AllowedClient do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
49 changes: 49 additions & 0 deletions
49
...nts/bare_metal_solution/lib/google_api/bare_metal_solution/v2/model/detach_lun_request.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.BareMetalSolution.V2.Model.DetachLunRequest do | ||
@moduledoc """ | ||
Message for detach specific LUN from an Instance. | ||
## Attributes | ||
* `lun` (*type:* `String.t`, *default:* `nil`) - Required. Name of the Lun to detach. | ||
* `skipReboot` (*type:* `boolean()`, *default:* `nil`) - If true, performs lun unmapping without instance reboot. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:lun => String.t() | nil, | ||
:skipReboot => boolean() | nil | ||
} | ||
|
||
field(:lun) | ||
field(:skipReboot) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.BareMetalSolution.V2.Model.DetachLunRequest do | ||
def decode(value, options) do | ||
GoogleApi.BareMetalSolution.V2.Model.DetachLunRequest.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.BareMetalSolution.V2.Model.DetachLunRequest do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
51 changes: 51 additions & 0 deletions
51
.../google_api/bare_metal_solution/v2/model/fetch_instance_provisioning_settings_response.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,51 @@ | ||
# 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.BareMetalSolution.V2.Model.FetchInstanceProvisioningSettingsResponse do | ||
@moduledoc """ | ||
Response with all provisioning settings. | ||
## Attributes | ||
* `images` (*type:* `list(GoogleApi.BareMetalSolution.V2.Model.OSImage.t)`, *default:* `nil`) - The OS images available. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:images => list(GoogleApi.BareMetalSolution.V2.Model.OSImage.t()) | nil | ||
} | ||
|
||
field(:images, as: GoogleApi.BareMetalSolution.V2.Model.OSImage, type: :list) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.BareMetalSolution.V2.Model.FetchInstanceProvisioningSettingsResponse do | ||
def decode(value, options) do | ||
GoogleApi.BareMetalSolution.V2.Model.FetchInstanceProvisioningSettingsResponse.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.BareMetalSolution.V2.Model.FetchInstanceProvisioningSettingsResponse do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
63 changes: 63 additions & 0 deletions
63
...e_api/bare_metal_solution/v2/model/google_cloud_baremetalsolution_v2_logical_interface.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,63 @@ | ||
# 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.BareMetalSolution.V2.Model.GoogleCloudBaremetalsolutionV2LogicalInterface do | ||
@moduledoc """ | ||
Each logical interface represents a logical abstraction of the underlying physical interface (for eg. bond, nic) of the instance. Each logical interface can effectively map to multiple network-IP pairs and still be mapped to one underlying physical interface. | ||
## Attributes | ||
* `interfaceIndex` (*type:* `integer()`, *default:* `nil`) - The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template. This field is deprecated. | ||
* `logicalNetworkInterfaces` (*type:* `list(GoogleApi.BareMetalSolution.V2.Model.LogicalNetworkInterface.t)`, *default:* `nil`) - List of logical network interfaces within a logical interface. | ||
* `name` (*type:* `String.t`, *default:* `nil`) - Interface name. This is of syntax or and forms part of the network template name. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:interfaceIndex => integer() | nil, | ||
:logicalNetworkInterfaces => | ||
list(GoogleApi.BareMetalSolution.V2.Model.LogicalNetworkInterface.t()) | nil, | ||
:name => String.t() | nil | ||
} | ||
|
||
field(:interfaceIndex) | ||
|
||
field(:logicalNetworkInterfaces, | ||
as: GoogleApi.BareMetalSolution.V2.Model.LogicalNetworkInterface, | ||
type: :list | ||
) | ||
|
||
field(:name) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.BareMetalSolution.V2.Model.GoogleCloudBaremetalsolutionV2LogicalInterface do | ||
def decode(value, options) do | ||
GoogleApi.BareMetalSolution.V2.Model.GoogleCloudBaremetalsolutionV2LogicalInterface.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.BareMetalSolution.V2.Model.GoogleCloudBaremetalsolutionV2LogicalInterface do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
59 changes: 59 additions & 0 deletions
59
...n/v2/model/google_cloud_baremetalsolution_v2_server_network_template_logical_interface.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,59 @@ | ||
# 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.BareMetalSolution.V2.Model.GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface do | ||
@moduledoc """ | ||
Logical interface. | ||
## Attributes | ||
* `name` (*type:* `String.t`, *default:* `nil`) - Interface name. This is not a globally unique identifier. Name is unique only inside the ServerNetworkTemplate. This is of syntax or and forms part of the network template name. | ||
* `required` (*type:* `boolean()`, *default:* `nil`) - If true, interface must have network connected. | ||
* `type` (*type:* `String.t`, *default:* `nil`) - Interface type. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:name => String.t() | nil, | ||
:required => boolean() | nil, | ||
:type => String.t() | nil | ||
} | ||
|
||
field(:name) | ||
field(:required) | ||
field(:type) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: | ||
GoogleApi.BareMetalSolution.V2.Model.GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface do | ||
def decode(value, options) do | ||
GoogleApi.BareMetalSolution.V2.Model.GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: | ||
GoogleApi.BareMetalSolution.V2.Model.GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
Oops, something went wrong.