google-apis-tpu_v2alpha1 0.24.0 → 0.26.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: 0013ef90a66175c6c976a418fd86db08d579d03e448fc5b8d5ffa7389e1a5838
4
- data.tar.gz: bde9f6f864b200869f501e63e43d7359a100d83c4e02c89d99e0dcf019d2e60d
3
+ metadata.gz: 38fa595b1144818b9c896894b697b4eb961bbb4f8222f7e550d5e194a3f2405c
4
+ data.tar.gz: 722d940dc2356a094bdc0c825be29a40a5e9fadc27b7ccb1980928f42a4ea418
5
5
  SHA512:
6
- metadata.gz: f067762b2c85e26b883024ef029769970dc047c33c557de609d3e94cfd9a86df4c96dc2d2886f1648e3f2f7c2fb5140f61ab17a5d6da2d6c4fb9dc97cf30ce86
7
- data.tar.gz: 6dbc36679608fefee649414dbfdbcc74dfaac9adf998bc40a45e4df763b9c1c77b3afd683e30742fee9b9129c90e2578fd83c95537d07c60ffb04c63d1047e91
6
+ metadata.gz: e31ea499a602625b25d1bb1e603e7b6d004e05583660d6294136b5628a1e92a0a687572e7b8cd49f1e98053715ec0969eba82034eaf176bc7a467327e2b16ed6
7
+ data.tar.gz: 1b72996b6e444df47c7990c343e41969113a52bf42a2d0fec12f52d5e32ec8036837cc910d21411cdcd124dd0801f5486824ab70c8b9081b0c6bdf07a1d53a65
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-tpu_v2alpha1
2
2
 
3
+ ### v0.26.0 (2023-11-12)
4
+
5
+ * Regenerated from discovery document revision 20231102
6
+
7
+ ### v0.25.0 (2023-11-05)
8
+
9
+ * Regenerated from discovery document revision 20231026
10
+
3
11
  ### v0.24.0 (2023-08-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20230814
@@ -632,6 +632,31 @@ module Google
632
632
  end
633
633
  end
634
634
 
635
+ # Response for ListReservations.
636
+ class ListReservationsResponse
637
+ include Google::Apis::Core::Hashable
638
+
639
+ # The next page token or empty if none.
640
+ # Corresponds to the JSON property `nextPageToken`
641
+ # @return [String]
642
+ attr_accessor :next_page_token
643
+
644
+ # The listed reservations.
645
+ # Corresponds to the JSON property `reservations`
646
+ # @return [Array<Google::Apis::TpuV2alpha1::Reservation>]
647
+ attr_accessor :reservations
648
+
649
+ def initialize(**args)
650
+ update!(**args)
651
+ end
652
+
653
+ # Update properties of this object
654
+ def update!(**args)
655
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
656
+ @reservations = args[:reservations] if args.key?(:reservations)
657
+ end
658
+ end
659
+
635
660
  # Response for ListRuntimeVersions.
636
661
  class ListRuntimeVersionsResponse
637
662
  include Google::Apis::Core::Hashable
@@ -836,6 +861,12 @@ module Google
836
861
  # @return [String]
837
862
  attr_accessor :api_version
838
863
 
864
+ # Optional. Whether Autocheckpoint is enabled.
865
+ # Corresponds to the JSON property `autocheckpointEnabled`
866
+ # @return [Boolean]
867
+ attr_accessor :autocheckpoint_enabled
868
+ alias_method :autocheckpoint_enabled?, :autocheckpoint_enabled
869
+
839
870
  # Boot disk configurations.
840
871
  # Corresponds to the JSON property `bootDiskConfig`
841
872
  # @return [Google::Apis::TpuV2alpha1::BootDiskConfig]
@@ -967,6 +998,7 @@ module Google
967
998
  @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
968
999
  @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
969
1000
  @api_version = args[:api_version] if args.key?(:api_version)
