google-apis-workstations_v1beta 0.48.0 → 0.50.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: e557523c571506210018c592223035cf5e7330ef8bfc307f502e16f5499d79cd
4
- data.tar.gz: b016429092386ca83d6c3c7769c6a42be37d3d03ea651588e30440d5395b2d43
3
+ metadata.gz: 312caf3b4017603a7bb4c4cd577ef123d7b2668fcd9a4d13d293fb08d3fa7a8b
4
+ data.tar.gz: cad29a1b48b03b9ef6f1f041e1b72678c63020d260186944ab8760ef78e4a9df
5
5
  SHA512:
6
- metadata.gz: a0abb55ac0aa930e4a335f3b7a0f90e33ed38a3644f04f841ac3f44744b83171ed683baecbd287ecfb6e483325e5cf62329ae548ef07880c1533d99967a3779b
7
- data.tar.gz: 2d6792b13d97bf268ed4b4b827e50d7317540b1ac2f539eeeb6921d65decf416f1b2f2712af1ca217cfed11cb32eea9e63f89041a434096072df868cdb7a6750
6
+ metadata.gz: 428d790faf4b844c5dd1545f64281337c9f68404be9c07ddd4d018d8c3adab670f5144e21d068a9caf15d2315e05b8d1fd01a4bc6999e42a6411309e25674f5e
7
+ data.tar.gz: 1e9b454b24fcfcf5fa4ed29c909b98978f711fcb3a920bce31e2c7fb9d97f174dfb1303784a1cbd66b5ccc1021a55514a2705d7b24137f5ddac532cdc88d053c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-workstations_v1beta
2
2
 
3
+ ### v0.50.0 (2026-05-17)
4
+
5
+ * Regenerated from discovery document revision 20260506
6
+
7
+ ### v0.49.0 (2026-05-03)
8
+
9
+ * Regenerated from discovery document revision 20260413
10
+
3
11
  ### v0.48.0 (2026-04-19)
4
12
 
5
13
  * Regenerated from discovery document revision 20260325
@@ -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
@@ -1995,6 +2054,11 @@ module Google
1995
2054
  # @return [String]
1996
2055
  attr_accessor :name
1997
2056
 
2057
+ # Optional. Directories to persist across workstation sessions.
2058
+ # Corresponds to the JSON property `persistentDirectories`
2059
+ # @return [Array<Google::Apis::WorkstationsV1beta::WorkstationPersistentDirectory>]
2060
+ attr_accessor :persistent_directories
2061
+
1998
2062
  # Output only. Indicates whether this workstation is currently being updated to
1999
2063
  # match its intended state.
2000
2064
  # Corresponds to the JSON property `reconciling`
@@ -2065,6 +2129,7 @@ module Google
2065
2129
  @kms_key = args[:kms_key] if args.key?(:kms_key)
2066
2130
  @labels = args[:labels] if args.key?(:labels)
2067
2131
  @name = args[:name] if args.key?(:name)
2132
+ @persistent_directories = args[:persistent_directories] if args.key?(:persistent_directories)
2068
2133
  @reconciling = args[:reconciling] if args.key?(:reconciling)
2069
2134
  @runtime_host = args[:runtime_host] if args.key?(:runtime_host)
2070
2135
  @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
@@ -2370,6 +2435,17 @@ module Google
2370
2435
  attr_accessor :enable_audit_agent
2371
2436
  alias_method :enable_audit_agent?, :enable_audit_agent
2372
2437
 
2438
+ # Optional. Enables pushing user provided credentials to Workstations by calling
2439
+ # workstations.pushCredentials. If application_default_credentials are supplied
2440
+ # to pushCredentials, the provided token is returned when tools and applications
2441
+ # running in the user container make a request for Default Application
2442
+ # Credentials. Please note that any credentials supplied are made available to
2443
+ # all users with access to the workstation.
2444
+ # Corresponds to the JSON property `enablePushingCredentials`
2445
+ # @return [Boolean]
2446
+ attr_accessor :enable_pushing_credentials
2447
+ alias_method :enable_pushing_credentials?, :enable_pushing_credentials
2448
+
2373
2449
  # A customer-managed encryption key (CMEK) for the Compute Engine resources of
2374
2450
  # the associated workstation configuration. Specify the name of your Cloud KMS
2375
2451
  # encryption key and the default service account. We recommend that you use a
