google-apis-workstations_v1beta 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1507 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module WorkstationsV1beta
24
+
25
+ # Specifies the audit configuration for a service. The configuration determines
26
+ # which permission types are logged, and what identities, if any, are exempted
27
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
28
+ # are AuditConfigs for both `allServices` and a specific service, the union of
29
+ # the two AuditConfigs is used for that service: the log_types specified in each
30
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
31
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
32
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
33
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
34
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
35
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
36
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
37
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
38
+ # exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com`
39
+ # from DATA_WRITE logging.
40
+ class AuditConfig
41
+ include Google::Apis::Core::Hashable
42
+
43
+ # The configuration for logging of each type of permission.
44
+ # Corresponds to the JSON property `auditLogConfigs`
45
+ # @return [Array<Google::Apis::WorkstationsV1beta::AuditLogConfig>]
46
+ attr_accessor :audit_log_configs
47
+
48
+ # Specifies a service that will be enabled for audit logging. For example, `
49
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
50
+ # value that covers all services.
51
+ # Corresponds to the JSON property `service`
52
+ # @return [String]
53
+ attr_accessor :service
54
+
55
+ def initialize(**args)
56
+ update!(**args)
57
+ end
58
+
59
+ # Update properties of this object
60
+ def update!(**args)
61
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
62
+ @service = args[:service] if args.key?(:service)
63
+ end
64
+ end
65
+
66
+ # Provides the configuration for logging a type of permissions. Example: ` "
67
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
68
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
69
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
70
+ # DATA_READ logging.
71
+ class AuditLogConfig
72
+ include Google::Apis::Core::Hashable
73
+
74
+ # Specifies the identities that do not cause logging for this type of permission.
75
+ # Follows the same format of Binding.members.
76
+ # Corresponds to the JSON property `exemptedMembers`
77
+ # @return [Array<String>]
78
+ attr_accessor :exempted_members
79
+
80
+ # The log type that this config enables.
81
+ # Corresponds to the JSON property `logType`
82
+ # @return [String]
83
+ attr_accessor :log_type
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
92
+ @log_type = args[:log_type] if args.key?(:log_type)
93
+ end
94
+ end
95
+
96
+ # Associates `members`, or principals, with a `role`.
97
+ class Binding
98
+ include Google::Apis::Core::Hashable
99
+
100
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
101
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
102
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
103
+ # "Summary size limit" description: "Determines if a summary is less than 100
104
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
105
+ # Requestor is owner" description: "Determines if requestor is the document
106
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
107
+ # Logic): title: "Public documents" description: "Determine whether the document
108
+ # should be publicly visible" expression: "document.type != 'private' &&
109
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
110
+ # string" description: "Create a notification string with a timestamp."
111
+ # expression: "'New message received at ' + string(document.create_time)" The
112
+ # exact variables and functions that may be referenced within an expression are
113
+ # determined by the service that evaluates it. See the service documentation for
114
+ # additional information.
115
+ # Corresponds to the JSON property `condition`
116
+ # @return [Google::Apis::WorkstationsV1beta::Expr]
117
+ attr_accessor :condition
118
+
119
+ # Specifies the principals requesting access for a Google Cloud resource. `
120
+ # members` can have the following values: * `allUsers`: A special identifier
121
+ # that represents anyone who is on the internet; with or without a Google
122
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
123
+ # anyone who is authenticated with a Google account or a service account. Does
124
+ # not include identities that come from external identity providers (IdPs)
125
+ # through identity federation. * `user:`emailid``: An email address that
126
+ # represents a specific Google account. For example, `alice@example.com` . * `
127
+ # serviceAccount:`emailid``: An email address that represents a Google service
128
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`. * `
129
+ # serviceAccount:`projectid`.svc.id.goog[`namespace`/`kubernetes-sa`]`: An
130
+ # identifier for a [Kubernetes service account](https://cloud.google.com/
131
+ # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
132
+ # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
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=
141
+ # 123456789012345678901`. If the service account is undeleted, this value
142
+ # reverts to `serviceAccount:`emailid`` and the undeleted service account
143
+ # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
144
+ # An email address (plus unique identifier) representing a Google group that has
145
+ # been recently deleted. For example, `admins@example.com?uid=
146
+ # 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`.
150
+ # Corresponds to the JSON property `members`
151
+ # @return [Array<String>]
152
+ attr_accessor :members
153
+
154
+ # Role that is assigned to the list of `members`, or principals. For example, `
155
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
156
+ # Corresponds to the JSON property `role`
157
+ # @return [String]
158
+ attr_accessor :role
159
+
160
+ def initialize(**args)
161
+ update!(**args)
162
+ end
163
+
164
+ # Update properties of this object
165
+ def update!(**args)
166
+ @condition = args[:condition] if args.key?(:condition)
167
+ @members = args[:members] if args.key?(:members)
168
+ @role = args[:role] if args.key?(:role)
169
+ end
170
+ end
171
+
172
+ # The request message for Operations.CancelOperation.
173
+ class CancelOperationRequest
174
+ include Google::Apis::Core::Hashable
175
+
176
+ def initialize(**args)
177
+ update!(**args)
178
+ end
179
+
180
+ # Update properties of this object
181
+ def update!(**args)
182
+ end
183
+ end
184
+
185
+ # A Docker container.
186
+ class Container
187
+ include Google::Apis::Core::Hashable
188
+
189
+ # Arguments passed to the entrypoint.
190
+ # Corresponds to the JSON property `args`
191
+ # @return [Array<String>]
192
+ attr_accessor :args
193
+
194
+ # If set, overrides the default ENTRYPOINT specified by the image.
195
+ # Corresponds to the JSON property `command`
196
+ # @return [Array<String>]
197
+ attr_accessor :command
198
+
199
+ # Environment variables passed to the container.
200
+ # Corresponds to the JSON property `env`
201
+ # @return [Hash<String,String>]
202
+ attr_accessor :env
203
+
204
+ # Docker image defining the container. This image must be accessible by the
205
+ # config's service account.
206
+ # Corresponds to the JSON property `image`
207
+ # @return [String]
208
+ attr_accessor :image
209
+
210
+ # If set, overrides the USER specified in the image with the given uid.
211
+ # Corresponds to the JSON property `runAsUser`
212
+ # @return [Fixnum]
213
+ attr_accessor :run_as_user
214
+
215
+ # If set, overrides the default DIR specified by the image.
216
+ # Corresponds to the JSON property `workingDir`
217
+ # @return [String]
218
+ attr_accessor :working_dir
219
+
220
+ def initialize(**args)
221
+ update!(**args)
222
+ end
223
+
224
+ # Update properties of this object
225
+ def update!(**args)
226
+ @args = args[:args] if args.key?(:args)
227
+ @command = args[:command] if args.key?(:command)
228
+ @env = args[:env] if args.key?(:env)
229
+ @image = args[:image] if args.key?(:image)
230
+ @run_as_user = args[:run_as_user] if args.key?(:run_as_user)
231
+ @working_dir = args[:working_dir] if args.key?(:working_dir)
232
+ end
233
+ end
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
240
+ include Google::Apis::Core::Hashable
241
+
242
+ def initialize(**args)
243
+ update!(**args)
244
+ end
245
+
246
+ # Update properties of this object
247
+ def update!(**args)
248
+ end
249
+ end
250
+
251
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
252
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
253
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
254
+ # "Summary size limit" description: "Determines if a summary is less than 100
255
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
256
+ # Requestor is owner" description: "Determines if requestor is the document
257
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
258
+ # Logic): title: "Public documents" description: "Determine whether the document
259
+ # should be publicly visible" expression: "document.type != 'private' &&
260
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
261
+ # string" description: "Create a notification string with a timestamp."
262
+ # expression: "'New message received at ' + string(document.create_time)" The
263
+ # exact variables and functions that may be referenced within an expression are
264
+ # determined by the service that evaluates it. See the service documentation for
265
+ # additional information.
266
+ class Expr
267
+ include Google::Apis::Core::Hashable
268
+
269
+ # Optional. Description of the expression. This is a longer text which describes
270
+ # the expression, e.g. when hovered over it in a UI.
271
+ # Corresponds to the JSON property `description`
272
+ # @return [String]
273
+ attr_accessor :description
274
+
275
+ # Textual representation of an expression in Common Expression Language syntax.
276
+ # Corresponds to the JSON property `expression`
277
+ # @return [String]
278
+ attr_accessor :expression
279
+
280
+ # Optional. String indicating the location of the expression for error reporting,
281
+ # e.g. a file name and a position in the file.
282
+ # Corresponds to the JSON property `location`
283
+ # @return [String]
284
+ attr_accessor :location
285
+
286
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
287
+ # This can be used e.g. in UIs which allow to enter the expression.
288
+ # Corresponds to the JSON property `title`
289
+ # @return [String]
290
+ attr_accessor :title
291
+
292
+ def initialize(**args)
293
+ update!(**args)
294
+ end
295
+
296
+ # Update properties of this object
297
+ def update!(**args)
298
+ @description = args[:description] if args.key?(:description)
299
+ @expression = args[:expression] if args.key?(:expression)
300
+ @location = args[:location] if args.key?(:location)
301
+ @title = args[:title] if args.key?(:title)
302
+ end
303
+ end
304
+
305
+ # A set of Compute Engine Confidential VM instance options.
306
+ class GceConfidentialInstanceConfig
307
+ include Google::Apis::Core::Hashable
308
+
309
+ # Whether the instance has confidential compute enabled.
310
+ # Corresponds to the JSON property `enableConfidentialCompute`
311
+ # @return [Boolean]
312
+ attr_accessor :enable_confidential_compute
313
+ alias_method :enable_confidential_compute?, :enable_confidential_compute
314
+
315
+ def initialize(**args)
316
+ update!(**args)
317
+ end
318
+
319
+ # Update properties of this object
320
+ def update!(**args)
321
+ @enable_confidential_compute = args[:enable_confidential_compute] if args.key?(:enable_confidential_compute)
322
+ end
323
+ end
324
+
325
+ # A runtime using a Compute Engine instance.
326
+ class GceInstance
327
+ include Google::Apis::Core::Hashable
328
+
329
+ # Size of the boot disk in GB.
330
+ # Corresponds to the JSON property `bootDiskSizeGb`
331
+ # @return [Fixnum]
332
+ attr_accessor :boot_disk_size_gb
333
+
334
+ # A set of Compute Engine Confidential VM instance options.
335
+ # Corresponds to the JSON property `confidentialInstanceConfig`
336
+ # @return [Google::Apis::WorkstationsV1beta::GceConfidentialInstanceConfig]
337
+ attr_accessor :confidential_instance_config
338
+
339
+ # Whether instances have no public IP address.
340
+ # Corresponds to the JSON property `disablePublicIpAddresses`
341
+ # @return [Boolean]
342
+ attr_accessor :disable_public_ip_addresses
343
+ alias_method :disable_public_ip_addresses?, :disable_public_ip_addresses
344
+
345
+ # The name of a Compute Engine machine type.
346
+ # Corresponds to the JSON property `machineType`
347
+ # @return [String]
348
+ attr_accessor :machine_type
349
+
350
+ # Number of instances to pool for faster workstation starup.
351
+ # Corresponds to the JSON property `poolSize`
352
+ # @return [Fixnum]
353
+ attr_accessor :pool_size
354
+
355
+ # Email address of the service account that will be used on VM instances used to
356
+ # support this config. This service account must have permission to pull the
357
+ # specified container image. If not set, VMs will run without a service account,
358
+ # in which case the image must be publicly accessible.
359
+ # Corresponds to the JSON property `serviceAccount`
360
+ # @return [String]
361
+ attr_accessor :service_account
362
+
363
+ # A set of Compute Engine Shielded instance options.
364
+ # Corresponds to the JSON property `shieldedInstanceConfig`
365
+ # @return [Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig]
366
+ attr_accessor :shielded_instance_config
367
+
368
+ # Network tags to add to the Compute Engine machines backing the Workstations.
369
+ # Corresponds to the JSON property `tags`
370
+ # @return [Array<String>]
371
+ attr_accessor :tags
372
+
373
+ def initialize(**args)
374
+ update!(**args)
375
+ end
376
+
377
+ # Update properties of this object
378
+ def update!(**args)
379
+ @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
380
+ @confidential_instance_config = args[:confidential_instance_config] if args.key?(:confidential_instance_config)
381
+ @disable_public_ip_addresses = args[:disable_public_ip_addresses] if args.key?(:disable_public_ip_addresses)
382
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
383
+ @pool_size = args[:pool_size] if args.key?(:pool_size)
384
+ @service_account = args[:service_account] if args.key?(:service_account)
385
+ @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
386
+ @tags = args[:tags] if args.key?(:tags)
387
+ end
388
+ end
389
+
390
+ # A PersistentDirectory backed by a Compute Engine regional persistent disk.
391
+ class GceRegionalPersistentDisk
392
+ include Google::Apis::Core::Hashable
393
+
394
+ # Type of the disk to use.
395
+ # Corresponds to the JSON property `diskType`
396
+ # @return [String]
397
+ attr_accessor :disk_type
398
+
399
+ # Type of file system that the disk should be formatted with. The workstation
400
+ # image must support this file system type. Must be empty if source_snapshot is
401
+ # set.
402
+ # Corresponds to the JSON property `fsType`
403
+ # @return [String]
404
+ attr_accessor :fs_type
405
+
406
+ # What should happen to the disk after the workstation is deleted. Defaults to
407
+ # DELETE.
408
+ # Corresponds to the JSON property `reclaimPolicy`
409
+ # @return [String]
410
+ attr_accessor :reclaim_policy
411
+
412
+ # Size of the disk in GB. Must be empty if source_snapshot is set.
413
+ # Corresponds to the JSON property `sizeGb`
414
+ # @return [Fixnum]
415
+ attr_accessor :size_gb
416
+
417
+ def initialize(**args)
418
+ update!(**args)
419
+ end
420
+
421
+ # Update properties of this object
422
+ def update!(**args)
423
+ @disk_type = args[:disk_type] if args.key?(:disk_type)
424
+ @fs_type = args[:fs_type] if args.key?(:fs_type)
425
+ @reclaim_policy = args[:reclaim_policy] if args.key?(:reclaim_policy)
426
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
427
+ end
428
+ end
429
+
430
+ # A set of Compute Engine Shielded instance options.
431
+ class GceShieldedInstanceConfig
432
+ include Google::Apis::Core::Hashable
433
+
434
+ # Whether the instance has integrity monitoring enabled.
435
+ # Corresponds to the JSON property `enableIntegrityMonitoring`
436
+ # @return [Boolean]
437
+ attr_accessor :enable_integrity_monitoring
438
+ alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring
439
+
440
+ # Whether the instance has Secure Boot enabled.
441
+ # Corresponds to the JSON property `enableSecureBoot`
442
+ # @return [Boolean]
443
+ attr_accessor :enable_secure_boot
444
+ alias_method :enable_secure_boot?, :enable_secure_boot
445
+
446
+ # Whether the instance has the vTPM enabled.
447
+ # Corresponds to the JSON property `enableVtpm`
448
+ # @return [Boolean]
449
+ attr_accessor :enable_vtpm
450
+ alias_method :enable_vtpm?, :enable_vtpm
451
+
452
+ def initialize(**args)
453
+ update!(**args)
454
+ end
455
+
456
+ # Update properties of this object
457
+ def update!(**args)
458
+ @enable_integrity_monitoring = args[:enable_integrity_monitoring] if args.key?(:enable_integrity_monitoring)
459
+ @enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot)
460
+ @enable_vtpm = args[:enable_vtpm] if args.key?(:enable_vtpm)
461
+ end
462
+ end
463
+
464
+ # Request message for GenerateAccessToken.
465
+ class GenerateAccessTokenRequest
466
+ include Google::Apis::Core::Hashable
467
+
468
+ # Desired expiration time of the access token. This value must be at most 24
469
+ # hours in the future. If a value is not specified, the token's expiration time
470
+ # will be set to a default value of 1 hour in the future.
471
+ # Corresponds to the JSON property `expireTime`
472
+ # @return [String]
473
+ attr_accessor :expire_time
474
+
475
+ # Desired lifetime duration of the access token. This value must be at most 24
476
+ # hours. If a value is not specified, the token's lifetime will be set to a
477
+ # default value of 1 hour.
478
+ # Corresponds to the JSON property `ttl`
479
+ # @return [String]
480
+ attr_accessor :ttl
481
+
482
+ def initialize(**args)
483
+ update!(**args)
484
+ end
485
+
486
+ # Update properties of this object
487
+ def update!(**args)
488
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
489
+ @ttl = args[:ttl] if args.key?(:ttl)
490
+ end
491
+ end
492
+
493
+ # Response message for GenerateAccessToken.
494
+ class GenerateAccessTokenResponse
495
+ include Google::Apis::Core::Hashable
496
+
497
+ # The generated bearer access token. To use this token, include it in an
498
+ # Authorization header of an HTTP request sent to the associated workstation's
499
+ # hostname, e.g. "Authorization: Bearer ".
500
+ # Corresponds to the JSON property `accessToken`
501
+ # @return [String]
502
+ attr_accessor :access_token
503
+
504
+ # Time at which the generated token will expire.
505
+ # Corresponds to the JSON property `expireTime`
506
+ # @return [String]
507
+ attr_accessor :expire_time
508
+
509
+ def initialize(**args)
510
+ update!(**args)
511
+ end
512
+
513
+ # Update properties of this object
514
+ def update!(**args)
515
+ @access_token = args[:access_token] if args.key?(:access_token)
516
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
517
+ end
518
+ end
519
+
520
+ # Runtime host for a workstation.
521
+ class Host
522
+ include Google::Apis::Core::Hashable
523
+
524
+ # A runtime using a Compute Engine instance.
525
+ # Corresponds to the JSON property `gceInstance`
526
+ # @return [Google::Apis::WorkstationsV1beta::GceInstance]
527
+ attr_accessor :gce_instance
528
+
529
+ def initialize(**args)
530
+ update!(**args)
531
+ end
532
+
533
+ # Update properties of this object
534
+ def update!(**args)
535
+ @gce_instance = args[:gce_instance] if args.key?(:gce_instance)
536
+ end
537
+ end
538
+
539
+ # The response message for Operations.ListOperations.
540
+ class ListOperationsResponse
541
+ include Google::Apis::Core::Hashable
542
+
543
+ # The standard List next-page token.
544
+ # Corresponds to the JSON property `nextPageToken`
545
+ # @return [String]
546
+ attr_accessor :next_page_token
547
+
548
+ # A list of operations that matches the specified filter in the request.
549
+ # Corresponds to the JSON property `operations`
550
+ # @return [Array<Google::Apis::WorkstationsV1beta::Operation>]
551
+ attr_accessor :operations
552
+
553
+ def initialize(**args)
554
+ update!(**args)
555
+ end
556
+
557
+ # Update properties of this object
558
+ def update!(**args)
559
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
560
+ @operations = args[:operations] if args.key?(:operations)
561
+ end
562
+ end
563
+
564
+ # Response message for ListUsableWorkstationConfigs.
565
+ class ListUsableWorkstationConfigsResponse
566
+ include Google::Apis::Core::Hashable
567
+
568
+ # Token to retrieve the next page of results, or empty if there are no more
569
+ # results in the list.
570
+ # Corresponds to the JSON property `nextPageToken`
571
+ # @return [String]
572
+ attr_accessor :next_page_token
573
+
574
+ # Unreachable resources.
575
+ # Corresponds to the JSON property `unreachable`
576
+ # @return [Array<String>]
577
+ attr_accessor :unreachable
578
+
579
+ # The requested configs.
580
+ # Corresponds to the JSON property `workstationConfigs`
581
+ # @return [Array<Google::Apis::WorkstationsV1beta::WorkstationConfig>]
582
+ attr_accessor :workstation_configs
583
+
584
+ def initialize(**args)
585
+ update!(**args)
586
+ end
587
+
588
+ # Update properties of this object
589
+ def update!(**args)
590
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
591
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
592
+ @workstation_configs = args[:workstation_configs] if args.key?(:workstation_configs)
593
+ end
594
+ end
595
+
596
+ # Response message for ListUsableWorkstations.
597
+ class ListUsableWorkstationsResponse
598
+ include Google::Apis::Core::Hashable
599
+
600
+ # Token to retrieve the next page of results, or empty if there are no more
601
+ # results in the list.
602
+ # Corresponds to the JSON property `nextPageToken`
603
+ # @return [String]
604
+ attr_accessor :next_page_token
605
+
606
+ # Unreachable resources.
607
+ # Corresponds to the JSON property `unreachable`
608
+ # @return [Array<String>]
609
+ attr_accessor :unreachable
610
+
611
+ # The requested workstations.
612
+ # Corresponds to the JSON property `workstations`
613
+ # @return [Array<Google::Apis::WorkstationsV1beta::Workstation>]
614
+ attr_accessor :workstations
615
+
616
+ def initialize(**args)
617
+ update!(**args)
618
+ end
619
+
620
+ # Update properties of this object
621
+ def update!(**args)
622
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
623
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
624
+ @workstations = args[:workstations] if args.key?(:workstations)
625
+ end
626
+ end
627
+
628
+ # Response message for ListWorkstationClusters.
629
+ class ListWorkstationClustersResponse
630
+ include Google::Apis::Core::Hashable
631
+
632
+ # Token to retrieve the next page of results, or empty if there are no more
633
+ # results in the list.
634
+ # Corresponds to the JSON property `nextPageToken`
635
+ # @return [String]
636
+ attr_accessor :next_page_token
637
+
638
+ # Unreachable resources.
639
+ # Corresponds to the JSON property `unreachable`
640
+ # @return [Array<String>]
641
+ attr_accessor :unreachable
642
+
643
+ # The requested clusters.
644
+ # Corresponds to the JSON property `workstationClusters`
645
+ # @return [Array<Google::Apis::WorkstationsV1beta::WorkstationCluster>]
646
+ attr_accessor :workstation_clusters
647
+
648
+ def initialize(**args)
649
+ update!(**args)
650
+ end
651
+
652
+ # Update properties of this object
653
+ def update!(**args)
654
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
655
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
656
+ @workstation_clusters = args[:workstation_clusters] if args.key?(:workstation_clusters)
657
+ end
658
+ end
659
+
660
+ # Response message for ListWorkstationConfigs.
661
+ class ListWorkstationConfigsResponse
662
+ include Google::Apis::Core::Hashable
663
+
664
+ # Token to retrieve the next page of results, or empty if there are no more
665
+ # results in the list.
666
+ # Corresponds to the JSON property `nextPageToken`
667
+ # @return [String]
668
+ attr_accessor :next_page_token
669
+
670
+ # Unreachable resources.
671
+ # Corresponds to the JSON property `unreachable`
672
+ # @return [Array<String>]
673
+ attr_accessor :unreachable
674
+
675
+ # The requested configs.
676
+ # Corresponds to the JSON property `workstationConfigs`
677
+ # @return [Array<Google::Apis::WorkstationsV1beta::WorkstationConfig>]
678
+ attr_accessor :workstation_configs
679
+
680
+ def initialize(**args)
681
+ update!(**args)
682
+ end
683
+
684
+ # Update properties of this object
685
+ def update!(**args)
686
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
687
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
688
+ @workstation_configs = args[:workstation_configs] if args.key?(:workstation_configs)
689
+ end
690
+ end
691
+
692
+ # Response message for ListWorkstations.
693
+ class ListWorkstationsResponse
694
+ include Google::Apis::Core::Hashable
695
+
696
+ # Token to retrieve the next page of results, or empty if there are no more
697
+ # results in the list.
698
+ # Corresponds to the JSON property `nextPageToken`
699
+ # @return [String]
700
+ attr_accessor :next_page_token
701
+
702
+ # Unreachable resources.
703
+ # Corresponds to the JSON property `unreachable`
704
+ # @return [Array<String>]
705
+ attr_accessor :unreachable
706
+
707
+ # The requested workstations.
708
+ # Corresponds to the JSON property `workstations`
709
+ # @return [Array<Google::Apis::WorkstationsV1beta::Workstation>]
710
+ attr_accessor :workstations
711
+
712
+ def initialize(**args)
713
+ update!(**args)
714
+ end
715
+
716
+ # Update properties of this object
717
+ def update!(**args)
718
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
719
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
720
+ @workstations = args[:workstations] if args.key?(:workstations)
721
+ end
722
+ end
723
+
724
+ # This resource represents a long-running operation that is the result of a
725
+ # network API call.
726
+ class Operation
727
+ include Google::Apis::Core::Hashable
728
+
729
+ # If the value is `false`, it means the operation is still in progress. If `true`
730
+ # , the operation is completed, and either `error` or `response` is available.
731
+ # Corresponds to the JSON property `done`
732
+ # @return [Boolean]
733
+ attr_accessor :done
734
+ alias_method :done?, :done
735
+
736
+ # The `Status` type defines a logical error model that is suitable for different
737
+ # programming environments, including REST APIs and RPC APIs. It is used by [
738
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
739
+ # data: error code, error message, and error details. You can find out more
740
+ # about this error model and how to work with it in the [API Design Guide](https:
741
+ # //cloud.google.com/apis/design/errors).
742
+ # Corresponds to the JSON property `error`
743
+ # @return [Google::Apis::WorkstationsV1beta::Status]
744
+ attr_accessor :error
745
+
746
+ # Service-specific metadata associated with the operation. It typically contains
747
+ # progress information and common metadata such as create time. Some services
748
+ # might not provide such metadata. Any method that returns a long-running
749
+ # operation should document the metadata type, if any.
750
+ # Corresponds to the JSON property `metadata`
751
+ # @return [Hash<String,Object>]
752
+ attr_accessor :metadata
753
+
754
+ # The server-assigned name, which is only unique within the same service that
755
+ # originally returns it. If you use the default HTTP mapping, the `name` should
756
+ # be a resource name ending with `operations/`unique_id``.
757
+ # Corresponds to the JSON property `name`
758
+ # @return [String]
759
+ attr_accessor :name
760
+
761
+ # The normal response of the operation in case of success. If the original
762
+ # method returns no data on success, such as `Delete`, the response is `google.
763
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
764
+ # the response should be the resource. For other methods, the response should
765
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
766
+ # example, if the original method name is `TakeSnapshot()`, the inferred
767
+ # response type is `TakeSnapshotResponse`.
768
+ # Corresponds to the JSON property `response`
769
+ # @return [Hash<String,Object>]
770
+ attr_accessor :response
771
+
772
+ def initialize(**args)
773
+ update!(**args)
774
+ end
775
+
776
+ # Update properties of this object
777
+ def update!(**args)
778
+ @done = args[:done] if args.key?(:done)
779
+ @error = args[:error] if args.key?(:error)
780
+ @metadata = args[:metadata] if args.key?(:metadata)
781
+ @name = args[:name] if args.key?(:name)
782
+ @response = args[:response] if args.key?(:response)
783
+ end
784
+ end
785
+
786
+ # Represents the metadata of the long-running operation.
787
+ class OperationMetadata
788
+ include Google::Apis::Core::Hashable
789
+
790
+ # Output only. API version used to start the operation.
791
+ # Corresponds to the JSON property `apiVersion`
792
+ # @return [String]
793
+ attr_accessor :api_version
794
+
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.
805
+ # Corresponds to the JSON property `createTime`
806
+ # @return [String]
807
+ attr_accessor :create_time
808
+
809
+ # Output only. The time the operation finished running.
810
+ # Corresponds to the JSON property `endTime`
811
+ # @return [String]
812
+ attr_accessor :end_time
813
+
814
+ # Output only. Human-readable status of the operation, if any.
815
+ # Corresponds to the JSON property `statusDetail`
816
+ # @return [String]
817
+ attr_accessor :status_detail
818
+
819
+ # Output only. Server-defined resource path for the target of the operation.
820
+ # Corresponds to the JSON property `target`
821
+ # @return [String]
822
+ attr_accessor :target
823
+
824
+ # Output only. Name of the verb executed by the operation.
825
+ # Corresponds to the JSON property `verb`
826
+ # @return [String]
827
+ attr_accessor :verb
828
+
829
+ def initialize(**args)
830
+ update!(**args)
831
+ end
832
+
833
+ # Update properties of this object
834
+ def update!(**args)
835
+ @api_version = args[:api_version] if args.key?(:api_version)
836
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
837
+ @create_time = args[:create_time] if args.key?(:create_time)
838
+ @end_time = args[:end_time] if args.key?(:end_time)
839
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
840
+ @target = args[:target] if args.key?(:target)
841
+ @verb = args[:verb] if args.key?(:verb)
842
+ end
843
+ end
844
+
845
+ # A directory to persist across workstation sessions.
846
+ class PersistentDirectory
847
+ include Google::Apis::Core::Hashable
848
+
849
+ # A PersistentDirectory backed by a Compute Engine regional persistent disk.
850
+ # Corresponds to the JSON property `gcePd`
851
+ # @return [Google::Apis::WorkstationsV1beta::GceRegionalPersistentDisk]
852
+ attr_accessor :gce_pd
853
+
854
+ # Location of this directory in the running workstation.
855
+ # Corresponds to the JSON property `mountPath`
856
+ # @return [String]
857
+ attr_accessor :mount_path
858
+
859
+ def initialize(**args)
860
+ update!(**args)
861
+ end
862
+
863
+ # Update properties of this object
864
+ def update!(**args)
865
+ @gce_pd = args[:gce_pd] if args.key?(:gce_pd)
866
+ @mount_path = args[:mount_path] if args.key?(:mount_path)
867
+ end
868
+ end
869
+
870
+ # An Identity and Access Management (IAM) policy, which specifies access
871
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
872
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
873
+ # Principals can be user accounts, service accounts, Google groups, and domains (
874
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
875
+ # an IAM predefined role or a user-created custom role. For some types of Google
876
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
877
+ # logical expression that allows access to a resource only if the expression
878
+ # evaluates to `true`. A condition can add constraints based on attributes of
879
+ # the request, the resource, or both. To learn which resources support
880
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
881
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
882
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
883
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
884
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
885
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
886
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
887
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
888
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
889
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
890
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
891
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
892
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
893
+ # access description: Does not grant access after Sep 2020 expression: request.
894
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
895
+ # a description of IAM and its features, see the [IAM documentation](https://
896
+ # cloud.google.com/iam/docs/).
897
+ class Policy
898
+ include Google::Apis::Core::Hashable
899
+
900
+ # Specifies cloud audit logging configuration for this policy.
901
+ # Corresponds to the JSON property `auditConfigs`
902
+ # @return [Array<Google::Apis::WorkstationsV1beta::AuditConfig>]
903
+ attr_accessor :audit_configs
904
+
905
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
906
+ # specify a `condition` that determines how and when the `bindings` are applied.
907
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
908
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
909
+ # can be Google groups. Each occurrence of a principal counts towards these
910
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
911
+ # example.com`, and not to any other principal, then you can add another 1,450
912
+ # principals to the `bindings` in the `Policy`.
913
+ # Corresponds to the JSON property `bindings`
914
+ # @return [Array<Google::Apis::WorkstationsV1beta::Binding>]
915
+ attr_accessor :bindings
916
+
917
+ # `etag` is used for optimistic concurrency control as a way to help prevent
918
+ # simultaneous updates of a policy from overwriting each other. It is strongly
919
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
920
+ # to perform policy updates in order to avoid race conditions: An `etag` is
921
+ # returned in the response to `getIamPolicy`, and systems are expected to put
922
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
923
+ # applied to the same version of the policy. **Important:** If you use IAM
924
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
925
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
926
+ # with a version `1` policy, and all of the conditions in the version `3` policy
927
+ # are lost.
928
+ # Corresponds to the JSON property `etag`
929
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
930
+ # @return [String]
931
+ attr_accessor :etag
932
+
933
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
934
+ # Requests that specify an invalid value are rejected. Any operation that
935
+ # affects conditional role bindings must specify version `3`. This requirement
936
+ # applies to the following operations: * Getting a policy that includes a
937
+ # conditional role binding * Adding a conditional role binding to a policy *
938
+ # Changing a conditional role binding in a policy * Removing any role binding,
939
+ # with or without a condition, from a policy that includes conditions **
940
+ # Important:** If you use IAM Conditions, you must include the `etag` field
941
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
942
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
943
+ # conditions in the version `3` policy are lost. If a policy does not include
944
+ # any conditions, operations on that policy may specify any valid version or
945
+ # leave the field unset. To learn which resources support conditions in their
946
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
947
+ # conditions/resource-policies).
948
+ # Corresponds to the JSON property `version`
949
+ # @return [Fixnum]
950
+ attr_accessor :version
951
+
952
+ def initialize(**args)
953
+ update!(**args)
954
+ end
955
+
956
+ # Update properties of this object
957
+ def update!(**args)
958
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
959
+ @bindings = args[:bindings] if args.key?(:bindings)
960
+ @etag = args[:etag] if args.key?(:etag)
961
+ @version = args[:version] if args.key?(:version)
962
+ end
963
+ end
964
+
965
+ # Configuration options for private clusters.
966
+ class PrivateClusterConfig
967
+ include Google::Apis::Core::Hashable
968
+
969
+ # Output only. Hostname for the workstation cluster. This field will be
970
+ # populated only when private endpoint is enabled. To access workstations in the
971
+ # cluster, create a new DNS zone mapping this domain name to an internal IP
972
+ # address and a forwarding rule mapping that address to the service attachment.
973
+ # Corresponds to the JSON property `clusterHostname`
974
+ # @return [String]
975
+ attr_accessor :cluster_hostname
976
+
977
+ # Whether Workstations endpoint is private.
978
+ # Corresponds to the JSON property `enablePrivateEndpoint`
979
+ # @return [Boolean]
980
+ attr_accessor :enable_private_endpoint
981
+ alias_method :enable_private_endpoint?, :enable_private_endpoint
982
+
983
+ # Output only. Service attachment URI for the workstation cluster. The service
984
+ # 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].
988
+ # Corresponds to the JSON property `serviceAttachmentUri`
989
+ # @return [String]
990
+ attr_accessor :service_attachment_uri
991
+
992
+ def initialize(**args)
993
+ update!(**args)
994
+ end
995
+
996
+ # Update properties of this object
997
+ def update!(**args)
998
+ @cluster_hostname = args[:cluster_hostname] if args.key?(:cluster_hostname)
999
+ @enable_private_endpoint = args[:enable_private_endpoint] if args.key?(:enable_private_endpoint)
1000
+ @service_attachment_uri = args[:service_attachment_uri] if args.key?(:service_attachment_uri)
1001
+ end
1002
+ end
1003
+
1004
+ # Request message for `SetIamPolicy` method.
1005
+ class SetIamPolicyRequest
1006
+ include Google::Apis::Core::Hashable
1007
+
1008
+ # An Identity and Access Management (IAM) policy, which specifies access
1009
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1010
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1011
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1012
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1013
+ # an IAM predefined role or a user-created custom role. For some types of Google
1014
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1015
+ # logical expression that allows access to a resource only if the expression
1016
+ # evaluates to `true`. A condition can add constraints based on attributes of
1017
+ # the request, the resource, or both. To learn which resources support
1018
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1019
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1020
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1021
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1022
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1023
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1024
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1025
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1026
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1027
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1028
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1029
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1030
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1031
+ # access description: Does not grant access after Sep 2020 expression: request.
1032
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1033
+ # a description of IAM and its features, see the [IAM documentation](https://
1034
+ # cloud.google.com/iam/docs/).
1035
+ # Corresponds to the JSON property `policy`
1036
+ # @return [Google::Apis::WorkstationsV1beta::Policy]
1037
+ attr_accessor :policy
1038
+
1039
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1040
+ # the fields in the mask will be modified. If no mask is provided, the following
1041
+ # default mask is used: `paths: "bindings, etag"`
1042
+ # Corresponds to the JSON property `updateMask`
1043
+ # @return [String]
1044
+ attr_accessor :update_mask
1045
+
1046
+ def initialize(**args)
1047
+ update!(**args)
1048
+ end
1049
+
1050
+ # Update properties of this object
1051
+ def update!(**args)
1052
+ @policy = args[:policy] if args.key?(:policy)
1053
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1054
+ end
1055
+ end
1056
+
1057
+ # Request message for StartWorkstation.
1058
+ class StartWorkstationRequest
1059
+ include Google::Apis::Core::Hashable
1060
+
1061
+ # If set, the request will be rejected if the latest version of the workstation
1062
+ # on the server does not have this etag.
1063
+ # Corresponds to the JSON property `etag`
1064
+ # @return [String]
1065
+ attr_accessor :etag
1066
+
1067
+ # If set, validate the request and preview the review, but do not actually apply
1068
+ # it.
1069
+ # Corresponds to the JSON property `validateOnly`
1070
+ # @return [Boolean]
1071
+ attr_accessor :validate_only
1072
+ alias_method :validate_only?, :validate_only
1073
+
1074
+ def initialize(**args)
1075
+ update!(**args)
1076
+ end
1077
+
1078
+ # Update properties of this object
1079
+ def update!(**args)
1080
+ @etag = args[:etag] if args.key?(:etag)
1081
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
1082
+ end
1083
+ end
1084
+
1085
+ # The `Status` type defines a logical error model that is suitable for different
1086
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1087
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1088
+ # data: error code, error message, and error details. You can find out more
1089
+ # about this error model and how to work with it in the [API Design Guide](https:
1090
+ # //cloud.google.com/apis/design/errors).
1091
+ class Status
1092
+ include Google::Apis::Core::Hashable
1093
+
1094
+ # The status code, which should be an enum value of google.rpc.Code.
1095
+ # Corresponds to the JSON property `code`
1096
+ # @return [Fixnum]
1097
+ attr_accessor :code
1098
+
1099
+ # A list of messages that carry the error details. There is a common set of
1100
+ # message types for APIs to use.
1101
+ # Corresponds to the JSON property `details`
1102
+ # @return [Array<Hash<String,Object>>]
1103
+ attr_accessor :details
1104
+
1105
+ # A developer-facing error message, which should be in English. Any user-facing
1106
+ # error message should be localized and sent in the google.rpc.Status.details
1107
+ # field, or localized by the client.
1108
+ # Corresponds to the JSON property `message`
1109
+ # @return [String]
1110
+ attr_accessor :message
1111
+
1112
+ def initialize(**args)
1113
+ update!(**args)
1114
+ end
1115
+
1116
+ # Update properties of this object
1117
+ def update!(**args)
1118
+ @code = args[:code] if args.key?(:code)
1119
+ @details = args[:details] if args.key?(:details)
1120
+ @message = args[:message] if args.key?(:message)
1121
+ end
1122
+ end
1123
+
1124
+ # Request message for StopWorkstation.
1125
+ class StopWorkstationRequest
1126
+ include Google::Apis::Core::Hashable
1127
+
1128
+ # If set, the request will be rejected if the latest version of the workstation
1129
+ # on the server does not have this etag.
1130
+ # Corresponds to the JSON property `etag`
1131
+ # @return [String]
1132
+ attr_accessor :etag
1133
+
1134
+ # If set, validate the request and preview the review, but do not actually apply
1135
+ # it.
1136
+ # Corresponds to the JSON property `validateOnly`
1137
+ # @return [Boolean]
1138
+ attr_accessor :validate_only
1139
+ alias_method :validate_only?, :validate_only
1140
+
1141
+ def initialize(**args)
1142
+ update!(**args)
1143
+ end
1144
+
1145
+ # Update properties of this object
1146
+ def update!(**args)
1147
+ @etag = args[:etag] if args.key?(:etag)
1148
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
1149
+ end
1150
+ end
1151
+
1152
+ # Request message for `TestIamPermissions` method.
1153
+ class TestIamPermissionsRequest
1154
+ include Google::Apis::Core::Hashable
1155
+
1156
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1157
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
1158
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1159
+ # Corresponds to the JSON property `permissions`
1160
+ # @return [Array<String>]
1161
+ attr_accessor :permissions
1162
+
1163
+ def initialize(**args)
1164
+ update!(**args)
1165
+ end
1166
+
1167
+ # Update properties of this object
1168
+ def update!(**args)
1169
+ @permissions = args[:permissions] if args.key?(:permissions)
1170
+ end
1171
+ end
1172
+
1173
+ # Response message for `TestIamPermissions` method.
1174
+ class TestIamPermissionsResponse
1175
+ include Google::Apis::Core::Hashable
1176
+
1177
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1178
+ # Corresponds to the JSON property `permissions`
1179
+ # @return [Array<String>]
1180
+ attr_accessor :permissions
1181
+
1182
+ def initialize(**args)
1183
+ update!(**args)
1184
+ end
1185
+
1186
+ # Update properties of this object
1187
+ def update!(**args)
1188
+ @permissions = args[:permissions] if args.key?(:permissions)
1189
+ end
1190
+ end
1191
+
1192
+ # A single instance of a developer workstation with its own persistent storage.
1193
+ class Workstation
1194
+ include Google::Apis::Core::Hashable
1195
+
1196
+ # Client-specified annotations.
1197
+ # Corresponds to the JSON property `annotations`
1198
+ # @return [Hash<String,String>]
1199
+ attr_accessor :annotations
1200
+
1201
+ # Output only. Time when this resource was created.
1202
+ # Corresponds to the JSON property `createTime`
1203
+ # @return [String]
1204
+ attr_accessor :create_time
1205
+
1206
+ # Output only. Time when this resource was soft-deleted.
1207
+ # Corresponds to the JSON property `deleteTime`
1208
+ # @return [String]
1209
+ attr_accessor :delete_time
1210
+
1211
+ # Human-readable name for this resource.
1212
+ # Corresponds to the JSON property `displayName`
1213
+ # @return [String]
1214
+ attr_accessor :display_name
1215
+
1216
+ # Checksum computed by the server. May be sent on update and delete requests to
1217
+ # ensure that the client has an up-to-date value before proceeding.
1218
+ # Corresponds to the JSON property `etag`
1219
+ # @return [String]
1220
+ attr_accessor :etag
1221
+
1222
+ # Output only. Host to which clients can send HTTPS traffic that will be
1223
+ # received by the workstation. Authorized traffic will be received to the
1224
+ # 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`".
1226
+ # Corresponds to the JSON property `host`
1227
+ # @return [String]
1228
+ attr_accessor :host
1229
+
1230
+ # Full name of this resource.
1231
+ # Corresponds to the JSON property `name`
1232
+ # @return [String]
1233
+ attr_accessor :name
1234
+
1235
+ # Output only. Indicates whether this resource is currently being updated to
1236
+ # match its intended state.
1237
+ # Corresponds to the JSON property `reconciling`
1238
+ # @return [Boolean]
1239
+ attr_accessor :reconciling
1240
+ alias_method :reconciling?, :reconciling
1241
+
1242
+ # Output only. Current state of the workstation.
1243
+ # Corresponds to the JSON property `state`
1244
+ # @return [String]
1245
+ attr_accessor :state
1246
+
1247
+ # Output only. A system-assigned unique identified for this resource.
1248
+ # Corresponds to the JSON property `uid`
1249
+ # @return [String]
1250
+ attr_accessor :uid
1251
+
1252
+ # Output only. Time when this resource was most recently updated.
1253
+ # Corresponds to the JSON property `updateTime`
1254
+ # @return [String]
1255
+ attr_accessor :update_time
1256
+
1257
+ def initialize(**args)
1258
+ update!(**args)
1259
+ end
1260
+
1261
+ # Update properties of this object
1262
+ def update!(**args)
1263
+ @annotations = args[:annotations] if args.key?(:annotations)
1264
+ @create_time = args[:create_time] if args.key?(:create_time)
1265
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1266
+ @display_name = args[:display_name] if args.key?(:display_name)
1267
+ @etag = args[:etag] if args.key?(:etag)
1268
+ @host = args[:host] if args.key?(:host)
1269
+ @name = args[:name] if args.key?(:name)
1270
+ @reconciling = args[:reconciling] if args.key?(:reconciling)
1271
+ @state = args[:state] if args.key?(:state)
1272
+ @uid = args[:uid] if args.key?(:uid)
1273
+ @update_time = args[:update_time] if args.key?(:update_time)
1274
+ end
1275
+ end
1276
+
1277
+ # A grouping of workstation configurations and the associated workstations in
1278
+ # that region.
1279
+ class WorkstationCluster
1280
+ include Google::Apis::Core::Hashable
1281
+
1282
+ # Client-specified annotations.
1283
+ # Corresponds to the JSON property `annotations`
1284
+ # @return [Hash<String,String>]
1285
+ attr_accessor :annotations
1286
+
1287
+ # Output only. Status conditions describing the current resource state.
1288
+ # Corresponds to the JSON property `conditions`
1289
+ # @return [Array<Google::Apis::WorkstationsV1beta::Status>]
1290
+ attr_accessor :conditions
1291
+
1292
+ # Output only. Time when this resource was created.
1293
+ # Corresponds to the JSON property `createTime`
1294
+ # @return [String]
1295
+ attr_accessor :create_time
1296
+
1297
+ # Output only. Whether this resource is in degraded mode, in which case it may
1298
+ # require user action to restore full functionality. Details can be found in the
1299
+ # `conditions` field.
1300
+ # Corresponds to the JSON property `degraded`
1301
+ # @return [Boolean]
1302
+ attr_accessor :degraded
1303
+ alias_method :degraded?, :degraded
1304
+
1305
+ # Output only. Time when this resource was soft-deleted.
1306
+ # Corresponds to the JSON property `deleteTime`
1307
+ # @return [String]
1308
+ attr_accessor :delete_time
1309
+
1310
+ # Human-readable name for this resource.
1311
+ # Corresponds to the JSON property `displayName`
1312
+ # @return [String]
1313
+ attr_accessor :display_name
1314
+
1315
+ # Checksum computed by the server. May be sent on update and delete requests to
1316
+ # ensure that the client has an up-to-date value before proceeding.
1317
+ # Corresponds to the JSON property `etag`
1318
+ # @return [String]
1319
+ attr_accessor :etag
1320
+
1321
+ # Full name of this resource.
1322
+ # Corresponds to the JSON property `name`
1323
+ # @return [String]
1324
+ attr_accessor :name
1325
+
1326
+ # Name of the Compute Engine network in which instances associated with this
1327
+ # cluster will be created.
1328
+ # Corresponds to the JSON property `network`
1329
+ # @return [String]
1330
+ attr_accessor :network
1331
+
1332
+ # Configuration options for private clusters.
1333
+ # Corresponds to the JSON property `privateClusterConfig`
1334
+ # @return [Google::Apis::WorkstationsV1beta::PrivateClusterConfig]
1335
+ attr_accessor :private_cluster_config
1336
+
1337
+ # Output only. Indicates whether this resource is currently being updated to
1338
+ # match its intended state.
1339
+ # Corresponds to the JSON property `reconciling`
1340
+ # @return [Boolean]
1341
+ attr_accessor :reconciling
1342
+ alias_method :reconciling?, :reconciling
1343
+
1344
+ # Name of the Compute Engine subnetwork in which instances associated with this
1345
+ # cluster will be created. Must be part of the subnetwork specified for this
1346
+ # cluster.
1347
+ # Corresponds to the JSON property `subnetwork`
1348
+ # @return [String]
1349
+ attr_accessor :subnetwork
1350
+
1351
+ # Output only. A system-assigned unique identified for this resource.
1352
+ # Corresponds to the JSON property `uid`
1353
+ # @return [String]
1354
+ attr_accessor :uid
1355
+
1356
+ # Output only. Time when this resource was most recently updated.
1357
+ # Corresponds to the JSON property `updateTime`
1358
+ # @return [String]
1359
+ attr_accessor :update_time
1360
+
1361
+ def initialize(**args)
1362
+ update!(**args)
1363
+ end
1364
+
1365
+ # Update properties of this object
1366
+ def update!(**args)
1367
+ @annotations = args[:annotations] if args.key?(:annotations)
1368
+ @conditions = args[:conditions] if args.key?(:conditions)
1369
+ @create_time = args[:create_time] if args.key?(:create_time)
1370
+ @degraded = args[:degraded] if args.key?(:degraded)
1371
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1372
+ @display_name = args[:display_name] if args.key?(:display_name)
1373
+ @etag = args[:etag] if args.key?(:etag)
1374
+ @name = args[:name] if args.key?(:name)
1375
+ @network = args[:network] if args.key?(:network)
1376
+ @private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config)
1377
+ @reconciling = args[:reconciling] if args.key?(:reconciling)
1378
+ @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
1379
+ @uid = args[:uid] if args.key?(:uid)
1380
+ @update_time = args[:update_time] if args.key?(:update_time)
1381
+ end
1382
+ end
1383
+
1384
+ # A set of configuration options describing how a workstation will be run.
1385
+ # Workstation configurations are intended to be shared across multiple
1386
+ # workstations.
1387
+ class WorkstationConfig
1388
+ include Google::Apis::Core::Hashable
1389
+
1390
+ # Client-specified annotations.
1391
+ # Corresponds to the JSON property `annotations`
1392
+ # @return [Hash<String,String>]
1393
+ attr_accessor :annotations
1394
+
1395
+ # Output only. Status conditions describing the current resource state.
1396
+ # Corresponds to the JSON property `conditions`
1397
+ # @return [Array<Google::Apis::WorkstationsV1beta::Status>]
1398
+ attr_accessor :conditions
1399
+
1400
+ # A Docker container.
1401
+ # Corresponds to the JSON property `container`
1402
+ # @return [Google::Apis::WorkstationsV1beta::Container]
1403
+ attr_accessor :container
1404
+
1405
+ # Output only. Time when this resource was created.
1406
+ # Corresponds to the JSON property `createTime`
1407
+ # @return [String]
1408
+ attr_accessor :create_time
1409
+
1410
+ # Output only. Whether this resource is in degraded mode, in which case it may
1411
+ # require user action to restore full functionality. Details can be found in the
1412
+ # `conditions` field.
1413
+ # Corresponds to the JSON property `degraded`
1414
+ # @return [Boolean]
1415
+ attr_accessor :degraded
1416
+ alias_method :degraded?, :degraded
1417
+
1418
+ # Output only. Time when this resource was soft-deleted.
1419
+ # Corresponds to the JSON property `deleteTime`
1420
+ # @return [String]
1421
+ attr_accessor :delete_time
1422
+
1423
+ # Human-readable name for this resource.
1424
+ # Corresponds to the JSON property `displayName`
1425
+ # @return [String]
1426
+ attr_accessor :display_name
1427
+
1428
+ # Checksum computed by the server. May be sent on update and delete requests to
1429
+ # ensure that the client has an up-to-date value before proceeding.
1430
+ # Corresponds to the JSON property `etag`
1431
+ # @return [String]
1432
+ attr_accessor :etag
1433
+
1434
+ # Runtime host for a workstation.
1435
+ # Corresponds to the JSON property `host`
1436
+ # @return [Google::Apis::WorkstationsV1beta::Host]
1437
+ attr_accessor :host
1438
+
1439
+ # How long to wait before automatically stopping an instance that hasn't
1440
+ # received any user traffic. A value of 0 indicates that this instance should
1441
+ # never time out due to idleness. Defaults to 20 minutes.
1442
+ # Corresponds to the JSON property `idleTimeout`
1443
+ # @return [String]
1444
+ attr_accessor :idle_timeout
1445
+
1446
+ # Full name of this resource.
1447
+ # Corresponds to the JSON property `name`
1448
+ # @return [String]
1449
+ attr_accessor :name
1450
+
1451
+ # Directories to persist across workstation sessions.
1452
+ # Corresponds to the JSON property `persistentDirectories`
1453
+ # @return [Array<Google::Apis::WorkstationsV1beta::PersistentDirectory>]
1454
+ attr_accessor :persistent_directories
1455
+
1456
+ # Output only. Indicates whether this resource is currently being updated to
1457
+ # match its intended state.
1458
+ # Corresponds to the JSON property `reconciling`
1459
+ # @return [Boolean]
1460
+ attr_accessor :reconciling
1461
+ alias_method :reconciling?, :reconciling
1462
+
1463
+ # How long to wait before automatically stopping a workstation after it started.
1464
+ # A value of 0 indicates that workstations using this config should never time
1465
+ # out. Must be greater than 0 and less than 24 hours if encryption_key is set.
1466
+ # Defaults to 12 hours.
1467
+ # Corresponds to the JSON property `runningTimeout`
1468
+ # @return [String]
1469
+ attr_accessor :running_timeout
1470
+
1471
+ # Output only. A system-assigned unique identified for this resource.
1472
+ # Corresponds to the JSON property `uid`
1473
+ # @return [String]
1474
+ attr_accessor :uid
1475
+
1476
+ # Output only. Time when this resource was most recently updated.
1477
+ # Corresponds to the JSON property `updateTime`
1478
+ # @return [String]
1479
+ attr_accessor :update_time
1480
+
1481
+ def initialize(**args)
1482
+ update!(**args)
1483
+ end
1484
+
1485
+ # Update properties of this object
1486
+ def update!(**args)
1487
+ @annotations = args[:annotations] if args.key?(:annotations)
1488
+ @conditions = args[:conditions] if args.key?(:conditions)
1489
+ @container = args[:container] if args.key?(:container)
1490
+ @create_time = args[:create_time] if args.key?(:create_time)
1491
+ @degraded = args[:degraded] if args.key?(:degraded)
1492
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1493
+ @display_name = args[:display_name] if args.key?(:display_name)
1494
+ @etag = args[:etag] if args.key?(:etag)
1495
+ @host = args[:host] if args.key?(:host)
1496
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
1497
+ @name = args[:name] if args.key?(:name)
1498
+ @persistent_directories = args[:persistent_directories] if args.key?(:persistent_directories)
1499
+ @reconciling = args[:reconciling] if args.key?(:reconciling)
1500
+ @running_timeout = args[:running_timeout] if args.key?(:running_timeout)
1501
+ @uid = args[:uid] if args.key?(:uid)
1502
+ @update_time = args[:update_time] if args.key?(:update_time)
1503
+ end
1504
+ end
1505
+ end
1506
+ end
1507
+ end