google-apis-tpu_v2alpha1 0.21.0 → 0.23.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: 4f6c8c5b5131ec597bd880c2ca5b9cea4d6101cff594ccfa6676d3b7c3feae07
4
- data.tar.gz: 134fe906b4536abc84164de224731b61b3c2bcef17cd79a87efd630cb66867f0
3
+ metadata.gz: 5b3770becc43fe8a9299c1928b0182dd26ff2ad5425ef3165b8bb74e68a03f9a
4
+ data.tar.gz: cb61345cbc5b6e31560a59b3c77ae8d00b73245624df29177447d9bb8d446699
5
5
  SHA512:
6
- metadata.gz: 1fcb149cdd13161493165f281b365f46e92896fafd12594454f465ea30e9af205764663dee42253885f084d32df10f58a28fdeae96e59dc393df9ecf26104a03
7
- data.tar.gz: 5f283464a8b650e2ae0751fe8ceeada9ca35cd5850fd70e93624df7b585527033369d6a5ce1c322aa03e0b81d06e941935904782579060c86b1bcfbb8f8b4da5
6
+ metadata.gz: 3bfec01033e066db99a5ce35943f13120d9df3697ad989940ab82ab3b5423338396c88d26244020badc222e212164d2ce01c9bdeca57b6a905cd02de270df74a
7
+ data.tar.gz: c67e16ba4df3ac151983af74b62c2deebf71c2f28a0c939e7c30624503feaeddb074e2818f18b9147ecc89d774f7e4b99dfa2d06fa048ea9a2e5ee297fa5929b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.22.0 (2023-07-23)
8
+
9
+ * Regenerated from discovery document revision 20230717
10
+
3
11
  ### v0.21.0 (2023-07-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20230707
@@ -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)
@@ -1176,6 +1215,11 @@ module Google
1176
1215
  # @return [String]
1177
1216
  attr_accessor :state
1178
1217
 
1218
+ # Output only. The initiator of the QueuedResources's current state.
1219
+ # Corresponds to the JSON property `stateInitiator`
1220
+ # @return [String]
1221
+ attr_accessor :state_initiator
1222
+
1179
1223
  # Further data for the suspended state.
1180
1224
  # Corresponds to the JSON property `suspendedData`
1181
1225
  # @return [Google::Apis::TpuV2alpha1::SuspendedData]
@@ -1199,6 +1243,7 @@ module Google
1199
1243
  @failed_data = args[:failed_data] if args.key?(:failed_data)
1200
1244
  @provisioning_data = args[:provisioning_data] if args.key?(:provisioning_data)
1201
1245
  @state = args[:state] if args.key?(:state)
1246
+ @state_initiator = args[:state_initiator] if args.key?(:state_initiator)
1202
1247
  @suspended_data = args[:suspended_data] if args.key?(:suspended_data)
1203
1248
  @suspending_data = args[:suspending_data] if args.key?(:suspending_data)
1204
1249
  end
@@ -1252,6 +1297,19 @@ module Google
1252
1297
  end
1253
1298
  end
1254
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
+
1255
1313
  # A runtime version that a Node can be configured with.
1256
1314
  class RuntimeVersion
1257
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.21.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 = "20230707"
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'
@@ -681,6 +703,7 @@ module Google
681
703
  property :provisioning_data, as: 'provisioningData', class: Google::Apis::TpuV2alpha1::ProvisioningData, decorator: Google::Apis::TpuV2alpha1::ProvisioningData::Representation
682
704
 
683
705
  property :state, as: 'state'
706
+ property :state_initiator, as: 'stateInitiator'
684
707
  property :suspended_data, as: 'suspendedData', class: Google::Apis::TpuV2alpha1::SuspendedData, decorator: Google::Apis::TpuV2alpha1::SuspendedData::Representation
685
708
 
686
709
  property :suspending_data, as: 'suspendingData', class: Google::Apis::TpuV2alpha1::SuspendingData, decorator: Google::Apis::TpuV2alpha1::SuspendingData::Representation
@@ -700,6 +723,12 @@ module Google
700
723
  end
701
724
  end
702
725
 
726
+ class ResetQueuedResourceRequest
727
+ # @private
728
+ class Representation < Google::Apis::Core::JsonRepresentation
729
+ end
730
+ end
731
+
703
732
  class RuntimeVersion
704
733
  # @private
705
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.21.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-16 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.21.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: []