@@ -2474,11 +2550,10 @@ module Google
2474
2550
  attr_accessor :replica_zones
2475
2551
 
2476
2552
  # Optional. Number of seconds that a workstation can run until it is
2477
- # automatically shut down. This field applies to workstations in both
2478
- # STATE_RUNNING and STATE_SUSPENDED. We recommend that workstations be shut down
2479
- # daily to reduce costs and so that security updates can be applied upon restart.
2480
- # The idle_timeout and running_timeout fields are independent of each other.
2481
- # Note that the running_timeout field shuts down VMs after the specified time,
2553
+ # automatically shut down. We recommend that workstations be shut down daily to
2554
+ # reduce costs and so that security updates can be applied upon restart. The
2555
+ # idle_timeout and running_timeout fields are independent of each other. Note
2556
+ # that the running_timeout field shuts down VMs after the specified time,
2482
2557
  # regardless of whether or not the VMs are idle. Provide duration terminated by `
2483
2558
  # s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12
2484
2559
  # hours). A value of `"0s"` indicates that workstations using this configuration
@@ -2531,6 +2606,7 @@ module Google
2531
2606
  @disable_tcp_connections = args[:disable_tcp_connections] if args.key?(:disable_tcp_connections)
2532
2607
  @display_name = args[:display_name] if args.key?(:display_name)
2533
2608
  @enable_audit_agent = args[:enable_audit_agent] if args.key?(:enable_audit_agent)
2609
+ @enable_pushing_credentials = args[:enable_pushing_credentials] if args.key?(:enable_pushing_credentials)
2534
2610
  @encryption_key = args[:encryption_key] if args.key?(:encryption_key)
2535
2611
  @ephemeral_directories = args[:ephemeral_directories] if args.key?(:ephemeral_directories)
2536
2612
  @etag = args[:etag] if args.key?(:etag)
@@ -2552,6 +2628,66 @@ module Google
2552
2628
  @update_time = args[:update_time] if args.key?(:update_time)
2553
2629
  end
2554
2630
  end
2631
+
2632
+ # A Persistent Directory backed by a Compute Engine regional persistent disk
2633
+ # within the workstation.
2634
+ class WorkstationGceRegionalPersistentDisk
2635
+ include Google::Apis::Core::Hashable
2636
+
2637
+ # The name of the persistent directory.
2638
+ # Corresponds to the JSON property `name`
2639
+ # @return [String]
2640
+ attr_accessor :name
2641
+
2642
+ # Required. The desired size of the persistent directory in GB.
2643
+ # Corresponds to the JSON property `sizeGb`
2644
+ # @return [Fixnum]
2645
+ attr_accessor :size_gb
2646
+
2647
+ def initialize(**args)
2648
+ update!(**args)
2649
+ end
2650
+
2651
+ # Update properties of this object
2652
+ def update!(**args)
2653
+ @name = args[:name] if args.key?(:name)
2654
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
2655
+ end
2656
+ end
2657
+
2658
+ # A directory to persist across workstation sessions. Updates to this field will
2659
+ # only take effect on this workstation after it is restarted.
2660
+ class WorkstationPersistentDirectory
2661
+ include Google::Apis::Core::Hashable
2662
+
2663
+ # A Persistent Directory backed by a Compute Engine regional persistent disk
2664
+ # within the workstation.
2665
+ # Corresponds to the JSON property `gcePd`
2666
+ # @return [Google::Apis::WorkstationsV1beta::WorkstationGceRegionalPersistentDisk]
2667
+ attr_accessor :gce_pd
2668
+
2669
+ # Optional. The mount path of the persistent directory.
2670
+ # Corresponds to the JSON property `mountPath`
2671
+ # @return [String]
2672
+ attr_accessor :mount_path
2673
+
2674
+ # Optional. Size of the persistent directory in GB. If specified in an update
2675
+ # request, this is the desired size of the directory.
2676
+ # Corresponds to the JSON property `sizeGb`
2677
+ # @return [Fixnum]
2678
+ attr_accessor :size_gb
2679
+
2680
+ def initialize(**args)
2681
+ update!(**args)
2682
+ end
2683
+
2684
+ # Update properties of this object
2685
+ def update!(**args)
2686
+ @gce_pd = args[:gce_pd] if args.key?(:gce_pd)
2687
+ @mount_path = args[:mount_path] if args.key?(:mount_path)
2688
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
2689
+ end
2690
+ end
2555
2691
  end
