google-apis-tpu_v2alpha1 0.19.0 → 0.21.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: 3cf3401d9f76b902a72f7ad0c222f5ed17eedf65315e1dad3ae86b531e48ff56
4
- data.tar.gz: 8193d4d085ef1472ebcf5c62639f515b8feef8043126d054e39df9d1c4972c12
3
+ metadata.gz: 4f6c8c5b5131ec597bd880c2ca5b9cea4d6101cff594ccfa6676d3b7c3feae07
4
+ data.tar.gz: 134fe906b4536abc84164de224731b61b3c2bcef17cd79a87efd630cb66867f0
5
5
  SHA512:
6
- metadata.gz: 3bf3d45e615ef7999bba83a7e15be94e06ad57e109d5a73deb199bc31d7e06789785d2294cf9c014589480c2b7d2231b77f20093931cee11d16537efbd98afd2
7
- data.tar.gz: f00f91ab2be6943b61e58dcb02cc416d1180a3915c924ca6e2f7b4ee89245baef6502f839bf457b35d5579e112655afaf2e5a9c301ef339b22401820adc761c6
6
+ metadata.gz: 1fcb149cdd13161493165f281b365f46e92896fafd12594454f465ea30e9af205764663dee42253885f084d32df10f58a28fdeae96e59dc393df9ecf26104a03
7
+ data.tar.gz: 5f283464a8b650e2ae0751fe8ceeada9ca35cd5850fd70e93624df7b585527033369d6a5ce1c322aa03e0b81d06e941935904782579060c86b1bcfbb8f8b4da5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-tpu_v2alpha1
2
2
 
3
+ ### v0.21.0 (2023-07-16)
4
+
5
+ * Regenerated from discovery document revision 20230707
6
+
7
+ ### v0.20.0 (2023-05-14)
8
+
9
+ * Regenerated from discovery document revision 20230508
10
+
3
11
  ### v0.19.0 (2023-04-30)
4
12
 
5
13
  * Regenerated from discovery document revision 20230420
@@ -809,6 +809,12 @@ module Google
809
809
  # @return [Hash<String,String>]
810
810
  attr_accessor :metadata
811
811
 
812
+ # Output only. Whether the Node belongs to a Multislice group.
813
+ # Corresponds to the JSON property `multisliceNode`
814
+ # @return [Boolean]
815
+ attr_accessor :multislice_node
816
+ alias_method :multislice_node?, :multislice_node
817
+
812
818
  # Output only. Immutable. The name of the TPU.
813
819
  # Corresponds to the JSON property `name`
814
820
  # @return [String]
@@ -885,6 +891,7 @@ module Google
885
891
  @id = args[:id] if args.key?(:id)
886
892
  @labels = args[:labels] if args.key?(:labels)
887
893
  @metadata = args[:metadata] if args.key?(:metadata)
894
+ @multislice_node = args[:multislice_node] if args.key?(:multislice_node)
888
895
  @name = args[:name] if args.key?(:name)
889
896
  @network_config = args[:network_config] if args.key?(:network_config)
890
897
  @network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
@@ -1098,6 +1105,11 @@ module Google
1098
1105
  # @return [String]
1099
1106
  attr_accessor :reservation_name
1100
1107
 
1108
+ # Spot tier definition.
1109
+ # Corresponds to the JSON property `spot`
1110
+ # @return [Google::Apis::TpuV2alpha1::Spot]
1111
+ attr_accessor :spot
1112
+
1101
1113
  # QueuedResourceState defines the details of the QueuedResource request.
1102
1114
  # Corresponds to the JSON property `state`
1103
1115
  # @return [Google::Apis::TpuV2alpha1::QueuedResourceState]
@@ -1119,6 +1131,7 @@ module Google
1119
1131
  @name = args[:name] if args.key?(:name)
1120
1132
  @queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy)
1121
1133
  @reservation_name = args[:reservation_name] if args.key?(:reservation_name)
1134
+ @spot = args[:spot] if args.key?(:spot)
1122
1135
  @state = args[:state] if args.key?(:state)
1123
1136
  @tpu = args[:tpu] if args.key?(:tpu)
1124
1137
  end
@@ -1379,6 +1392,19 @@ module Google
1379
1392
  end
1380
1393
  end
1381
1394
 
