google-apis-workstations_v1beta 0.51.0 → 0.53.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: c4e73c749761a67abb13a1bf0f54e72a94162fb065e5fd29a73425ea5c9499b4
4
- data.tar.gz: 2597f38d2ac9073504dcfd31d96a9772f403e3f02782bf0fcc609fdb634611e9
3
+ metadata.gz: 79baaff78ded9c70cf18280a2dfe82b15061f8055dc4c6287fc37151ccef5752
4
+ data.tar.gz: 261f58fd2a7f987cd5427c6292f5710d7cfc82eae4194deee2fffffcedc591d0
5
5
  SHA512:
6
- metadata.gz: b7fd14f6f322a1305963f7246d12cab2dab339ec9158dd8084ab6b51b7b83b0dd35d5eb95162e34fcc793ba39d0df2267db939b272a40d3878c16c642e5827a2
7
- data.tar.gz: 7f699f4b9b49a5ab1850de65ba719d371ff57bc12418ae6aea024cf10edc8d07f311377bb0ebe93c95f9d455a146e73e0c28f4e8376b235d36ccf066e93c042c
6
+ metadata.gz: 63ee75dacb4b3642a6902c05bef8fc4ccce60bcd43c998bfe28d73246739be1776c02bfdb855599dc89db0868b8214362eaddd8b602db2b116970d707b4575d3
7
+ data.tar.gz: d06daca3e4bcb15228a1b95100c35aab0e810938d2d794e492f8925067602195fb4f3b8fab4a081452ecfcea8295d359f69ec222056c1071c2f6520e617002e1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-workstations_v1beta
2
2
 
3
+ ### v0.53.0 (2026-08-16)
4
+
5
+ * Regenerated from discovery document revision 20260807
6
+
7
+ ### v0.52.0 (2026-07-12)
8
+
9
+ * Regenerated from discovery document revision 20260705
10
+
3
11
  ### v0.51.0 (2026-06-21)
4
12
 
5
13
  * Regenerated from discovery document revision 20260604
@@ -571,7 +571,9 @@ module Google
571
571
  attr_accessor :archive_timeout
572
572
 
573
573
  # Optional. Maximum size in GB to which this persistent directory can be resized.
574
- # Defaults to unlimited if not set.
574
+ # Defaults to `0`, which indicates no maximum limit is enforced by this
575
+ # configuration. Resizing is still subject to the quotas and limits of the
576
+ # underlying disk type.
575
577
  # Corresponds to the JSON property `maxSizeGb`
576
578
  # @return [Fixnum]
577
579
  attr_accessor :max_size_gb
@@ -912,7 +914,9 @@ module Google
912
914
  attr_accessor :fs_type
913
915
 
914
916
  # Optional. Maximum size in GB to which this persistent directory can be resized.
915
- # Defaults to unlimited if not set.
917
+ # Defaults to `0`, which indicates no maximum limit is enforced by this
918
+ # configuration. Resizing is still subject to the quotas and limits of the
919
+ # underlying disk type.
916
920
  # Corresponds to the JSON property `maxSizeGb`
917
921
  # @return [Fixnum]
918
922
  attr_accessor :max_size_gb
@@ -1320,29 +1324,36 @@ module Google
1320
1324
  end
1321
1325
  end
1322
1326
 
1323
- # OAuth token.
1327
+ # Represents an OAuth 2.0 access token and its associated metadata.
1324
1328
  class OAuthToken
1325
1329
  include Google::Apis::Core::Hashable
1326
1330
 
1327
- # Required. The OAuth token.
1331
+ # Required. The OAuth 2.0 access token value.
1328
1332
  # Corresponds to the JSON property `accessToken`
1329
1333
  # @return [String]
1330
1334
  attr_accessor :access_token
1331
1335
 
1332
- # Optional. The email address encapsulated in the OAuth token.
1336
+ # Optional. The email address associated with the OAuth 2.0 access token.
1333
1337
  # Corresponds to the JSON property `email`
1334
1338
  # @return [String]
1335
1339
  attr_accessor :email
1336
1340
 
1337
1341
  # Optional. The time the OAuth access token will expire. This should be the time
1338
1342
  # the access token was generated plus the expires_in offset returned from the
1339
- # Access Token Response.
1343
+ # Access Token Response. Only one of `expire_time` or `expires_in` should be
1344
+ # specified.
1340
1345
  # Corresponds to the JSON property `expireTime`
1341
1346
  # @return [String]
1342
1347
  attr_accessor :expire_time
1343
1348
 
1344
- # Optional. The scopes encapsulated in the OAuth token. See https://developers.
1345
- # google.com/identity/protocols/oauth2/scopes for more information.
1349
+ # Optional. The lifetime duration of the access token. Only one of `expire_time`
1350
+ # or `expires_in` should be specified.
1351
+ # Corresponds to the JSON property `expiresIn`
1352
+ # @return [String]
1353
+ attr_accessor :expires_in
1354
+
1355
+ # Optional. The scopes associated with the OAuth 2.0 access token. See https://
1356
+ # developers.google.com/identity/protocols/oauth2/scopes for more information.
1346
1357
  # Corresponds to the JSON property `scopes`
