google-apis-tpu_v2alpha1 0.6.0 → 0.9.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: b53b30cf5207b479b93fc2b0d4d498fb663fe7a807d8a35fae802734e133e6b9
4
- data.tar.gz: f5f402dd81cdb4195a57996aeaddb2bfc5e178ef703ddc50d09c214e0b013f55
3
+ metadata.gz: d007d5a98642fb5ffdeceb88c43dc25b12200b9103cc817b50687d6194a45417
4
+ data.tar.gz: e47c74d93c12367c9743978abb94a0dc3f95d1c64b0b9bc4c437675759dc9c28
5
5
  SHA512:
6
- metadata.gz: 6668da5d89c4464b715c335bd5d00c9823d9ade572c5ab998f70f3e56eb152fe0312a377feddfbeebb2203d9491958fe58d104fe1fbe320a14bd2e199efdedb7
7
- data.tar.gz: 5a46a70e2942d477b44002d54f1f1589ac8e070bc8d2ee63c16b3417ec00cf7860f18f3c3a9250ed0470bff5d95bdf0ceee97bdeccef9872d8bac145bf628bda
6
+ metadata.gz: ae9f555e382c1ecbeb6bfa398cdb97fcc75c98e8b27b1f0e6e47ade1ce7325bff41f16b434f09f12b35fd43954dffa8829911419efd4109d0cc1cc854bafa3ae
7
+ data.tar.gz: e8f740f910ae44c92e990b7ca59fd20163b5ce05a89b9d6034aa7abd6f15cb8bf65ca27638f66c9168c473d2550daba35e577b5e662d14a694d7d23209514c6b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-tpu_v2alpha1
2
2
 
3
+ ### v0.9.0 (2022-09-10)
4
+
5
+ * Regenerated from discovery document revision 20220907
6
+
7
+ ### v0.8.0 (2022-07-04)
8
+
9
+ * Regenerated from discovery document revision 20220629
10
+ * Regenerated using generator version 0.9.0
11
+
12
+ ### v0.7.0 (2022-06-30)
13
+
14
+ * Regenerated using generator version 0.8.0
15
+
3
16
  ### v0.6.0 (2022-06-17)
4
17
 
5
18
  * Regenerated using generator version 0.6.0
@@ -627,6 +627,11 @@ module Google
627
627
  # @return [Google::Apis::TpuV2alpha1::ServiceAccount]
628
628
  attr_accessor :service_account
629
629
 
630
+ # A set of Shielded Instance options.
631
+ # Corresponds to the JSON property `shieldedInstanceConfig`
632
+ # @return [Google::Apis::TpuV2alpha1::ShieldedInstanceConfig]
633
+ attr_accessor :shielded_instance_config
634
+
630
635
  # Output only. The current state for the TPU Node.
631
636
  # Corresponds to the JSON property `state`
632
637
  # @return [String]
@@ -666,6 +671,7 @@ module Google
666
671
  @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
667
672
  @scheduling_config = args[:scheduling_config] if args.key?(:scheduling_config)
668
673
  @service_account = args[:service_account] if args.key?(:service_account)
674
+ @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
669
675
  @state = args[:state] if args.key?(:state)
670
676
  @symptoms = args[:symptoms] if args.key?(:symptoms)
671
677
  @tags = args[:tags] if args.key?(:tags)
@@ -889,6 +895,48 @@ module Google
889
895
  end
890
896
  end
891
897
 
898
+ # A set of Shielded Instance options.
899
+ class ShieldedInstanceConfig
900
+ include Google::Apis::Core::Hashable
901
+
902
+ # Defines whether the instance has Secure Boot enabled.
903
+ # Corresponds to the JSON property `enableSecureBoot`
904
+ # @return [Boolean]
905
+ attr_accessor :enable_secure_boot
906
+ alias_method :enable_secure_boot?, :enable_secure_boot
907
+
908
+ def initialize(**args)
909
+ update!(**args)
910
+ end
911
+
912
+ # Update properties of this object
913
+ def update!(**args)
914
+ @enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot)
915
+ end
916
+ end
917
+
918
+ # Request for SimulateMaintenanceEvent.
919
+ class SimulateMaintenanceEventRequest
920
+ include Google::Apis::Core::Hashable
921
+
922
+ # The 0-based worker ID. If it is empty, worker ID 0 will be selected for
923
+ # maintenance event simulation. A maintenance event will only be fired on the
924
+ # first specified worker ID. Future implementations may support firing on
925
+ # multiple workers.
926
+ # Corresponds to the JSON property `workerIds`
927
+ # @return [Array<String>]
928
+ attr_accessor :worker_ids
929
+
930
+ def initialize(**args)
931
+ update!(**args)
932
+ end
933
+
934
+ # Update properties of this object
935
+ def update!(**args)
936
+ @worker_ids = args[:worker_ids] if args.key?(:worker_ids)
937
+ end
938
+ end
939
+
892
940
  # Request for StartNode.
