google-apis-workstations_v1 0.17.0 → 0.19.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 805c5b9c35ed6a2bfe42c6d47cfc505453f011b26b858224f46e6f0d9ebcab78
4
- data.tar.gz: e1fbcfb3526e7ff03b161848514f8defc3fddcec39a2c1f3e8c59b9008ad871c
3
+ metadata.gz: edfd4769c99d05e0a9de4e7e3ef24f24cd8408f123454789455305aa0e5b0d79
4
+ data.tar.gz: b83e0908660d3b1a3273d957f500b38fcaeca6c4edfc35a99195b5c05dc035de
5
5
  SHA512:
6
- metadata.gz: ae8a8aa1f44286b91c5c1b5ba5435046bc24ca3b6b8d44cd73a7931a2d4eaac59bf9e6b0bffd065e9a9072f268ccd1bf0371d424d0dab4f4c4dbeffc99397601
7
- data.tar.gz: b1c3808fe0bd0430b5665fe7fda027ee4d1b11b369832cf706ae3db917359b3e9a8a93f326f434851b090e73a5bc48475c0ba0b4ead94437d86dd1625a761e54
6
+ metadata.gz: 81ac57b40c64dd2766a2ea60e206d1bf01649b628be373ef55a5b3b4ea1d46511aa3e9c22984f0a34507871cde4ed97987141609ce71949387fbb4f2b9333c90
7
+ data.tar.gz: 7dad660f6211439d563f949764054eb62eb78789d7b4bc5964774ac237404c35c49103b2d82968824dd3245aa498dba4230d8ceaf3043291b9f420e14a9fd5f5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-workstations_v1
2
2
 
3
+ ### v0.19.0 (2024-12-08)
4
+
5
+ * Regenerated from discovery document revision 20241202
6
+
7
+ ### v0.18.0 (2024-10-20)
8
+
9
+ * Regenerated from discovery document revision 20241009
10
+
3
11
  ### v0.17.0 (2024-09-15)
4
12
 
5
13
  * Regenerated from discovery document revision 20240904
@@ -220,6 +220,85 @@ module Google
220
220
  end
221
221
  end
222
222
 
