Skip to content

Commit 70181fa

Browse files
feat: Automated regeneration of workstations v1 client (googleapis#20405)
Auto-created at 2024-10-20 09:17:13 +0000 using the toys pull request generator.
1 parent 08b557b commit 70181fa

File tree

5 files changed

+128
-2
lines changed

5 files changed

+128
-2
lines changed

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338997,6 +338997,14 @@
338997338997
"/workstations:v1/Binding/members": members
338998338998
"/workstations:v1/Binding/members/member": member
338999338999
"/workstations:v1/Binding/role": role
339000+
"/workstations:v1/BoostConfig": boost_config
339001+
"/workstations:v1/BoostConfig/accelerators": accelerators
339002+
"/workstations:v1/BoostConfig/accelerators/accelerator": accelerator
339003+
"/workstations:v1/BoostConfig/bootDiskSizeGb": boot_disk_size_gb
339004+
"/workstations:v1/BoostConfig/enableNestedVirtualization": enable_nested_virtualization
339005+
"/workstations:v1/BoostConfig/id": id
339006+
"/workstations:v1/BoostConfig/machineType": machine_type
339007+
"/workstations:v1/BoostConfig/poolSize": pool_size
339000339008
"/workstations:v1/CancelOperationRequest": cancel_operation_request
339001339009
"/workstations:v1/Container": container
339002339010
"/workstations:v1/Container/args": args
@@ -339026,6 +339034,8 @@
339026339034
"/workstations:v1/GceInstance": gce_instance
339027339035
"/workstations:v1/GceInstance/accelerators": accelerators
339028339036
"/workstations:v1/GceInstance/accelerators/accelerator": accelerator
339037+
"/workstations:v1/GceInstance/boostConfigs": boost_configs
339038+
"/workstations:v1/GceInstance/boostConfigs/boost_config": boost_config
339029339039
"/workstations:v1/GceInstance/bootDiskSizeGb": boot_disk_size_gb
339030339040
"/workstations:v1/GceInstance/confidentialInstanceConfig": confidential_instance_config
339031339041
"/workstations:v1/GceInstance/disablePublicIpAddresses": disable_public_ip_addresses
@@ -339210,6 +339220,8 @@
339210339220
"/workstations:v1/WorkstationCluster/privateClusterConfig": private_cluster_config
339211339221
"/workstations:v1/WorkstationCluster/reconciling": reconciling
339212339222
"/workstations:v1/WorkstationCluster/subnetwork": subnetwork
339223+
"/workstations:v1/WorkstationCluster/tags": tags
339224+
"/workstations:v1/WorkstationCluster/tags/tag": tag
339213339225
"/workstations:v1/WorkstationCluster/uid": uid
339214339226
"/workstations:v1/WorkstationCluster/updateTime": update_time
339215339227
"/workstations:v1/WorkstationConfig": workstation_config

generated/google-apis-workstations_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-workstations_v1
22

3+
### v0.18.0 (2024-10-20)
4+
5+
* Regenerated from discovery document revision 20241009
6+
37
### v0.17.0 (2024-09-15)
48

59
* Regenerated from discovery document revision 20240904

generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/classes.rb

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,80 @@ def update!(**args)
220220
end
221221
end
222222

223+
# A configuration that workstations can boost to.
224+
class BoostConfig
225+
include Google::Apis::Core::Hashable
226+
227+
# Optional. A list of the type and count of accelerator cards attached to the
228+
# boost instance. Defaults to `none`.
229+
# Corresponds to the JSON property `accelerators`
230+
# @return [Array<Google::Apis::WorkstationsV1::Accelerator>]
231+
attr_accessor :accelerators
232+
233+
# Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum
234+
# boot disk size is `30` GB. Defaults to `50` GB.
235+
# Corresponds to the JSON property `bootDiskSizeGb`
236+
# @return [Fixnum]
237+
attr_accessor :boot_disk_size_gb
238+
239+
# Optional. Whether to enable nested virtualization on boosted Cloud
240+
# Workstations VMs running using this boost configuration. Defaults to false.
241+
# Nested virtualization lets you run virtual machine (VM) instances inside your
242+
# workstation. Before enabling nested virtualization, consider the following
243+
# important considerations. Cloud Workstations instances are subject to the [
244+
# same restrictions as Compute Engine instances](https://cloud.google.com/
245+
# compute/docs/instances/nested-virtualization/overview#restrictions): * **
246+
# Organization policy**: projects, folders, or organizations may be restricted
247+
# from creating nested VMs if the **Disable VM nested virtualization**
248+
# constraint is enforced in the organization policy. For more information, see
249+
# the Compute Engine section, [Checking whether nested virtualization is allowed]
250+
# (https://cloud.google.com/compute/docs/instances/nested-virtualization/
251+
# managing-constraint#checking_whether_nested_virtualization_is_allowed). * **
252+
# Performance**: nested VMs might experience a 10% or greater decrease in
253+
# performance for workloads that are CPU-bound and possibly greater than a 10%
254+
# decrease for workloads that are input/output bound. * **Machine Type**: nested
255+
# virtualization can only be enabled on boost configurations that specify a
256+
# machine_type in the N1 or N2 machine series.
257+
# Corresponds to the JSON property `enableNestedVirtualization`
258+
# @return [Boolean]
259+
attr_accessor :enable_nested_virtualization
260+
alias_method :enable_nested_virtualization?, :enable_nested_virtualization
261+
262+
# Optional. Required. The id to be used for the boost configuration.
263+
# Corresponds to the JSON property `id`
264+
# @return [String]
265+
attr_accessor :id
266+
267+
# Optional. The type of machine that boosted VM instances will use—for example, `
268+
# e2-standard-4`. For more information about machine types that Cloud
269+
# Workstations supports, see the list of [available machine types](https://cloud.
270+
# google.com/workstations/docs/available-machine-types). Defaults to `e2-
271+
# standard-4`.
272+
# Corresponds to the JSON property `machineType`
273+
# @return [String]
274+
attr_accessor :machine_type
275+
276+
# Optional. The number of boost VMs that the system should keep idle so that
277+
# workstations can be boosted quickly. Defaults to `0`.
278+
# Corresponds to the JSON property `poolSize`
279+
# @return [Fixnum]
280+
attr_accessor :pool_size
281+
282+
def initialize(**args)
283+
update!(**args)
284+
end
285+
286+
# Update properties of this object
287+
def update!(**args)
288+
@accelerators = args[:accelerators] if args.key?(:accelerators)
289+
@boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
290+
@enable_nested_virtualization = args[:enable_nested_virtualization] if args.key?(:enable_nested_virtualization)
291+
@id = args[:id] if args.key?(:id)
292+
@machine_type = args[:machine_type] if args.key?(:machine_type)
293+
@pool_size = args[:pool_size] if args.key?(:pool_size)
294+
end
295+
end
296+
223297
# The request message for Operations.CancelOperation.
224298
class CancelOperationRequest
225299
include Google::Apis::Core::Hashable
@@ -456,6 +530,12 @@ class GceInstance
456530
# @return [Array<Google::Apis::WorkstationsV1::Accelerator>]
457531
attr_accessor :accelerators
458532

533+
# Optional. A list of the boost configurations that workstations created using
534+
# this workstation configuration are allowed to use.
535+
# Corresponds to the JSON property `boostConfigs`
536+
# @return [Array<Google::Apis::WorkstationsV1::BoostConfig>]
537+
attr_accessor :boost_configs
538+
459539
# Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum
460540
# boot disk size is `30` GB. Defaults to `50` GB.
461541
# Corresponds to the JSON property `bootDiskSizeGb`
@@ -580,6 +660,7 @@ def initialize(**args)
580660
# Update properties of this object
581661
def update!(**args)
582662
@accelerators = args[:accelerators] if args.key?(:accelerators)
663+
@boost_configs = args[:boost_configs] if args.key?(:boost_configs)
583664
@boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
584665
@confidential_instance_config = args[:confidential_instance_config] if args.key?(:confidential_instance_config)
585666
@disable_public_ip_addresses = args[:disable_public_ip_addresses] if args.key?(:disable_public_ip_addresses)
@@ -1836,6 +1917,12 @@ class WorkstationCluster
18361917
# @return [String]
18371918
attr_accessor :subnetwork
18381919

1920+
# Optional. Tag keys/values directly bound to this resource. For example: "123/
1921+
# environment": "production", "123/costCenter": "marketing"
1922+
# Corresponds to the JSON property `tags`
1923+
# @return [Hash<String,String>]
1924+
attr_accessor :tags
1925+
18391926
# Output only. A system-assigned unique identifier for this workstation cluster.
18401927
# Corresponds to the JSON property `uid`
18411928
# @return [String]
@@ -1867,6 +1954,7 @@ def update!(**args)
18671954
@private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config)
18681955
@reconciling = args[:reconciling] if args.key?(:reconciling)
18691956
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
1957+
@tags = args[:tags] if args.key?(:tags)
18701958
@uid = args[:uid] if args.key?(:uid)
18711959
@update_time = args[:update_time] if args.key?(:update_time)
18721960
end

generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module WorkstationsV1
1818
# Version of the google-apis-workstations_v1 gem
19-
GEM_VERSION = "0.17.0"
19+
GEM_VERSION = "0.18.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240904"
25+
REVISION = "20241009"
2626
end
2727
end
2828
end

generated/google-apis-workstations_v1/lib/google/apis/workstations_v1/representations.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
4646
include Google::Apis::Core::JsonObjectSupport
4747
end
4848

49+
class BoostConfig
50+
class Representation < Google::Apis::Core::JsonRepresentation; end
51+
52+
include Google::Apis::Core::JsonObjectSupport
53+
end
54+
4955
class CancelOperationRequest
5056
class Representation < Google::Apis::Core::JsonRepresentation; end
5157

@@ -315,6 +321,19 @@ class Representation < Google::Apis::Core::JsonRepresentation
315321
end
316322
end
317323

324+
class BoostConfig
325+
# @private
326+
class Representation < Google::Apis::Core::JsonRepresentation
327+
collection :accelerators, as: 'accelerators', class: Google::Apis::WorkstationsV1::Accelerator, decorator: Google::Apis::WorkstationsV1::Accelerator::Representation
328+
329+
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
330+
property :enable_nested_virtualization, as: 'enableNestedVirtualization'
331+
property :id, as: 'id'
332+
property :machine_type, as: 'machineType'
333+
property :pool_size, as: 'poolSize'
334+
end
335+
end
336+
318337
class CancelOperationRequest
319338
# @private
320339
class Representation < Google::Apis::Core::JsonRepresentation
@@ -379,6 +398,8 @@ class GceInstance
379398
class Representation < Google::Apis::Core::JsonRepresentation
380399
collection :accelerators, as: 'accelerators', class: Google::Apis::WorkstationsV1::Accelerator, decorator: Google::Apis::WorkstationsV1::Accelerator::Representation
381400

401+
collection :boost_configs, as: 'boostConfigs', class: Google::Apis::WorkstationsV1::BoostConfig, decorator: Google::Apis::WorkstationsV1::BoostConfig::Representation
402+
382403
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
383404
property :confidential_instance_config, as: 'confidentialInstanceConfig', class: Google::Apis::WorkstationsV1::GceConfidentialInstanceConfig, decorator: Google::Apis::WorkstationsV1::GceConfidentialInstanceConfig::Representation
384405

@@ -699,6 +720,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
699720

700721
property :reconciling, as: 'reconciling'
701722
property :subnetwork, as: 'subnetwork'
723+
hash :tags, as: 'tags'
702724
property :uid, as: 'uid'
703725
property :update_time, as: 'updateTime'
704726
end

0 commit comments

Comments
 (0)