Skip to content

Commit 5dda3d7

Browse files
feat: Automated regeneration of workstations v1 client (#27176)
Auto-created at 2026-06-21 12:20:26 +0000 using the toys pull request generator.
1 parent 254c347 commit 5dda3d7

5 files changed

Lines changed: 78 additions & 2 deletions

File tree

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435631,6 +435631,7 @@
435631435631
"/workstations:v1/GceConfidentialInstanceConfig/enableConfidentialCompute": enable_confidential_compute
435632435632
"/workstations:v1/GceHyperdiskBalancedHighAvailability": gce_hyperdisk_balanced_high_availability
435633435633
"/workstations:v1/GceHyperdiskBalancedHighAvailability/archiveTimeout": archive_timeout
435634+
"/workstations:v1/GceHyperdiskBalancedHighAvailability/maxSizeGb": max_size_gb
435634435635
"/workstations:v1/GceHyperdiskBalancedHighAvailability/reclaimPolicy": reclaim_policy
435635435636
"/workstations:v1/GceHyperdiskBalancedHighAvailability/sizeGb": size_gb
435636435637
"/workstations:v1/GceHyperdiskBalancedHighAvailability/sourceSnapshot": source_snapshot
@@ -435671,6 +435672,7 @@
435671435672
"/workstations:v1/GceRegionalPersistentDisk/archiveTimeout": archive_timeout
435672435673
"/workstations:v1/GceRegionalPersistentDisk/diskType": disk_type
435673435674
"/workstations:v1/GceRegionalPersistentDisk/fsType": fs_type
435675+
"/workstations:v1/GceRegionalPersistentDisk/maxSizeGb": max_size_gb
435674435676
"/workstations:v1/GceRegionalPersistentDisk/reclaimPolicy": reclaim_policy
435675435677
"/workstations:v1/GceRegionalPersistentDisk/sizeGb": size_gb
435676435678
"/workstations:v1/GceRegionalPersistentDisk/sourceSnapshot": source_snapshot
@@ -435813,6 +435815,8 @@
435813435815
"/workstations:v1/Workstation/labels": labels
435814435816
"/workstations:v1/Workstation/labels/label": label
435815435817
"/workstations:v1/Workstation/name": name
435818+
"/workstations:v1/Workstation/persistentDirectories": persistent_directories
435819+
"/workstations:v1/Workstation/persistentDirectories/persistent_directory": persistent_directory
435816435820
"/workstations:v1/Workstation/reconciling": reconciling
435817435821
"/workstations:v1/Workstation/runtimeHost": runtime_host
435818435822
"/workstations:v1/Workstation/sourceWorkstation": source_workstation
@@ -435881,6 +435885,9 @@
435881435885
"/workstations:v1/WorkstationConfig/runningTimeout": running_timeout
435882435886
"/workstations:v1/WorkstationConfig/uid": uid
435883435887
"/workstations:v1/WorkstationConfig/updateTime": update_time
435888+
"/workstations:v1/WorkstationPersistentDirectory": workstation_persistent_directory
435889+
"/workstations:v1/WorkstationPersistentDirectory/mountPath": mount_path
435890+
"/workstations:v1/WorkstationPersistentDirectory/sizeGb": size_gb
435884435891
"/workstations:v1/fields": fields
435885435892
"/workstations:v1/key": key
435886435893
"/workstations:v1/quotaUser": quota_user

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.37.0 (2026-06-21)
4+
5+
* Regenerated from discovery document revision 20260604
6+
37
### v0.36.0 (2026-06-14)
48

59
* Regenerated using generator version 0.19.0

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,12 @@ class GceHyperdiskBalancedHighAvailability
563563
# @return [String]
564564
attr_accessor :archive_timeout
565565

566+
# Optional. Maximum size in GB to which this persistent directory can be resized.
567+
# Defaults to unlimited if not set.
568+
# Corresponds to the JSON property `maxSizeGb`
569+
# @return [Fixnum]
570+
attr_accessor :max_size_gb
571+
566572
# Optional. Whether the persistent disk should be deleted when the workstation
567573
# is deleted. Valid values are `DELETE` and `RETAIN`. Defaults to `DELETE`.
568574
# Corresponds to the JSON property `reclaimPolicy`
@@ -590,6 +596,7 @@ def initialize(**args)
590596
# Update properties of this object
591597
def update!(**args)
592598
@archive_timeout = args[:archive_timeout] if args.key?(:archive_timeout)
599+
@max_size_gb = args[:max_size_gb] if args.key?(:max_size_gb)
593600
@reclaim_policy = args[:reclaim_policy] if args.key?(:reclaim_policy)
594601
@size_gb = args[:size_gb] if args.key?(:size_gb)
595602
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
@@ -890,6 +897,12 @@ class GceRegionalPersistentDisk
890897
# @return [String]
891898
attr_accessor :fs_type
892899

900+
# Optional. Maximum size in GB to which this persistent directory can be resized.
901+
# Defaults to unlimited if not set.
902+
# Corresponds to the JSON property `maxSizeGb`
903+
# @return [Fixnum]
904+
attr_accessor :max_size_gb
905+
893906
# Optional. Whether the persistent disk should be deleted when the workstation
894907
# is deleted. Valid values are `DELETE` and `RETAIN`. Defaults to `DELETE`.
895908
# Corresponds to the JSON property `reclaimPolicy`
@@ -920,6 +933,7 @@ def update!(**args)
920933
@archive_timeout = args[:archive_timeout] if args.key?(:archive_timeout)
921934
@disk_type = args[:disk_type] if args.key?(:disk_type)
922935
@fs_type = args[:fs_type] if args.key?(:fs_type)
936+
@max_size_gb = args[:max_size_gb] if args.key?(:max_size_gb)
923937
@reclaim_policy = args[:reclaim_policy] if args.key?(:reclaim_policy)
924938
@size_gb = args[:size_gb] if args.key?(:size_gb)
925939
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
@@ -1962,6 +1976,11 @@ class Workstation
19621976
# @return [String]
19631977
attr_accessor :name
19641978

1979+
# Optional. Directories to persist across workstation sessions.
1980+
# Corresponds to the JSON property `persistentDirectories`
1981+
# @return [Array<Google::Apis::WorkstationsV1::WorkstationPersistentDirectory>]
1982+
attr_accessor :persistent_directories
1983+
19651984
# Output only. Indicates whether this workstation is currently being updated to
19661985
# match its intended state.
19671986
# Corresponds to the JSON property `reconciling`
@@ -2017,6 +2036,7 @@ def update!(**args)
20172036
@kms_key = args[:kms_key] if args.key?(:kms_key)
20182037
@labels = args[:labels] if args.key?(:labels)
20192038
@name = args[:name] if args.key?(:name)
2039+
@persistent_directories = args[:persistent_directories] if args.key?(:persistent_directories)
20202040
@reconciling = args[:reconciling] if args.key?(:reconciling)
20212041
@runtime_host = args[:runtime_host] if args.key?(:runtime_host)
20222042
@source_workstation = args[:source_workstation] if args.key?(:source_workstation)
@@ -2439,6 +2459,33 @@ def update!(**args)
24392459
@update_time = args[:update_time] if args.key?(:update_time)
24402460
end
24412461
end
2462+
2463+
# A directory to persist across workstation sessions. Updates to this field will
2464+
# only take effect on this workstation after it is restarted.
2465+
class WorkstationPersistentDirectory
2466+
include Google::Apis::Core::Hashable
2467+
2468+
# Optional. The mount path of the persistent directory.
2469+
# Corresponds to the JSON property `mountPath`
2470+
# @return [String]
2471+
attr_accessor :mount_path
2472+
2473+
# Optional. Size of the persistent directory in GB. If specified in an update
2474+
# request, this is the desired size of the directory.
2475+
# Corresponds to the JSON property `sizeGb`
2476+
# @return [Fixnum]
2477+
attr_accessor :size_gb
2478+
2479+
def initialize(**args)
2480+
update!(**args)
2481+
end
2482+
2483+
# Update properties of this object
2484+
def update!(**args)
2485+
@mount_path = args[:mount_path] if args.key?(:mount_path)
2486+
@size_gb = args[:size_gb] if args.key?(:size_gb)
2487+
end
2488+
end
24422489
end
24432490
end
24442491
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.36.0"
19+
GEM_VERSION = "0.37.0"
2020

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

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

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
310310
include Google::Apis::Core::JsonObjectSupport
311311
end
312312

313+
class WorkstationPersistentDirectory
314+
class Representation < Google::Apis::Core::JsonRepresentation; end
315+
316+
include Google::Apis::Core::JsonObjectSupport
317+
end
318+
313319
class Accelerator
314320
# @private
315321
class Representation < Google::Apis::Core::JsonRepresentation
@@ -428,6 +434,7 @@ class GceHyperdiskBalancedHighAvailability
428434
# @private
429435
class Representation < Google::Apis::Core::JsonRepresentation
430436
property :archive_timeout, as: 'archiveTimeout'
437+
property :max_size_gb, as: 'maxSizeGb'
431438
property :reclaim_policy, as: 'reclaimPolicy'
432439
property :size_gb, as: 'sizeGb'
433440
property :source_snapshot, as: 'sourceSnapshot'
@@ -486,6 +493,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
486493
property :archive_timeout, as: 'archiveTimeout'
487494
property :disk_type, as: 'diskType'
488495
property :fs_type, as: 'fsType'
496+
property :max_size_gb, as: 'maxSizeGb'
489497
property :reclaim_policy, as: 'reclaimPolicy'
490498
property :size_gb, as: 'sizeGb'
491499
property :source_snapshot, as: 'sourceSnapshot'
@@ -756,6 +764,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
756764
property :kms_key, as: 'kmsKey'
757765
hash :labels, as: 'labels'
758766
property :name, as: 'name'
767+
collection :persistent_directories, as: 'persistentDirectories', class: Google::Apis::WorkstationsV1::WorkstationPersistentDirectory, decorator: Google::Apis::WorkstationsV1::WorkstationPersistentDirectory::Representation
768+
759769
property :reconciling, as: 'reconciling'
760770
property :runtime_host, as: 'runtimeHost', class: Google::Apis::WorkstationsV1::RuntimeHost, decorator: Google::Apis::WorkstationsV1::RuntimeHost::Representation
761771

@@ -837,6 +847,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
837847
property :update_time, as: 'updateTime'
838848
end
839849
end
850+
851+
class WorkstationPersistentDirectory
852+
# @private
853+
class Representation < Google::Apis::Core::JsonRepresentation
854+
property :mount_path, as: 'mountPath'
855+
property :size_gb, as: 'sizeGb'
856+
end
857+
end
840858
end
841859
end
842860
end

0 commit comments

Comments
 (0)