google-apis-workstations_v1beta 0.47.0 → 0.49.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: efc570c74613b9b370cebd7188c5e5c28424ff65bfda1e242f6e4a5d31f44ecc
4
- data.tar.gz: 9454f9b98801643da12f391263117b1469e6df5b51ec053addbe7a644498e86d
3
+ metadata.gz: 51fc37387569ad69189ca38cd20b9fed85f327a779ff169a8dd93afd559083d9
4
+ data.tar.gz: 43974c2758082e9081a2f2b814ea3a1ba6415c06f8676663d2ff9bbc857f0f2a
5
5
  SHA512:
6
- metadata.gz: 67faf8d84c53361ac1693a5bcf400b8171efb1e90e88021c11858ef33b9b92ef5a98da57496e09400f557b4a4f86ae78927e61ec6afebb5ea03bcb2299de6669
7
- data.tar.gz: 46d3f3e16f9043b3b604ec082b3854d7868cce5a985fd957e642f6c8f5f671bbbd2e284d07e12eecfdec1c22eb28691d124ce9a2dcde4c7e6da42f6de0f51c34
6
+ metadata.gz: 3d1c5cb28b82c98065498d784b0b4b2fde8187f565ba90e3e7474e3dec2f92f092082be49e1ba3d57c156f690312d89870a2e5a163880b468822863ded081e15
7
+ data.tar.gz: 4fadcf012643054da38a5353ec3fb8c4b06d171ce16ea9faf2ec6e90b9b725c51cd48e17bbb41f3bf2f473cd694cb4e3a132473f22f69b26b22576159a0c1fbb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-workstations_v1beta
2
2
 
3
+ ### v0.49.0 (2026-05-03)
4
+
5
+ * Regenerated from discovery document revision 20260413
6
+
7
+ ### v0.48.0 (2026-04-19)
8
+
9
+ * Regenerated from discovery document revision 20260325
10
+
3
11
  ### v0.47.0 (2026-01-25)
4
12
 
5
13
  * Regenerated from discovery document revision 20260113
@@ -1306,6 +1306,46 @@ module Google
1306
1306
  end
1307
1307
  end
1308
1308
 
1309
+ # OAuth token.
1310
+ class OAuthToken
1311
+ include Google::Apis::Core::Hashable
1312
+
1313
+ # Required. The OAuth token.
1314
+ # Corresponds to the JSON property `accessToken`
1315
+ # @return [String]
1316
+ attr_accessor :access_token
1317
+
1318
+ # Optional. The email address encapsulated in the OAuth token.
1319
+ # Corresponds to the JSON property `email`
1320
+ # @return [String]
1321
+ attr_accessor :email
1322
+
1323
+ # Optional. The time the OAuth access token will expire. This should be the time
1324
+ # the access token was generated plus the expires_in offset returned from the
1325
+ # Access Token Response.
1326
+ # Corresponds to the JSON property `expireTime`
1327
+ # @return [String]
1328
+ attr_accessor :expire_time
1329
+
1330
+ # Optional. The scopes encapsulated in the OAuth token. See https://developers.
1331
+ # google.com/identity/protocols/oauth2/scopes for more information.
1332
+ # Corresponds to the JSON property `scopes`
1333
+ # @return [String]
1334
+ attr_accessor :scopes
1335
+
1336
+ def initialize(**args)
1337
+ update!(**args)
1338
+ end
1339
+
1340
+ # Update properties of this object
1341
+ def update!(**args)
1342
+ @access_token = args[:access_token] if args.key?(:access_token)
1343
+ @email = args[:email] if args.key?(:email)
1344
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
1345
+ @scopes = args[:scopes] if args.key?(:scopes)
1346
+ end
1347
+ end
1348
+
1309
1349
  # This resource represents a long-running operation that is the result of a
1310
1350
  # network API call.
1311
1351
  class Operation
@@ -1638,6 +1678,25 @@ module Google
1638
1678
  end
1639
1679
  end
