google-apis-tpu_v2alpha1 0.22.0 → 0.23.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: 688d5e7e4789a5229d9cfdf2949b2db85ec6e003b3273cc5f5bfc32c01499369
4
- data.tar.gz: 6ea17b872d21b6d8fb8d39ccac356961bcf9628a6ebddbf817fc143db4da2ea2
3
+ metadata.gz: 5b3770becc43fe8a9299c1928b0182dd26ff2ad5425ef3165b8bb74e68a03f9a
4
+ data.tar.gz: cb61345cbc5b6e31560a59b3c77ae8d00b73245624df29177447d9bb8d446699
5
5
  SHA512:
6
- metadata.gz: aede3ac6f06d5e19004287cc48c98211e3cf8d9ee33287b7cc23172542ffca88b69dd4a037595e37aea0adb18a9cc031aab599e007ff4b6c573956de6f72640e
7
- data.tar.gz: e04f5348cccb26b45671418165656349e6bb924deb9213bce4371ad2684e08c06b069f51f470040d03cd19803daba2f32723c03abfe4f0b118194dd87c2c2bf3
6
+ metadata.gz: 3bfec01033e066db99a5ce35943f13120d9df3697ad989940ab82ab3b5423338396c88d26244020badc222e212164d2ce01c9bdeca57b6a905cd02de270df74a
7
+ data.tar.gz: c67e16ba4df3ac151983af74b62c2deebf71c2f28a0c939e7c30624503feaeddb074e2818f18b9147ecc89d774f7e4b99dfa2d06fa048ea9a2e5ee297fa5929b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-tpu_v2alpha1
2
2
 
3
+ ### v0.23.0 (2023-08-06)
4
+
5
+ * Regenerated from discovery document revision 20230731
6
+
3
7
  ### v0.22.0 (2023-07-23)
4
8
 
5
9
  * Regenerated from discovery document revision 20230717
@@ -661,6 +661,37 @@ module Google
661
661
  end
662
662
  end
663
663
 
664
+ # Parameters to specify for multi-node QueuedResource requests. This field must
665
+ # be populated in case of multi-node requests instead of node_id. It's an error
666
+ # to specify both node_id and multi_node_params.
667
+ class MultiNodeParams
668
+ include Google::Apis::Core::Hashable
669
+
670
+ # Required. Number of nodes with this spec. The system will attempt to provison "
671
+ # node_count" nodes as part of the request. This needs to be > 1.
672
+ # Corresponds to the JSON property `nodeCount`
673
+ # @return [Fixnum]
674
+ attr_accessor :node_count
675
+
676
+ # Prefix of node_ids in case of multi-node request Should follow the `^[A-Za-z0-
677
+ # 9_.~+%-]+$` regex format. If node_count = 3 and node_id_prefix = "np", node
678
+ # ids of nodes created will be "np-0", "np-1", "np-2". If this field is not
679
+ # provided we use queued_resource_id as the node_id_prefix.
680
+ # Corresponds to the JSON property `nodeIdPrefix`
681
+ # @return [String]
682
+ attr_accessor :node_id_prefix
683
+
684
+ def initialize(**args)
685
+ update!(**args)
686
+ end
687
+
688
+ # Update properties of this object
689
+ def update!(**args)
690
+ @node_count = args[:node_count] if args.key?(:node_count)
691
+ @node_id_prefix = args[:node_id_prefix] if args.key?(:node_id_prefix)
692
+ end
693
+ end
694
+
664
695
  # Network related configurations.
665
696
  class NetworkConfig
666
697
  include Google::Apis::Core::Hashable
@@ -912,6 +943,13 @@ module Google
912
943
  class NodeSpec
913
944
  include Google::Apis::Core::Hashable
914
945
 
946
+ # Parameters to specify for multi-node QueuedResource requests. This field must
947
+ # be populated in case of multi-node requests instead of node_id. It's an error
948
+ # to specify both node_id and multi_node_params.
949
+ # Corresponds to the JSON property `multiNodeParams`
950
+ # @return [Google::Apis::TpuV2alpha1::MultiNodeParams]
951
+ attr_accessor :multi_node_params
952
+
915
953
  # A TPU instance.
916
954
  # Corresponds to the JSON property `node`
917
955
  # @return [Google::Apis::TpuV2alpha1::Node]
@@ -936,6 +974,7 @@ module Google
936
974
 
937
975
  # Update properties of this object
938
976
  def update!(**args)
977
+ @multi_node_params = args[:multi_node_params] if args.key?(:multi_node_params)
939
978
  @node = args[:node] if args.key?(:node)
940
979
  @node_id = args[:node_id] if args.key?(:node_id)
941
980
  @parent = args[:parent] if args.key?(:parent)