223
+ # A boost configuration is a set of resources that a workstation can use to
224
+ # increase its performance. If a boost configuration is specified, when starting
225
+ # a workstation, users can choose to use a VM provisioned under the boost config
226
+ # by passing the boost config id in the start request. If no boost config id is
227
+ # provided in the start request, the system will choose a VM from the pool
228
+ # provisioned under the default config.
229
+ class BoostConfig
230
+ include Google::Apis::Core::Hashable
231
+
232
+ # Optional. A list of the type and count of accelerator cards attached to the
233
+ # boost instance. Defaults to `none`.
234
+ # Corresponds to the JSON property `accelerators`
235
+ # @return [Array<Google::Apis::WorkstationsV1::Accelerator>]
236
+ attr_accessor :accelerators
237
+
238
+ # Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum
239
+ # boot disk size is `30` GB. Defaults to `50` GB.
240
+ # Corresponds to the JSON property `bootDiskSizeGb`
241
+ # @return [Fixnum]
242
+ attr_accessor :boot_disk_size_gb
243
+
244
+ # Optional. Whether to enable nested virtualization on boosted Cloud
245
+ # Workstations VMs running using this boost configuration. Defaults to false.
246
+ # Nested virtualization lets you run virtual machine (VM) instances inside your
247
+ # workstation. Before enabling nested virtualization, consider the following
248
+ # important considerations. Cloud Workstations instances are subject to the [
249
+ # same restrictions as Compute Engine instances](https://cloud.google.com/
250
+ # compute/docs/instances/nested-virtualization/overview#restrictions): * **
251
+ # Organization policy**: projects, folders, or organizations may be restricted
252
+ # from creating nested VMs if the **Disable VM nested virtualization**
253
+ # constraint is enforced in the organization policy. For more information, see
254
+ # the Compute Engine section, [Checking whether nested virtualization is allowed]
255
+ # (https://cloud.google.com/compute/docs/instances/nested-virtualization/
256
+ # managing-constraint#checking_whether_nested_virtualization_is_allowed). * **
257
+ # Performance**: nested VMs might experience a 10% or greater decrease in
258
+ # performance for workloads that are CPU-bound and possibly greater than a 10%
259
+ # decrease for workloads that are input/output bound. * **Machine Type**: nested
260
+ # virtualization can only be enabled on boost configurations that specify a
261
+ # machine_type in the N1 or N2 machine series.
262
+ # Corresponds to the JSON property `enableNestedVirtualization`
263
+ # @return [Boolean]
264
+ attr_accessor :enable_nested_virtualization
265
+ alias_method :enable_nested_virtualization?, :enable_nested_virtualization
266
+
267
+ # Required. The id to be used for the boost configuration.
268
+ # Corresponds to the JSON property `id`
269
+ # @return [String]
270
+ attr_accessor :id
271
+
272
+ # Optional. The type of machine that boosted VM instances will use—for example, `
273
+ # e2-standard-4`. For more information about machine types that Cloud
274
+ # Workstations supports, see the list of [available machine types](https://cloud.
275
+ # google.com/workstations/docs/available-machine-types). Defaults to `e2-
276
+ # standard-4`.
277
+ # Corresponds to the JSON property `machineType`
278
+ # @return [String]
279
+ attr_accessor :machine_type
280
+
281
+ # Optional. The number of boost VMs that the system should keep idle so that
282
+ # workstations can be boosted quickly. Defaults to `0`.
283
+ # Corresponds to the JSON property `poolSize`
284
+ # @return [Fixnum]
285
+ attr_accessor :pool_size
286
+
287
+ def initialize(**args)
288
+ update!(**args)
289
+ end
290
+
291
+ # Update properties of this object
292
+ def update!(**args)
293
+ @accelerators = args[:accelerators] if args.key?(:accelerators)
294
+ @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
295
+ @enable_nested_virtualization = args[:enable_nested_virtualization] if args.key?(:enable_nested_virtualization)
296
+ @id = args[:id] if args.key?(:id)
297
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
298
+ @pool_size = args[:pool_size] if args.key?(:pool_size)
299
+ end
300
+ end
301
+
223
302
  # The request message for Operations.CancelOperation.
224
303
  class CancelOperationRequest
225
304
  include Google::Apis::Core::Hashable
@@ -456,6 +535,14 @@ module Google
456
535
  # @return [Array<Google::Apis::WorkstationsV1::Accelerator>]
457
536
  attr_accessor :accelerators
458
537
 
538
+ # Optional. A list of the boost configurations that workstations created using
539
+ # this workstation configuration are allowed to use. If specified, users will
540
+ # have the option to choose from the list of boost configs when starting a
541
+ # workstation.
542
+ # Corresponds to the JSON property `boostConfigs`
543
+ # @return [Array<Google::Apis::WorkstationsV1::BoostConfig>]
544
+ attr_accessor :boost_configs
545
+
459
546
  # Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum
460
547
  # boot disk size is `30` GB. Defaults to `50` GB.
461
548
  # Corresponds to the JSON property `bootDiskSizeGb`
@@ -580,6 +667,7 @@ module Google
580
667
  # Update properties of this object
581
668
  def update!(**args)
582
669
  @accelerators = args[:accelerators] if args.key?(:accelerators)
670
+ @boost_configs = args[:boost_configs] if args.key?(:boost_configs)
583
671
  @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
584
672
  @confidential_instance_config = args[:confidential_instance_config] if args.key?(:confidential_instance_config)
585
673
  @disable_public_ip_addresses = args[:disable_public_ip_addresses] if args.key?(:disable_public_ip_addresses)
@@ -1836,6 +1924,12 @@ module Google
1836
1924
  # @return [String]
1837
1925
  attr_accessor :subnetwork
1838
1926
 
1927
+ # Optional. Tag keys/values directly bound to this resource. For example: "123/
1928
+ # environment": "production", "123/costCenter": "marketing"
1929
+ # Corresponds to the JSON property `tags`
1930
+ # @return [Hash<String,String>]
1931
+ attr_accessor :tags
1932
+
1839
1933
  # Output only. A system-assigned unique identifier for this workstation cluster.
