google-apis-tpu_v2alpha1 0.7.0 → 0.8.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: 1a6d55b0a69dcfa64252acd9598b02893d58695d27dc63427d8320312c1850fa
4
- data.tar.gz: 53725136ce22f691cfb7f6b173e8b7a3d2fefc5b5a2f7b5f9c73bb9ac2352f33
3
+ metadata.gz: 05aa6ae1d6804237164f57ed5f7f5134ee04aa4efba8c5110ff4ff08f7c287e2
4
+ data.tar.gz: ded747666a1509d06d5025606379a6df2d2ba34c468d43a82ff620ce5ab83ddc
5
5
  SHA512:
6
- metadata.gz: d8b512e6aaa0107a05bccbda16987c3e8ad68b77599b44b256419a7a68ed8f305acf6cb02448c22c39fb8f49ecc654adc5ed91e13ddcbfe207262ef7b8e189b0
7
- data.tar.gz: 979745e8ae6383bf999148560998fef1f28ad5edf3dae3a59ecbaf66ddc5536e106290dc70023b2b3863389979a51475b3bbac121507326bc4b53a5ddc276a82
6
+ metadata.gz: 2655ed2d6ce1480d4605f010bad7d4153670323aa3cf94759858912db4c8af42ac0fe9a807ae87ee2c98ac76d2256760bae090fa195410e4e22bd70f8b8fbf46
7
+ data.tar.gz: c3f13ab3fe3f5e89eb4da8c9b1272aeffc10574b40c5182c515281a607495b5acee2d6f5451e7f3b24bd83c9185ae95302b347d52c6831f294bfc86c624fb8db
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-tpu_v2alpha1
2
2
 
3
+ ### v0.8.0 (2022-07-04)
4
+
5
+ * Regenerated from discovery document revision 20220629
6
+ * Regenerated using generator version 0.9.0
7
+
3
8
  ### v0.7.0 (2022-06-30)
4
9
 
5
10
  * Regenerated using generator version 0.8.0
@@ -889,6 +889,28 @@ module Google
889
889
  end
890
890
  end
891
891
 
892
+ # Request for SimulateMaintenanceEvent.
893
+ class SimulateMaintenanceEventRequest
894
+ include Google::Apis::Core::Hashable
895
+
896
+ # The 0-based worker ID. If it is empty, worker ID 0 will be selected for
897
+ # maintenance event simulation. A maintenance event will only be fired on the
898
+ # first specified worker ID. Future implementations may support firing on
899
+ # multiple workers.
900
+ # Corresponds to the JSON property `workerIds`
901
+ # @return [Array<String>]
902
+ attr_accessor :worker_ids
903
+
904
+ def initialize(**args)
905
+ update!(**args)
906
+ end
907
+
908
+ # Update properties of this object
909
+ def update!(**args)
910
+ @worker_ids = args[:worker_ids] if args.key?(:worker_ids)
911
+ end
912
+ end
913
+
892
914
  # Request for StartNode.
893
915
  class StartNodeRequest
894
916
  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.7.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.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 = "20220629"
26
26
  end
27
27
  end
28
28
  end
@@ -178,6 +178,12 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class SimulateMaintenanceEventRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
181
187
  class StartNodeRequest
182
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
189
 
@@ -454,6 +460,13 @@ module Google
454
460
  end
455
461
  end
456
462
 
463
+ class SimulateMaintenanceEventRequest
464
+ # @private
465
+ class Representation < Google::Apis::Core::JsonRepresentation
466
+ collection :worker_ids, as: 'workerIds'
467
+ end
468
+ end
469
+
457
470
  class StartNodeRequest
458
471
  # @private
459
472
  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.7.0
4
+ version: 0.8.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-07-04 00:00:00.000000000 Z
11
+ date: 2022-07-11 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-tpu_v2alpha1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.7.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.8.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: []