google-apis-tpu_v2alpha1 0.15.0 → 0.17.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: '03263289f4b0ad32b5c8d5e84662ef194534df0355ca0ad15dfc2f2805a7cc03'
4
- data.tar.gz: 7e3f840fa4d49d144a6688d7cf0b34b4c1527eac9cf37c73af16c74dcd1ad731
3
+ metadata.gz: e795cbad389cdbee2f1e7c339e93de10fa2f0e6f075128dcac8e36dfc53b4079
4
+ data.tar.gz: '0622022507873b2ce7305d25596d3cc2d0ea13e367737a196f5b43573802754c'
5
5
  SHA512:
6
- metadata.gz: e339476ee08f6d90c2375145958900560420bc3319fc99692487771f16df85393da04669001c233ae3422700ba692cf849f0240035d4a4f4f79ff21416f20524
7
- data.tar.gz: cb5df9e16cece5c80061ee127ac8f6ebcdb64b0e7b1c8f1329995616dd3c70e80205848031beadeb64e44b65b15bfe0abdf643250eaa97e6683b6ae60f15efe6
6
+ metadata.gz: 1afd1a7e698aadb872bbda8d167063b04a6cdd4ebc674cdf37d2492331c6de404a0583b47c6c875570700bceea887d432d6c059a7929a840a3bb037c0af243d6
7
+ data.tar.gz: 28a1e5ccef010c4d8366d8781a4873ceb7ee7ac8975e6502ed0a5954c5d4aae3fd70323af3e62a8dbdcf5085e263b12a8b22a8d4acf7171139e22266b09aec0d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-tpu_v2alpha1
2
2
 
3
+ ### v0.17.0 (2023-04-02)
4
+
5
+ * Regenerated from discovery document revision 20230330
6
+
7
+ ### v0.16.0 (2023-03-26)
8
+
9
+ * Regenerated from discovery document revision 20230316
10
+
3
11
  ### v0.15.0 (2023-02-19)
4
12
 
5
13
  * Regenerated using generator version 0.12.0
@@ -1092,6 +1092,12 @@ module Google
1092
1092
  # @return [Google::Apis::TpuV2alpha1::QueueingPolicy]
1093
1093
  attr_accessor :queueing_policy
1094
1094
 
1095
+ # Name of the reservation in which the resource should be provisioned. Format:
1096
+ # projects/`project`/locations/`zone`/reservations/`reservation`
1097
+ # Corresponds to the JSON property `reservationName`
1098
+ # @return [String]
1099
+ attr_accessor :reservation_name
1100
+
1095
1101
  # QueuedResourceState defines the details of the QueuedResource request.
1096
1102
  # Corresponds to the JSON property `state`
1097
1103
  # @return [Google::Apis::TpuV2alpha1::QueuedResourceState]
@@ -1112,6 +1118,7 @@ module Google
1112
1118
  @guaranteed = args[:guaranteed] if args.key?(:guaranteed)
1113
1119
  @name = args[:name] if args.key?(:name)
1114
1120
  @queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy)
1121
+ @reservation_name = args[:reservation_name] if args.key?(:reservation_name)
1115
1122
  @state = args[:state] if args.key?(:state)
1116
1123
  @tpu = args[:tpu] if args.key?(:tpu)
1117
1124
  end
@@ -1232,6 +1239,19 @@ module Google
1232
1239
  end
1233
1240
  end
1234
1241
 
1242
+ # Request for ResetQueuedResource.
1243
+ class ResetQueuedResourceRequest
1244
+ include Google::Apis::Core::Hashable
1245
+
1246
+ def initialize(**args)
1247
+ update!(**args)
1248
+ end
1249
+
1250
+ # Update properties of this object
1251
+ def update!(**args)
1252
+ end
1253
+ end
1254
+
1235
1255
  # A runtime version that a Node can be configured with.
1236
1256
  class RuntimeVersion
1237
1257
  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.15.0"
19
+ GEM_VERSION = "0.17.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 = "20230125"
25
+ REVISION = "20230330"
26
26
  end
27
27
  end
28
28
  end
@@ -244,6 +244,12 @@ module Google
244
244
  include Google::Apis::Core::JsonObjectSupport
245
245
  end
246
246
 