1840
1934
  # Corresponds to the JSON property `uid`
1841
1935
  # @return [String]
@@ -1867,6 +1961,7 @@ module Google
1867
1961
  @private_cluster_config = args[:private_cluster_config] if args.key?(:private_cluster_config)
1868
1962
  @reconciling = args[:reconciling] if args.key?(:reconciling)
1869
1963
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
1964
+ @tags = args[:tags] if args.key?(:tags)
1870
1965
  @uid = args[:uid] if args.key?(:uid)
1871
1966
  @update_time = args[:update_time] if args.key?(:update_time)
1872
1967
  end
@@ -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.17.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240904"
25
+ REVISION = "20241202"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class BoostConfig
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class CancelOperationRequest
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -315,6 +321,19 @@ module Google
315
321
  end
316
322
  end
317
323
 
324
+ class BoostConfig
325
+ # @private
326
+ class Representation < Google::Apis::Core::JsonRepresentation
327
+ collection :accelerators, as: 'accelerators', class: Google::Apis::WorkstationsV1::Accelerator, decorator: Google::Apis::WorkstationsV1::Accelerator::Representation
328
+
329
+ property :boot_disk_size_gb, as: 'bootDiskSizeGb'
330
+ property :enable_nested_virtualization, as: 'enableNestedVirtualization'
331
+ property :id, as: 'id'
332
+ property :machine_type, as: 'machineType'
333
+ property :pool_size, as: 'poolSize'
334
+ end
335
+ end
336
+
318
337
  class CancelOperationRequest
319
338
  # @private
320
339
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -379,6 +398,8 @@ module Google
379
398
  class Representation < Google::Apis::Core::JsonRepresentation
380
399
  collection :accelerators, as: 'accelerators', class: Google::Apis::WorkstationsV1::Accelerator, decorator: Google::Apis::WorkstationsV1::Accelerator::Representation
381
400
 
401
+ collection :boost_configs, as: 'boostConfigs', class: Google::Apis::WorkstationsV1::BoostConfig, decorator: Google::Apis::WorkstationsV1::BoostConfig::Representation
402
+
382
403
  property :boot_disk_size_gb, as: 'bootDiskSizeGb'
383
404
  property :confidential_instance_config, as: 'confidentialInstanceConfig', class: Google::Apis::WorkstationsV1::GceConfidentialInstanceConfig, decorator: Google::Apis::WorkstationsV1::GceConfidentialInstanceConfig::Representation
384
405
 
@@ -699,6 +720,7 @@ module Google
699
720
 
700
721
  property :reconciling, as: 'reconciling'
701
722
  property :subnetwork, as: 'subnetwork'
723
+ hash :tags, as: 'tags'
702
724
  property :uid, as: 'uid'
703
725
  property :update_time, as: 'updateTime'
704
726
  end
@@ -130,8 +130,8 @@ module Google
130
130
  # Clients can use Operations.GetOperation or other methods to check whether the
131
131
  # cancellation succeeded or whether the operation completed despite cancellation.
132
132
  # On successful cancellation, the operation is not deleted; instead, it becomes
133
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
134
- # corresponding to `Code.CANCELLED`.
133
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
134
+ # , corresponding to `Code.CANCELLED`.
135
135
  # @param [String] name
136
136
  # The name of the operation resource to be cancelled.
137
137
  # @param [Google::Apis::WorkstationsV1::CancelOperationRequest] cancel_operation_request_object
@@ -894,7 +894,8 @@ module Google
894
894
  end
895
895
 
896
896
  # Returns a short-lived credential that can be used to send authenticated and
897
- # authorized traffic to a workstation.
897
+ # authorized traffic to a workstation. Once generated this token cannot be
898
+ # revoked and is good for the lifetime of the token.
898
899
  # @param [String] workstation
899
900
  # Required. Name of the workstation for which the access token should be
900
901
  # generated.
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.17.0
4
+ version: 0.19.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-09-15 00:00:00.000000000 Z
11
+ date: 2024-12-08 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.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-workstations_v1/v0.19.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: []
@@ -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.5.6
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Workstations API V1