google-apis-tpu_v2 0.3.0 → 0.4.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: 733477d759a9cfe7888aff0f64e7f16a8a8891c3c24998538546e311cd1bef3c
4
- data.tar.gz: d7494e61183cc8acb40962e5ecbf608aebb8e4d741f5f5d66f887457b75fd29c
3
+ metadata.gz: 9fd105c1827924bafbb4207de4f4fb41fa49b9408ea933dbfa57b16ecadda968
4
+ data.tar.gz: 420b6e766fa5c6e68afb5982dc1886e635be9fd29719b6f6e3310bbfdb93f476
5
5
  SHA512:
6
- metadata.gz: dd69974f0084cfc398f05faa3738825bb519e780e10ac097c40370112fe17ff53617243b367b30e7bac0e1cfd869ef9acea58a8d4c94e4fe6275aaeeef548dba
7
- data.tar.gz: e7d9f49415ce5de9b40ee83b0bdc3805f31dded40baaac3a8f86ec6c0d2b52443515720d544add2b251b2f6b98c845099fc3131ac06f24006d803ab727f57b35
6
+ metadata.gz: a5b758ac3a44905fd1992c2f3d6997b2fa183e0164b6c53c7aef6e68b578f75809a6e469f434dca72e3e6193acf00dd239ba81cc9f064b8ed6f365d6c4aeaaed
7
+ data.tar.gz: 712ee786b7556dfa7fceee87a84fed1091c5cec4645404565948f497538fbdfe36fa3daa38042d43fe87dc056ff65cbcc27803862ef9a188c4a26f4cc154d2e8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-tpu_v2
2
2
 
3
+ ### v0.4.0 (2023-02-26)
4
+
5
+ * Regenerated from discovery document revision 20230216
6
+
3
7
  ### v0.3.0 (2023-02-15)
4
8
 
5
9
  * Regenerated using generator version 0.12.0
@@ -22,10 +22,40 @@ module Google
22
22
  module Apis
23
23
  module TpuV2
24
24
 
25
+ # A TPU accelerator configuration.
26
+ class AcceleratorConfig
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Required. Topology of TPU in chips.
30
+ # Corresponds to the JSON property `topology`
31
+ # @return [String]
32
+ attr_accessor :topology
33
+
34
+ # Required. Type of TPU.
35
+ # Corresponds to the JSON property `type`
36
+ # @return [String]
37
+ attr_accessor :type
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @topology = args[:topology] if args.key?(:topology)
46
+ @type = args[:type] if args.key?(:type)
47
+ end
48
+ end
49
+
25
50
  # A accelerator type that a Node can be configured with.
26
51
  class AcceleratorType
27
52
  include Google::Apis::Core::Hashable
28
53
 
54
+ # The accelerator config.
55
+ # Corresponds to the JSON property `acceleratorConfigs`
56
+ # @return [Array<Google::Apis::TpuV2::AcceleratorConfig>]
57
+ attr_accessor :accelerator_configs
58
+
29
59
  # The resource name.
30
60
  # Corresponds to the JSON property `name`
31
61
  # @return [String]
@@ -42,6 +72,7 @@ module Google
42
72
 
43
73
  # Update properties of this object
44
74
  def update!(**args)
75
+ @accelerator_configs = args[:accelerator_configs] if args.key?(:accelerator_configs)
45
76
  @name = args[:name] if args.key?(:name)
46
77
  @type = args[:type] if args.key?(:type)
47
78
  end
@@ -532,6 +563,11 @@ module Google
532
563
  class Node
533
564
  include Google::Apis::Core::Hashable
534
565
 
566
+ # A TPU accelerator configuration.
567
+ # Corresponds to the JSON property `acceleratorConfig`
568
+ # @return [Google::Apis::TpuV2::AcceleratorConfig]
569
+ attr_accessor :accelerator_config
570
+
535
571
  # Required. The type of hardware accelerators associated with this node.
536
572
  # Corresponds to the JSON property `acceleratorType`
537
573
  # @return [String]
@@ -654,6 +690,7 @@ module Google
654
690
 
655
691
  # Update properties of this object
656
692
  def update!(**args)
693
+ @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
657
694
  @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
658
695
  @api_version = args[:api_version] if args.key?(:api_version)
659
696
  @cidr_block = args[:cidr_block] if args.key?(:cidr_block)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TpuV2
18
18
  # Version of the google-apis-tpu_v2 gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.4.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 = "20230105"
25
+ REVISION = "20230216"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module TpuV2
24
24
 
25
+ class AcceleratorConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AcceleratorType
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -208,9 +214,19 @@ module Google
208
214
  include Google::Apis::Core::JsonObjectSupport
209
215
  end
210
216
 
217
+ class AcceleratorConfig
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ property :topology, as: 'topology'
221
+ property :type, as: 'type'
222
+ end
223
+ end
224
+
211
225
  class AcceleratorType
212
226
  # @private
213
227
  class Representation < Google::Apis::Core::JsonRepresentation
228
+ collection :accelerator_configs, as: 'acceleratorConfigs', class: Google::Apis::TpuV2::AcceleratorConfig, decorator: Google::Apis::TpuV2::AcceleratorConfig::Representation
229
+
214
230
  property :name, as: 'name'
215
231
  property :type, as: 'type'
216
232
  end
@@ -375,6 +391,8 @@ module Google
375
391
  class Node
376
392
  # @private
377
393
  class Representation < Google::Apis::Core::JsonRepresentation
394
+ property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::TpuV2::AcceleratorConfig, decorator: Google::Apis::TpuV2::AcceleratorConfig::Representation
395
+
378
396
  property :accelerator_type, as: 'acceleratorType'
379
397
  property :api_version, as: 'apiVersion'
380
398
  property :cidr_block, as: 'cidrBlock'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-tpu_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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-02-26 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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2/v0.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2/v0.4.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-tpu_v2
63
63
  post_install_message:
64
64
  rdoc_options: []