diff --git a/api_names_out.yaml b/api_names_out.yaml index 9432dbc325b..697bb25a747 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -396877,6 +396877,11 @@ "/workstations:v1beta/GatewayConfig/http2Enabled": http2_enabled "/workstations:v1beta/GceConfidentialInstanceConfig": gce_confidential_instance_config "/workstations:v1beta/GceConfidentialInstanceConfig/enableConfidentialCompute": enable_confidential_compute +"/workstations:v1beta/GceHyperdiskBalancedHighAvailability": gce_hyperdisk_balanced_high_availability +"/workstations:v1beta/GceHyperdiskBalancedHighAvailability/archiveTimeout": archive_timeout +"/workstations:v1beta/GceHyperdiskBalancedHighAvailability/reclaimPolicy": reclaim_policy +"/workstations:v1beta/GceHyperdiskBalancedHighAvailability/sizeGb": size_gb +"/workstations:v1beta/GceHyperdiskBalancedHighAvailability/sourceSnapshot": source_snapshot "/workstations:v1beta/GceInstance": gce_instance "/workstations:v1beta/GceInstance/accelerators": accelerators "/workstations:v1beta/GceInstance/accelerators/accelerator": accelerator @@ -396895,6 +396900,7 @@ "/workstations:v1beta/GceInstance/serviceAccountScopes": service_account_scopes "/workstations:v1beta/GceInstance/serviceAccountScopes/service_account_scope": service_account_scope "/workstations:v1beta/GceInstance/shieldedInstanceConfig": shielded_instance_config +"/workstations:v1beta/GceInstance/startupScriptUri": startup_script_uri "/workstations:v1beta/GceInstance/tags": tags "/workstations:v1beta/GceInstance/tags/tag": tag "/workstations:v1beta/GceInstance/vmTags": vm_tags @@ -396986,6 +396992,7 @@ "/workstations:v1beta/OperationMetadata/target": target "/workstations:v1beta/OperationMetadata/verb": verb "/workstations:v1beta/PersistentDirectory": persistent_directory +"/workstations:v1beta/PersistentDirectory/gceHd": gce_hd "/workstations:v1beta/PersistentDirectory/gcePd": gce_pd "/workstations:v1beta/PersistentDirectory/mountPath": mount_path "/workstations:v1beta/Policy": policy diff --git a/generated/google-apis-workstations_v1beta/CHANGELOG.md b/generated/google-apis-workstations_v1beta/CHANGELOG.md index 12a3af7cc11..651def507aa 100644 --- a/generated/google-apis-workstations_v1beta/CHANGELOG.md +++ b/generated/google-apis-workstations_v1beta/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-workstations_v1beta +### v0.45.0 (2025-11-09) + +* Regenerated from discovery document revision 20251022 + ### v0.44.0 (2025-10-12) * Regenerated from discovery document revision 20250929 diff --git a/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/classes.rb b/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/classes.rb index 045dab4621e..71f11810401 100644 --- a/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/classes.rb +++ b/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/classes.rb @@ -553,6 +553,55 @@ def update!(**args) end end + # A Persistent Directory backed by a Compute Engine Hyperdisk Balanced High + # Availability Disk. This is a high-availability block storage solution that + # offers a balance between performance and cost for most general-purpose + # workloads. + class GceHyperdiskBalancedHighAvailability + include Google::Apis::Core::Hashable + + # Optional. Number of seconds to wait after initially creating or subsequently + # shutting down the workstation before converting its disk into a snapshot. This + # generally saves costs at the expense of greater startup time on next + # workstation start, as the service will need to create a disk from the archival + # snapshot. A value of `"0s"` indicates that the disk will never be archived. + # Corresponds to the JSON property `archiveTimeout` + # @return [String] + attr_accessor :archive_timeout + + # Optional. Whether the persistent disk should be deleted when the workstation + # is deleted. Valid values are `DELETE` and `RETAIN`. Defaults to `DELETE`. + # Corresponds to the JSON property `reclaimPolicy` + # @return [String] + attr_accessor :reclaim_policy + + # Optional. The GB capacity of a persistent home directory for each workstation + # created with this configuration. Must be empty if source_snapshot is set. + # Valid values are `10`, `50`, `100`, `200`, `500`, or `1000`. Defaults to `200`. + # Corresponds to the JSON property `sizeGb` + # @return [Fixnum] + attr_accessor :size_gb + + # Optional. Name of the snapshot to use as the source for the disk. If set, + # size_gb must be empty. Must be formatted as ext4 file system with no + # partitions. + # Corresponds to the JSON property `sourceSnapshot` + # @return [String] + attr_accessor :source_snapshot + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @archive_timeout = args[:archive_timeout] if args.key?(:archive_timeout) + @reclaim_policy = args[:reclaim_policy] if args.key?(:reclaim_policy) + @size_gb = args[:size_gb] if args.key?(:size_gb) + @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) + end + end + # A runtime using a Compute Engine instance. class GceInstance include Google::Apis::Core::Hashable @@ -677,6 +726,16 @@ class GceInstance # @return [Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig] attr_accessor :shielded_instance_config + # Optional. Link to the startup script stored in Cloud Storage. This script will + # be run on the host workstation VM when the VM is created. The uri must be of + # the form gs://`bucket-name`/`object-name`. If specifying a startup script, the + # service account must have [Permission to access the bucket and script file in + # Cloud Storage](https://cloud.google.com/storage/docs/access-control/iam- + # permissions). Otherwise, the script must be publicly accessible. + # Corresponds to the JSON property `startupScriptUri` + # @return [String] + attr_accessor :startup_script_uri + # Optional. Network tags to add to the Compute Engine VMs backing the # workstations. This option applies [network tags](https://cloud.google.com/vpc/ # docs/add-remove-network-tags) to VMs created with this configuration. These @@ -714,6 +773,7 @@ def update!(**args) @service_account = args[:service_account] if args.key?(:service_account) @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes) @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config) + @startup_script_uri = args[:startup_script_uri] if args.key?(:startup_script_uri) @tags = args[:tags] if args.key?(:tags) @vm_tags = args[:vm_tags] if args.key?(:vm_tags) end @@ -1349,6 +1409,14 @@ def update!(**args) class PersistentDirectory include Google::Apis::Core::Hashable + # A Persistent Directory backed by a Compute Engine Hyperdisk Balanced High + # Availability Disk. This is a high-availability block storage solution that + # offers a balance between performance and cost for most general-purpose + # workloads. + # Corresponds to the JSON property `gceHd` + # @return [Google::Apis::WorkstationsV1beta::GceHyperdiskBalancedHighAvailability] + attr_accessor :gce_hd + # A Persistent Directory backed by a Compute Engine regional persistent disk. # The persistent_directories field is repeated, but it may contain only one # entry. It creates a [persistent disk](https://cloud.google.com/compute/docs/ @@ -1371,6 +1439,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @gce_hd = args[:gce_hd] if args.key?(:gce_hd) @gce_pd = args[:gce_pd] if args.key?(:gce_pd) @mount_path = args[:mount_path] if args.key?(:mount_path) end diff --git a/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/gem_version.rb b/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/gem_version.rb index 797e0a12a39..1f55eef542c 100644 --- a/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/gem_version.rb +++ b/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module WorkstationsV1beta # Version of the google-apis-workstations_v1beta gem - GEM_VERSION = "0.44.0" + GEM_VERSION = "0.45.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250929" + REVISION = "20251022" end end end diff --git a/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/representations.rb b/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/representations.rb index f303e986230..0510042a112 100644 --- a/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/representations.rb +++ b/generated/google-apis-workstations_v1beta/lib/google/apis/workstations_v1beta/representations.rb @@ -100,6 +100,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GceHyperdiskBalancedHighAvailability + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GceInstance class Representation < Google::Apis::Core::JsonRepresentation; end @@ -426,6 +432,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GceHyperdiskBalancedHighAvailability + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :archive_timeout, as: 'archiveTimeout' + property :reclaim_policy, as: 'reclaimPolicy' + property :size_gb, as: 'sizeGb' + property :source_snapshot, as: 'sourceSnapshot' + end + end + class GceInstance # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -448,6 +464,7 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :service_account_scopes, as: 'serviceAccountScopes' property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig, decorator: Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig::Representation + property :startup_script_uri, as: 'startupScriptUri' collection :tags, as: 'tags' hash :vm_tags, as: 'vmTags' end @@ -619,6 +636,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class PersistentDirectory # @private class Representation < Google::Apis::Core::JsonRepresentation + property :gce_hd, as: 'gceHd', class: Google::Apis::WorkstationsV1beta::GceHyperdiskBalancedHighAvailability, decorator: Google::Apis::WorkstationsV1beta::GceHyperdiskBalancedHighAvailability::Representation + property :gce_pd, as: 'gcePd', class: Google::Apis::WorkstationsV1beta::GceRegionalPersistentDisk, decorator: Google::Apis::WorkstationsV1beta::GceRegionalPersistentDisk::Representation property :mount_path, as: 'mountPath'