google-apis-workstations_v1beta 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/workstations_v1beta/classes.rb +61 -26
- data/lib/google/apis/workstations_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/workstations_v1beta/representations.rb +20 -4
- data/lib/google/apis/workstations_v1beta/service.rb +8 -8
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4e7fc505fbfd553129f2d079ab6f724029ed50fbf0dd6a9a2bded2d3964f3a1
|
4
|
+
data.tar.gz: cd03155f21474b5f3eb78d10786fcef344bda3648d29de859f37efaa3a6ed20c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aaafbebfee4411e51521208f6b73f4c9a4b3b41b62b958a0f3665a793d2baca90c55400221ceda6e045fbd761520c8aebd89cf42974bf1b98fcd15341250eee
|
7
|
+
data.tar.gz: c1fbc8ae8e334003808ec38cb31c858db636e6e45537beb361ef094a9054dad61369c093feb92c8e9bd2bd3d95342030c4cd8654719bfd37e5b74bb57bfcda5e
|
data/CHANGELOG.md
CHANGED
@@ -232,19 +232,33 @@ module Google
|
|
232
232
|
end
|
233
233
|
end
|
234
234
|
|
235
|
-
# A
|
236
|
-
#
|
237
|
-
|
238
|
-
# protobuf.Empty) returns (google.protobuf.Empty); `
|
239
|
-
class Empty
|
235
|
+
# A customer-specified encryption key for the Compute Engine resources of this
|
236
|
+
# workstation configuration.
|
237
|
+
class CustomerEncryptionKey
|
240
238
|
include Google::Apis::Core::Hashable
|
241
239
|
|
240
|
+
# The name of the encryption key that is stored in Google Cloud KMS, for example,
|
241
|
+
# `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
|
242
|
+
# Corresponds to the JSON property `kmsKey`
|
243
|
+
# @return [String]
|
244
|
+
attr_accessor :kms_key
|
245
|
+
|
246
|
+
# The service account being used for the encryption request for the given KMS
|
247
|
+
# key. If absent, the Compute Engine default service account is used. However,
|
248
|
+
# it is recommended to use a separate service account and to follow KMS best
|
249
|
+
# practices mentioned at https://cloud.google.com/kms/docs/separation-of-duties
|
250
|
+
# Corresponds to the JSON property `kmsKeyServiceAccount`
|
251
|
+
# @return [String]
|
252
|
+
attr_accessor :kms_key_service_account
|
253
|
+
|
242
254
|
def initialize(**args)
|
243
255
|
update!(**args)
|
244
256
|
end
|
245
257
|
|
246
258
|
# Update properties of this object
|
247
259
|
def update!(**args)
|
260
|
+
@kms_key = args[:kms_key] if args.key?(:kms_key)
|
261
|
+
@kms_key_service_account = args[:kms_key_service_account] if args.key?(:kms_key_service_account)
|
248
262
|
end
|
249
263
|
end
|
250
264
|
|
@@ -496,7 +510,7 @@ module Google
|
|
496
510
|
|
497
511
|
# The generated bearer access token. To use this token, include it in an
|
498
512
|
# Authorization header of an HTTP request sent to the associated workstation's
|
499
|
-
# hostname,
|
513
|
+
# hostname, for example, `Authorization: Bearer `.
|
500
514
|
# Corresponds to the JSON property `accessToken`
|
501
515
|
# @return [String]
|
502
516
|
attr_accessor :access_token
|
@@ -517,6 +531,22 @@ module Google
|
|
517
531
|
end
|
518
532
|
end
|
519
533
|
|
534
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
535
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
536
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
537
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
538
|
+
class GoogleProtobufEmpty
|
539
|
+
include Google::Apis::Core::Hashable
|
540
|
+
|
541
|
+
def initialize(**args)
|
542
|
+
update!(**args)
|
543
|
+
end
|
544
|
+
|
545
|
+
# Update properties of this object
|
546
|
+
def update!(**args)
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
520
550
|
# Runtime host for a workstation.
|
521
551
|
class Host
|
522
552
|
include Google::Apis::Core::Hashable
|
@@ -783,7 +813,7 @@ module Google
|
|
783
813
|
end
|
784
814
|
end
|
785
815
|
|
786
|
-
#
|
816
|
+
# Metadata for long-running operations.
|
787
817
|
class OperationMetadata
|
788
818
|
include Google::Apis::Core::Hashable
|
789
819
|
|
@@ -792,29 +822,27 @@ module Google
|
|
792
822
|
# @return [String]
|
793
823
|
attr_accessor :api_version
|
794
824
|
|
795
|
-
# Output only.
|
796
|
-
# operation. Operations that have been cancelled successfully have Operation.
|
797
|
-
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
|
798
|
-
# CANCELLED`.
|
799
|
-
# Corresponds to the JSON property `cancelRequested`
|
800
|
-
# @return [Boolean]
|
801
|
-
attr_accessor :cancel_requested
|
802
|
-
alias_method :cancel_requested?, :cancel_requested
|
803
|
-
|
804
|
-
# Output only. The time the operation was created.
|
825
|
+
# Output only. Time that the operation was created.
|
805
826
|
# Corresponds to the JSON property `createTime`
|
806
827
|
# @return [String]
|
807
828
|
attr_accessor :create_time
|
808
829
|
|
809
|
-
# Output only.
|
830
|
+
# Output only. Time that the operation finished running.
|
810
831
|
# Corresponds to the JSON property `endTime`
|
811
832
|
# @return [String]
|
812
833
|
attr_accessor :end_time
|
813
834
|
|
835
|
+
# Output only. Identifies whether the user has requested cancellation of the
|
836
|
+
# operation.
|
837
|
+
# Corresponds to the JSON property `requestedCancellation`
|
838
|
+
# @return [Boolean]
|
839
|
+
attr_accessor :requested_cancellation
|
840
|
+
alias_method :requested_cancellation?, :requested_cancellation
|
841
|
+
|
814
842
|
# Output only. Human-readable status of the operation, if any.
|
815
|
-
# Corresponds to the JSON property `
|
843
|
+
# Corresponds to the JSON property `statusMessage`
|
816
844
|
# @return [String]
|
817
|
-
attr_accessor :
|
845
|
+
attr_accessor :status_message
|
818
846
|
|
819
847
|
# Output only. Server-defined resource path for the target of the operation.
|
820
848
|
# Corresponds to the JSON property `target`
|
@@ -833,10 +861,10 @@ module Google
|
|
833
861
|
# Update properties of this object
|
834
862
|
def update!(**args)
|
835
863
|
@api_version = args[:api_version] if args.key?(:api_version)
|
836
|
-
@cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
|
837
864
|
@create_time = args[:create_time] if args.key?(:create_time)
|
838
865
|
@end_time = args[:end_time] if args.key?(:end_time)
|
839
|
-
@
|
866
|
+
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
|
867
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
840
868
|
@target = args[:target] if args.key?(:target)
|
841
869
|
@verb = args[:verb] if args.key?(:verb)
|
842
870
|
end
|
@@ -982,9 +1010,9 @@ module Google
|
|
982
1010
|
|
983
1011
|
# Output only. Service attachment URI for the workstation cluster. The service
|
984
1012
|
# attachemnt is created when private endpoint is enabled. To access workstations
|
985
|
-
# in the cluster, configure access to the managed service using
|
986
|
-
# Connect
|
987
|
-
# services
|
1013
|
+
# in the cluster, configure access to the managed service using [Private Service
|
1014
|
+
# Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-
|
1015
|
+
# services).
|
988
1016
|
# Corresponds to the JSON property `serviceAttachmentUri`
|
989
1017
|
# @return [String]
|
990
1018
|
attr_accessor :service_attachment_uri
|
@@ -1222,7 +1250,7 @@ module Google
|
|
1222
1250
|
# Output only. Host to which clients can send HTTPS traffic that will be
|
1223
1251
|
# received by the workstation. Authorized traffic will be received to the
|
1224
1252
|
# workstation as HTTP on port 80. To send traffic to a different port, clients
|
1225
|
-
# may prefix the host with the destination port in the format
|
1253
|
+
# may prefix the host with the destination port in the format ``port`-`host``.
|
1226
1254
|
# Corresponds to the JSON property `host`
|
1227
1255
|
# @return [String]
|
1228
1256
|
attr_accessor :host
|
@@ -1439,6 +1467,12 @@ module Google
|
|
1439
1467
|
# @return [String]
|
1440
1468
|
attr_accessor :display_name
|
1441
1469
|
|
1470
|
+
# A customer-specified encryption key for the Compute Engine resources of this
|
1471
|
+
# workstation configuration.
|
1472
|
+
# Corresponds to the JSON property `encryptionKey`
|
1473
|
+
# @return [Google::Apis::WorkstationsV1beta::CustomerEncryptionKey]
|
1474
|
+
attr_accessor :encryption_key
|
1475
|
+
|
1442
1476
|
# Checksum computed by the server. May be sent on update and delete requests to
|
1443
1477
|
# ensure that the client has an up-to-date value before proceeding.
|
1444
1478
|
# Corresponds to the JSON property `etag`
|
@@ -1511,6 +1545,7 @@ module Google
|
|
1511
1545
|
@degraded = args[:degraded] if args.key?(:degraded)
|
1512
1546
|
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
1513
1547
|
@display_name = args[:display_name] if args.key?(:display_name)
|
1548
|
+
@encryption_key = args[:encryption_key] if args.key?(:encryption_key)
|
1514
1549
|
@etag = args[:etag] if args.key?(:etag)
|
1515
1550
|
@host = args[:host] if args.key?(:host)
|
1516
1551
|
@idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
|
@@ -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.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230113"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,7 +52,7 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class CustomerEncryptionKey
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class GoogleProtobufEmpty
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class Host
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -271,9 +277,11 @@ module Google
|
|
271
277
|
end
|
272
278
|
end
|
273
279
|
|
274
|
-
class
|
280
|
+
class CustomerEncryptionKey
|
275
281
|
# @private
|
276
282
|
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
+
property :kms_key, as: 'kmsKey'
|
284
|
+
property :kms_key_service_account, as: 'kmsKeyServiceAccount'
|
277
285
|
end
|
278
286
|
end
|
279
287
|
|
@@ -345,6 +353,12 @@ module Google
|
|
345
353
|
end
|
346
354
|
end
|
347
355
|
|
356
|
+
class GoogleProtobufEmpty
|
357
|
+
# @private
|
358
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
348
362
|
class Host
|
349
363
|
# @private
|
350
364
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -428,10 +442,10 @@ module Google
|
|
428
442
|
# @private
|
429
443
|
class Representation < Google::Apis::Core::JsonRepresentation
|
430
444
|
property :api_version, as: 'apiVersion'
|
431
|
-
property :cancel_requested, as: 'cancelRequested'
|
432
445
|
property :create_time, as: 'createTime'
|
433
446
|
property :end_time, as: 'endTime'
|
434
|
-
property :
|
447
|
+
property :requested_cancellation, as: 'requestedCancellation'
|
448
|
+
property :status_message, as: 'statusMessage'
|
435
449
|
property :target, as: 'target'
|
436
450
|
property :verb, as: 'verb'
|
437
451
|
end
|
@@ -568,6 +582,8 @@ module Google
|
|
568
582
|
property :degraded, as: 'degraded'
|
569
583
|
property :delete_time, as: 'deleteTime'
|
570
584
|
property :display_name, as: 'displayName'
|
585
|
+
property :encryption_key, as: 'encryptionKey', class: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey, decorator: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey::Representation
|
586
|
+
|
571
587
|
property :etag, as: 'etag'
|
572
588
|
property :host, as: 'host', class: Google::Apis::WorkstationsV1beta::Host, decorator: Google::Apis::WorkstationsV1beta::Host::Representation
|
573
589
|
|
@@ -69,10 +69,10 @@ module Google
|
|
69
69
|
# Request-specific options
|
70
70
|
#
|
71
71
|
# @yield [result, err] Result & error if block supplied
|
72
|
-
# @yieldparam result [Google::Apis::WorkstationsV1beta::
|
72
|
+
# @yieldparam result [Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty] parsed result object
|
73
73
|
# @yieldparam err [StandardError] error object if request failed
|
74
74
|
#
|
75
|
-
# @return [Google::Apis::WorkstationsV1beta::
|
75
|
+
# @return [Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty]
|
76
76
|
#
|
77
77
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
78
78
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -81,8 +81,8 @@ module Google
|
|
81
81
|
command = make_simple_command(:post, 'v1beta/{+name}:cancel', options)
|
82
82
|
command.request_representation = Google::Apis::WorkstationsV1beta::CancelOperationRequest::Representation
|
83
83
|
command.request_object = cancel_operation_request_object
|
84
|
-
command.response_representation = Google::Apis::WorkstationsV1beta::
|
85
|
-
command.response_class = Google::Apis::WorkstationsV1beta::
|
84
|
+
command.response_representation = Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty::Representation
|
85
|
+
command.response_class = Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty
|
86
86
|
command.params['name'] = name unless name.nil?
|
87
87
|
command.query['fields'] = fields unless fields.nil?
|
88
88
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -104,18 +104,18 @@ module Google
|
|
104
104
|
# Request-specific options
|
105
105
|
#
|
106
106
|
# @yield [result, err] Result & error if block supplied
|
107
|
-
# @yieldparam result [Google::Apis::WorkstationsV1beta::
|
107
|
+
# @yieldparam result [Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty] parsed result object
|
108
108
|
# @yieldparam err [StandardError] error object if request failed
|
109
109
|
#
|
110
|
-
# @return [Google::Apis::WorkstationsV1beta::
|
110
|
+
# @return [Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty]
|
111
111
|
#
|
112
112
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
113
113
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
114
114
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
115
115
|
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
116
116
|
command = make_simple_command(:delete, 'v1beta/{+name}', options)
|
117
|
-
command.response_representation = Google::Apis::WorkstationsV1beta::
|
118
|
-
command.response_class = Google::Apis::WorkstationsV1beta::
|
117
|
+
command.response_representation = Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty::Representation
|
118
|
+
command.response_class = Google::Apis::WorkstationsV1beta::GoogleProtobufEmpty
|
119
119
|
command.params['name'] = name unless name.nil?
|
120
120
|
command.query['fields'] = fields unless fields.nil?
|
121
121
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workstations_v1beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1beta/v0.3.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workstations_v1beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|