893
941
  class StartNodeRequest
894
942
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TpuV2alpha1
18
18
  # Version of the google-apis-tpu_v2alpha1 gem
19
- GEM_VERSION = "0.6.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.6.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220412"
25
+ REVISION = "20220907"
26
26
  end
27
27
  end
28
28
  end
@@ -178,6 +178,18 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class ShieldedInstanceConfig
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class SimulateMaintenanceEventRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
181
193
  class StartNodeRequest
182
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
195
 
@@ -391,6 +403,8 @@ module Google
391
403
 
392
404
  property :service_account, as: 'serviceAccount', class: Google::Apis::TpuV2alpha1::ServiceAccount, decorator: Google::Apis::TpuV2alpha1::ServiceAccount::Representation
393
405
 
406
+ property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::TpuV2alpha1::ShieldedInstanceConfig, decorator: Google::Apis::TpuV2alpha1::ShieldedInstanceConfig::Representation
407
+
394
408
  property :state, as: 'state'
395
409
  collection :symptoms, as: 'symptoms', class: Google::Apis::TpuV2alpha1::Symptom, decorator: Google::Apis::TpuV2alpha1::Symptom::Representation
396
410
 
@@ -454,6 +468,20 @@ module Google
454
468
  end
455
469
  end
456
470
 
471
+ class ShieldedInstanceConfig
472
+ # @private
473
+ class Representation < Google::Apis::Core::JsonRepresentation
474
+ property :enable_secure_boot, as: 'enableSecureBoot'
475
+ end
476
+ end
477
+
478
+ class SimulateMaintenanceEventRequest
479
+ # @private
480
+ class Representation < Google::Apis::Core::JsonRepresentation
481
+ collection :worker_ids, as: 'workerIds'
482
+ end
483
+ end
484
+
457
485
  class StartNodeRequest
458
486
  # @private
459
487
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -435,6 +435,39 @@ module Google
435
435
  execute_or_queue_command(command, &block)
436
436
  end
437
437
 
438
+ # Simulates a maintenance event.
439
+ # @param [String] name
440
+ # Required. The resource name.
441
+ # @param [Google::Apis::TpuV2alpha1::SimulateMaintenanceEventRequest] simulate_maintenance_event_request_object
442
+ # @param [String] fields
443
+ # Selector specifying which fields to include in a partial response.
444
+ # @param [String] quota_user
445
+ # Available to use for quota purposes for server-side applications. Can be any
446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
447
+ # @param [Google::Apis::RequestOptions] options
448
+ # Request-specific options
449
+ #
450
+ # @yield [result, err] Result & error if block supplied
451
+ # @yieldparam result [Google::Apis::TpuV2alpha1::Operation] parsed result object
452
+ # @yieldparam err [StandardError] error object if request failed
453
+ #
454
+ # @return [Google::Apis::TpuV2alpha1::Operation]
455
+ #
456
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
457
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
458
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
459
+ def simulate_node_maintenance_event(name, simulate_maintenance_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
460
+ command = make_simple_command(:post, 'v2alpha1/{+name}:simulateMaintenanceEvent', options)
461
+ command.request_representation = Google::Apis::TpuV2alpha1::SimulateMaintenanceEventRequest::Representation
462
+ command.request_object = simulate_maintenance_event_request_object
463
+ command.response_representation = Google::Apis::TpuV2alpha1::Operation::Representation
464
+ command.response_class = Google::Apis::TpuV2alpha1::Operation
465
+ command.params['name'] = name unless name.nil?
466
+ command.query['fields'] = fields unless fields.nil?
467
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
468
+ execute_or_queue_command(command, &block)
469
+ end
470
+
438
471
  # Starts a node.
439
472
  # @param [String] name
440
473
  # The resource name.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-tpu_v2alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.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: 2022-06-20 00:00:00.000000000 Z
11
+ date: 2022-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.6'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.6'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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-tpu_v2alpha1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.9.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tpu_v2alpha1
63
63
  post_install_message:
64
64
  rdoc_options: []