1640
1680
 
1681
+ # Request message for PushCredentials.
1682
+ class PushCredentialsRequest
1683
+ include Google::Apis::Core::Hashable
1684
+
1685
+ # OAuth token.
1686
+ # Corresponds to the JSON property `applicationDefaultCredentials`
1687
+ # @return [Google::Apis::WorkstationsV1beta::OAuthToken]
1688
+ attr_accessor :application_default_credentials
1689
+
1690
+ def initialize(**args)
1691
+ update!(**args)
1692
+ end
1693
+
1694
+ # Update properties of this object
1695
+ def update!(**args)
1696
+ @application_default_credentials = args[:application_default_credentials] if args.key?(:application_default_credentials)
1697
+ end
1698
+ end
1699
+
1641
1700
  # A readiness check to be performed on a workstation.
1642
1701
  class ReadinessCheck
1643
1702
  include Google::Apis::Core::Hashable
@@ -1786,7 +1845,7 @@ module Google
1786
1845
  # @return [String]
1787
1846
  attr_accessor :etag
1788
1847
 
1789
- # Optional. If set, validate the request and preview the review, but do not
1848
+ # Optional. If set, validate the request and preview the result, but do not
1790
1849
  # actually apply it.
1791
1850
  # Corresponds to the JSON property `validateOnly`
1792
1851
  # @return [Boolean]
@@ -1854,7 +1913,7 @@ module Google
1854
1913
  # @return [String]
1855
1914
  attr_accessor :etag
1856
1915
 
1857
- # Optional. If set, validate the request and preview the review, but do not
1916
+ # Optional. If set, validate the request and preview the result, but do not
1858
1917
  # actually apply it.
1859
1918
  # Corresponds to the JSON property `validateOnly`
1860
1919
  # @return [Boolean]
@@ -2235,6 +2294,27 @@ module Google
2235
2294
  # @return [String]
2236
2295
  attr_accessor :update_time
2237
2296
 
2297
+ # Optional. Specifies the redirect URL for unauthorized requests received by
2298
+ # workstation VMs in this cluster. Redirects to this endpoint will send a base64
2299
+ # encoded `state` query param containing the target workstation name and
2300
+ # original request hostname. The endpoint is responsible for retrieving a token
2301
+ # using `GenerateAccessToken` and redirecting back to the original hostname with
2302
+ # the token.
2303
+ # Corresponds to the JSON property `workstationAuthorizationUrl`
2304
+ # @return [String]
2305
+ attr_accessor :workstation_authorization_url
2306
+
2307
+ # Optional. Specifies the launch URL for workstations in this cluster. Requests
2308
+ # sent to unstarted workstations will be redirected to this URL. Requests
2309
+ # redirected to the launch endpoint will be sent with a `workstation` and `
2310
+ # project` query parameter containing the full workstation resource name and
2311
+ # project ID, respectively. The launch endpoint is responsible for starting the
2312
+ # workstation, polling it until it reaches `STATE_RUNNING`, and then issuing a
2313
+ # redirect to the workstation's host URL.
2314
+ # Corresponds to the JSON property `workstationLaunchUrl`
2315
+ # @return [String]
2316
+ attr_accessor :workstation_launch_url
2317
+
2238
2318
  def initialize(**args)
2239
2319
  update!(**args)
2240
2320
  end
@@ -2262,6 +2342,8 @@ module Google
2262
2342
  @tags = args[:tags] if args.key?(:tags)
2263
2343
  @uid = args[:uid] if args.key?(:uid)
2264
2344
  @update_time = args[:update_time] if args.key?(:update_time)
2345
+ @workstation_authorization_url = args[:workstation_authorization_url] if args.key?(:workstation_authorization_url)
2346
+ @workstation_launch_url = args[:workstation_launch_url] if args.key?(:workstation_launch_url)
2265
2347
  end
2266
2348
  end
2267
2349
 
@@ -2347,6 +2429,17 @@ module Google
2347
2429
  attr_accessor :enable_audit_agent