@@ -1258,6 +1297,19 @@ module Google
1258
1297
  end
1259
1298
  end
1260
1299
 
1300
+ # Request for ResetQueuedResource.
1301
+ class ResetQueuedResourceRequest
1302
+ include Google::Apis::Core::Hashable
1303
+
1304
+ def initialize(**args)
1305
+ update!(**args)
1306
+ end
1307
+
1308
+ # Update properties of this object
1309
+ def update!(**args)
1310
+ end
1311
+ end
1312
+
1261
1313
  # A runtime version that a Node can be configured with.
1262
1314
  class RuntimeVersion
1263
1315
  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.22.0"
19
+ GEM_VERSION = "0.23.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 = "20230717"
25
+ REVISION = "20230731"
26
26
  end
27
27
  end
28
28
  end
@@ -184,6 +184,12 @@ module Google
184
184
  include Google::Apis::Core::JsonObjectSupport
185
185
  end
186
186
 
187
+ class MultiNodeParams
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
187
193
  class NetworkConfig
188
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
195
 
@@ -244,6 +250,12 @@ module Google
244
250
  include Google::Apis::Core::JsonObjectSupport
245
251
  end
246
252
 
253
+ class ResetQueuedResourceRequest
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
247
259
  class RuntimeVersion
248
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
261
 
@@ -546,6 +558,14 @@ module Google
546
558
  end
547
559
  end
548
560
 
561
+ class MultiNodeParams
562
+ # @private
563
+ class Representation < Google::Apis::Core::JsonRepresentation
564
+ property :node_count, as: 'nodeCount'
565
+ property :node_id_prefix, as: 'nodeIdPrefix'
566
+ end
567
+ end
568
+
549
569
  class NetworkConfig
550
570
  # @private
551
571
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -607,6 +627,8 @@ module Google
607
627
  class NodeSpec
608
628
  # @private
609
629
  class Representation < Google::Apis::Core::JsonRepresentation
630
+ property :multi_node_params, as: 'multiNodeParams', class: Google::Apis::TpuV2alpha1::MultiNodeParams, decorator: Google::Apis::TpuV2alpha1::MultiNodeParams::Representation
631
+
610
632
  property :node, as: 'node', class: Google::Apis::TpuV2alpha1::Node, decorator: Google::Apis::TpuV2alpha1::Node::Representation
611
633
 
612
634
  property :node_id, as: 'nodeId'
@@ -701,6 +723,12 @@ module Google
701
723
  end
702
724
  end
703
725
 
726
+ class ResetQueuedResourceRequest
727
+ # @private
728
+ class Representation < Google::Apis::Core::JsonRepresentation
729
+ end
730
+ end
731
+
704
732
  class RuntimeVersion
705
733
  # @private
706
734
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -821,6 +821,39 @@ module Google
821
821
  execute_or_queue_command(command, &block)
822
822
  end
823
823
 
824
+ # Resets a QueuedResource TPU instance
825
+ # @param [String] name
826
+ # Required. The name of the queued resource.
827
+ # @param [Google::Apis::TpuV2alpha1::ResetQueuedResourceRequest] reset_queued_resource_request_object
828
+ # @param [String] fields
829
+ # Selector specifying which fields to include in a partial response.
830
+ # @param [String] quota_user
831
+ # Available to use for quota purposes for server-side applications. Can be any
832
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
833
+ # @param [Google::Apis::RequestOptions] options
834
+ # Request-specific options
835
+ #
836
+ # @yield [result, err] Result & error if block supplied
837
+ # @yieldparam result [Google::Apis::TpuV2alpha1::Operation] parsed result object
838
+ # @yieldparam err [StandardError] error object if request failed
839
+ #
840
+ # @return [Google::Apis::TpuV2alpha1::Operation]
841
+ #
842
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
843
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
844
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
845
+ def reset_queued_resource(name, reset_queued_resource_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
846
+ command = make_simple_command(:post, 'v2alpha1/{+name}:reset', options)
847
+ command.request_representation = Google::Apis::TpuV2alpha1::ResetQueuedResourceRequest::Representation
848
+ command.request_object = reset_queued_resource_request_object
849
+ command.response_representation = Google::Apis::TpuV2alpha1::Operation::Representation
850
+ command.response_class = Google::Apis::TpuV2alpha1::Operation
851
+ command.params['name'] = name unless name.nil?
852
+ command.query['fields'] = fields unless fields.nil?
853
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
854
+ execute_or_queue_command(command, &block)
855
+ end
856
+
824
857
  # Gets a runtime version.
825
858
  # @param [String] name
826
859
  # Required. 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.22.0
4
+ version: 0.23.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-07-23 00:00:00.000000000 Z
11
+ date: 2023-08-13 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.22.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.23.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: []