google-apis-workstations_v1beta 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b07642391a4bf5efd8bfc8525c0d8d4fd0cb3b9b83f67c00177d7df097e07fc
4
- data.tar.gz: c5744fbf065c87ae9671e15c3d5428aca82883532d6532d748815736d2c758c9
3
+ metadata.gz: 297febb387bc6027a69a2871fa9c48f50f1433b26cadd735adea438b34aba40b
4
+ data.tar.gz: 495232743b5dd72f7ffec084a2ac76413e48e1edb0c6ea7550f3c36090f1f2a4
5
5
  SHA512:
6
- metadata.gz: a4270d18c0a135288559f59bec7e5f943ee134f040c5695c2476cd24d73ba04bc40e8f92fe605c7777f82b3113d3ff2973c26c54f69313d319c3b6ef7841b50d
7
- data.tar.gz: c9314d23b95043057a0f838b1d13441be34618abf50a86eb7ab09283c83c23c86b101816fccf05405a8c88d4b66da553ee51f17379b2bbb73debdc66d3c855ae
6
+ metadata.gz: 7c9f0507599a349a2686ca6ef19144f3e71feae5d41a79e8cb99d3e51c43787c5d8dd9f43e5871bf1780e335b73173e636e9a9919e3ea7dec6e12e41a368c0a4
7
+ data.tar.gz: 8a47c8b609f8a860f8a86690f8c7eab5040e11dc437f3654bb960371584f85da83189671f026f84846ca16987f815400d6ffc22a1f47ede16455f4fac5af37d5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-workstations_v1beta
2
2
 
3
+ ### v0.4.0 (2023-02-05)
4
+
5
+ * Regenerated from discovery document revision 20230201
6
+
7
+ ### v0.3.0 (2023-01-29)
8
+
9
+ * Regenerated from discovery document revision 20230113
10
+
3
11
  ### v0.2.0 (2023-01-15)
4
12
 
5
13
  * Regenerated from discovery document revision 20230105
@@ -131,22 +131,22 @@ module Google
131
131
  # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
132
132
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
133
133
  # email address that represents a Google group. For example, `admins@example.com`
134
- # . * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
135
- # identifier) representing a user that has been recently deleted. For example, `
136
- # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
137
- # value reverts to `user:`emailid`` and the recovered user retains the role in
138
- # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
139
- # address (plus unique identifier) representing a service account that has been
140
- # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
134
+ # . * `domain:`domain``: The G Suite domain (primary) that represents all the
135
+ # users of that domain. For example, `google.com` or `example.com`. * `deleted:
136
+ # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
137
+ # representing a user that has been recently deleted. For example, `alice@
138
+ # example.com?uid=123456789012345678901`. If the user is recovered, this value
139
+ # reverts to `user:`emailid`` and the recovered user retains the role in the
140
+ # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
141
+ # (plus unique identifier) representing a service account that has been recently
142
+ # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
141
143
  # 123456789012345678901`. If the service account is undeleted, this value
142
144
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
143
145
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
144
146
  # An email address (plus unique identifier) representing a Google group that has
145
147
  # been recently deleted. For example, `admins@example.com?uid=
146
148
  # 123456789012345678901`. If the group is recovered, this value reverts to `
147
- # group:`emailid`` and the recovered group retains the role in the binding. * `
148
- # domain:`domain``: The G Suite domain (primary) that represents all the users
149
- # of that domain. For example, `google.com` or `example.com`.
149
+ # group:`emailid`` and the recovered group retains the role in the binding.
150
150
  # Corresponds to the JSON property `members`
151
151
  # @return [Array<String>]
152
152
  attr_accessor :members
@@ -232,19 +232,33 @@ module Google
232
232
  end
233
233
  end
234
234
 
235
- # A generic empty message that you can re-use to avoid defining duplicated empty
236
- # messages in your APIs. A typical example is to use it as the request or the
237
- # response type of an API method. For instance: service Foo ` rpc Bar(google.
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, e.g. "Authorization: Bearer ".
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
- # Represents the metadata of the long-running operation.
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. Identifies whether the user has requested cancellation of the
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. The time the operation finished running.
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 `statusDetail`
843
+ # Corresponds to the JSON property `statusMessage`
816
844
  # @return [String]
817
- attr_accessor :status_detail
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
- @status_detail = args[:status_detail] if args.key?(:status_detail)
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
@@ -966,6 +994,13 @@ module Google
966
994
  class PrivateClusterConfig
967
995
  include Google::Apis::Core::Hashable
968
996
 
997
+ # Additional projects that are allowed to attach to the workstation cluster's
998
+ # service attachment. By default, the workstation cluster's project and the VPC
999
+ # host project (if different) are allowed.
1000
+ # Corresponds to the JSON property `allowedProjects`
1001
+ # @return [Array<String>]
1002
+ attr_accessor :allowed_projects
1003
+
969
1004
  # Output only. Hostname for the workstation cluster. This field will be