1001
+ @autocheckpoint_enabled = args[:autocheckpoint_enabled] if args.key?(:autocheckpoint_enabled)
970
1002
  @boot_disk_config = args[:boot_disk_config] if args.key?(:boot_disk_config)
971
1003
  @cidr_block = args[:cidr_block] if args.key?(:cidr_block)
972
1004
  @create_time = args[:create_time] if args.key?(:create_time)
@@ -1178,6 +1210,11 @@ module Google
1178
1210
  # @return [Google::Apis::TpuV2alpha1::BestEffort]
1179
1211
  attr_accessor :best_effort
1180
1212
 
1213
+ # Output only. The time when the QueuedResource was created.
1214
+ # Corresponds to the JSON property `createTime`
1215
+ # @return [String]
1216
+ attr_accessor :create_time
1217
+
1181
1218
  # Guaranteed tier definition.
1182
1219
  # Corresponds to the JSON property `guaranteed`
1183
1220
  # @return [Google::Apis::TpuV2alpha1::Guaranteed]
@@ -1221,6 +1258,7 @@ module Google
1221
1258
  # Update properties of this object
1222
1259
  def update!(**args)
1223
1260
  @best_effort = args[:best_effort] if args.key?(:best_effort)
1261
+ @create_time = args[:create_time] if args.key?(:create_time)
1224
1262
  @guaranteed = args[:guaranteed] if args.key?(:guaranteed)
1225
1263
  @name = args[:name] if args.key?(:name)
1226
1264
  @queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy)
@@ -1352,6 +1390,33 @@ module Google
1352
1390
  end
1353
1391
  end
1354
1392
 
1393
+ # A reservation describes the amount of a resource 'allotted' for a defined
1394
+ # period of time.
1395
+ class Reservation
1396
+ include Google::Apis::Core::Hashable
1397
+
1398
+ # The reservation name with the format: projects/`projectID`/locations/`location`
1399
+ # /reservations/`reservationID`
1400
+ # Corresponds to the JSON property `name`
1401
+ # @return [String]
1402
+ attr_accessor :name
1403
+
1404
+ #
1405
+ # Corresponds to the JSON property `standard`
1406
+ # @return [Google::Apis::TpuV2alpha1::Standard]
1407
+ attr_accessor :standard
1408
+
1409
+ def initialize(**args)
1410
+ update!(**args)
1411
+ end
1412
+
1413
+ # Update properties of this object
1414
+ def update!(**args)
1415
+ @name = args[:name] if args.key?(:name)
1416
+ @standard = args[:standard] if args.key?(:standard)
1417
+ end
1418
+ end
1419
+
1355
1420
  # Request for ResetQueuedResource.
1356
1421
  class ResetQueuedResourceRequest
1357
1422
  include Google::Apis::Core::Hashable
@@ -1518,6 +1583,53 @@ module Google
1518
1583
  end
1519
1584
  end
1520
1585
 
1586
+ #
1587
+ class Standard
1588
+ include Google::Apis::Core::Hashable
1589
+
1590
+ #
1591
+ # Corresponds to the JSON property `capacityUnits`
1592
+ # @return [String]
1593
+ attr_accessor :capacity_units
1594
+
1595
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
1596
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
1597
+ # When the start equals the end, the interval is empty (matches no time). When
1598
+ # both start and end are unspecified, the interval matches any time.
1599
+ # Corresponds to the JSON property `interval`
1600
+ # @return [Google::Apis::TpuV2alpha1::Interval]
1601
+ attr_accessor :interval
1602
+
1603
+ # The resource type of the reservation.
1604
+ # Corresponds to the JSON property `resourceType`
1605
+ # @return [String]
1606
+ attr_accessor :resource_type
1607
+
1608
+ # The size of the reservation, in the units specified in the 'capacity_units'
1609
+ # field.
1610
+ # Corresponds to the JSON property `size`
1611
+ # @return [Fixnum]
1612
+ attr_accessor :size
1613
+
1614
+ #
1615
+ # Corresponds to the JSON property `usage`
1616
+ # @return [Google::Apis::TpuV2alpha1::Usage]
1617
+ attr_accessor :usage
1618
+
1619
+ def initialize(**args)
1620
+ update!(**args)
1621
+ end
1622
+
1623
+ # Update properties of this object
1624
+ def update!(**args)
1625
+ @capacity_units = args[:capacity_units] if args.key?(:capacity_units)
1626
+ @interval = args[:interval] if args.key?(:interval)
1627
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1628
+ @size = args[:size] if args.key?(:size)
1629
+ @usage = args[:usage] if args.key?(:usage)
1630
+ end
1631
+ end
1632
+
1521
1633
  # Request for StartNode.
