Skip to content

Commit f288575

Browse files
feat: Automated regeneration of Workstations client (googleapis#12366)
Auto-created at 2024-10-20 13:11:00 +0000 using the toys pull request generator.
1 parent 03fd80f commit f288575

File tree

6 files changed

+70
-3
lines changed

6 files changed

+70
-3
lines changed

clients/workstations/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_workstations, "~> 0.5"}]
14+
[{:google_api_workstations, "~> 0.6"}]
1515
end
1616
```
1717

clients/workstations/lib/google_api/workstations/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Workstations.V1 do
2020
API client metadata for GoogleApi.Workstations.V1.
2121
"""
2222

23-
@discovery_revision "20240904"
23+
@discovery_revision "20241009"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Workstations.V1.Model.BoostConfig do
19+
@moduledoc """
20+
A configuration that workstations can boost to.
21+
22+
## Attributes
23+
24+
* `accelerators` (*type:* `list(GoogleApi.Workstations.V1.Model.Accelerator.t)`, *default:* `nil`) - Optional. A list of the type and count of accelerator cards attached to the boost instance. Defaults to `none`.
25+
* `bootDiskSizeGb` (*type:* `integer()`, *default:* `nil`) - Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum boot disk size is `30` GB. Defaults to `50` GB.
26+
* `enableNestedVirtualization` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to enable nested virtualization on boosted Cloud Workstations VMs running using this boost configuration. Defaults to false. Nested virtualization lets you run virtual machine (VM) instances inside your workstation. Before enabling nested virtualization, consider the following important considerations. Cloud Workstations instances are subject to the [same restrictions as Compute Engine instances](https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions): * **Organization policy**: projects, folders, or organizations may be restricted from creating nested VMs if the **Disable VM nested virtualization** constraint is enforced in the organization policy. For more information, see the Compute Engine section, [Checking whether nested virtualization is allowed](https://cloud.google.com/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed). * **Performance**: nested VMs might experience a 10% or greater decrease in performance for workloads that are CPU-bound and possibly greater than a 10% decrease for workloads that are input/output bound. * **Machine Type**: nested virtualization can only be enabled on boost configurations that specify a machine_type in the N1 or N2 machine series.
27+
* `id` (*type:* `String.t`, *default:* `nil`) - Optional. Required. The id to be used for the boost configuration.
28+
* `machineType` (*type:* `String.t`, *default:* `nil`) - Optional. The type of machine that boosted VM instances will use—for example, `e2-standard-4`. For more information about machine types that Cloud Workstations supports, see the list of [available machine types](https://cloud.google.com/workstations/docs/available-machine-types). Defaults to `e2-standard-4`.
29+
* `poolSize` (*type:* `integer()`, *default:* `nil`) - Optional. The number of boost VMs that the system should keep idle so that workstations can be boosted quickly. Defaults to `0`.
30+
"""
31+
32+
use GoogleApi.Gax.ModelBase
33+
34+
@type t :: %__MODULE__{
35+
:accelerators => list(GoogleApi.Workstations.V1.Model.Accelerator.t()) | nil,
36+
:bootDiskSizeGb => integer() | nil,
37+
:enableNestedVirtualization => boolean() | nil,
38+
:id => String.t() | nil,
39+
:machineType => String.t() | nil,
40+
:poolSize => integer() | nil
41+
}
42+
43+
field(:accelerators, as: GoogleApi.Workstations.V1.Model.Accelerator, type: :list)
44+
field(:bootDiskSizeGb)
45+
field(:enableNestedVirtualization)
46+
field(:id)
47+
field(:machineType)
48+
field(:poolSize)
49+
end
50+
51+
defimpl Poison.Decoder, for: GoogleApi.Workstations.V1.Model.BoostConfig do
52+
def decode(value, options) do
53+
GoogleApi.Workstations.V1.Model.BoostConfig.decode(value, options)
54+
end
55+
end
56+
57+
defimpl Poison.Encoder, for: GoogleApi.Workstations.V1.Model.BoostConfig do
58+
def encode(value, options) do
59+
GoogleApi.Gax.ModelBase.encode(value, options)
60+
end
61+
end

clients/workstations/lib/google_api/workstations/v1/model/gce_instance.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.Workstations.V1.Model.GceInstance do
2222
## Attributes
2323
2424
* `accelerators` (*type:* `list(GoogleApi.Workstations.V1.Model.Accelerator.t)`, *default:* `nil`) - Optional. A list of the type and count of accelerator cards attached to the instance.
25+
* `boostConfigs` (*type:* `list(GoogleApi.Workstations.V1.Model.BoostConfig.t)`, *default:* `nil`) - Optional. A list of the boost configurations that workstations created using this workstation configuration are allowed to use.
2526
* `bootDiskSizeGb` (*type:* `integer()`, *default:* `nil`) - Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum boot disk size is `30` GB. Defaults to `50` GB.
2627
* `confidentialInstanceConfig` (*type:* `GoogleApi.Workstations.V1.Model.GceConfidentialInstanceConfig.t`, *default:* `nil`) - Optional. A set of Compute Engine Confidential VM instance options.
2728
* `disablePublicIpAddresses` (*type:* `boolean()`, *default:* `nil`) - Optional. When set to true, disables public IP addresses for VMs. If you disable public IP addresses, you must set up Private Google Access or Cloud NAT on your network. If you use Private Google Access and you use `private.googleapis.com` or `restricted.googleapis.com` for Container Registry and Artifact Registry, make sure that you set up DNS records for domains `*.gcr.io` and `*.pkg.dev`. Defaults to false (VMs have public IP addresses).
@@ -41,6 +42,7 @@ defmodule GoogleApi.Workstations.V1.Model.GceInstance do
4142

4243
@type t :: %__MODULE__{
4344
:accelerators => list(GoogleApi.Workstations.V1.Model.Accelerator.t()) | nil,
45+
:boostConfigs => list(GoogleApi.Workstations.V1.Model.BoostConfig.t()) | nil,
4446
:bootDiskSizeGb => integer() | nil,
4547
:confidentialInstanceConfig =>
4648
GoogleApi.Workstations.V1.Model.GceConfidentialInstanceConfig.t() | nil,
@@ -59,6 +61,7 @@ defmodule GoogleApi.Workstations.V1.Model.GceInstance do
5961
}
6062

6163
field(:accelerators, as: GoogleApi.Workstations.V1.Model.Accelerator, type: :list)
64+
field(:boostConfigs, as: GoogleApi.Workstations.V1.Model.BoostConfig, type: :list)
6265
field(:bootDiskSizeGb)
6366

6467
field(:confidentialInstanceConfig,

clients/workstations/lib/google_api/workstations/v1/model/workstation_cluster.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ defmodule GoogleApi.Workstations.V1.Model.WorkstationCluster do
3636
* `privateClusterConfig` (*type:* `GoogleApi.Workstations.V1.Model.PrivateClusterConfig.t`, *default:* `nil`) - Optional. Configuration for private workstation cluster.
3737
* `reconciling` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates whether this workstation cluster is currently being updated to match its intended state.
3838
* `subnetwork` (*type:* `String.t`, *default:* `nil`) - Immutable. Name of the Compute Engine subnetwork in which instances associated with this workstation cluster will be created. Must be part of the subnetwork specified for this workstation cluster.
39+
* `tags` (*type:* `map()`, *default:* `nil`) - Optional. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
3940
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. A system-assigned unique identifier for this workstation cluster.
4041
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when this workstation cluster was most recently updated.
4142
"""
@@ -58,6 +59,7 @@ defmodule GoogleApi.Workstations.V1.Model.WorkstationCluster do
5859
:privateClusterConfig => GoogleApi.Workstations.V1.Model.PrivateClusterConfig.t() | nil,
5960
:reconciling => boolean() | nil,
6061
:subnetwork => String.t() | nil,
62+
:tags => map() | nil,
6163
:uid => String.t() | nil,
6264
:updateTime => DateTime.t() | nil
6365
}
@@ -77,6 +79,7 @@ defmodule GoogleApi.Workstations.V1.Model.WorkstationCluster do
7779
field(:privateClusterConfig, as: GoogleApi.Workstations.V1.Model.PrivateClusterConfig)
7880
field(:reconciling)
7981
field(:subnetwork)
82+
field(:tags, type: :map)
8083
field(:uid)
8184
field(:updateTime, as: DateTime)
8285
end

clients/workstations/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Workstations.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.5.1"
21+
@version "0.6.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)