247
+ class ResetQueuedResourceRequest
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
247
253
  class RuntimeVersion
248
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
255
 
@@ -648,6 +654,7 @@ module Google
648
654
  property :name, as: 'name'
649
655
  property :queueing_policy, as: 'queueingPolicy', class: Google::Apis::TpuV2alpha1::QueueingPolicy, decorator: Google::Apis::TpuV2alpha1::QueueingPolicy::Representation
650
656
 
657
+ property :reservation_name, as: 'reservationName'
651
658
  property :state, as: 'state', class: Google::Apis::TpuV2alpha1::QueuedResourceState, decorator: Google::Apis::TpuV2alpha1::QueuedResourceState::Representation
652
659
 
653
660
  property :tpu, as: 'tpu', class: Google::Apis::TpuV2alpha1::Tpu, decorator: Google::Apis::TpuV2alpha1::Tpu::Representation
@@ -690,6 +697,12 @@ module Google
690
697
  end
691
698
  end
692
699
 
700
+ class ResetQueuedResourceRequest
701
+ # @private
702
+ class Representation < Google::Apis::Core::JsonRepresentation
703
+ end
704
+ end
705
+
693
706
  class RuntimeVersion
694
707
  # @private
695
708
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -636,13 +636,7 @@ module Google
636
636
  end
637
637
 
638
638
  # Lists operations that match the specified filter in the request. If the server
639
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
640
- # binding allows API services to override the binding to use different resource
641
- # name schemes, such as `users/*/operations`. To override the binding, API
642
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
643
- # service configuration. For backwards compatibility, the default name includes
644
- # the operations collection id, however overriding users must ensure the name
645
- # binding is the parent resource, without the operations collection id.
639
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
646
640
  # @param [String] name
647
641
  # The name of the operation's parent resource.
648
642
  # @param [String] filter
@@ -686,7 +680,7 @@ module Google
686
680
  # Required. The parent resource name.
687
681
  # @param [Google::Apis::TpuV2alpha1::QueuedResource] queued_resource_object
688
682
  # @param [String] queued_resource_id
689
- # The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex
683
+ # The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex
690
684
  # format.
691
685
  # @param [String] request_id
692
686
  # Idempotent request UUID.
@@ -820,6 +814,39 @@ module Google
820
814
  execute_or_queue_command(command, &block)
821
815
  end
822
816
 
817
+ # Resets a QueuedResource TPU instance
818
+ # @param [String] name
819
+ # Required. The name of the queued resource.
820
+ # @param [Google::Apis::TpuV2alpha1::ResetQueuedResourceRequest] reset_queued_resource_request_object
821
+ # @param [String] fields
822
+ # Selector specifying which fields to include in a partial response.
823
+ # @param [String] quota_user
824
+ # Available to use for quota purposes for server-side applications. Can be any
825
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
826
+ # @param [Google::Apis::RequestOptions] options
827
+ # Request-specific options
828
+ #
829
+ # @yield [result, err] Result & error if block supplied
830
+ # @yieldparam result [Google::Apis::TpuV2alpha1::Operation] parsed result object
831
+ # @yieldparam err [StandardError] error object if request failed
832
+ #
833
+ # @return [Google::Apis::TpuV2alpha1::Operation]
834
+ #
835
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
836
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
837
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
838
+ def reset_queued_resource(name, reset_queued_resource_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
839
+ command = make_simple_command(:post, 'v2alpha1/{+name}:reset', options)
840
+ command.request_representation = Google::Apis::TpuV2alpha1::ResetQueuedResourceRequest::Representation
841
+ command.request_object = reset_queued_resource_request_object
842
+ command.response_representation = Google::Apis::TpuV2alpha1::Operation::Representation
843
+ command.response_class = Google::Apis::TpuV2alpha1::Operation
844
+ command.params['name'] = name unless name.nil?
845
+ command.query['fields'] = fields unless fields.nil?
846
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
847
+ execute_or_queue_command(command, &block)
848
+ end
849
+
823
850
  # Gets a runtime version.
824
851
  # @param [String] name
825
852
  # 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.15.0
4
+ version: 0.17.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-02-19 00:00:00.000000000 Z
11
+ date: 2023-04-02 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.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.17.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: []