Skip to content

Commit 896bb5d

Browse files
feat: Automated regeneration of Workstations client (googleapis#12781)
Auto-created at 2025-01-08 13:12:40 +0000 using the toys pull request generator.
1 parent 2d4eaa6 commit 896bb5d

File tree

9 files changed

+113
-6
lines changed

9 files changed

+113
-6
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.6"}]
14+
[{:google_api_workstations, "~> 0.7"}]
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 "20241202"
23+
@discovery_revision "20250101"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717

1818
defmodule GoogleApi.Workstations.V1.Model.BoostConfig do
1919
@moduledoc """
20-
A boost configuration is a set of resources that a workstation can use to increase its performance. If a boost configuration is specified, when starting a workstation, users can choose to use a VM provisioned under the boost config by passing the boost config id in the start request. If no boost config id is provided in the start request, the system will choose a VM from the pool provisioned under the default config.
20+
A boost configuration is a set of resources that a workstation can use to increase its performance. If you specify a boost configuration, upon startup, workstation users can choose to use a VM provisioned under the boost config by passing the boost config ID in the start request. If the workstation user does not provide a boost config ID in the start request, the system will choose a VM from the pool provisioned under the default config.
2121
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 boost instance. Defaults to `none`.
2525
* `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.
2626
* `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`) - Required. The id to be used for the boost configuration.
27+
* `id` (*type:* `String.t`, *default:* `nil`) - Required. The ID to be used for the boost configuration.
2828
* `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`.
2929
* `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`.
3030
"""
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.GceInstanceHost do
19+
@moduledoc """
20+
The Compute Engine instance host.
21+
22+
## Attributes
23+
24+
* `id` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. The ID of the Compute Engine instance.
25+
* `name` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. The name of the Compute Engine instance.
26+
* `zone` (*type:* `String.t`, *default:* `nil`) - Optional. Output only. The zone of the Compute Engine instance.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:id => String.t() | nil,
33+
:name => String.t() | nil,
34+
:zone => String.t() | nil
35+
}
36+
37+
field(:id)
38+
field(:name)
39+
field(:zone)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Workstations.V1.Model.GceInstanceHost do
43+
def decode(value, options) do
44+
GoogleApi.Workstations.V1.Model.GceInstanceHost.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Workstations.V1.Model.GceInstanceHost do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Workstations.V1.Model.PersistentDirectory do
1919
@moduledoc """
20-
A directory to persist across workstation sessions.
20+
A directory to persist across workstation sessions. Updates to this field will not update existing workstations and will only take effect on new workstations.
2121
2222
## Attributes
2323
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.RuntimeHost do
19+
@moduledoc """
20+
Runtime host for the workstation.
21+
22+
## Attributes
23+
24+
* `gceInstanceHost` (*type:* `GoogleApi.Workstations.V1.Model.GceInstanceHost.t`, *default:* `nil`) - Specifies a Compute Engine instance as the host.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:gceInstanceHost => GoogleApi.Workstations.V1.Model.GceInstanceHost.t() | nil
31+
}
32+
33+
field(:gceInstanceHost, as: GoogleApi.Workstations.V1.Model.GceInstanceHost)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Workstations.V1.Model.RuntimeHost do
37+
def decode(value, options) do
38+
GoogleApi.Workstations.V1.Model.RuntimeHost.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Workstations.V1.Model.RuntimeHost do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,20 @@ defmodule GoogleApi.Workstations.V1.Model.StartWorkstationRequest do
2121
2222
## Attributes
2323
24+
* `boostConfig` (*type:* `String.t`, *default:* `nil`) - Optional. If set, the workstation starts using the boost configuration with the specified ID.
2425
* `etag` (*type:* `String.t`, *default:* `nil`) - Optional. If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag.
2526
* `validateOnly` (*type:* `boolean()`, *default:* `nil`) - Optional. If set, validate the request and preview the review, but do not actually apply it.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
32+
:boostConfig => String.t() | nil,
3133
:etag => String.t() | nil,
3234
:validateOnly => boolean() | nil
3335
}
3436

37+
field(:boostConfig)
3538
field(:etag)
3639
field(:validateOnly)
3740
end

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ defmodule GoogleApi.Workstations.V1.Model.Workstation do
3232
* `labels` (*type:* `map()`, *default:* `nil`) - Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
3333
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Full name of this workstation.
3434
* `reconciling` (*type:* `boolean()`, *default:* `nil`) - Output only. Indicates whether this workstation is currently being updated to match its intended state.
35+
* `runtimeHost` (*type:* `GoogleApi.Workstations.V1.Model.RuntimeHost.t`, *default:* `nil`) - Optional. Output only. Runtime host for the workstation when in STATE_RUNNING.
36+
* `sourceWorkstation` (*type:* `String.t`, *default:* `nil`) - Optional. The source workstation from which this workstation's persistent directories were cloned on creation.
3537
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state.
3638
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. Current state of the workstation.
3739
* `uid` (*type:* `String.t`, *default:* `nil`) - Output only. A system-assigned unique identifier for this workstation.
@@ -52,6 +54,8 @@ defmodule GoogleApi.Workstations.V1.Model.Workstation do
5254
:labels => map() | nil,
5355
:name => String.t() | nil,
5456
:reconciling => boolean() | nil,
57+
:runtimeHost => GoogleApi.Workstations.V1.Model.RuntimeHost.t() | nil,
58+
:sourceWorkstation => String.t() | nil,
5559
:startTime => DateTime.t() | nil,
5660
:state => String.t() | nil,
5761
:uid => String.t() | nil,
@@ -69,6 +73,8 @@ defmodule GoogleApi.Workstations.V1.Model.Workstation do
6973
field(:labels, type: :map)
7074
field(:name)
7175
field(:reconciling)
76+
field(:runtimeHost, as: GoogleApi.Workstations.V1.Model.RuntimeHost)
77+
field(:sourceWorkstation)
7278
field(:startTime, as: DateTime)
7379
field(:state)
7480
field(:uid)

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.6.1"
21+
@version "0.7.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)