google-apis-workstations_v1beta 0.51.0 → 0.52.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: a1110972e973b621f652cd0ca4a2d097749c4697e47cb13a757e2b0c03c47274
4
+ data.tar.gz: db57ef78b8dddf896c1864182eacde5814abdccdefd71814570ed0cc476248c0
5
5
  SHA512:
6
- metadata.gz: b7fd14f6f322a1305963f7246d12cab2dab339ec9158dd8084ab6b51b7b83b0dd35d5eb95162e34fcc793ba39d0df2267db939b272a40d3878c16c642e5827a2
7
- data.tar.gz: 7f699f4b9b49a5ab1850de65ba719d371ff57bc12418ae6aea024cf10edc8d07f311377bb0ebe93c95f9d455a146e73e0c28f4e8376b235d36ccf066e93c042c
6
+ metadata.gz: 4af457a470347f061f27907a86ae0664a1d77b77100e7198f45165ba0b90715658b3396706641bb1273be7d720b426434d0dfc01a77294da5096ef4cf375c8fa
7
+ data.tar.gz: d1d98c57fb781d7a4caa129d0fa634de9c9bff918e605d6bc0c8524c33b51bb2bd57adacfd09b8c80361a69a287bcd59672310f72e18de5fe3ed7c4a69913aa3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-workstations_v1beta
2
2
 
3
+ ### v0.52.0 (2026-07-12)
4
+
5
+ * Regenerated from discovery document revision 20260705
6
+
3
7
  ### v0.51.0 (2026-06-21)
4
8
 
5
9
  * Regenerated from discovery document revision 20260604
@@ -1320,29 +1320,36 @@ module Google
1320
1320
  end
1321
1321
  end
1322
1322
 
1323
- # OAuth token.
1323
+ # Represents an OAuth 2.0 access token and its associated metadata.
1324
1324
  class OAuthToken
1325
1325
  include Google::Apis::Core::Hashable
1326
1326
 
1327
- # Required. The OAuth token.
1327
+ # Required. The OAuth 2.0 access token value.
1328
1328
  # Corresponds to the JSON property `accessToken`
1329
1329
  # @return [String]
1330
1330
  attr_accessor :access_token
1331
1331
 
1332
- # Optional. The email address encapsulated in the OAuth token.
1332
+ # Optional. The email address associated with the OAuth 2.0 access token.
1333
1333
  # Corresponds to the JSON property `email`
1334
1334
  # @return [String]
1335
1335
  attr_accessor :email
1336
1336
 
1337
1337
  # Optional. The time the OAuth access token will expire. This should be the time
1338
1338
  # the access token was generated plus the expires_in offset returned from the
1339
- # Access Token Response.
1339
+ # Access Token Response. Only one of `expire_time` or `expires_in` should be
1340
+ # specified.
1340
1341
  # Corresponds to the JSON property `expireTime`
1341
1342
  # @return [String]
1342
1343
  attr_accessor :expire_time
1343
1344
 
1344
- # Optional. The scopes encapsulated in the OAuth token. See https://developers.
1345
- # google.com/identity/protocols/oauth2/scopes for more information.
1345
+ # Optional. The lifetime duration of the access token. Only one of `expire_time`
1346
+ # or `expires_in` should be specified.
1347
+ # Corresponds to the JSON property `expiresIn`
1348
+ # @return [String]
1349
+ attr_accessor :expires_in
1350
+
1351
+ # Optional. The scopes associated with the OAuth 2.0 access token. See https://
1352
+ # developers.google.com/identity/protocols/oauth2/scopes for more information.
1346
1353
  # Corresponds to the JSON property `scopes`
1347
1354
  # @return [String]
1348
1355
  attr_accessor :scopes
@@ -1356,6 +1363,7 @@ module Google
1356
1363
  @access_token = args[:access_token] if args.key?(:access_token)
1357
1364
  @email = args[:email] if args.key?(:email)
1358
1365
  @expire_time = args[:expire_time] if args.key?(:expire_time)
1366
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
1359
1367
  @scopes = args[:scopes] if args.key?(:scopes)
1360
1368
  end
1361
1369
  end
@@ -1696,7 +1704,7 @@ module Google
1696
1704
  class PushCredentialsRequest
1697
1705
  include Google::Apis::Core::Hashable
1698
1706
 
1699
- # OAuth token.
1707
+ # Represents an OAuth 2.0 access token and its associated metadata.
1700
1708
  # Corresponds to the JSON property `applicationDefaultCredentials`
1701
1709
  # @return [Google::Apis::WorkstationsV1beta::OAuthToken]
1702
1710
  attr_accessor :application_default_credentials
@@ -1945,6 +1953,34 @@ module Google
1945
1953
  end
1946
1954
  end
1947
1955
 
1956
+ # Request message for SuspendWorkstation.
1957
+ class SuspendWorkstationRequest
1958
+ include Google::Apis::Core::Hashable
1959
+
1960
+ # Optional. If set, the request will be rejected if the latest version of the
1961
+ # workstation on the server does not have this ETag.
1962
+ # Corresponds to the JSON property `etag`
1963
+ # @return [String]
1964
+ attr_accessor :etag
1965
+
1966
+ # Optional. If set, validate the request and preview the result, but do not
1967
+ # actually apply it.
1968
+ # Corresponds to the JSON property `validateOnly`
1969
+ # @return [Boolean]
1970
+ attr_accessor :validate_only
1971
+ alias_method :validate_only?, :validate_only
1972
+
1973
+ def initialize(**args)
1974
+ update!(**args)
1975
+ end
1976
+
1977
+ # Update properties of this object
1978
+ def update!(**args)
1979
+ @etag = args[:etag] if args.key?(:etag)
1980
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
1981
+ end
1982
+ end
1983
+
1948
1984
  # Request message for `TestIamPermissions` method.
1949
1985
  class TestIamPermissionsRequest
1950
1986
  include Google::Apis::Core::Hashable
@@ -2501,6 +2537,12 @@ module Google
2501
2537
  # @return [Google::Apis::WorkstationsV1beta::HttpOptions]
2502
2538
  attr_accessor :http_options
2503
2539
 
2540
+ # Optional. The action to take when the workstation has been idle for the
2541
+ # duration specified in idle_timeout. Defaults to STOP.
2542
+ # Corresponds to the JSON property `idleAction`
2543
+ # @return [String]
2544
+ attr_accessor :idle_action
2545
+
2504
2546
  # Optional. Number of seconds to wait before automatically stopping a
2505
2547
  # workstation after it last received user traffic. A value of `"0s"` indicates
2506
2548
  # that Cloud Workstations VMs created with this configuration should never time
@@ -2627,6 +2669,7 @@ module Google
2627
2669
  @grant_workstation_admin_role_on_create = args[:grant_workstation_admin_role_on_create] if args.key?(:grant_workstation_admin_role_on_create)
2628
2670
  @host = args[:host] if args.key?(:host)
2629
2671
  @http_options = args[:http_options] if args.key?(:http_options)
2672
+ @idle_action = args[:idle_action] if args.key?(:idle_action)
2630
2673
  @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
2631
2674
  @labels = args[:labels] if args.key?(:labels)
2632
2675
  @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.52.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 = "20260705"
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.52.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.52.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: