google-apis-workstations_v1beta 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/workstations_v1beta/classes.rb +107 -3
- data/lib/google/apis/workstations_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/workstations_v1beta/representations.rb +36 -0
- data/lib/google/apis/workstations_v1beta/service.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 688b937b921bbde472410a0553ae42c86957c54dc84aa2f0cdff1f31c2d4ba32
|
4
|
+
data.tar.gz: 14cc41e2deecd0825df7b98094d7a42d6b5b5d1103d484e8fa0c9a8279bea78c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5fbc1a5fcc0b5c2d38964d0e97ca5cdb052637b8c975c9a489aa23db642a8f5daac976f4459a9d0a97cb16365d488a1d6e749aba21e04d2042e0f962002b873
|
7
|
+
data.tar.gz: 234bd6bd4d45914c52c49ed42bb0fee61d29623d9c46aa866108edab1d504a361338cf81cfb7e8bc7e2d4a4b8051a2b50d4b6fe6523ceecb5f3e300f6c3643a5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-workstations_v1beta
|
2
2
|
|
3
|
+
### v0.17.0 (2023-10-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231001
|
6
|
+
|
7
|
+
### v0.16.0 (2023-09-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230904
|
10
|
+
|
3
11
|
### v0.15.0 (2023-08-13)
|
4
12
|
|
5
13
|
* 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. Must be empty if read_only is false. Updating
|
568
|
+
# source_snapshot will update content in the ephemeral directory after the
|
569
|
+
# workstation is restarted. This field is 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/
|
@@ -1429,7 +1509,7 @@ module Google
|
|
1429
1509
|
# @return [Hash<String,String>]
|
1430
1510
|
attr_accessor :labels
|
1431
1511
|
|
1432
|
-
# Full name of this workstation.
|
1512
|
+
# Identifier. Full name of this workstation.
|
1433
1513
|
# Corresponds to the JSON property `name`
|
1434
1514
|
# @return [String]
|
1435
1515
|
attr_accessor :name
|
@@ -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)
|
@@ -1539,7 +1626,7 @@ module Google
|
|
1539
1626
|
# @return [Hash<String,String>]
|
1540
1627
|
attr_accessor :labels
|
1541
1628
|
|
1542
|
-
# Full name of this workstation cluster.
|
1629
|
+
# Identifier. Full name of this workstation cluster.
|
1543
1630
|
# Corresponds to the JSON property `name`
|
1544
1631
|
# @return [String]
|
1545
1632
|
attr_accessor :name
|
@@ -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.
|
@@ -1699,7 +1792,7 @@ module Google
|
|
1699
1792
|
# @return [Hash<String,String>]
|
1700
1793
|
attr_accessor :labels
|
1701
1794
|
|
1702
|
-
# Full name of this workstation configuration.
|
1795
|
+
# Identifier. Full name of this workstation configuration.
|
1703
1796
|
# Corresponds to the JSON property `name`
|
1704
1797
|
# @return [String]
|
1705
1798
|
attr_accessor :name
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.17.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 = "
|
25
|
+
REVISION = "20231001"
|
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'
|
@@ -344,7 +344,7 @@ module Google
|
|
344
344
|
|
345
345
|
# Updates an existing workstation cluster.
|
346
346
|
# @param [String] name
|
347
|
-
# Full name of this workstation cluster.
|
347
|
+
# Identifier. Full name of this workstation cluster.
|
348
348
|
# @param [Google::Apis::WorkstationsV1beta::WorkstationCluster] workstation_cluster_object
|
349
349
|
# @param [Boolean] allow_missing
|
350
350
|
# Optional. If set, and the workstation cluster is not found, a new workstation
|
@@ -620,7 +620,7 @@ module Google
|
|
620
620
|
|
621
621
|
# Updates an existing workstation configuration.
|
622
622
|
# @param [String] name
|
623
|
-
# Full name of this workstation configuration.
|
623
|
+
# Identifier. Full name of this workstation configuration.
|
624
624
|
# @param [Google::Apis::WorkstationsV1beta::WorkstationConfig] workstation_config_object
|
625
625
|
# @param [Boolean] allow_missing
|
626
626
|
# Optional. If set and the workstation configuration is not found, a new
|
@@ -1003,7 +1003,7 @@ module Google
|
|
1003
1003
|
|
1004
1004
|
# Updates an existing workstation.
|
1005
1005
|
# @param [String] name
|
1006
|
-
# Full name of this workstation.
|
1006
|
+
# Identifier. Full name of this workstation.
|
1007
1007
|
# @param [Google::Apis::WorkstationsV1beta::Workstation] workstation_object
|
1008
1008
|
# @param [Boolean] allow_missing
|
1009
1009
|
# Optional. If set and the workstation configuration is not found, a new
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-workstations_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.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-
|
11
|
+
date: 2023-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workstations_v1beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1beta/v0.17.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.
|
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
|