google-apis-workstations_v1 0.8.0 → 0.9.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91490b79b8b05731bf367ec44e6ad9dffcff1d0fb377facc61c373957a26bd35
|
4
|
+
data.tar.gz: 3d073630717d5a89c4a69fc8a5bc8a46d290fda34de83dc4fafaa21204c6cd38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97774c6a749bf3eb05a4286488aad7b54a12a79af515310dac22bc00131561b6b3ae6b7c63d466cadde18666a80719e2ab6c0a1891dd02d78236d297dd600cc2
|
7
|
+
data.tar.gz: 37d681d70deba986e71490de2f138047e4fe83add256cfacb51044865104a460fc1b739cb8a5ec6659c9def8323fb415a49b3aaf74eb68ea0817459d2e37bc9c
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,32 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module WorkstationsV1
|
24
24
|
|
25
|
+
# An accelerator card attached to the instance.
|
26
|
+
class Accelerator
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Optional. Number of accelerator cards exposed to the instance.
|
30
|
+
# Corresponds to the JSON property `count`
|
31
|
+
# @return [Fixnum]
|
32
|
+
attr_accessor :count
|
33
|
+
|
34
|
+
# Optional. Type of accelerator resource to attach to the instance, for example,
|
35
|
+
# `"nvidia-tesla-p100"`.
|
36
|
+
# Corresponds to the JSON property `type`
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :type
|
39
|
+
|
40
|
+
def initialize(**args)
|
41
|
+
update!(**args)
|
42
|
+
end
|
43
|
+
|
44
|
+
# Update properties of this object
|
45
|
+
def update!(**args)
|
46
|
+
@count = args[:count] if args.key?(:count)
|
47
|
+
@type = args[:type] if args.key?(:type)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
25
51
|
# Specifies the audit configuration for a service. The configuration determines
|
26
52
|
# which permission types are logged, and what identities, if any, are exempted
|
27
53
|
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
@@ -320,6 +346,32 @@ module Google
|
|
320
346
|
end
|
321
347
|
end
|
322
348
|
|
349
|
+
# An ephemeral directory which won't persist across workstation sessions. It is
|
350
|
+
# freshly created on every workstation start operation.
|
351
|
+
class EphemeralDirectory
|
352
|
+
include Google::Apis::Core::Hashable
|
353
|
+
|
354
|
+
# An EphemeralDirectory is backed by a Compute Engine persistent disk.
|
355
|
+
# Corresponds to the JSON property `gcePd`
|
356
|
+
# @return [Google::Apis::WorkstationsV1::GcePersistentDisk]
|
357
|
+
attr_accessor :gce_pd
|
358
|
+
|
359
|
+
# Required. Location of this directory in the running workstation.
|
360
|
+
# Corresponds to the JSON property `mountPath`
|
361
|
+
# @return [String]
|
362
|
+
attr_accessor :mount_path
|
363
|
+
|
364
|
+
def initialize(**args)
|
365
|
+
update!(**args)
|
366
|
+
end
|
367
|
+
|
368
|
+
# Update properties of this object
|
369
|
+
def update!(**args)
|
370
|
+
@gce_pd = args[:gce_pd] if args.key?(:gce_pd)
|
371
|
+
@mount_path = args[:mount_path] if args.key?(:mount_path)
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
323
375
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
324
376
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
325
377
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -398,6 +450,12 @@ module Google
|
|
398
450
|
class GceInstance
|
399
451
|
include Google::Apis::Core::Hashable
|
400
452
|
|
453
|
+
# Optional. A list of the type and count of accelerator cards attached to the
|
454
|
+
# instance.
|
455
|
+
# Corresponds to the JSON property `accelerators`
|
456
|
+
# @return [Array<Google::Apis::WorkstationsV1::Accelerator>]
|
457
|
+
attr_accessor :accelerators
|
458
|
+
|
401
459
|
# Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum
|
402
460
|
# boot disk size is `30` GB. Defaults to `50` GB.
|
403
461
|
# Corresponds to the JSON property `bootDiskSizeGb`
|
@@ -420,8 +478,14 @@ module Google
|
|
420
478
|
attr_accessor :disable_public_ip_addresses
|
421
479
|
alias_method :disable_public_ip_addresses?, :disable_public_ip_addresses
|
422
480
|
|
481
|
+
# Optional. Whether to disable SSH access to the VM.
|
482
|
+
# Corresponds to the JSON property `disableSsh`
|
483
|
+
# @return [Boolean]
|
484
|
+
attr_accessor :disable_ssh
|
485
|
+
alias_method :disable_ssh?, :disable_ssh
|
486
|
+
|
423
487
|
# Optional. Whether to enable nested virtualization on Cloud Workstations VMs
|
424
|
-
# created
|
488
|
+
# created using this workstation configuration. Nested virtualization lets you
|
425
489
|
# run virtual machine (VM) instances inside your workstation. Before enabling
|
426
490
|
# nested virtualization, consider the following important considerations. Cloud
|
427
491
|
# Workstations instances are subject to the [same restrictions as Compute Engine
|
@@ -514,9 +578,11 @@ module Google
|
|
514
578
|
|
515
579
|
# Update properties of this object
|
516
580
|
def update!(**args)
|
581
|
+
@accelerators = args[:accelerators] if args.key?(:accelerators)
|
517
582
|
@boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
|
518
583
|
@confidential_instance_config = args[:confidential_instance_config] if args.key?(:confidential_instance_config)
|
519
584
|
@disable_public_ip_addresses = args[:disable_public_ip_addresses] if args.key?(:disable_public_ip_addresses)
|
585
|
+
@disable_ssh = args[:disable_ssh] if args.key?(:disable_ssh)
|
520
586
|
@enable_nested_virtualization = args[:enable_nested_virtualization] if args.key?(:enable_nested_virtualization)
|
521
587
|
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
522
588
|
@pool_size = args[:pool_size] if args.key?(:pool_size)
|
@@ -528,10 +594,55 @@ module Google
|
|
528
594
|
end
|
529
595
|
end
|
530
596
|
|
531
|
-
#
|
532
|
-
|
533
|
-
|
534
|
-
|
597
|
+
# An EphemeralDirectory is backed by a Compute Engine persistent disk.
|
598
|
+
class GcePersistentDisk
|
599
|
+
include Google::Apis::Core::Hashable
|
600
|
+
|
601
|
+
# Optional. Type of the disk to use. Defaults to `"pd-standard"`.
|
602
|
+
# Corresponds to the JSON property `diskType`
|
603
|
+
# @return [String]
|
604
|
+
attr_accessor :disk_type
|
605
|
+
|
606
|
+
# Optional. Whether the disk is read only. If true, the disk may be shared by
|
607
|
+
# multiple VMs and source_snapshot must be set.
|
608
|
+
# Corresponds to the JSON property `readOnly`
|
609
|
+
# @return [Boolean]
|
610
|
+
attr_accessor :read_only
|
611
|
+
alias_method :read_only?, :read_only
|
612
|
+
|
613
|
+
# Optional. Name of the disk image to use as the source for the disk. Must be
|
614
|
+
# empty if source_snapshot is set. Updating source_image will update content in
|
615
|
+
# the ephemeral directory after the workstation is restarted. This field is
|
616
|
+
# mutable.
|
617
|
+
# Corresponds to the JSON property `sourceImage`
|
618
|
+
# @return [String]
|
619
|
+
attr_accessor :source_image
|
620
|
+
|
621
|
+
# Optional. Name of the snapshot to use as the source for the disk. Must be
|
622
|
+
# empty if source_image is set. Must be empty if read_only is false. Updating
|
623
|
+
# source_snapshot will update content in the ephemeral directory after the
|
624
|
+
# workstation is restarted. This field is mutable.
|
625
|
+
# Corresponds to the JSON property `sourceSnapshot`
|
626
|
+
# @return [String]
|
627
|
+
attr_accessor :source_snapshot
|
628
|
+
|
629
|
+
def initialize(**args)
|
630
|
+
update!(**args)
|
631
|
+
end
|
632
|
+
|
633
|
+
# Update properties of this object
|
634
|
+
def update!(**args)
|
635
|
+
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
636
|
+
@read_only = args[:read_only] if args.key?(:read_only)
|
637
|
+
@source_image = args[:source_image] if args.key?(:source_image)
|
638
|
+
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
642
|
+
# A Persistent Directory backed by a Compute Engine regional persistent disk.
|
643
|
+
# The persistent_directories field is repeated, but it may contain only one
|
644
|
+
# entry. It creates a [persistent disk](https://cloud.google.com/compute/docs/
|
645
|
+
# disks/persistent-disks) that mounts to the workstation VM at `/home` when the
|
535
646
|
# session starts and detaches when the session ends. If this field is empty,
|
536
647
|
# workstations created with this configuration do not have a persistent home
|
537
648
|
# directory.
|
@@ -1090,10 +1201,10 @@ module Google
|
|
1090
1201
|
class PersistentDirectory
|
1091
1202
|
include Google::Apis::Core::Hashable
|
1092
1203
|
|
1093
|
-
# A
|
1094
|
-
# persistent_directories field is repeated, but it may contain only one
|
1095
|
-
# It creates a [persistent disk](https://cloud.google.com/compute/docs/
|
1096
|
-
# persistent-disks) that mounts to the workstation VM at `/home` when the
|
1204
|
+
# A Persistent Directory backed by a Compute Engine regional persistent disk.
|
1205
|
+
# The persistent_directories field is repeated, but it may contain only one
|
1206
|
+
# entry. It creates a [persistent disk](https://cloud.google.com/compute/docs/
|
1207
|
+
# disks/persistent-disks) that mounts to the workstation VM at `/home` when the
|
1097
1208
|
# session starts and detaches when the session ends. If this field is empty,
|
1098
1209
|
# workstations created with this configuration do not have a persistent home
|
1099
1210
|
# directory.
|
@@ -1764,10 +1875,10 @@ module Google
|
|
1764
1875
|
attr_accessor :delete_time
|
1765
1876
|
|
1766
1877
|
# Optional. Disables support for plain TCP connections in the workstation. By
|
1767
|
-
# default the service supports TCP connections
|
1768
|
-
# this option to true disables that relay, which prevents the usage of
|
1769
|
-
# that require plain
|
1770
|
-
# communication must occur over
|
1878
|
+
# default the service supports TCP connections through a websocket relay.
|
1879
|
+
# Setting this option to true disables that relay, which prevents the usage of
|
1880
|
+
# services that require plain TCP connections, such as SSH. When enabled, all
|
1881
|
+
# communication must occur over HTTPS or WSS.
|
1771
1882
|
# Corresponds to the JSON property `disableTcpConnections`
|
1772
1883
|
# @return [Boolean]
|
1773
1884
|
attr_accessor :disable_tcp_connections
|
@@ -1797,6 +1908,12 @@ module Google
|
|
1797
1908
|
# @return [Google::Apis::WorkstationsV1::CustomerEncryptionKey]
|
1798
1909
|
attr_accessor :encryption_key
|
1799
1910
|
|
1911
|
+
# Optional. Ephemeral directories which won't persist across workstation
|
1912
|
+
# sessions.
|
1913
|
+
# Corresponds to the JSON property `ephemeralDirectories`
|
1914
|
+
# @return [Array<Google::Apis::WorkstationsV1::EphemeralDirectory>]
|
1915
|
+
attr_accessor :ephemeral_directories
|
1916
|
+
|
1800
1917
|
# Optional. Checksum computed by the server. May be sent on update and delete
|
1801
1918
|
# requests to make sure that the client has an up-to-date value before
|
1802
1919
|
# proceeding.
|
@@ -1904,6 +2021,7 @@ module Google
|
|
1904
2021
|
@display_name = args[:display_name] if args.key?(:display_name)
|
1905
2022
|
@enable_audit_agent = args[:enable_audit_agent] if args.key?(:enable_audit_agent)
|
1906
2023
|
@encryption_key = args[:encryption_key] if args.key?(:encryption_key)
|
2024
|
+
@ephemeral_directories = args[:ephemeral_directories] if args.key?(:ephemeral_directories)
|
1907
2025
|
@etag = args[:etag] if args.key?(:etag)
|
1908
2026
|
@host = args[:host] if args.key?(:host)
|
1909
2027
|
@idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module WorkstationsV1
|
18
18
|
# Version of the google-apis-workstations_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240301"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module WorkstationsV1
|
24
24
|
|
25
|
+
class Accelerator
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class AuditConfig
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -64,6 +70,12 @@ module Google
|
|
64
70
|
include Google::Apis::Core::JsonObjectSupport
|
65
71
|
end
|
66
72
|
|
73
|
+
class EphemeralDirectory
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
67
79
|
class Expr
|
68
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
81
|
|
@@ -82,6 +94,12 @@ module Google
|
|
82
94
|
include Google::Apis::Core::JsonObjectSupport
|
83
95
|
end
|
84
96
|
|
97
|
+
class GcePersistentDisk
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
85
103
|
class GceRegionalPersistentDisk
|
86
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
105
|
|
@@ -256,6 +274,14 @@ module Google
|
|
256
274
|
include Google::Apis::Core::JsonObjectSupport
|
257
275
|
end
|
258
276
|
|
277
|
+
class Accelerator
|
278
|
+
# @private
|
279
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
280
|
+
property :count, as: 'count'
|
281
|
+
property :type, as: 'type'
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
259
285
|
class AuditConfig
|
260
286
|
# @private
|
261
287
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -316,6 +342,15 @@ module Google
|
|
316
342
|
end
|
317
343
|
end
|
318
344
|
|
345
|
+
class EphemeralDirectory
|
346
|
+
# @private
|
347
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
348
|
+
property :gce_pd, as: 'gcePd', class: Google::Apis::WorkstationsV1::GcePersistentDisk, decorator: Google::Apis::WorkstationsV1::GcePersistentDisk::Representation
|
349
|
+
|
350
|
+
property :mount_path, as: 'mountPath'
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
319
354
|
class Expr
|
320
355
|
# @private
|
321
356
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -336,10 +371,13 @@ module Google
|
|
336
371
|
class GceInstance
|
337
372
|
# @private
|
338
373
|
class Representation < Google::Apis::Core::JsonRepresentation
|
374
|
+
collection :accelerators, as: 'accelerators', class: Google::Apis::WorkstationsV1::Accelerator, decorator: Google::Apis::WorkstationsV1::Accelerator::Representation
|
375
|
+
|
339
376
|
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
340
377
|
property :confidential_instance_config, as: 'confidentialInstanceConfig', class: Google::Apis::WorkstationsV1::GceConfidentialInstanceConfig, decorator: Google::Apis::WorkstationsV1::GceConfidentialInstanceConfig::Representation
|
341
378
|
|
342
379
|
property :disable_public_ip_addresses, as: 'disablePublicIpAddresses'
|
380
|
+
property :disable_ssh, as: 'disableSsh'
|
343
381
|
property :enable_nested_virtualization, as: 'enableNestedVirtualization'
|
344
382
|
property :machine_type, as: 'machineType'
|
345
383
|
property :pool_size, as: 'poolSize'
|
@@ -352,6 +390,16 @@ module Google
|
|
352
390
|
end
|
353
391
|
end
|
354
392
|
|
393
|
+
class GcePersistentDisk
|
394
|
+
# @private
|
395
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
396
|
+
property :disk_type, as: 'diskType'
|
397
|
+
property :read_only, as: 'readOnly'
|
398
|
+
property :source_image, as: 'sourceImage'
|
399
|
+
property :source_snapshot, as: 'sourceSnapshot'
|
400
|
+
end
|
401
|
+
end
|
402
|
+
|
355
403
|
class GceRegionalPersistentDisk
|
356
404
|
# @private
|
357
405
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -656,6 +704,8 @@ module Google
|
|
656
704
|
property :enable_audit_agent, as: 'enableAuditAgent'
|
657
705
|
property :encryption_key, as: 'encryptionKey', class: Google::Apis::WorkstationsV1::CustomerEncryptionKey, decorator: Google::Apis::WorkstationsV1::CustomerEncryptionKey::Representation
|
658
706
|
|
707
|
+
collection :ephemeral_directories, as: 'ephemeralDirectories', class: Google::Apis::WorkstationsV1::EphemeralDirectory, decorator: Google::Apis::WorkstationsV1::EphemeralDirectory::Representation
|
708
|
+
|
659
709
|
property :etag, as: 'etag'
|
660
710
|
property :host, as: 'host', class: Google::Apis::WorkstationsV1::Host, decorator: Google::Apis::WorkstationsV1::Host::Representation
|
661
711
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-workstations_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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: 2024-
|
11
|
+
date: 2024-03-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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1/v0.9.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workstations_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|