2348
2430
  alias_method :enable_audit_agent?, :enable_audit_agent
2349
2431
 
2432
+ # Optional. Enables pushing user provided credentials to Workstations by calling
2433
+ # workstations.pushCredentials. If application_default_credentials are supplied
2434
+ # to pushCredentials, the provided token is returned when tools and applications
2435
+ # running in the user container make a request for Default Application
2436
+ # Credentials. Please note that any credentials supplied are made available to
2437
+ # all users with access to the workstation.
2438
+ # Corresponds to the JSON property `enablePushingCredentials`
2439
+ # @return [Boolean]
2440
+ attr_accessor :enable_pushing_credentials
2441
+ alias_method :enable_pushing_credentials?, :enable_pushing_credentials
2442
+
2350
2443
  # A customer-managed encryption key (CMEK) for the Compute Engine resources of
2351
2444
  # the associated workstation configuration. Specify the name of your Cloud KMS
2352
2445
  # encryption key and the default service account. We recommend that you use a
@@ -2507,6 +2600,7 @@ module Google
2507
2600
  @disable_tcp_connections = args[:disable_tcp_connections] if args.key?(:disable_tcp_connections)
2508
2601
  @display_name = args[:display_name] if args.key?(:display_name)
2509
2602
  @enable_audit_agent = args[:enable_audit_agent] if args.key?(:enable_audit_agent)
2603
+ @enable_pushing_credentials = args[:enable_pushing_credentials] if args.key?(:enable_pushing_credentials)
2510
2604
  @encryption_key = args[:encryption_key] if args.key?(:encryption_key)
2511
2605
  @ephemeral_directories = args[:ephemeral_directories] if args.key?(:ephemeral_directories)
2512
2606
  @etag = args[:etag] if args.key?(:etag)
@@ -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.47.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260113"
25
+ REVISION = "20260413"
26
26
  end
27
27
  end
28
28
  end
@@ -202,6 +202,12 @@ module Google
202
202
  include Google::Apis::Core::JsonObjectSupport
203
203
  end
204
204
 
205
+ class OAuthToken
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
205
211
  class Operation
206
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
213
 
@@ -238,6 +244,12 @@ module Google
238
244
  include Google::Apis::Core::JsonObjectSupport
239
245
  end
240
246
 
247
+ class PushCredentialsRequest
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
241
253
  class ReadinessCheck
242
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
255
 
@@ -610,6 +622,16 @@ module Google
610
622
  end
611
623
  end
612
624
 
625
+ class OAuthToken
626
+ # @private
627
+ class Representation < Google::Apis::Core::JsonRepresentation
628
+ property :access_token, as: 'accessToken'
629
+ property :email, as: 'email'
630
+ property :expire_time, as: 'expireTime'
631
+ property :scopes, as: 'scopes'
632
+ end
633
+ end
634
+
613
635
  class Operation
614
636
  # @private
615
637
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -676,6 +698,14 @@ module Google
676
698
  end
677
699
  end
678
700
 
701
+ class PushCredentialsRequest
702
+ # @private
703
+ class Representation < Google::Apis::Core::JsonRepresentation
704
+ property :application_default_credentials, as: 'applicationDefaultCredentials', class: Google::Apis::WorkstationsV1beta::OAuthToken, decorator: Google::Apis::WorkstationsV1beta::OAuthToken::Representation
705
+
706
+ end
707
+ end
708
+
679
709
  class ReadinessCheck
680
710
  # @private
681
711
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -817,6 +847,8 @@ module Google
817
847
  hash :tags, as: 'tags'
818
848
  property :uid, as: 'uid'
819
849
  property :update_time, as: 'updateTime'
850
+ property :workstation_authorization_url, as: 'workstationAuthorizationUrl'
851
+ property :workstation_launch_url, as: 'workstationLaunchUrl'
820
852
  end
821
853
  end
822
854
 