970
1005
  # populated only when private endpoint is enabled. To access workstations in the
971
1006
  # cluster, create a new DNS zone mapping this domain name to an internal IP
@@ -982,9 +1017,9 @@ module Google
982
1017
 
983
1018
  # Output only. Service attachment URI for the workstation cluster. The service
984
1019
  # attachemnt is created when private endpoint is enabled. To access workstations
985
- # in the cluster, configure access to the managed service using (Private Service
986
- # Connect)[https://cloud.google.com/vpc/docs/configure-private-service-connect-
987
- # services].
1020
+ # in the cluster, configure access to the managed service using [Private Service
1021
+ # Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-
1022
+ # services).
988
1023
  # Corresponds to the JSON property `serviceAttachmentUri`
989
1024
  # @return [String]
990
1025
  attr_accessor :service_attachment_uri
@@ -995,6 +1030,7 @@ module Google
995
1030
 
996
1031
  # Update properties of this object
997
1032
  def update!(**args)
1033
+ @allowed_projects = args[:allowed_projects] if args.key?(:allowed_projects)
998
1034
  @cluster_hostname = args[:cluster_hostname] if args.key?(:cluster_hostname)
999
1035
  @enable_private_endpoint = args[:enable_private_endpoint] if args.key?(:enable_private_endpoint)
1000
1036
  @service_attachment_uri = args[:service_attachment_uri] if args.key?(:service_attachment_uri)
@@ -1222,7 +1258,7 @@ module Google
1222
1258
  # Output only. Host to which clients can send HTTPS traffic that will be
1223
1259
  # received by the workstation. Authorized traffic will be received to the
1224
1260
  # 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 "`port`-`host`".
1261
+ # may prefix the host with the destination port in the format ``port`-`host``.
1226
1262
  # Corresponds to the JSON property `host`
1227
1263
  # @return [String]
1228
1264
  attr_accessor :host
@@ -1439,6 +1475,12 @@ module Google
1439
1475
  # @return [String]
1440
1476
  attr_accessor :display_name
1441
1477
 
1478
+ # A customer-specified encryption key for the Compute Engine resources of this
1479
+ # workstation configuration.
1480
+ # Corresponds to the JSON property `encryptionKey`
1481
+ # @return [Google::Apis::WorkstationsV1beta::CustomerEncryptionKey]
1482
+ attr_accessor :encryption_key
1483
+
1442
1484
  # Checksum computed by the server. May be sent on update and delete requests to
1443
1485
  # ensure that the client has an up-to-date value before proceeding.
1444
1486
  # Corresponds to the JSON property `etag`
@@ -1511,6 +1553,7 @@ module Google
1511
1553
  @degraded = args[:degraded] if args.key?(:degraded)
1512
1554
  @delete_time = args[:delete_time] if args.key?(:delete_time)
1513
1555
  @display_name = args[:display_name] if args.key?(:display_name)
1556
+ @encryption_key = args[:encryption_key] if args.key?(:encryption_key)
1514
1557
  @etag = args[:etag] if args.key?(:etag)
1515
1558
  @host = args[:host] if args.key?(:host)
1516
1559
  @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.2.0"
19
+ GEM_VERSION = "0.4.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 = "20230105"
25
+ REVISION = "20230201"
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 Empty
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 Empty
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 :status_detail, as: 'statusDetail'
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
@@ -461,6 +475,7 @@ module Google
461
475
  class PrivateClusterConfig
462
476
  # @private
463
477
  class Representation < Google::Apis::Core::JsonRepresentation
478
+ collection :allowed_projects, as: 'allowedProjects'
464
479
  property :cluster_hostname, as: 'clusterHostname'
465
480
  property :enable_private_endpoint, as: 'enablePrivateEndpoint'
466
481
  property :service_attachment_uri, as: 'serviceAttachmentUri'
@@ -568,6 +583,8 @@ module Google
568
583
  property :degraded, as: 'degraded'
569
584
  property :delete_time, as: 'deleteTime'
570
585
  property :display_name, as: 'displayName'
586
+ property :encryption_key, as: 'encryptionKey', class: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey, decorator: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey::Representation
587
+
571
588
  property :etag, as: 'etag'
572
589
  property :host, as: 'host', class: Google::Apis::WorkstationsV1beta::Host, decorator: Google::Apis::WorkstationsV1beta::Host::Representation
573
590
 
@@ -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::Empty] parsed result object
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::Empty]
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::Empty::Representation
85
- command.response_class = Google::Apis::WorkstationsV1beta::Empty
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::Empty] parsed result object
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::Empty]
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::Empty::Representation
118
- command.response_class = Google::Apis::WorkstationsV1beta::Empty
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.2.0
4
+ version: 0.4.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-15 00:00:00.000000000 Z
11
+ date: 2023-02-05 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.2.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1beta/v0.4.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: []