2556
2692
  end
2557
2693
  end
@@ -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.48.0"
19
+ GEM_VERSION = "0.50.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 = "20260325"
25
+ REVISION = "20260506"
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
 
@@ -316,6 +328,18 @@ module Google
316
328
  include Google::Apis::Core::JsonObjectSupport
317
329
  end
318
330
 
331
+ class WorkstationGceRegionalPersistentDisk
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class WorkstationPersistentDirectory
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
319
343
  class Accelerator
320
344
  # @private
321
345
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -610,6 +634,16 @@ module Google
610
634
  end
611
635
  end
612
636
 
637
+ class OAuthToken
638
+ # @private
639
+ class Representation < Google::Apis::Core::JsonRepresentation
640
+ property :access_token, as: 'accessToken'
641
+ property :email, as: 'email'
642
+ property :expire_time, as: 'expireTime'
643
+ property :scopes, as: 'scopes'
644
+ end
645
+ end
646
+
613
647
  class Operation
614
648
  # @private
615
649
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -676,6 +710,14 @@ module Google
676
710
  end
677
711
  end
678
712
 
713
+ class PushCredentialsRequest
714
+ # @private
715
+ class Representation < Google::Apis::Core::JsonRepresentation
716
+ property :application_default_credentials, as: 'applicationDefaultCredentials', class: Google::Apis::WorkstationsV1beta::OAuthToken, decorator: Google::Apis::WorkstationsV1beta::OAuthToken::Representation
717
+
718
+ end
719
+ end
720
+
679
721
  class ReadinessCheck
680
722
  # @private
681
723
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -768,6 +810,8 @@ module Google
768
810
  property :kms_key, as: 'kmsKey'
769
811
  hash :labels, as: 'labels'
770
812
  property :name, as: 'name'
813
+ collection :persistent_directories, as: 'persistentDirectories', class: Google::Apis::WorkstationsV1beta::WorkstationPersistentDirectory, decorator: Google::Apis::WorkstationsV1beta::WorkstationPersistentDirectory::Representation
814
+
771
815
  property :reconciling, as: 'reconciling'
772
816
  property :runtime_host, as: 'runtimeHost', class: Google::Apis::WorkstationsV1beta::RuntimeHost, decorator: Google::Apis::WorkstationsV1beta::RuntimeHost::Representation
773
817
 
@@ -838,6 +882,7 @@ module Google
838
882
  property :disable_tcp_connections, as: 'disableTcpConnections'
839
883
  property :display_name, as: 'displayName'
840
884
  property :enable_audit_agent, as: 'enableAuditAgent'
885
+ property :enable_pushing_credentials, as: 'enablePushingCredentials'
841
886
  property :encryption_key, as: 'encryptionKey', class: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey, decorator: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey::Representation
842
887
 
843
888
  collection :ephemeral_directories, as: 'ephemeralDirectories', class: Google::Apis::WorkstationsV1beta::EphemeralDirectory, decorator: Google::Apis::WorkstationsV1beta::EphemeralDirectory::Representation
@@ -865,6 +910,24 @@ module Google
865
910
  property :update_time, as: 'updateTime'
866
911
  end
867
912
  end
913
+
914
+ class WorkstationGceRegionalPersistentDisk
915
+ # @private
916
+ class Representation < Google::Apis::Core::JsonRepresentation
917
+ property :name, as: 'name'
918
+ property :size_gb, as: 'sizeGb'
919
+ end
920
+ end
921
+
922
+ class WorkstationPersistentDirectory
923
+ # @private
924
+ class Representation < Google::Apis::Core::JsonRepresentation
925
+ property :gce_pd, as: 'gcePd', class: Google::Apis::WorkstationsV1beta::WorkstationGceRegionalPersistentDisk, decorator: Google::Apis::WorkstationsV1beta::WorkstationGceRegionalPersistentDisk::Representation
926
+
927
+ property :mount_path, as: 'mountPath'
928
+ property :size_gb, as: 'sizeGb'
929
+ end
930
+ end
868
931
  end
869
932
  end
870
933
  end
@@ -1069,6 +1069,41 @@ module Google
1069
1069
  execute_or_queue_command(command, &block)
1070
1070
  end
1071
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
+
1072
1107
  # Sets the access control policy on the specified resource. Replaces any
1073
1108
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1074
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.48.0
4
+ version: 0.50.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.48.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1beta/v0.50.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: