google-apis-workstations_v1 0.38.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e776a7703422b4773e414776672c1ca372a19b36d7fe2f7dbea9765ba7fd5d97
4
- data.tar.gz: 7ba6302221bf973369b46ad6727b154d1b34f32f5c9218ba0a47344eb182ea0f
3
+ metadata.gz: d130379b4791aa9b6295e4bd00b6bd8ec605b06cc5364fa878bad98d4253b199
4
+ data.tar.gz: 3564c155f7b023c6f825bc1c96fe08eeb2ff4f1994830439fe795f0281400df3
5
5
  SHA512:
6
- metadata.gz: 74860796d879d745eca3405b691cf435e16491cc605f7ba13d5cef37b8c87767e94f92c552a4d842f0459bde91a579106a8cac50162ba4e4bed829938dc2a6b5
7
- data.tar.gz: 1d93d8d5569d9f308163bc14f2d546d4753d525cb0480aa02ccadf5c771be147b7797abf8f46bb4e996a3d8acbd51da392b297fd1bfa04e7eac4610f8c739525
6
+ metadata.gz: a4e7bfd70dea879b73a601ef585303b59a0f2db1d27e29e0a485d821b4e426a0ab3531857ddf0d547da6d452559a401565f2fe1b2fd74c941a5f0026ec712ebe
7
+ data.tar.gz: 616ddacc80e4d2eed02b4503e56bebfe4b825a0850c84c63cade8c59dbb651c808e9926d628564df9ff671f21548ea908d7a7cb275e831230aec2063022d5b10
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-workstations_v1
2
2
 
3
+ ### v0.39.0 (2026-09-06)
4
+
5
+ * Regenerated from discovery document revision 20260901
6
+
3
7
  ### v0.38.0 (2026-08-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20260807
@@ -1876,6 +1876,34 @@ module Google
1876
1876
  end
1877
1877
  end
1878
1878
 
1879
+ # Request message for SuspendWorkstation.
1880
+ class SuspendWorkstationRequest
1881
+ include Google::Apis::Core::Hashable
1882
+
1883
+ # Optional. If set, the request will be rejected if the latest version of the
1884
+ # workstation on the server does not have this ETag.
1885
+ # Corresponds to the JSON property `etag`
1886
+ # @return [String]
1887
+ attr_accessor :etag
1888
+
1889
+ # Optional. If set, validate the request and preview the result, but do not
1890
+ # actually apply it.
1891
+ # Corresponds to the JSON property `validateOnly`
1892
+ # @return [Boolean]
1893
+ attr_accessor :validate_only
1894
+ alias_method :validate_only?, :validate_only
1895
+
1896
+ def initialize(**args)
1897
+ update!(**args)
1898
+ end
1899
+
1900
+ # Update properties of this object
1901
+ def update!(**args)
1902
+ @etag = args[:etag] if args.key?(:etag)
1903
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
1904
+ end
1905
+ end
1906
+
1879
1907
  # Request message for `TestIamPermissions` method.
1880
1908
  class TestIamPermissionsRequest
1881
1909
  include Google::Apis::Core::Hashable
@@ -2338,12 +2366,20 @@ module Google
2338
2366
  # @return [Google::Apis::WorkstationsV1::Host]
2339
2367
  attr_accessor :host
2340
2368
 
2341
- # Optional. Number of seconds to wait before automatically stopping a
2342
- # workstation after it last received user traffic. A value of `"0s"` indicates
2343
- # that Cloud Workstations VMs created with this configuration should never time
2344
- # out due to idleness. Provide [duration](https://developers.google.com/protocol-
2345
- # buffers/docs/reference/google.protobuf#duration) terminated by `s` for seconds—
2346
- # for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes).
2369
+ # Optional. The action to take when the workstation has been idle for the
2370
+ # duration specified in idle_timeout. Defaults to STOP.
2371
+ # Corresponds to the JSON property `idleAction`
2372
+ # @return [String]
2373
+ attr_accessor :idle_action
2374
+
2375
+ # Optional. Number of seconds to wait before automatically stopping or
2376
+ # suspending a workstation after it last received user traffic. See idle_action
2377
+ # to configure whether to stop or suspend idle workstations. A value of `"0s"`
2378
+ # indicates that Cloud Workstations VMs created with this configuration should
2379
+ # never time out due to idleness. Provide [duration](https://developers.google.
2380
+ # com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s`
2381
+ # for seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20
2382
+ # minutes).
2347
2383
  # Corresponds to the JSON property `idleTimeout`
2348
2384
  # @return [String]
2349
2385
  attr_accessor :idle_timeout
@@ -2405,11 +2441,13 @@ module Google
2405
2441
  # updates can be applied upon restart. The idle_timeout and running_timeout
2406
2442
  # fields are independent of each other. Note that the running_timeout field
2407
2443
  # stops workstations after the specified time, regardless of whether or not the
