Skip to content

Commit b507afa

Browse files
feat: Automated regeneration of workstations v1beta client (#24926)
Auto-created at 2025-11-09 10:24:09 +0000 using the toys pull request generator.
1 parent aed3ce7 commit b507afa

File tree

5 files changed

+101
-2
lines changed

5 files changed

+101
-2
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397215,6 +397215,11 @@
397215397215
"/workstations:v1beta/GatewayConfig/http2Enabled": http2_enabled
397216397216
"/workstations:v1beta/GceConfidentialInstanceConfig": gce_confidential_instance_config
397217397217
"/workstations:v1beta/GceConfidentialInstanceConfig/enableConfidentialCompute": enable_confidential_compute
397218+
"/workstations:v1beta/GceHyperdiskBalancedHighAvailability": gce_hyperdisk_balanced_high_availability
397219+
"/workstations:v1beta/GceHyperdiskBalancedHighAvailability/archiveTimeout": archive_timeout
397220+
"/workstations:v1beta/GceHyperdiskBalancedHighAvailability/reclaimPolicy": reclaim_policy
397221+
"/workstations:v1beta/GceHyperdiskBalancedHighAvailability/sizeGb": size_gb
397222+
"/workstations:v1beta/GceHyperdiskBalancedHighAvailability/sourceSnapshot": source_snapshot
397218397223
"/workstations:v1beta/GceInstance": gce_instance
397219397224
"/workstations:v1beta/GceInstance/accelerators": accelerators
397220397225
"/workstations:v1beta/GceInstance/accelerators/accelerator": accelerator
@@ -397233,6 +397238,7 @@
397233397238
"/workstations:v1beta/GceInstance/serviceAccountScopes": service_account_scopes
397234397239
"/workstations:v1beta/GceInstance/serviceAccountScopes/service_account_scope": service_account_scope
397235397240
"/workstations:v1beta/GceInstance/shieldedInstanceConfig": shielded_instance_config
397241+
"/workstations:v1beta/GceInstance/startupScriptUri": startup_script_uri
397236397242
"/workstations:v1beta/GceInstance/tags": tags
397237397243
"/workstations:v1beta/GceInstance/tags/tag": tag
397238397244
"/workstations:v1beta/GceInstance/vmTags": vm_tags
@@ -397324,6 +397330,7 @@
397324397330
"/workstations:v1beta/OperationMetadata/target": target
397325397331
"/workstations:v1beta/OperationMetadata/verb": verb
397326397332
"/workstations:v1beta/PersistentDirectory": persistent_directory
397333+
"/workstations:v1beta/PersistentDirectory/gceHd": gce_hd
397327397334
"/workstations:v1beta/PersistentDirectory/gcePd": gce_pd
397328397335
"/workstations:v1beta/PersistentDirectory/mountPath": mount_path
397329397336
"/workstations:v1beta/Policy": policy

generated/google-apis-workstations_v1beta/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_v1beta
22

3+
### v0.45.0 (2025-11-09)
4+
5+
* Regenerated from discovery document revision 20251022
6+
37
### v0.44.0 (2025-10-12)
48

59
* Regenerated from discovery document revision 20250929

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

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,55 @@ def update!(**args)
553553
end
554554
end
555555

556+
# A Persistent Directory backed by a Compute Engine Hyperdisk Balanced High
557+
# Availability Disk. This is a high-availability block storage solution that
558+
# offers a balance between performance and cost for most general-purpose
559+
# workloads.
560+
class GceHyperdiskBalancedHighAvailability
561+
include Google::Apis::Core::Hashable
562+
563+
# Optional. Number of seconds to wait after initially creating or subsequently
564+
# shutting down the workstation before converting its disk into a snapshot. This
565+
# generally saves costs at the expense of greater startup time on next
566+
# workstation start, as the service will need to create a disk from the archival
567+
# snapshot. A value of `"0s"` indicates that the disk will never be archived.
568+
# Corresponds to the JSON property `archiveTimeout`
569+
# @return [String]
570+
attr_accessor :archive_timeout
571+
572+
# Optional. Whether the persistent disk should be deleted when the workstation
573+
# is deleted. Valid values are `DELETE` and `RETAIN`. Defaults to `DELETE`.
574+
# Corresponds to the JSON property `reclaimPolicy`
575+
# @return [String]
576+
attr_accessor :reclaim_policy
577+
578+
# Optional. The GB capacity of a persistent home directory for each workstation
579+
# created with this configuration. Must be empty if source_snapshot is set.
580+
# Valid values are `10`, `50`, `100`, `200`, `500`, or `1000`. Defaults to `200`.
581+
# Corresponds to the JSON property `sizeGb`
582+
# @return [Fixnum]
583+
attr_accessor :size_gb
584+
585+
# Optional. Name of the snapshot to use as the source for the disk. If set,
586+
# size_gb must be empty. Must be formatted as ext4 file system with no
587+
# partitions.
588+
# Corresponds to the JSON property `sourceSnapshot`
589+
# @return [String]
590+
attr_accessor :source_snapshot
591+
592+
def initialize(**args)
593+
update!(**args)
594+
end
595+
596+
# Update properties of this object
597+
def update!(**args)
598+
@archive_timeout = args[:archive_timeout] if args.key?(:archive_timeout)
599+
@reclaim_policy = args[:reclaim_policy] if args.key?(:reclaim_policy)
600+
@size_gb = args[:size_gb] if args.key?(:size_gb)
601+
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
602+
end
603+
end
604+
556605
# A runtime using a Compute Engine instance.
557606
class GceInstance
558607
include Google::Apis::Core::Hashable
@@ -677,6 +726,16 @@ class GceInstance
677726
# @return [Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig]
678727
attr_accessor :shielded_instance_config
679728

729+
# Optional. Link to the startup script stored in Cloud Storage. This script will
730+
# be run on the host workstation VM when the VM is created. The uri must be of
731+
# the form gs://`bucket-name`/`object-name`. If specifying a startup script, the
732+
# service account must have [Permission to access the bucket and script file in
733+
# Cloud Storage](https://cloud.google.com/storage/docs/access-control/iam-
734+
# permissions). Otherwise, the script must be publicly accessible.
735+
# Corresponds to the JSON property `startupScriptUri`
736+
# @return [String]
737+
attr_accessor :startup_script_uri
738+
680739
# Optional. Network tags to add to the Compute Engine VMs backing the
681740
# workstations. This option applies [network tags](https://cloud.google.com/vpc/
682741
# docs/add-remove-network-tags) to VMs created with this configuration. These
@@ -714,6 +773,7 @@ def update!(**args)
714773
@service_account = args[:service_account] if args.key?(:service_account)
715774
@service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
716775
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
776+
@startup_script_uri = args[:startup_script_uri] if args.key?(:startup_script_uri)
717777
@tags = args[:tags] if args.key?(:tags)
718778
@vm_tags = args[:vm_tags] if args.key?(:vm_tags)
719779
end
@@ -1349,6 +1409,14 @@ def update!(**args)
13491409
class PersistentDirectory
13501410
include Google::Apis::Core::Hashable
13511411

1412+
# A Persistent Directory backed by a Compute Engine Hyperdisk Balanced High
1413+
# Availability Disk. This is a high-availability block storage solution that
1414+
# offers a balance between performance and cost for most general-purpose
1415+
# workloads.
1416+
# Corresponds to the JSON property `gceHd`
1417+
# @return [Google::Apis::WorkstationsV1beta::GceHyperdiskBalancedHighAvailability]
1418+
attr_accessor :gce_hd
1419+
13521420
# A Persistent Directory backed by a Compute Engine regional persistent disk.
13531421
# The persistent_directories field is repeated, but it may contain only one
13541422
# entry. It creates a [persistent disk](https://cloud.google.com/compute/docs/
@@ -1371,6 +1439,7 @@ def initialize(**args)
13711439

13721440
# Update properties of this object
13731441
def update!(**args)
1442+
@gce_hd = args[:gce_hd] if args.key?(:gce_hd)
13741443
@gce_pd = args[:gce_pd] if args.key?(:gce_pd)
13751444
@mount_path = args[:mount_path] if args.key?(:mount_path)
13761445
end

generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/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 WorkstationsV1beta
1818
# Version of the google-apis-workstations_v1beta gem
19-
GEM_VERSION = "0.44.0"
19+
GEM_VERSION = "0.45.0"
2020

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

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

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
100100
include Google::Apis::Core::JsonObjectSupport
101101
end
102102

103+
class GceHyperdiskBalancedHighAvailability
104+
class Representation < Google::Apis::Core::JsonRepresentation; end
105+
106+
include Google::Apis::Core::JsonObjectSupport
107+
end
108+
103109
class GceInstance
104110
class Representation < Google::Apis::Core::JsonRepresentation; end
105111

@@ -426,6 +432,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
426432
end
427433
end
428434

435+
class GceHyperdiskBalancedHighAvailability
436+
# @private
437+
class Representation < Google::Apis::Core::JsonRepresentation
438+
property :archive_timeout, as: 'archiveTimeout'
439+
property :reclaim_policy, as: 'reclaimPolicy'
440+
property :size_gb, as: 'sizeGb'
441+
property :source_snapshot, as: 'sourceSnapshot'
442+
end
443+
end
444+
429445
class GceInstance
430446
# @private
431447
class Representation < Google::Apis::Core::JsonRepresentation
@@ -448,6 +464,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
448464
collection :service_account_scopes, as: 'serviceAccountScopes'
449465
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig, decorator: Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig::Representation
450466

467+
property :startup_script_uri, as: 'startupScriptUri'
451468
collection :tags, as: 'tags'
452469
hash :vm_tags, as: 'vmTags'
453470
end
@@ -619,6 +636,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
619636
class PersistentDirectory
620637
# @private
621638
class Representation < Google::Apis::Core::JsonRepresentation
639+
property :gce_hd, as: 'gceHd', class: Google::Apis::WorkstationsV1beta::GceHyperdiskBalancedHighAvailability, decorator: Google::Apis::WorkstationsV1beta::GceHyperdiskBalancedHighAvailability::Representation
640+
622641
property :gce_pd, as: 'gcePd', class: Google::Apis::WorkstationsV1beta::GceRegionalPersistentDisk, decorator: Google::Apis::WorkstationsV1beta::GceRegionalPersistentDisk::Representation
623642

624643
property :mount_path, as: 'mountPath'

0 commit comments

Comments
 (0)