1395
+ # Spot tier definition.
1396
+ class Spot
1397
+ include Google::Apis::Core::Hashable
1398
+
1399
+ def initialize(**args)
1400
+ update!(**args)
1401
+ end
1402
+
1403
+ # Update properties of this object
1404
+ def update!(**args)
1405
+ end
1406
+ end
1407
+
1382
1408
  # Request for StartNode.
1383
1409
  class StartNodeRequest
1384
1410
  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.19.0"
19
+ GEM_VERSION = "0.21.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 = "20230420"
25
+ REVISION = "20230707"
26
26
  end
27
27
  end
28
28
  end
@@ -280,6 +280,12 @@ module Google
280
280
  include Google::Apis::Core::JsonObjectSupport
281
281
  end
282
282
 
283
+ class Spot
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
283
289
  class StartNodeRequest
284
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
291
 
@@ -577,6 +583,7 @@ module Google
577
583
  property :id, :numeric_string => true, as: 'id'
578
584
  hash :labels, as: 'labels'
579
585
  hash :metadata, as: 'metadata'
586
+ property :multislice_node, as: 'multisliceNode'
580
587
  property :name, as: 'name'
581
588
  property :network_config, as: 'networkConfig', class: Google::Apis::TpuV2alpha1::NetworkConfig, decorator: Google::Apis::TpuV2alpha1::NetworkConfig::Representation
582
589
 
@@ -649,6 +656,8 @@ module Google
649
656
  property :queueing_policy, as: 'queueingPolicy', class: Google::Apis::TpuV2alpha1::QueueingPolicy, decorator: Google::Apis::TpuV2alpha1::QueueingPolicy::Representation
650
657
 
651
658
  property :reservation_name, as: 'reservationName'
659
+ property :spot, as: 'spot', class: Google::Apis::TpuV2alpha1::Spot, decorator: Google::Apis::TpuV2alpha1::Spot::Representation
660
+
652
661
  property :state, as: 'state', class: Google::Apis::TpuV2alpha1::QueuedResourceState, decorator: Google::Apis::TpuV2alpha1::QueuedResourceState::Representation
653
662
 
654
663
  property :tpu, as: 'tpu', class: Google::Apis::TpuV2alpha1::Tpu, decorator: Google::Apis::TpuV2alpha1::Tpu::Representation
@@ -736,6 +745,12 @@ module Google
736
745
  end
737
746
  end
738
747
 
748
+ class Spot
749
+ # @private
750
+ class Representation < Google::Apis::Core::JsonRepresentation
751
+ end
752
+ end
753
+
739
754
  class StartNodeRequest
740
755
  # @private
741
756
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -718,6 +718,12 @@ module Google
718
718
  # Deletes a QueuedResource TPU instance.
719
719
  # @param [String] name
720
720
  # Required. The resource name.
721
+ # @param [Boolean] force
722
+ # If set to true, all running nodes belonging to this queued resource will be
723
+ # deleted first and then the queued resource will be deleted. Otherwise (i.e.
724
+ # force=false), the queued resource will only be deleted if its nodes have
725
+ # already been deleted or the queued resource is in the ACCEPTED, FAILED, or
726
+ # SUSPENDED state.
721
727
  # @param [String] request_id
722
728
  # Idempotent request UUID.
723
729
  # @param [String] fields
@@ -737,11 +743,12 @@ module Google
737
743
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
738
744
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
739
745
  # @raise [Google::Apis::AuthorizationError] Authorization is required
740
- def delete_project_location_queued_resource(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
746
+ def delete_project_location_queued_resource(name, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
741
747
  command = make_simple_command(:delete, 'v2alpha1/{+name}', options)
742
748
  command.response_representation = Google::Apis::TpuV2alpha1::Operation::Representation
743
749
  command.response_class = Google::Apis::TpuV2alpha1::Operation
744
750
  command.params['name'] = name unless name.nil?
751
+ command.query['force'] = force unless force.nil?
745
752
  command.query['requestId'] = request_id unless request_id.nil?
746
753
  command.query['fields'] = fields unless fields.nil?
747
754
  command.query['quotaUser'] = quota_user unless quota_user.nil?
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.19.0
4
+ version: 0.21.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-04-30 00:00:00.000000000 Z
11
+ date: 2023-07-16 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.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.21.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: []