2408
- # workstations are idle. Provide duration terminated by `s` for seconds—for
2409
- # example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `
2410
- # "0s"` indicates that workstations using this configuration should never time
2411
- # out. If encryption_key is set, it must be greater than `"0s"` and less than `"
2412
- # 86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud
2444
+ # workstations are idle. Note: This timeout applies to workstations in the
2445
+ # following states: * STATE_RUNNING * STATE_SUSPENDED Suspending a workstation
2446
+ # does not reset this timeout. Provide duration terminated by `s` for seconds—
2447
+ # for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value
2448
+ # of `"0s"` indicates that workstations using this configuration should never
2449
+ # time out. If encryption_key is set, it must be greater than `"0s"` and less
2450
+ # than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud
2413
2451
  # Workstations VMs created with this configuration have no maximum running time.
2414
2452
  # This is strongly discouraged because you incur costs and will not pick up
2415
2453
  # security updates.
@@ -2450,6 +2488,7 @@ module Google
2450
2488
  @etag = args[:etag] if args.key?(:etag)
2451
2489
  @grant_workstation_admin_role_on_create = args[:grant_workstation_admin_role_on_create] if args.key?(:grant_workstation_admin_role_on_create)
2452
2490
  @host = args[:host] if args.key?(:host)
2491
+ @idle_action = args[:idle_action] if args.key?(:idle_action)
2453
2492
  @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
2454
2493
  @labels = args[:labels] if args.key?(:labels)
2455
2494
  @max_usable_workstations = args[:max_usable_workstations] if args.key?(:max_usable_workstations)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module WorkstationsV1
18
18
  # Version of the google-apis-workstations_v1 gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260807"
25
+ REVISION = "20260901"
26
26
  end
27
27
  end
28
28
  end
@@ -280,6 +280,12 @@ module Google
280
280
  include Google::Apis::Core::JsonObjectSupport
281
281
  end
282
282
 
283
+ class SuspendWorkstationRequest
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
283
289
  class TestIamPermissionsRequest
284
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
291
 
@@ -737,6 +743,14 @@ module Google
737
743
  end
738
744
  end
739
745
 
746
+ class SuspendWorkstationRequest
747
+ # @private
748
+ class Representation < Google::Apis::Core::JsonRepresentation
749
+ property :etag, as: 'etag'
750
+ property :validate_only, as: 'validateOnly'
751
+ end
752
+ end
753
+
740
754
  class TestIamPermissionsRequest
741
755
  # @private
742
756
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -832,6 +846,7 @@ module Google
832
846
  property :grant_workstation_admin_role_on_create, as: 'grantWorkstationAdminRoleOnCreate'
833
847
  property :host, as: 'host', class: Google::Apis::WorkstationsV1::Host, decorator: Google::Apis::WorkstationsV1::Host::Representation
834
848
 
849
+ property :idle_action, as: 'idleAction'
835
850
  property :idle_timeout, as: 'idleTimeout'
836
851
  hash :labels, as: 'labels'
837
852
  property :max_usable_workstations, as: 'maxUsableWorkstations'
@@ -1258,6 +1258,39 @@ module Google
1258
1258
  execute_or_queue_command(command, &block)
1259
1259
  end
1260
1260
 
1261
+ # Suspends a workstation to reduce costs.
1262
+ # @param [String] name
1263
+ # Required. Name of the workstation to suspend.
1264
+ # @param [Google::Apis::WorkstationsV1::SuspendWorkstationRequest] suspend_workstation_request_object
1265
+ # @param [String] fields
1266
+ # Selector specifying which fields to include in a partial response.
1267
+ # @param [String] quota_user
1268
+ # Available to use for quota purposes for server-side applications. Can be any
1269
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1270
+ # @param [Google::Apis::RequestOptions] options
1271
+ # Request-specific options
1272
+ #
1273
+ # @yield [result, err] Result & error if block supplied
1274
+ # @yieldparam result [Google::Apis::WorkstationsV1::Operation] parsed result object
1275
+ # @yieldparam err [StandardError] error object if request failed
1276
+ #
1277
+ # @return [Google::Apis::WorkstationsV1::Operation]
1278
+ #
1279
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1280
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1281
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1282
+ def suspend_workstation(name, suspend_workstation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1283
+ command = make_simple_command(:post, 'v1/{+name}:suspend', options)
1284
+ command.request_representation = Google::Apis::WorkstationsV1::SuspendWorkstationRequest::Representation
1285
+ command.request_object = suspend_workstation_request_object
1286
+ command.response_representation = Google::Apis::WorkstationsV1::Operation::Representation
1287
+ command.response_class = Google::Apis::WorkstationsV1::Operation
1288
+ command.params['name'] = name unless name.nil?
1289
+ command.query['fields'] = fields unless fields.nil?
1290
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1291
+ execute_or_queue_command(command, &block)
1292
+ end
1293
+
1261
1294
  # Returns permissions that a caller has on the specified resource. If the
1262
1295
  # resource does not exist, this will return an empty set of permissions, not a `
1263
1296
  # NOT_FOUND` error. Note: This operation is designed to be used for building
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-workstations_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workstations_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1/v0.38.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1/v0.39.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workstations_v1
62
62
  rdoc_options: []
63
63
  require_paths: