google-apis-workstations_v1beta 0.15.0 → 0.16.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: c41e9faf788b09f95c6ff17acef839257771dfb09e6a2d05b80b2af048a8ff31
4
- data.tar.gz: 467affcf50fe7ec34c8499e4ac7941d30628a681a9fae1cd32c3d6db610372b9
3
+ metadata.gz: d98a1220a39047eac56f52ce971accd537970ea95dfc8704df51be47bdb9ea88
4
+ data.tar.gz: 4d5050aa6e5f54ed0a2ff44a8751f9456621c56e2e3281edc59202b2492a2a12
5
5
  SHA512:
6
- metadata.gz: 045fc2bbac97e9dcf08396d9d3f3ccc0f901fce93d5828608d3eb8548ecf4d48f677264999161323746ae4e94410c3a7ab76df36b5ac8804612500bc0d4009c3
7
- data.tar.gz: e05e8d3a6c12b2040a6863ca344bcbba8776aa3a622693c60d074ada9dfc094aed28ce965d21cc2314ac40a43910302d9e2a798094066abfbbb8eeab331b0203
6
+ metadata.gz: 4939257eef8fbf907f7cdd906fc170f6d9a520cc14614708f5622a3b3819458acf7fc6ed2c328ebfdab3d22a4439e0329ed81d7cc64a13c97dba28371c4a40a9
7
+ data.tar.gz: c2af7a16f960db76e1bc6b2980b677ee7431a0ce644a4dc16ba8be3f67e81369c2718d070c866009feb21610421e7502811ebc524f054e9df64eb62b98f3c12e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-workstations_v1beta
2
2
 
3
+ ### v0.16.0 (2023-09-10)
4
+
5
+ * Regenerated from discovery document revision 20230904
6
+
3
7
  ### v0.15.0 (2023-08-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20230802
@@ -300,6 +300,32 @@ module Google
300
300
  end
301
301
  end
302
302
 
303
+ # An ephemeral directory which won't persist across workstation sessions. It is
304
+ # freshly created on every workstation start operation.
305
+ class EphemeralDirectory
306
+ include Google::Apis::Core::Hashable
307
+
308
+ # An EphemeralDirectory is backed by a Compute Engine persistent disk.
309
+ # Corresponds to the JSON property `gcePd`
310
+ # @return [Google::Apis::WorkstationsV1beta::GcePersistentDisk]
311
+ attr_accessor :gce_pd
312
+
313
+ # Required. Location of this directory in the running workstation.
314
+ # Corresponds to the JSON property `mountPath`
315
+ # @return [String]
316
+ attr_accessor :mount_path
317
+
318
+ def initialize(**args)
319
+ update!(**args)
320
+ end
321
+
322
+ # Update properties of this object
323
+ def update!(**args)
324
+ @gce_pd = args[:gce_pd] if args.key?(:gce_pd)
325
+ @mount_path = args[:mount_path] if args.key?(:mount_path)
326
+ end
327
+ end
328
+
303
329
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
304
330
  # CEL is a C-like expression language. The syntax and semantics of CEL are
305
331
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -470,6 +496,14 @@ module Google
470
496
  # @return [String]
471
497
  attr_accessor :service_account
472
498
 
499
+ # Optional. Scopes to grant to the service_account. Various scopes are
500
+ # automatically added based on feature usage. When specified, users of
501
+ # workstations under this configuration must have `iam.serviceAccounts.actAs` on
502
+ # the service account.
503
+ # Corresponds to the JSON property `serviceAccountScopes`
504
+ # @return [Array<String>]
505
+ attr_accessor :service_account_scopes
506
+
473
507
  # A set of Compute Engine Shielded instance options.
474
508
  # Corresponds to the JSON property `shieldedInstanceConfig`
475
509
  # @return [Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig]
@@ -499,11 +533,57 @@ module Google
499
533
  @pool_size = args[:pool_size] if args.key?(:pool_size)
500
534
  @pooled_instances = args[:pooled_instances] if args.key?(:pooled_instances)
501
535
  @service_account = args[:service_account] if args.key?(:service_account)
536
+ @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
502
537
  @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
503
538
  @tags = args[:tags] if args.key?(:tags)
504
539
  end
505
540
  end
506
541
 
542
+ # An EphemeralDirectory is backed by a Compute Engine persistent disk.
543
+ class GcePersistentDisk
544
+ include Google::Apis::Core::Hashable
545
+
546
+ # Optional. Type of the disk to use. Defaults to `"pd-standard"`.
547
+ # Corresponds to the JSON property `diskType`
548
+ # @return [String]
549
+ attr_accessor :disk_type
550
+
551
+ # Optional. Whether the disk is read only. If true, the disk may be shared by
552
+ # multiple VMs and source_snapshot must be set.
553
+ # Corresponds to the JSON property `readOnly`
554
+ # @return [Boolean]
555
+ attr_accessor :read_only
556
+ alias_method :read_only?, :read_only
557
+
558
+ # Optional. Name of the disk image to use as the source for the disk. Must be
559
+ # empty if source_snapshot is set. Updating source_image will update content in
560
+ # the ephemeral directory after the workstation is restarted. This field is
561
+ # mutable.
562
+ # Corresponds to the JSON property `sourceImage`
563
+ # @return [String]
564
+ attr_accessor :source_image
565
+
566
+ # Optional. Name of the snapshot to use as the source for the disk. Must be
567
+ # empty if source_image is set. Updating source_snapshot will update content in
568
+ # the ephemeral directory after the workstation is restarted. This field is
569
+ # mutable.
570
+ # Corresponds to the JSON property `sourceSnapshot`
571
+ # @return [String]
572
+ attr_accessor :source_snapshot
573
+
574
+ def initialize(**args)
575
+ update!(**args)
576
+ end
577
+
578
+ # Update properties of this object
579
+ def update!(**args)
580
+ @disk_type = args[:disk_type] if args.key?(:disk_type)
581
+ @read_only = args[:read_only] if args.key?(:read_only)
582
+ @source_image = args[:source_image] if args.key?(:source_image)
583
+ @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
584
+ end
585
+ end
586
+
507
587
  # A PersistentDirectory backed by a Compute Engine regional persistent disk. The
508
588
  # persistent_directories field is repeated, but it may contain only one entry.
509
589
  # It creates a [persistent disk](https://cloud.google.com/compute/docs/disks/
@@ -1441,6 +1521,12 @@ module Google
1441
1521
  attr_accessor :reconciling
1442
1522
  alias_method :reconciling?, :reconciling
1443
1523
 
1524
+ # Output only. Time when this workstation was most recently successfully started,
1525
+ # regardless of the workstation's initial state.
1526
+ # Corresponds to the JSON property `startTime`
1527
+ # @return [String]
1528
+ attr_accessor :start_time
1529
+
1444
1530
  # Output only. Current state of the workstation.
1445
1531
  # Corresponds to the JSON property `state`
1446
1532
  # @return [String]
@@ -1472,6 +1558,7 @@ module Google
1472
1558
  @labels = args[:labels] if args.key?(:labels)
1473
1559
  @name = args[:name] if args.key?(:name)
1474
1560
  @reconciling = args[:reconciling] if args.key?(:reconciling)
1561
+ @start_time = args[:start_time] if args.key?(:start_time)
1475
1562
  @state = args[:state] if args.key?(:state)
1476
1563
  @uid = args[:uid] if args.key?(:uid)
1477
1564
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -1670,6 +1757,12 @@ module Google
1670
1757
  # @return [Google::Apis::WorkstationsV1beta::CustomerEncryptionKey]
1671
1758
  attr_accessor :encryption_key
1672
1759
 
1760
+ # Optional. Ephemeral directories which won't persist across workstation
1761
+ # sessions.
1762
+ # Corresponds to the JSON property `ephemeralDirectories`
1763
+ # @return [Array<Google::Apis::WorkstationsV1beta::EphemeralDirectory>]
1764
+ attr_accessor :ephemeral_directories
1765
+
1673
1766
  # Optional. Checksum computed by the server. May be sent on update and delete
1674
1767
  # requests to make sure that the client has an up-to-date value before
1675
1768
  # proceeding.
@@ -1723,6 +1816,15 @@ module Google
1723
1816
  attr_accessor :reconciling
1724
1817
  alias_method :reconciling?, :reconciling
1725
1818
 
1819
+ # Optional. Immutable. Specifies the zones used to replicate the VM and disk
1820
+ # resources within the region. If set, exactly two zones within the workstation
1821
+ # cluster's region must be specified—for example, `['us-central1-a', 'us-
1822
+ # central1-f']`. If this field is empty, two default zones within the region are
1823
+ # used. Immutable after the workstation configuration is created.
1824
+ # Corresponds to the JSON property `replicaZones`
1825
+ # @return [Array<String>]
1826
+ attr_accessor :replica_zones
1827
+
1726
1828
  # Optional. Number of seconds that a workstation can run until it is
1727
1829
  # automatically shut down. We recommend that workstations be shut down daily to
1728
1830
  # reduce costs and so that security updates can be applied upon restart. The
@@ -1767,6 +1869,7 @@ module Google
1767
1869
  @display_name = args[:display_name] if args.key?(:display_name)
1768
1870
  @enable_audit_agent = args[:enable_audit_agent] if args.key?(:enable_audit_agent)