1347
1358
  # @return [String]
1348
1359
  attr_accessor :scopes
@@ -1356,6 +1367,7 @@ module Google
1356
1367
  @access_token = args[:access_token] if args.key?(:access_token)
1357
1368
  @email = args[:email] if args.key?(:email)
1358
1369
  @expire_time = args[:expire_time] if args.key?(:expire_time)
1370
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
1359
1371
  @scopes = args[:scopes] if args.key?(:scopes)
1360
1372
  end
1361
1373
  end
@@ -1696,7 +1708,7 @@ module Google
1696
1708
  class PushCredentialsRequest
1697
1709
  include Google::Apis::Core::Hashable
1698
1710
 
1699
- # OAuth token.
1711
+ # Represents an OAuth 2.0 access token and its associated metadata.
1700
1712
  # Corresponds to the JSON property `applicationDefaultCredentials`
1701
1713
  # @return [Google::Apis::WorkstationsV1beta::OAuthToken]
1702
1714
  attr_accessor :application_default_credentials
@@ -1945,6 +1957,34 @@ module Google
1945
1957
  end
1946
1958
  end
1947
1959
 
1960
+ # Request message for SuspendWorkstation.
1961
+ class SuspendWorkstationRequest
1962
+ include Google::Apis::Core::Hashable
1963
+
1964
+ # Optional. If set, the request will be rejected if the latest version of the
1965
+ # workstation on the server does not have this ETag.
1966
+ # Corresponds to the JSON property `etag`
1967
+ # @return [String]
1968
+ attr_accessor :etag
1969
+
1970
+ # Optional. If set, validate the request and preview the result, but do not
1971
+ # actually apply it.
1972
+ # Corresponds to the JSON property `validateOnly`
1973
+ # @return [Boolean]
1974
+ attr_accessor :validate_only
1975
+ alias_method :validate_only?, :validate_only
1976
+
1977
+ def initialize(**args)
1978
+ update!(**args)
1979
+ end
1980
+
1981
+ # Update properties of this object
1982
+ def update!(**args)
1983
+ @etag = args[:etag] if args.key?(:etag)
1984
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
1985
+ end
1986
+ end
1987
+
1948
1988
  # Request message for `TestIamPermissions` method.
1949
1989
  class TestIamPermissionsRequest
1950
1990
  include Google::Apis::Core::Hashable
@@ -2501,6 +2541,12 @@ module Google
2501
2541
  # @return [Google::Apis::WorkstationsV1beta::HttpOptions]
2502
2542
  attr_accessor :http_options
2503
2543
 
2544
+ # Optional. The action to take when the workstation has been idle for the
2545
+ # duration specified in idle_timeout. Defaults to STOP.
2546
+ # Corresponds to the JSON property `idleAction`
2547
+ # @return [String]
2548
+ attr_accessor :idle_action
2549
+
2504
2550
  # Optional. Number of seconds to wait before automatically stopping a
2505
2551
  # workstation after it last received user traffic. A value of `"0s"` indicates
2506
2552
  # that Cloud Workstations VMs created with this configuration should never time
@@ -2563,19 +2609,19 @@ module Google
2563
2609
  # @return [Array<String>]
2564
2610
  attr_accessor :replica_zones
2565
2611
 
2566
- # Optional. Number of seconds that a workstation can run until it is
2567
- # automatically shut down. We recommend that workstations be shut down daily to
2568
- # reduce costs and so that security updates can be applied upon restart. The
2569
- # idle_timeout and running_timeout fields are independent of each other. Note
2570
- # that the running_timeout field shuts down VMs after the specified time,
2571
- # regardless of whether or not the VMs are idle. Provide duration terminated by `
2572
- # s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12
2573
- # hours). A value of `"0s"` indicates that workstations using this configuration
2574
- # should never time out. If encryption_key is set, it must be greater than `"0s"`
2575
- # and less than `"86400s"` (24 hours). Warning: A value of `"0s"` indicates
2576
- # that Cloud Workstations VMs created with this configuration have no maximum
2577
- # running time. This is strongly discouraged because you incur costs and will
2578
- # not pick up security updates.
2612
+ # Optional. Number of seconds to wait before automatically stopping a
2613
+ # workstation. We recommend that workstations be stopped daily so that security
2614
+ # updates can be applied upon restart. The idle_timeout and running_timeout
2615
+ # fields are independent of each other. Note that the running_timeout field
2616
+ # stops workstations after the specified time, regardless of whether or not the
2617
+ # workstations are idle. Provide duration terminated by `s` for seconds—for
2618
+ # example, `"54000s"` (15 hours). Defaults to `"43200s"` (12 hours). A value of `
2619
+ # "0s"` indicates that workstations using this configuration should never time
2620
+ # out. If encryption_key is set, it must be greater than `"0s"` and less than `"
2621
+ # 86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud
2622
+ # Workstations VMs created with this configuration have no maximum running time.
2623
+ # This is strongly discouraged because you incur costs and will not pick up
2624
+ # security updates.
2579
2625
  # Corresponds to the JSON property `runningTimeout`
