Skip to content

Commit

Permalink
feat: Automated regeneration of BareMetalSolution client (#10055)
Browse files Browse the repository at this point in the history
Auto-created at 2022-07-15 21:16:05 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jul 15, 2022
1 parent 06357dd commit fac72d1
Show file tree
Hide file tree
Showing 53 changed files with 4,994 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/bare_metal_solution/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_bare_metal_solution, "~> 0.3"}]
[{:google_api_bare_metal_solution, "~> 0.4"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.BareMetalSolution.V1 do
API client metadata for GoogleApi.BareMetalSolution.V1.
"""

@discovery_revision "20220322"
@discovery_revision "20220706"

def discovery_revision(), do: @discovery_revision
end

Large diffs are not rendered by default.

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
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
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
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
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
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
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
Loading

0 comments on commit fac72d1

Please sign in to comment.