1769
1871
  @encryption_key = args[:encryption_key] if args.key?(:encryption_key)
1872
+ @ephemeral_directories = args[:ephemeral_directories] if args.key?(:ephemeral_directories)
1770
1873
  @etag = args[:etag] if args.key?(:etag)
1771
1874
  @host = args[:host] if args.key?(:host)
1772
1875
  @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
@@ -1775,6 +1878,7 @@ module Google
1775
1878
  @persistent_directories = args[:persistent_directories] if args.key?(:persistent_directories)
1776
1879
  @readiness_checks = args[:readiness_checks] if args.key?(:readiness_checks)
1777
1880
  @reconciling = args[:reconciling] if args.key?(:reconciling)
1881
+ @replica_zones = args[:replica_zones] if args.key?(:replica_zones)
1778
1882
  @running_timeout = args[:running_timeout] if args.key?(:running_timeout)
1779
1883
  @uid = args[:uid] if args.key?(:uid)
1780
1884
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -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.15.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230802"
25
+ REVISION = "20230904"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class EphemeralDirectory
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class Expr
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -82,6 +88,12 @@ module Google
82
88
  include Google::Apis::Core::JsonObjectSupport
83
89
  end
84
90
 
91
+ class GcePersistentDisk
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
85
97
  class GceRegionalPersistentDisk
86
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
99
 
@@ -305,6 +317,15 @@ module Google
305
317
  end
306
318
  end
307
319
 
320
+ class EphemeralDirectory
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
323
+ property :gce_pd, as: 'gcePd', class: Google::Apis::WorkstationsV1beta::GcePersistentDisk, decorator: Google::Apis::WorkstationsV1beta::GcePersistentDisk::Representation
324
+
325
+ property :mount_path, as: 'mountPath'
326
+ end
327
+ end
328
+
308
329
  class Expr
309
330
  # @private
310
331
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -336,12 +357,23 @@ module Google
336
357
  property :pool_size, as: 'poolSize'
337
358
  property :pooled_instances, as: 'pooledInstances'
338
359
  property :service_account, as: 'serviceAccount'
360
+ collection :service_account_scopes, as: 'serviceAccountScopes'
339
361
  property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig, decorator: Google::Apis::WorkstationsV1beta::GceShieldedInstanceConfig::Representation
340
362
 
341
363
  collection :tags, as: 'tags'
342
364
  end
343
365
  end
344
366
 
367
+ class GcePersistentDisk
368
+ # @private
369
+ class Representation < Google::Apis::Core::JsonRepresentation
370
+ property :disk_type, as: 'diskType'
371
+ property :read_only, as: 'readOnly'
372
+ property :source_image, as: 'sourceImage'
373
+ property :source_snapshot, as: 'sourceSnapshot'
374
+ end
375
+ end
376
+
345
377
  class GceRegionalPersistentDisk
346
378
  # @private
347
379
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -576,6 +608,7 @@ module Google
576
608
  hash :labels, as: 'labels'
577
609
  property :name, as: 'name'
578
610
  property :reconciling, as: 'reconciling'
611
+ property :start_time, as: 'startTime'
579
612
  property :state, as: 'state'
580
613
  property :uid, as: 'uid'
581
614
  property :update_time, as: 'updateTime'
@@ -621,6 +654,8 @@ module Google
621
654
  property :enable_audit_agent, as: 'enableAuditAgent'
622
655
  property :encryption_key, as: 'encryptionKey', class: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey, decorator: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey::Representation
623
656
 
657
+ collection :ephemeral_directories, as: 'ephemeralDirectories', class: Google::Apis::WorkstationsV1beta::EphemeralDirectory, decorator: Google::Apis::WorkstationsV1beta::EphemeralDirectory::Representation
658
+
624
659
  property :etag, as: 'etag'
625
660
  property :host, as: 'host', class: Google::Apis::WorkstationsV1beta::Host, decorator: Google::Apis::WorkstationsV1beta::Host::Representation
626
661
 
@@ -632,6 +667,7 @@ module Google
632
667
  collection :readiness_checks, as: 'readinessChecks', class: Google::Apis::WorkstationsV1beta::ReadinessCheck, decorator: Google::Apis::WorkstationsV1beta::ReadinessCheck::Representation
633
668
 
634
669
  property :reconciling, as: 'reconciling'
670
+ collection :replica_zones, as: 'replicaZones'
635
671
  property :running_timeout, as: 'runningTimeout'
636
672
  property :uid, as: 'uid'
637
673
  property :update_time, as: 'updateTime'
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.15.0
4
+ version: 0.16.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-08-13 00:00:00.000000000 Z
11
+ date: 2023-09-10 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.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1beta/v0.16.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Workstations API V1beta