google-apis-tpu_v2alpha1 0.24.0 → 0.25.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: 828dcffc747b6750d338e44dc92244241f66a39ae9e0da37a7191573aed89e5e
4
+ data.tar.gz: d29636a26c70cb32546011cf13faca58bfba49e3da552827d5d7ac0d3fc793dd
5
5
  SHA512:
6
- metadata.gz: f067762b2c85e26b883024ef029769970dc047c33c557de609d3e94cfd9a86df4c96dc2d2886f1648e3f2f7c2fb5140f61ab17a5d6da2d6c4fb9dc97cf30ce86
7
- data.tar.gz: 6dbc36679608fefee649414dbfdbcc74dfaac9adf998bc40a45e4df763b9c1c77b3afd683e30742fee9b9129c90e2578fd83c95537d07c60ffb04c63d1047e91
6
+ metadata.gz: 010e72eee21988ae400b469f4b8782d768190edeb3c06bf24a2c970df4c32fc9ce0b0cd34632094d4d71bdd2ef61a0105a8fed558dbd29fd509ae1239e6b0500
7
+ data.tar.gz: 20c2ad11edf44d521a99550d3c6d7a0fea6e90a2aa0ba7d557fa422b2e39805522f4733345e56f3625e55405adaf27c43b52d7cb4e01484f930bc3b6cdb0cb9f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-tpu_v2alpha1
2
2
 
3
+ ### v0.25.0 (2023-11-05)
4
+
5
+ * Regenerated from discovery document revision 20231026
6
+
3
7
  ### v0.24.0 (2023-08-27)
4
8
 
5
9
  * 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
@@ -1178,6 +1203,11 @@ module Google
1178
1203
  # @return [Google::Apis::TpuV2alpha1::BestEffort]
1179
1204
  attr_accessor :best_effort
1180
1205
 
1206
+ # Output only. The time when the QueuedResource was created.
1207
+ # Corresponds to the JSON property `createTime`
1208
+ # @return [String]
1209
+ attr_accessor :create_time
1210
+
1181
1211
  # Guaranteed tier definition.
1182
1212
  # Corresponds to the JSON property `guaranteed`
1183
1213
  # @return [Google::Apis::TpuV2alpha1::Guaranteed]
@@ -1221,6 +1251,7 @@ module Google
1221
1251
  # Update properties of this object
1222
1252
  def update!(**args)
1223
1253
  @best_effort = args[:best_effort] if args.key?(:best_effort)
1254
+ @create_time = args[:create_time] if args.key?(:create_time)
1224
1255
  @guaranteed = args[:guaranteed] if args.key?(:guaranteed)
1225
1256
  @name = args[:name] if args.key?(:name)
1226
1257
  @queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy)
@@ -1352,6 +1383,33 @@ module Google
1352
1383
  end
1353
1384
  end
1354
1385
 
1386
+ # A reservation describes the amount of a resource 'allotted' for a defined
1387
+ # period of time.
1388
+ class Reservation
1389
+ include Google::Apis::Core::Hashable
1390
+
1391
+ # The reservation name with the format: projects/`projectID`/locations/`location`
1392
+ # /reservations/`reservationID`
1393
+ # Corresponds to the JSON property `name`
1394
+ # @return [String]
1395
+ attr_accessor :name
1396
+
1397
+ #
1398
+ # Corresponds to the JSON property `standard`
1399
+ # @return [Google::Apis::TpuV2alpha1::Standard]
1400
+ attr_accessor :standard
1401
+
1402
+ def initialize(**args)
1403
+ update!(**args)
1404
+ end
1405
+
1406
+ # Update properties of this object
1407
+ def update!(**args)
1408
+ @name = args[:name] if args.key?(:name)
1409
+ @standard = args[:standard] if args.key?(:standard)
1410
+ end
1411
+ end
1412
+
1355
1413
  # Request for ResetQueuedResource.
1356
1414
  class ResetQueuedResourceRequest
1357
1415
  include Google::Apis::Core::Hashable
@@ -1518,6 +1576,53 @@ module Google
1518
1576
  end
1519
1577
  end
1520
1578
 
