google-apis-workstations_v1beta 0.48.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/workstations_v1beta/classes.rb +75 -5
- data/lib/google/apis/workstations_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/workstations_v1beta/representations.rb +31 -0
- data/lib/google/apis/workstations_v1beta/service.rb +35 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 51fc37387569ad69189ca38cd20b9fed85f327a779ff169a8dd93afd559083d9
|
|
4
|
+
data.tar.gz: 43974c2758082e9081a2f2b814ea3a1ba6415c06f8676663d2ff9bbc857f0f2a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d1c5cb28b82c98065498d784b0b4b2fde8187f565ba90e3e7474e3dec2f92f092082be49e1ba3d57c156f690312d89870a2e5a163880b468822863ded081e15
|
|
7
|
+
data.tar.gz: 4fadcf012643054da38a5353ec3fb8c4b06d171ce16ea9faf2ec6e90b9b725c51cd48e17bbb41f3bf2f473cd694cb4e3a132473f22f69b26b22576159a0c1fbb
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
|
@@ -2370,6 +2429,17 @@ module Google
|
|
|
2370
2429
|
attr_accessor :enable_audit_agent
|
|
2371
2430
|
alias_method :enable_audit_agent?, :enable_audit_agent
|
|
2372
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
|
+
|
|
2373
2443
|
# A customer-managed encryption key (CMEK) for the Compute Engine resources of
|
|
2374
2444
|
# the associated workstation configuration. Specify the name of your Cloud KMS
|
|
2375
2445
|
# encryption key and the default service account. We recommend that you use a
|
|
@@ -2474,11 +2544,10 @@ module Google
|
|
|
2474
2544
|
attr_accessor :replica_zones
|
|
2475
2545
|
|
|
2476
2546
|
# Optional. Number of seconds that a workstation can run until it is
|
|
2477
|
-
# automatically shut down.
|
|
2478
|
-
#
|
|
2479
|
-
#
|
|
2480
|
-
#
|
|
2481
|
-
# Note that the running_timeout field shuts down VMs after the specified time,
|
|
2547
|
+
# automatically shut down. We recommend that workstations be shut down daily to
|
|
2548
|
+
# reduce costs and so that security updates can be applied upon restart. The
|
|
2549
|
+
# idle_timeout and running_timeout fields are independent of each other. Note
|
|
2550
|
+
# that the running_timeout field shuts down VMs after the specified time,
|
|
2482
2551
|
# regardless of whether or not the VMs are idle. Provide duration terminated by `
|
|
2483
2552
|
# s` for seconds—for example, `"54000s"` (15 hours). Defaults to `"43200s"` (12
|
|
2484
2553
|
# hours). A value of `"0s"` indicates that workstations using this configuration
|
|
@@ -2531,6 +2600,7 @@ module Google
|
|
|
2531
2600
|
@disable_tcp_connections = args[:disable_tcp_connections] if args.key?(:disable_tcp_connections)
|
|
2532
2601
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
2533
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)
|
|
2534
2604
|
@encryption_key = args[:encryption_key] if args.key?(:encryption_key)
|
|
2535
2605
|
@ephemeral_directories = args[:ephemeral_directories] if args.key?(:ephemeral_directories)
|
|
2536
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.
|
|
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 = "
|
|
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
|
|
@@ -838,6 +868,7 @@ module Google
|
|
|
838
868
|
property :disable_tcp_connections, as: 'disableTcpConnections'
|
|
839
869
|
property :display_name, as: 'displayName'
|
|
840
870
|
property :enable_audit_agent, as: 'enableAuditAgent'
|
|
871
|
+
property :enable_pushing_credentials, as: 'enablePushingCredentials'
|
|
841
872
|
property :encryption_key, as: 'encryptionKey', class: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey, decorator: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey::Representation
|
|
842
873
|
|
|
843
874
|
collection :ephemeral_directories, as: 'ephemeralDirectories', class: Google::Apis::WorkstationsV1beta::EphemeralDirectory, decorator: Google::Apis::WorkstationsV1beta::EphemeralDirectory::Representation
|
|
@@ -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.
|
|
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.
|
|
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:
|