google-apis-tpu_v2alpha1 0.22.0 → 0.24.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0013ef90a66175c6c976a418fd86db08d579d03e448fc5b8d5ffa7389e1a5838
|
4
|
+
data.tar.gz: bde9f6f864b200869f501e63e43d7359a100d83c4e02c89d99e0dcf019d2e60d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f067762b2c85e26b883024ef029769970dc047c33c557de609d3e94cfd9a86df4c96dc2d2886f1648e3f2f7c2fb5140f61ab17a5d6da2d6c4fb9dc97cf30ce86
|
7
|
+
data.tar.gz: 6dbc36679608fefee649414dbfdbcc74dfaac9adf998bc40a45e4df763b9c1c77b3afd683e30742fee9b9129c90e2578fd83c95537d07c60ffb04c63d1047e91
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-tpu_v2alpha1
|
2
2
|
|
3
|
+
### v0.24.0 (2023-08-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230814
|
6
|
+
|
7
|
+
### v0.23.0 (2023-08-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230803
|
10
|
+
|
3
11
|
### v0.22.0 (2023-07-23)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230717
|
@@ -163,6 +163,32 @@ module Google
|
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
166
|
+
# Boot disk configurations.
|
167
|
+
class BootDiskConfig
|
168
|
+
include Google::Apis::Core::Hashable
|
169
|
+
|
170
|
+
# Customer's encryption key.
|
171
|
+
# Corresponds to the JSON property `customerEncryptionKey`
|
172
|
+
# @return [Google::Apis::TpuV2alpha1::CustomerEncryptionKey]
|
173
|
+
attr_accessor :customer_encryption_key
|
174
|
+
|
175
|
+
# Optional. Whether the boot disk will be created with confidential compute mode.
|
176
|
+
# Corresponds to the JSON property `enableConfidentialCompute`
|
177
|
+
# @return [Boolean]
|
178
|
+
attr_accessor :enable_confidential_compute
|
179
|
+
alias_method :enable_confidential_compute?, :enable_confidential_compute
|
180
|
+
|
181
|
+
def initialize(**args)
|
182
|
+
update!(**args)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Update properties of this object
|
186
|
+
def update!(**args)
|
187
|
+
@customer_encryption_key = args[:customer_encryption_key] if args.key?(:customer_encryption_key)
|
188
|
+
@enable_confidential_compute = args[:enable_confidential_compute] if args.key?(:enable_confidential_compute)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
166
192
|
# Further data for the creating state.
|
167
193
|
class CreatingData
|
168
194
|
include Google::Apis::Core::Hashable
|
@@ -176,6 +202,29 @@ module Google
|
|
176
202
|
end
|
177
203
|
end
|
178
204
|
|
205
|
+
# Customer's encryption key.
|
206
|
+
class CustomerEncryptionKey
|
207
|
+
include Google::Apis::Core::Hashable
|
208
|
+
|
209
|
+
# The name of the encryption key that is stored in Google Cloud KMS. For example:
|
210
|
+
# "kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/
|
211
|
+
# cryptoKeys/key The fully-qualifed key name may be returned for resource GET
|
212
|
+
# requests. For example: "kmsKeyName": "projects/kms_project_id/locations/region/
|
213
|
+
# keyRings/ key_region/cryptoKeys/key /cryptoKeyVersions/1
|
214
|
+
# Corresponds to the JSON property `kmsKeyName`
|
215
|
+
# @return [String]
|
216
|
+
attr_accessor :kms_key_name
|
217
|
+
|
218
|
+
def initialize(**args)
|
219
|
+
update!(**args)
|
220
|
+
end
|
221
|
+
|
222
|
+
# Update properties of this object
|
223
|
+
def update!(**args)
|
224
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
179
228
|
# Further data for the deleting state.
|
180
229
|
class DeletingData
|
181
230
|
include Google::Apis::Core::Hashable
|
@@ -661,6 +710,37 @@ module Google
|
|
661
710
|
end
|
662
711
|
end
|
663
712
|
|
713
|
+
# Parameters to specify for multi-node QueuedResource requests. This field must
|
714
|
+
# be populated in case of multi-node requests instead of node_id. It's an error
|
715
|
+
# to specify both node_id and multi_node_params.
|
716
|
+
class MultiNodeParams
|
717
|
+
include Google::Apis::Core::Hashable
|
718
|
+
|
719
|
+
# Required. Number of nodes with this spec. The system will attempt to provison "
|
720
|
+
# node_count" nodes as part of the request. This needs to be > 1.
|
721
|
+
# Corresponds to the JSON property `nodeCount`
|
722
|
+
# @return [Fixnum]
|
723
|
+
attr_accessor :node_count
|
724
|
+
|
725
|
+
# Prefix of node_ids in case of multi-node request Should follow the `^[A-Za-z0-
|
726
|
+
# 9_.~+%-]+$` regex format. If node_count = 3 and node_id_prefix = "np", node
|
727
|
+
# ids of nodes created will be "np-0", "np-1", "np-2". If this field is not
|
728
|
+
# provided we use queued_resource_id as the node_id_prefix.
|
729
|
+
# Corresponds to the JSON property `nodeIdPrefix`
|
730
|
+
# @return [String]
|
731
|
+
attr_accessor :node_id_prefix
|
732
|
+
|
733
|
+
def initialize(**args)
|
734
|
+
update!(**args)
|
735
|
+
end
|
736
|
+
|
737
|
+
# Update properties of this object
|
738
|
+
def update!(**args)
|
739
|
+
@node_count = args[:node_count] if args.key?(:node_count)
|
740
|
+
@node_id_prefix = args[:node_id_prefix] if args.key?(:node_id_prefix)
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
664
744
|
# Network related configurations.
|
665
745
|
class NetworkConfig
|
666
746
|
include Google::Apis::Core::Hashable
|
@@ -756,6 +836,11 @@ module Google
|
|
756
836
|
# @return [String]
|
757
837
|
attr_accessor :api_version
|
758
838
|
|
839
|
+
# Boot disk configurations.
|
840
|
+
# Corresponds to the JSON property `bootDiskConfig`
|
841
|
+
# @return [Google::Apis::TpuV2alpha1::BootDiskConfig]
|
842
|
+
attr_accessor :boot_disk_config
|
843
|
+
|
759
844
|
# The CIDR block that the TPU node will use when selecting an IP address. This
|
760
845
|
# CIDR block must be a /29 block; the Compute Engine networks API forbids a
|
761
846
|
# smaller block, and using a larger block would be wasteful (a node can only
|
@@ -882,6 +967,7 @@ module Google
|
|
882
967
|
@accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
|
883
968
|
@accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
|
884
969
|
@api_version = args[:api_version] if args.key?(:api_version)
|
970
|
+
@boot_disk_config = args[:boot_disk_config] if args.key?(:boot_disk_config)
|
885
971
|
@cidr_block = args[:cidr_block] if args.key?(:cidr_block)
|
886
972
|
@create_time = args[:create_time] if args.key?(:create_time)
|
887
973
|
@data_disks = args[:data_disks] if args.key?(:data_disks)
|
@@ -912,6 +998,13 @@ module Google
|
|
912
998
|
class NodeSpec
|
913
999
|
include Google::Apis::Core::Hashable
|
914
1000
|
|
1001
|
+
# Parameters to specify for multi-node QueuedResource requests. This field must
|
1002
|
+
# be populated in case of multi-node requests instead of node_id. It's an error
|
1003
|
+
# to specify both node_id and multi_node_params.
|
1004
|
+
# Corresponds to the JSON property `multiNodeParams`
|
1005
|
+
# @return [Google::Apis::TpuV2alpha1::MultiNodeParams]
|
1006
|
+
attr_accessor :multi_node_params
|
1007
|
+
|
915
1008
|
# A TPU instance.
|
916
1009
|
# Corresponds to the JSON property `node`
|
917
1010
|
# @return [Google::Apis::TpuV2alpha1::Node]
|
@@ -936,6 +1029,7 @@ module Google
|
|
936
1029
|
|
937
1030
|
# Update properties of this object
|
938
1031
|
def update!(**args)
|
1032
|
+
@multi_node_params = args[:multi_node_params] if args.key?(:multi_node_params)
|
939
1033
|
@node = args[:node] if args.key?(:node)
|
940
1034
|
@node_id = args[:node_id] if args.key?(:node_id)
|
941
1035
|
@parent = args[:parent] if args.key?(:parent)
|
@@ -979,13 +1073,13 @@ module Google
|
|
979
1073
|
# @return [String]
|
980
1074
|
attr_accessor :name
|
981
1075
|
|
982
|
-
# The normal response of the operation
|
983
|
-
#
|
984
|
-
#
|
985
|
-
#
|
986
|
-
#
|
987
|
-
#
|
988
|
-
#
|
1076
|
+
# The normal, successful response of the operation. If the original method
|
1077
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
1078
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
1079
|
+
# response should be the resource. For other methods, the response should have
|
1080
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
1081
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
1082
|
+
# `TakeSnapshotResponse`.
|
989
1083
|
# Corresponds to the JSON property `response`
|
990
1084
|
# @return [Hash<String,Object>]
|
991
1085
|
attr_accessor :response
|
@@ -1258,6 +1352,19 @@ module Google
|
|
1258
1352
|
end
|
1259
1353
|
end
|
1260
1354
|
|
1355
|
+
# Request for ResetQueuedResource.
|
1356
|
+
class ResetQueuedResourceRequest
|
1357
|
+
include Google::Apis::Core::Hashable
|
1358
|
+
|
1359
|
+
def initialize(**args)
|
1360
|
+
update!(**args)
|
1361
|
+
end
|
1362
|
+
|
1363
|
+
# Update properties of this object
|
1364
|
+
def update!(**args)
|
1365
|
+
end
|
1366
|
+
end
|
1367
|
+
|
1261
1368
|
# A runtime version that a Node can be configured with.
|
1262
1369
|
class RuntimeVersion
|
1263
1370
|
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
|
+
GEM_VERSION = "0.24.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 = "
|
25
|
+
REVISION = "20230814"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -64,12 +64,24 @@ module Google
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
+
class BootDiskConfig
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
67
73
|
class CreatingData
|
68
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
75
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
79
|
+
class CustomerEncryptionKey
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
73
85
|
class DeletingData
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
87
|
|
@@ -184,6 +196,12 @@ module Google
|
|
184
196
|
include Google::Apis::Core::JsonObjectSupport
|
185
197
|
end
|
186
198
|
|
199
|
+
class MultiNodeParams
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
187
205
|
class NetworkConfig
|
188
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
207
|
|
@@ -244,6 +262,12 @@ module Google
|
|
244
262
|
include Google::Apis::Core::JsonObjectSupport
|
245
263
|
end
|
246
264
|
|
265
|
+
class ResetQueuedResourceRequest
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
247
271
|
class RuntimeVersion
|
248
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
273
|
|
@@ -379,12 +403,28 @@ module Google
|
|
379
403
|
end
|
380
404
|
end
|
381
405
|
|
406
|
+
class BootDiskConfig
|
407
|
+
# @private
|
408
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
409
|
+
property :customer_encryption_key, as: 'customerEncryptionKey', class: Google::Apis::TpuV2alpha1::CustomerEncryptionKey, decorator: Google::Apis::TpuV2alpha1::CustomerEncryptionKey::Representation
|
410
|
+
|
411
|
+
property :enable_confidential_compute, as: 'enableConfidentialCompute'
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
382
415
|
class CreatingData
|
383
416
|
# @private
|
384
417
|
class Representation < Google::Apis::Core::JsonRepresentation
|
385
418
|
end
|
386
419
|
end
|
387
420
|
|
421
|
+
class CustomerEncryptionKey
|
422
|
+
# @private
|
423
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
424
|
+
property :kms_key_name, as: 'kmsKeyName'
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
388
428
|
class DeletingData
|
389
429
|
# @private
|
390
430
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -546,6 +586,14 @@ module Google
|
|
546
586
|
end
|
547
587
|
end
|
548
588
|
|
589
|
+
class MultiNodeParams
|
590
|
+
# @private
|
591
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
592
|
+
property :node_count, as: 'nodeCount'
|
593
|
+
property :node_id_prefix, as: 'nodeIdPrefix'
|
594
|
+
end
|
595
|
+
end
|
596
|
+
|
549
597
|
class NetworkConfig
|
550
598
|
# @private
|
551
599
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -573,6 +621,8 @@ module Google
|
|
573
621
|
|
574
622
|
property :accelerator_type, as: 'acceleratorType'
|
575
623
|
property :api_version, as: 'apiVersion'
|
624
|
+
property :boot_disk_config, as: 'bootDiskConfig', class: Google::Apis::TpuV2alpha1::BootDiskConfig, decorator: Google::Apis::TpuV2alpha1::BootDiskConfig::Representation
|
625
|
+
|
576
626
|
property :cidr_block, as: 'cidrBlock'
|
577
627
|
property :create_time, as: 'createTime'
|
578
628
|
collection :data_disks, as: 'dataDisks', class: Google::Apis::TpuV2alpha1::AttachedDisk, decorator: Google::Apis::TpuV2alpha1::AttachedDisk::Representation
|
@@ -607,6 +657,8 @@ module Google
|
|
607
657
|
class NodeSpec
|
608
658
|
# @private
|
609
659
|
class Representation < Google::Apis::Core::JsonRepresentation
|
660
|
+
property :multi_node_params, as: 'multiNodeParams', class: Google::Apis::TpuV2alpha1::MultiNodeParams, decorator: Google::Apis::TpuV2alpha1::MultiNodeParams::Representation
|
661
|
+
|
610
662
|
property :node, as: 'node', class: Google::Apis::TpuV2alpha1::Node, decorator: Google::Apis::TpuV2alpha1::Node::Representation
|
611
663
|
|
612
664
|
property :node_id, as: 'nodeId'
|
@@ -701,6 +753,12 @@ module Google
|
|
701
753
|
end
|
702
754
|
end
|
703
755
|
|
756
|
+
class ResetQueuedResourceRequest
|
757
|
+
# @private
|
758
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
759
|
+
end
|
760
|
+
end
|
761
|
+
|
704
762
|
class RuntimeVersion
|
705
763
|
# @private
|
706
764
|
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.
|
4
|
+
version: 0.24.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-
|
11
|
+
date: 2023-08-27 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.24.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud TPU API V2alpha1
|