1579
+ #
1580
+ class Standard
1581
+ include Google::Apis::Core::Hashable
1582
+
1583
+ #
1584
+ # Corresponds to the JSON property `capacityUnits`
1585
+ # @return [String]
1586
+ attr_accessor :capacity_units
1587
+
1588
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
1589
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
1590
+ # When the start equals the end, the interval is empty (matches no time). When
1591
+ # both start and end are unspecified, the interval matches any time.
1592
+ # Corresponds to the JSON property `interval`
1593
+ # @return [Google::Apis::TpuV2alpha1::Interval]
1594
+ attr_accessor :interval
1595
+
1596
+ # The resource type of the reservation.
1597
+ # Corresponds to the JSON property `resourceType`
1598
+ # @return [String]
1599
+ attr_accessor :resource_type
1600
+
1601
+ # The size of the reservation, in the units specified in the 'capacity_units'
1602
+ # field.
1603
+ # Corresponds to the JSON property `size`
1604
+ # @return [Fixnum]
1605
+ attr_accessor :size
1606
+
1607
+ #
1608
+ # Corresponds to the JSON property `usage`
1609
+ # @return [Google::Apis::TpuV2alpha1::Usage]
1610
+ attr_accessor :usage
1611
+
1612
+ def initialize(**args)
1613
+ update!(**args)
1614
+ end
1615
+
1616
+ # Update properties of this object
1617
+ def update!(**args)
1618
+ @capacity_units = args[:capacity_units] if args.key?(:capacity_units)
1619
+ @interval = args[:interval] if args.key?(:interval)
1620
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1621
+ @size = args[:size] if args.key?(:size)
1622
+ @usage = args[:usage] if args.key?(:usage)
1623
+ end
1624
+ end
1625
+
1521
1626
  # Request for StartNode.
1522
1627
  class StartNodeRequest
1523
1628
  include Google::Apis::Core::Hashable
@@ -1664,6 +1769,26 @@ module Google
1664
1769
  @node_spec = args[:node_spec] if args.key?(:node_spec)
1665
1770
  end
1666
1771
  end
1772
+
1773
+ #
1774
+ class Usage
1775
+ include Google::Apis::Core::Hashable
1776
+
1777
+ # The real-time value of usage within the reservation, with the unit specified
1778
+ # in field capacity_units.
1779
+ # Corresponds to the JSON property `total`
1780
+ # @return [Fixnum]
1781
+ attr_accessor :total
1782
+
1783
+ def initialize(**args)
1784
+ update!(**args)
1785
+ end
1786
+
1787
+ # Update properties of this object
1788
+ def update!(**args)
1789
+ @total = args[:total] if args.key?(:total)
1790
+ end
1791
+ end
1667
1792
  end
1668
1793
  end
1669
1794
  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.25.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 = "20231026"
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
@@ -702,6 +735,7 @@ module Google
702
735
  class Representation < Google::Apis::Core::JsonRepresentation
703
736
  property :best_effort, as: 'bestEffort', class: Google::Apis::TpuV2alpha1::BestEffort, decorator: Google::Apis::TpuV2alpha1::BestEffort::Representation
704
737
 
738
+ property :create_time, as: 'createTime'
705
739
  property :guaranteed, as: 'guaranteed', class: Google::Apis::TpuV2alpha1::Guaranteed, decorator: Google::Apis::TpuV2alpha1::Guaranteed::Representation
706
740
 
707
741
  property :name, as: 'name'
@@ -753,6 +787,15 @@ module Google
753
787
  end
754
788
  end
755
789
 
790
+ class Reservation
791
+ # @private
792
+ class Representation < Google::Apis::Core::JsonRepresentation
793
+ property :name, as: 'name'
794
+ property :standard, as: 'standard', class: Google::Apis::TpuV2alpha1::Standard, decorator: Google::Apis::TpuV2alpha1::Standard::Representation
795
+
796
+ end
797
+ end
798
+
756
799
  class ResetQueuedResourceRequest
757
800
  # @private
758
801
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -810,6 +853,19 @@ module Google
810
853
  end
811
854
  end
812
855
 
856
+ class Standard
857
+ # @private
858
+ class Representation < Google::Apis::Core::JsonRepresentation
859
+ property :capacity_units, as: 'capacityUnits'
860
+ property :interval, as: 'interval', class: Google::Apis::TpuV2alpha1::Interval, decorator: Google::Apis::TpuV2alpha1::Interval::Representation
861
+
862
+ property :resource_type, as: 'resourceType'
863
+ property :size, as: 'size'
864
+ property :usage, as: 'usage', class: Google::Apis::TpuV2alpha1::Usage, decorator: Google::Apis::TpuV2alpha1::Usage::Representation
865
+
866
+ end
867
+ end
868
+
813
869
  class StartNodeRequest
814
870
  # @private
815
871
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -860,6 +916,13 @@ module Google
860
916
 
861
917
  end
862
918
  end
919
+
920
+ class Usage
921
+ # @private
922
+ class Representation < Google::Apis::Core::JsonRepresentation
923
+ property :total, :numeric_string => true, as: 'total'
924
+ end
925
+ end
863
926
  end
864
927
  end
865
928
  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.25.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-05 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.25.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: []