@@ -836,6 +868,7 @@ module Google
836
868
  property :disable_tcp_connections, as: 'disableTcpConnections'
837
869
  property :display_name, as: 'displayName'
838
870
  property :enable_audit_agent, as: 'enableAuditAgent'
871
+ property :enable_pushing_credentials, as: 'enablePushingCredentials'
839
872
  property :encryption_key, as: 'encryptionKey', class: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey, decorator: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey::Representation
840
873
 
841
874
  collection :ephemeral_directories, as: 'ephemeralDirectories', class: Google::Apis::WorkstationsV1beta::EphemeralDirectory, decorator: Google::Apis::WorkstationsV1beta::EphemeralDirectory::Representation
@@ -209,7 +209,7 @@ module Google
209
209
  # Required. Parent resource name.
210
210
  # @param [Google::Apis::WorkstationsV1beta::WorkstationCluster] workstation_cluster_object
211
211
  # @param [Boolean] validate_only
212
- # Optional. If set, validate the request and preview the review, but do not
212
+ # Optional. If set, validate the request and preview the result, but do not
213
213
  # actually apply it.
214
214
  # @param [String] workstation_cluster_id
215
215
  # Required. ID to use for the workstation cluster.
@@ -255,7 +255,7 @@ module Google
255
255
  # workstation cluster are also deleted. Otherwise, the request only works if the
256
256
  # workstation cluster has no configurations or workstations.
257
257
  # @param [Boolean] validate_only
258
- # Optional. If set, validate the request and preview the review, but do not
258
+ # Optional. If set, validate the request and preview the result, but do not
259
259
  # apply it.
260
260
  # @param [String] fields
261
261
  # Selector specifying which fields to include in a partial response.
@@ -368,7 +368,7 @@ module Google
368
368
  # Required. Mask that specifies which fields in the workstation cluster should
369
369
  # be updated.
370
370
  # @param [Boolean] validate_only
371
- # Optional. If set, validate the request and preview the review, but do not
371
+ # Optional. If set, validate the request and preview the result, but do not
372
372
  # actually apply it.
373
373
  # @param [String] fields
374
374
  # Selector specifying which fields to include in a partial response.
@@ -407,7 +407,7 @@ module Google
407
407
  # Required. Parent resource name.
408
408
  # @param [Google::Apis::WorkstationsV1beta::WorkstationConfig] workstation_config_object
409
409
  # @param [Boolean] validate_only
410
- # Optional. If set, validate the request and preview the review, but do not
410
+ # Optional. If set, validate the request and preview the result, but do not
411
411
  # actually apply it.
412
412
  # @param [String] workstation_config_id
413
413
  # Required. ID to use for the workstation configuration.
@@ -453,7 +453,7 @@ module Google
453
453
  # deleted. Otherwise, the request works only if the workstation configuration
454
454
  # has no workstations.
455
455
  # @param [Boolean] validate_only
456
- # Optional. If set, validate the request and preview the review, but do not
456
+ # Optional. If set, validate the request and preview the result, but do not
457
457
  # actually apply it.
458
458
  # @param [String] fields
459
459
  # Selector specifying which fields to include in a partial response.
@@ -649,7 +649,7 @@ module Google
649
649
  # Required. Mask specifying which fields in the workstation configuration should
650
650
  # be updated.
651
651
  # @param [Boolean] validate_only
652
- # Optional. If set, validate the request and preview the review, but do not
652
+ # Optional. If set, validate the request and preview the result, but do not
653
653
  # actually apply it.
654
654
  # @param [String] fields
655
655
  # Selector specifying which fields to include in a partial response.
@@ -764,7 +764,7 @@ module Google
764
764
  # Required. Parent resource name.
765
765
  # @param [Google::Apis::WorkstationsV1beta::Workstation] workstation_object
766
766
  # @param [Boolean] validate_only
767
- # Optional. If set, validate the request and preview the review, but do not
767
+ # Optional. If set, validate the request and preview the result, but do not
768
768
  # actually apply it.