1522
1634
  class StartNodeRequest
1523
1635
  include Google::Apis::Core::Hashable
@@ -1664,6 +1776,26 @@ module Google
1664
1776
  @node_spec = args[:node_spec] if args.key?(:node_spec)
1665
1777
  end
1666
1778
  end
1779
+
1780
+ #
1781
+ class Usage
1782
+ include Google::Apis::Core::Hashable
1783
+
1784
+ # The real-time value of usage within the reservation, with the unit specified
1785
+ # in field capacity_units.
1786
+ # Corresponds to the JSON property `total`
1787
+ # @return [Fixnum]
1788
+ attr_accessor :total
1789
+
1790
+ def initialize(**args)
1791
+ update!(**args)
1792
+ end
1793
+
1794
+ # Update properties of this object
1795
+ def update!(**args)
1796
+ @total = args[:total] if args.key?(:total)
1797
+ end
1798
+ end
1667
1799
  end
1668
1800
  end
1669
1801
  end
@@ -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.24.0"
19
+ GEM_VERSION = "0.26.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 = "20230814"
25
+ REVISION = "20231102"
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 ListReservationsResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
187
193
  class ListRuntimeVersionsResponse
188
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
195
 
@@ -262,6 +268,12 @@ module Google
262
268
  include Google::Apis::Core::JsonObjectSupport
263
269
  end
264
270
 
271
+ class Reservation
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
265
277
  class ResetQueuedResourceRequest
266
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
279
 
@@ -310,6 +322,12 @@ module Google
310
322
  include Google::Apis::Core::JsonObjectSupport
311
323
  end
312
324
 
325
+ class Standard
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
313
331
  class StartNodeRequest
314
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
333
 
@@ -352,6 +370,12 @@ module Google
352
370
  include Google::Apis::Core::JsonObjectSupport
353
371
  end
354
372
 
373
+ class Usage
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
355
379
  class AcceleratorConfig
356
380
  # @private
357
381
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -565,6 +589,15 @@ module Google
565
589
  end
566
590
  end
567
591
 
592
+ class ListReservationsResponse
593
+ # @private
594
+ class Representation < Google::Apis::Core::JsonRepresentation
595
+ property :next_page_token, as: 'nextPageToken'
596
+ collection :reservations, as: 'reservations', class: Google::Apis::TpuV2alpha1::Reservation, decorator: Google::Apis::TpuV2alpha1::Reservation::Representation
597
+
598
+ end
599
+ end
600
+
568
601
  class ListRuntimeVersionsResponse
569
602
  # @private
570
603
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -621,6 +654,7 @@ module Google
621
654
 
622
655
  property :accelerator_type, as: 'acceleratorType'
623
656
  property :api_version, as: 'apiVersion'
657
+ property :autocheckpoint_enabled, as: 'autocheckpointEnabled'
624
658
  property :boot_disk_config, as: 'bootDiskConfig', class: Google::Apis::TpuV2alpha1::BootDiskConfig, decorator: Google::Apis::TpuV2alpha1::BootDiskConfig::Representation
625
659
 
626
660
  property :cidr_block, as: 'cidrBlock'
@@ -702,6 +736,7 @@ module Google
702
736
  class Representation < Google::Apis::Core::JsonRepresentation
703
737
  property :best_effort, as: 'bestEffort', class: Google::Apis::TpuV2alpha1::BestEffort, decorator: Google::Apis::TpuV2alpha1::BestEffort::Representation
704
738
 
739
+ property :create_time, as: 'createTime'
705
740
  property :guaranteed, as: 'guaranteed', class: Google::Apis::TpuV2alpha1::Guaranteed, decorator: Google::Apis::TpuV2alpha1::Guaranteed::Representation
706
741
 
707
742
  property :name, as: 'name'
@@ -753,6 +788,15 @@ module Google
753
788
  end
754
789
  end
755
790
 
791
+ class Reservation
792
+ # @private
793
+ class Representation < Google::Apis::Core::JsonRepresentation
794
+ property :name, as: 'name'
795
+ property :standard, as: 'standard', class: Google::Apis::TpuV2alpha1::Standard, decorator: Google::Apis::TpuV2alpha1::Standard::Representation
796
+
797
+ end
798
+ end
799
+
756
800
  class ResetQueuedResourceRequest
757
801
  # @private
758
802
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -810,6 +854,19 @@ module Google
810
854
  end
811
855
  end
812
856
 
857
+ class Standard
858
+ # @private
859
+ class Representation < Google::Apis::Core::JsonRepresentation
860
+ property :capacity_units, as: 'capacityUnits'
861
+ property :interval, as: 'interval', class: Google::Apis::TpuV2alpha1::Interval, decorator: Google::Apis::TpuV2alpha1::Interval::Representation
862
+
863
+ property :resource_type, as: 'resourceType'
864
+ property :size, as: 'size'
865
+ property :usage, as: 'usage', class: Google::Apis::TpuV2alpha1::Usage, decorator: Google::Apis::TpuV2alpha1::Usage::Representation
866
+
867
+ end
868
+ end
869
+
813
870
  class StartNodeRequest
814
871
  # @private
815
872
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -860,6 +917,13 @@ module Google
860
917
 
861
918
  end
862
919
  end
920
+
921
+ class Usage
922
+ # @private
923
+ class Representation < Google::Apis::Core::JsonRepresentation
924
+ property :total, :numeric_string => true, as: 'total'
925
+ end
926
+ end
863
927
  end
864
928
  end
865
929
  end
@@ -854,6 +854,42 @@ module Google
854
854
  execute_or_queue_command(command, &block)
855
855
  end
856
856
 
857
+ # Retrieves the reservations for the given project in the given location.
858
+ # @param [String] parent
859
+ # Required. The parent for reservations.
860
+ # @param [Fixnum] page_size
861
+ # The maximum number of items to return.
862
+ # @param [String] page_token
863
+ # The next_page_token value returned from a previous List request, if any.
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::ListReservationsResponse] parsed result object
874
+ # @yieldparam err [StandardError] error object if request failed
875
+ #
876
+ # @return [Google::Apis::TpuV2alpha1::ListReservationsResponse]
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 list_project_location_reservations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
882
+ command = make_simple_command(:get, 'v2alpha1/{+parent}/reservations', options)
883
+ command.response_representation = Google::Apis::TpuV2alpha1::ListReservationsResponse::Representation
884
+ command.response_class = Google::Apis::TpuV2alpha1::ListReservationsResponse
885
+ command.params['parent'] = parent unless parent.nil?
886
+ command.query['pageSize'] = page_size unless page_size.nil?
887
+ command.query['pageToken'] = page_token unless page_token.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
+
857
893
  # Gets a runtime version.
858
894
  # @param [String] name
859
895
  # 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.24.0
4
+ version: 0.26.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-08-27 00:00:00.000000000 Z
11
+ date: 2023-11-12 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.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.26.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: []