google-apis-tpu_v2alpha1 0.32.0 → 0.34.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b94b3486e7cf514a866a5390c65b2fe14e1c6d57272bfeeef9cdcd301c87c8
|
4
|
+
data.tar.gz: ea9674d9b9dbd4bb82bc9303305d7238753693abf2484cf76b1cd1d0ac5b0663
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c8698d92f80096c89dfcaa6171d76d00cb163fb162b86e435ae7948c49e26ae001d3241f2703ef1d88b75c209de7467cbf49f25e5de9cde2f2abb2c93ac6cd1
|
7
|
+
data.tar.gz: bfc949c49aada7421fab3bebc4ee773fff5ea6fc0f2f267727979316783fd56f1deecb901a6dacbb91484fe1a6d1e85fbb0ae019731bcfc25ad6026417ee3184
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-tpu_v2alpha1
|
2
2
|
|
3
|
+
### v0.34.0 (2024-12-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241126
|
6
|
+
|
7
|
+
### v0.33.0 (2024-12-02)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241025
|
10
|
+
* Regenerated using generator version 0.15.1
|
11
|
+
|
3
12
|
### v0.32.0 (2024-05-19)
|
4
13
|
|
5
14
|
* Regenerated using generator version 0.15.0
|
@@ -755,6 +755,11 @@ module Google
|
|
755
755
|
# @return [String]
|
756
756
|
attr_accessor :node_id_prefix
|
757
757
|
|
758
|
+
# Optional. The workload type for the multi-node request.
|
759
|
+
# Corresponds to the JSON property `workloadType`
|
760
|
+
# @return [String]
|
761
|
+
attr_accessor :workload_type
|
762
|
+
|
758
763
|
def initialize(**args)
|
759
764
|
update!(**args)
|
760
765
|
end
|
@@ -763,6 +768,7 @@ module Google
|
|
763
768
|
def update!(**args)
|
764
769
|
@node_count = args[:node_count] if args.key?(:node_count)
|
765
770
|
@node_id_prefix = args[:node_id_prefix] if args.key?(:node_id_prefix)
|
771
|
+
@workload_type = args[:workload_type] if args.key?(:workload_type)
|
766
772
|
end
|
767
773
|
end
|
768
774
|
|
@@ -948,6 +954,11 @@ module Google
|
|
948
954
|
# @return [Google::Apis::TpuV2alpha1::NetworkConfig]
|
949
955
|
attr_accessor :network_config
|
950
956
|
|
957
|
+
# Optional. Repeated network configurations for the TPU node.
|
958
|
+
# Corresponds to the JSON property `networkConfigs`
|
959
|
+
# @return [Array<Google::Apis::TpuV2alpha1::NetworkConfig>]
|
960
|
+
attr_accessor :network_configs
|
961
|
+
|
951
962
|
# Output only. The network endpoints where TPU workers can be accessed and sent
|
952
963
|
# work. It is recommended that runtime clients of the node reach out to the 0th
|
953
964
|
# entry in this map first.
|
@@ -996,6 +1007,11 @@ module Google
|
|
996
1007
|
# @return [Array<String>]
|
997
1008
|
attr_accessor :tags
|
998
1009
|
|
1010
|
+
# Upcoming Maintenance notification information.
|
1011
|
+
# Corresponds to the JSON property `upcomingMaintenance`
|
1012
|
+
# @return [Google::Apis::TpuV2alpha1::UpcomingMaintenance]
|
1013
|
+
attr_accessor :upcoming_maintenance
|
1014
|
+
|
999
1015
|
def initialize(**args)
|
1000
1016
|
update!(**args)
|
1001
1017
|
end
|
@@ -1019,6 +1035,7 @@ module Google
|
|
1019
1035
|
@multislice_node = args[:multislice_node] if args.key?(:multislice_node)
|
1020
1036
|
@name = args[:name] if args.key?(:name)
|
1021
1037
|
@network_config = args[:network_config] if args.key?(:network_config)
|
1038
|
+
@network_configs = args[:network_configs] if args.key?(:network_configs)
|
1022
1039
|
@network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
|
1023
1040
|
@queued_resource = args[:queued_resource] if args.key?(:queued_resource)
|
1024
1041
|
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
@@ -1028,6 +1045,7 @@ module Google
|
|
1028
1045
|
@state = args[:state] if args.key?(:state)
|
1029
1046
|
@symptoms = args[:symptoms] if args.key?(:symptoms)
|
1030
1047
|
@tags = args[:tags] if args.key?(:tags)
|
1048
|
+
@upcoming_maintenance = args[:upcoming_maintenance] if args.key?(:upcoming_maintenance)
|
1031
1049
|
end
|
1032
1050
|
end
|
1033
1051
|
|
@@ -1194,6 +1212,38 @@ module Google
|
|
1194
1212
|
end
|
1195
1213
|
end
|
1196
1214
|
|
1215
|
+
# Request for PerformMaintenanceQueuedResource.
|
1216
|
+
class PerformMaintenanceQueuedResourceRequest
|
1217
|
+
include Google::Apis::Core::Hashable
|
1218
|
+
|
1219
|
+
# The names of the nodes to perform maintenance on.
|
1220
|
+
# Corresponds to the JSON property `nodeNames`
|
1221
|
+
# @return [Array<String>]
|
1222
|
+
attr_accessor :node_names
|
1223
|
+
|
1224
|
+
def initialize(**args)
|
1225
|
+
update!(**args)
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# Update properties of this object
|
1229
|
+
def update!(**args)
|
1230
|
+
@node_names = args[:node_names] if args.key?(:node_names)
|
1231
|
+
end
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
# Request for PerformMaintenance.
|
1235
|
+
class PerformMaintenanceRequest
|
1236
|
+
include Google::Apis::Core::Hashable
|
1237
|
+
|
1238
|
+
def initialize(**args)
|
1239
|
+
update!(**args)
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
# Update properties of this object
|
1243
|
+
def update!(**args)
|
1244
|
+
end
|
1245
|
+
end
|
1246
|
+
|
1197
1247
|
# Further data for the provisioning state.
|
1198
1248
|
class ProvisioningData
|
1199
1249
|
include Google::Apis::Core::Hashable
|
@@ -1799,6 +1849,59 @@ module Google
|
|
1799
1849
|
end
|
1800
1850
|
end
|
1801
1851
|
|
1852
|
+
# Upcoming Maintenance notification information.
|
1853
|
+
class UpcomingMaintenance
|
1854
|
+
include Google::Apis::Core::Hashable
|
1855
|
+
|
1856
|
+
# Indicates if the maintenance can be customer triggered.
|
1857
|
+
# Corresponds to the JSON property `canReschedule`
|
1858
|
+
# @return [Boolean]
|
1859
|
+
attr_accessor :can_reschedule
|
1860
|
+
alias_method :can_reschedule?, :can_reschedule
|
1861
|
+
|
1862
|
+
# The latest time for the planned maintenance window to start. This timestamp
|
1863
|
+
# value is in RFC3339 text format.
|
1864
|
+
# Corresponds to the JSON property `latestWindowStartTime`
|
1865
|
+
# @return [String]
|
1866
|
+
attr_accessor :latest_window_start_time
|
1867
|
+
|
1868
|
+
# The status of the maintenance.
|
1869
|
+
# Corresponds to the JSON property `maintenanceStatus`
|
1870
|
+
# @return [String]
|
1871
|
+
attr_accessor :maintenance_status
|
1872
|
+
|
1873
|
+
# Defines the type of maintenance.
|
1874
|
+
# Corresponds to the JSON property `type`
|
1875
|
+
# @return [String]
|
1876
|
+
attr_accessor :type
|
1877
|
+
|
1878
|
+
# The time by which the maintenance disruption will be completed. This timestamp
|
1879
|
+
# value is in RFC3339 text format.
|
1880
|
+
# Corresponds to the JSON property `windowEndTime`
|
1881
|
+
# @return [String]
|
1882
|
+
attr_accessor :window_end_time
|
1883
|
+
|
1884
|
+
# The current start time of the maintenance window. This timestamp value is in
|
1885
|
+
# RFC3339 text format.
|
1886
|
+
# Corresponds to the JSON property `windowStartTime`
|
1887
|
+
# @return [String]
|
1888
|
+
attr_accessor :window_start_time
|
1889
|
+
|
1890
|
+
def initialize(**args)
|
1891
|
+
update!(**args)
|
1892
|
+
end
|
1893
|
+
|
1894
|
+
# Update properties of this object
|
1895
|
+
def update!(**args)
|
1896
|
+
@can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
|
1897
|
+
@latest_window_start_time = args[:latest_window_start_time] if args.key?(:latest_window_start_time)
|
1898
|
+
@maintenance_status = args[:maintenance_status] if args.key?(:maintenance_status)
|
1899
|
+
@type = args[:type] if args.key?(:type)
|
1900
|
+
@window_end_time = args[:window_end_time] if args.key?(:window_end_time)
|
1901
|
+
@window_start_time = args[:window_start_time] if args.key?(:window_start_time)
|
1902
|
+
end
|
1903
|
+
end
|
1904
|
+
|
1802
1905
|
#
|
1803
1906
|
class Usage
|
1804
1907
|
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.34.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.15.
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241126"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -244,6 +244,18 @@ module Google
|
|
244
244
|
include Google::Apis::Core::JsonObjectSupport
|
245
245
|
end
|
246
246
|
|
247
|
+
class PerformMaintenanceQueuedResourceRequest
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
253
|
+
class PerformMaintenanceRequest
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
247
259
|
class ProvisioningData
|
248
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
261
|
|
@@ -370,6 +382,12 @@ module Google
|
|
370
382
|
include Google::Apis::Core::JsonObjectSupport
|
371
383
|
end
|
372
384
|
|
385
|
+
class UpcomingMaintenance
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
373
391
|
class Usage
|
374
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
393
|
|
@@ -624,6 +642,7 @@ module Google
|
|
624
642
|
class Representation < Google::Apis::Core::JsonRepresentation
|
625
643
|
property :node_count, as: 'nodeCount'
|
626
644
|
property :node_id_prefix, as: 'nodeIdPrefix'
|
645
|
+
property :workload_type, as: 'workloadType'
|
627
646
|
end
|
628
647
|
end
|
629
648
|
|
@@ -672,6 +691,8 @@ module Google
|
|
672
691
|
property :name, as: 'name'
|
673
692
|
property :network_config, as: 'networkConfig', class: Google::Apis::TpuV2alpha1::NetworkConfig, decorator: Google::Apis::TpuV2alpha1::NetworkConfig::Representation
|
674
693
|
|
694
|
+
collection :network_configs, as: 'networkConfigs', class: Google::Apis::TpuV2alpha1::NetworkConfig, decorator: Google::Apis::TpuV2alpha1::NetworkConfig::Representation
|
695
|
+
|
675
696
|
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV2alpha1::NetworkEndpoint, decorator: Google::Apis::TpuV2alpha1::NetworkEndpoint::Representation
|
676
697
|
|
677
698
|
property :queued_resource, as: 'queuedResource'
|
@@ -686,6 +707,8 @@ module Google
|
|
686
707
|
collection :symptoms, as: 'symptoms', class: Google::Apis::TpuV2alpha1::Symptom, decorator: Google::Apis::TpuV2alpha1::Symptom::Representation
|
687
708
|
|
688
709
|
collection :tags, as: 'tags'
|
710
|
+
property :upcoming_maintenance, as: 'upcomingMaintenance', class: Google::Apis::TpuV2alpha1::UpcomingMaintenance, decorator: Google::Apis::TpuV2alpha1::UpcomingMaintenance::Representation
|
711
|
+
|
689
712
|
end
|
690
713
|
end
|
691
714
|
|
@@ -726,6 +749,19 @@ module Google
|
|
726
749
|
end
|
727
750
|
end
|
728
751
|
|
752
|
+
class PerformMaintenanceQueuedResourceRequest
|
753
|
+
# @private
|
754
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
755
|
+
collection :node_names, as: 'nodeNames'
|
756
|
+
end
|
757
|
+
end
|
758
|
+
|
759
|
+
class PerformMaintenanceRequest
|
760
|
+
# @private
|
761
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
762
|
+
end
|
763
|
+
end
|
764
|
+
|
729
765
|
class ProvisioningData
|
730
766
|
# @private
|
731
767
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -921,6 +957,18 @@ module Google
|
|
921
957
|
end
|
922
958
|
end
|
923
959
|
|
960
|
+
class UpcomingMaintenance
|
961
|
+
# @private
|
962
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
963
|
+
property :can_reschedule, as: 'canReschedule'
|
964
|
+
property :latest_window_start_time, as: 'latestWindowStartTime'
|
965
|
+
property :maintenance_status, as: 'maintenanceStatus'
|
966
|
+
property :type, as: 'type'
|
967
|
+
property :window_end_time, as: 'windowEndTime'
|
968
|
+
property :window_start_time, as: 'windowStartTime'
|
969
|
+
end
|
970
|
+
end
|
971
|
+
|
924
972
|
class Usage
|
925
973
|
# @private
|
926
974
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -437,6 +437,39 @@ module Google
|
|
437
437
|
execute_or_queue_command(command, &block)
|
438
438
|
end
|
439
439
|
|
440
|
+
# Perform manual maintenance on a node.
|
441
|
+
# @param [String] name
|
442
|
+
# Required. The resource name.
|
443
|
+
# @param [Google::Apis::TpuV2alpha1::PerformMaintenanceRequest] perform_maintenance_request_object
|
444
|
+
# @param [String] fields
|
445
|
+
# Selector specifying which fields to include in a partial response.
|
446
|
+
# @param [String] quota_user
|
447
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
448
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
449
|
+
# @param [Google::Apis::RequestOptions] options
|
450
|
+
# Request-specific options
|
451
|
+
#
|
452
|
+
# @yield [result, err] Result & error if block supplied
|
453
|
+
# @yieldparam result [Google::Apis::TpuV2alpha1::Operation] parsed result object
|
454
|
+
# @yieldparam err [StandardError] error object if request failed
|
455
|
+
#
|
456
|
+
# @return [Google::Apis::TpuV2alpha1::Operation]
|
457
|
+
#
|
458
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
459
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
460
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
461
|
+
def perform_node_maintenance(name, perform_maintenance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
462
|
+
command = make_simple_command(:post, 'v2alpha1/{+name}:performMaintenance', options)
|
463
|
+
command.request_representation = Google::Apis::TpuV2alpha1::PerformMaintenanceRequest::Representation
|
464
|
+
command.request_object = perform_maintenance_request_object
|
465
|
+
command.response_representation = Google::Apis::TpuV2alpha1::Operation::Representation
|
466
|
+
command.response_class = Google::Apis::TpuV2alpha1::Operation
|
467
|
+
command.params['name'] = name unless name.nil?
|
468
|
+
command.query['fields'] = fields unless fields.nil?
|
469
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
470
|
+
execute_or_queue_command(command, &block)
|
471
|
+
end
|
472
|
+
|
440
473
|
# Simulates a maintenance event.
|
441
474
|
# @param [String] name
|
442
475
|
# Required. The resource name.
|
@@ -542,8 +575,8 @@ module Google
|
|
542
575
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
543
576
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
544
577
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
545
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
546
|
-
# corresponding to `Code.CANCELLED`.
|
578
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
579
|
+
# , corresponding to `Code.CANCELLED`.
|
547
580
|
# @param [String] name
|
548
581
|
# The name of the operation resource to be cancelled.
|
549
582
|
# @param [String] fields
|
@@ -823,6 +856,40 @@ module Google
|
|
823
856
|
execute_or_queue_command(command, &block)
|
824
857
|
end
|
825
858
|
|
859
|
+
# Perform manual maintenance on specific nodes of a QueuedResource.
|
860
|
+
# @param [String] name
|
861
|
+
# Required. The name of the QueuedResource which holds the nodes to perform
|
862
|
+
# maintenance on.
|
863
|
+
# @param [Google::Apis::TpuV2alpha1::PerformMaintenanceQueuedResourceRequest] perform_maintenance_queued_resource_request_object
|
864
|
+
# @param [String] fields
|
865
|
+
# Selector specifying which fields to include in a partial response.
|
866
|
+
# @param [String] quota_user
|
867
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
868
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
869
|
+
# @param [Google::Apis::RequestOptions] options
|
870
|
+
# Request-specific options
|
871
|
+
#
|
872
|
+
# @yield [result, err] Result & error if block supplied
|
873
|
+
# @yieldparam result [Google::Apis::TpuV2alpha1::Operation] parsed result object
|
874
|
+
# @yieldparam err [StandardError] error object if request failed
|
875
|
+
#
|
876
|
+
# @return [Google::Apis::TpuV2alpha1::Operation]
|
877
|
+
#
|
878
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
879
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
880
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
881
|
+
def perform_maintenance_queued_resource(name, perform_maintenance_queued_resource_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
882
|
+
command = make_simple_command(:post, 'v2alpha1/{+name}:performMaintenanceQueuedResource', options)
|
883
|
+
command.request_representation = Google::Apis::TpuV2alpha1::PerformMaintenanceQueuedResourceRequest::Representation
|
884
|
+
command.request_object = perform_maintenance_queued_resource_request_object
|
885
|
+
command.response_representation = Google::Apis::TpuV2alpha1::Operation::Representation
|
886
|
+
command.response_class = Google::Apis::TpuV2alpha1::Operation
|
887
|
+
command.params['name'] = name unless name.nil?
|
888
|
+
command.query['fields'] = fields unless fields.nil?
|
889
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
890
|
+
execute_or_queue_command(command, &block)
|
891
|
+
end
|
892
|
+
|
826
893
|
# Resets a QueuedResource TPU instance
|
827
894
|
# @param [String] name
|
828
895
|
# Required. The name of the queued resource.
|
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.34.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: 2024-
|
11
|
+
date: 2024-12-15 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.34.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.5.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud TPU API V2alpha1
|