2580
2626
  # @return [String]
2581
2627
  attr_accessor :running_timeout
@@ -2627,6 +2673,7 @@ module Google
2627
2673
  @grant_workstation_admin_role_on_create = args[:grant_workstation_admin_role_on_create] if args.key?(:grant_workstation_admin_role_on_create)
2628
2674
  @host = args[:host] if args.key?(:host)
2629
2675
  @http_options = args[:http_options] if args.key?(:http_options)
2676
+ @idle_action = args[:idle_action] if args.key?(:idle_action)
2630
2677
  @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
2631
2678
  @labels = args[:labels] if args.key?(:labels)
2632
2679
  @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 WorkstationsV1beta
18
18
  # Version of the google-apis-workstations_v1beta gem
19
- GEM_VERSION = "0.51.0"
19
+ GEM_VERSION = "0.53.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 = "20260604"
25
+ REVISION = "20260807"
26
26
  end
27
27
  end
28
28
  end
@@ -292,6 +292,12 @@ module Google
292
292
  include Google::Apis::Core::JsonObjectSupport
293
293
  end
294
294
 
295
+ class SuspendWorkstationRequest
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
295
301
  class TestIamPermissionsRequest
296
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
303
 
@@ -636,6 +642,7 @@ module Google
636
642
  property :access_token, as: 'accessToken'
637
643
  property :email, as: 'email'
638
644
  property :expire_time, as: 'expireTime'
645
+ property :expires_in, as: 'expiresIn'
639
646
  property :scopes, as: 'scopes'
640
647
  end
641
648
  end
@@ -774,6 +781,14 @@ module Google
774
781
  end
775
782
  end
776
783
 
784
+ class SuspendWorkstationRequest
785
+ # @private
786
+ class Representation < Google::Apis::Core::JsonRepresentation
787
+ property :etag, as: 'etag'
788
+ property :validate_only, as: 'validateOnly'
789
+ end
790
+ end
791
+
777
792
  class TestIamPermissionsRequest
778
793
  # @private
779
794
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -889,6 +904,7 @@ module Google
889
904
 
890
905
  property :http_options, as: 'httpOptions', class: Google::Apis::WorkstationsV1beta::HttpOptions, decorator: Google::Apis::WorkstationsV1beta::HttpOptions::Representation
891
906
 
907
+ property :idle_action, as: 'idleAction'
892
908
  property :idle_timeout, as: 'idleTimeout'
893
909
  hash :labels, as: 'labels'
894
910
  property :max_usable_workstations, as: 'maxUsableWorkstations'
@@ -1207,6 +1207,39 @@ module Google
1207
1207
  execute_or_queue_command(command, &block)
1208
1208
  end
1209
1209
 
1210
+ # Suspends a workstation to reduce costs.
1211
+ # @param [String] name
1212
+ # Required. Name of the workstation to suspend.
1213
+ # @param [Google::Apis::WorkstationsV1beta::SuspendWorkstationRequest] suspend_workstation_request_object
1214
+ # @param [String] fields
1215
+ # Selector specifying which fields to include in a partial response.
1216
+ # @param [String] quota_user
1217
+ # Available to use for quota purposes for server-side applications. Can be any
1218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1219
+ # @param [Google::Apis::RequestOptions] options
1220
+ # Request-specific options
1221
+ #
1222
+ # @yield [result, err] Result & error if block supplied
1223
+ # @yieldparam result [Google::Apis::WorkstationsV1beta::Operation] parsed result object
1224
+ # @yieldparam err [StandardError] error object if request failed
1225
+ #
1226
+ # @return [Google::Apis::WorkstationsV1beta::Operation]
1227
+ #
1228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1231
+ def suspend_workstation(name, suspend_workstation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1232
+ command = make_simple_command(:post, 'v1beta/{+name}:suspend', options)
1233
+ command.request_representation = Google::Apis::WorkstationsV1beta::SuspendWorkstationRequest::Representation
1234
+ command.request_object = suspend_workstation_request_object
1235
+ command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation
1236
+ command.response_class = Google::Apis::WorkstationsV1beta::Operation
1237
+ command.params['name'] = name unless name.nil?
1238
+ command.query['fields'] = fields unless fields.nil?
1239
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1240
+ execute_or_queue_command(command, &block)
1241
+ end
1242
+
1210
1243
  # Returns permissions that a caller has on the specified resource. If the
1211
1244
  # resource does not exist, this will return an empty set of permissions, not a `
1212
1245
  # 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_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.51.0
4
+ version: 0.53.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_v1beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1beta/v0.51.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1beta/v0.53.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workstations_v1beta
62
62
  rdoc_options: []
63
63
  require_paths: