@@ -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
24442491end
0 commit comments