769
769
  # @param [String] workstation_id
770
770
  # Required. ID to use for the workstation.
@@ -806,7 +806,7 @@ module Google
806
806
  # Optional. If set, the request will be rejected if the latest version of the
807
807
  # workstation on the server does not have this ETag.
808
808
  # @param [Boolean] validate_only
809
- # Optional. If set, validate the request and preview the review, but do not
809
+ # Optional. If set, validate the request and preview the result, but do not
810
810
  # actually apply it.
811
811
  # @param [String] fields
812
812
  # Selector specifying which fields to include in a partial response.
@@ -1030,14 +1030,12 @@ module Google
1030
1030
  # Identifier. Full name of this workstation.
1031
1031
  # @param [Google::Apis::WorkstationsV1beta::Workstation] workstation_object
1032
1032
  # @param [Boolean] allow_missing
1033
- # Optional. If set and the workstation configuration is not found, a new
1034
- # workstation configuration is created. In this situation, update_mask is
1035
- # ignored.
1033
+ # Optional. If set and the workstation is not found, a new workstation is
1034
+ # created. In this situation, update_mask is ignored.
1036
1035
  # @param [String] update_mask
1037
- # Required. Mask specifying which fields in the workstation configuration should
1038
- # be updated.
1036
+ # Required. Mask specifying which fields in the workstation should be updated.
1039
1037
  # @param [Boolean] validate_only
1040
- # Optional. If set, validate the request and preview the review, but do not
1038
+ # Optional. If set, validate the request and preview the result, but do not
1041
1039
  # actually apply it.
1042
1040
  # @param [String] fields
1043
1041
  # Selector specifying which fields to include in a partial response.
@@ -1071,6 +1069,41 @@ module Google
1071
1069
  execute_or_queue_command(command, &block)
1072
1070
  end
1073
1071
 
1072
+ # Pushes credentials to a running workstation on behalf of a user. Once complete,
1073
+ # supported credential types (application_default_credentials) are made
1074
+ # available to processes running in the user container.
1075
+ # @param [String] workstation
1076
+ # Required. Name of the workstation for which the credentials should be pushed.
1077
+ # @param [Google::Apis::WorkstationsV1beta::PushCredentialsRequest] push_credentials_request_object
1078
+ # @param [String] fields
1079
+ # Selector specifying which fields to include in a partial response.
1080
+ # @param [String] quota_user
1081
+ # Available to use for quota purposes for server-side applications. Can be any
1082
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1083
+ # @param [Google::Apis::RequestOptions] options
1084
+ # Request-specific options
1085
+ #
1086
+ # @yield [result, err] Result & error if block supplied
1087
+ # @yieldparam result [Google::Apis::WorkstationsV1beta::Operation] parsed result object
1088
+ # @yieldparam err [StandardError] error object if request failed
1089
+ #
1090
+ # @return [Google::Apis::WorkstationsV1beta::Operation]
1091
+ #
1092
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1093
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1094
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1095
+ def push_workstation_credentials(workstation, push_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1096
+ command = make_simple_command(:post, 'v1beta/{+workstation}:pushCredentials', options)
1097
+ command.request_representation = Google::Apis::WorkstationsV1beta::PushCredentialsRequest::Representation
1098
+ command.request_object = push_credentials_request_object
1099
+ command.response_representation = Google::Apis::WorkstationsV1beta::Operation::Representation
1100
+ command.response_class = Google::Apis::WorkstationsV1beta::Operation
1101
+ command.params['workstation'] = workstation unless workstation.nil?
1102
+ command.query['fields'] = fields unless fields.nil?
1103
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1104
+ execute_or_queue_command(command, &block)
1105
+ end
1106
+
1074
1107
  # Sets the access control policy on the specified resource. Replaces any
1075
1108
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1076
1109
  # PERMISSION_DENIED` errors.
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.47.0
4
+ version: 0.49.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.47.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1beta/v0.49.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: