google-apis-tpu_v2 0.3.0 → 0.5.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: 2b4904a4fc149c84bde77f74ed68307988332f0609fd870466adc6494f3befe0
|
4
|
+
data.tar.gz: 5df3bdd4ebc19b19c8905ef8a10e01667c882eeb1b9ffb3fc36b9bc94d10cf7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72d9b39d4ab467aa7243d613670d19a9f1f721ba701220bb11219d88bdd59a72eea21185743f096e9d0005861612a99c6a74033308dee3240f04f0e99ba54f36
|
7
|
+
data.tar.gz: 92c1d7f15a8fcb79d3c98e049829483c703365261d6562224f0eb62d05809524014f4f3046257dac672a751a712e2a7a7eed8fdec6b8320b07b375cf80d5d3f5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-tpu_v2
|
2
2
|
|
3
|
+
### v0.5.0 (2023-03-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230316
|
6
|
+
|
7
|
+
### v0.4.0 (2023-02-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230216
|
10
|
+
|
3
11
|
### v0.3.0 (2023-02-15)
|
4
12
|
|
5
13
|
* 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.
|
19
|
+
GEM_VERSION = "0.5.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 = "20230316"
|
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'
|
@@ -597,13 +597,7 @@ module Google
|
|
597
597
|
end
|
598
598
|
|
599
599
|
# Lists operations that match the specified filter in the request. If the server
|
600
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
601
|
-
# binding allows API services to override the binding to use different resource
|
602
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
603
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
604
|
-
# service configuration. For backwards compatibility, the default name includes
|
605
|
-
# the operations collection id, however overriding users must ensure the name
|
606
|
-
# binding is the parent resource, without the operations collection id.
|
600
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
607
601
|
# @param [String] name
|
608
602
|
# The name of the operation's parent resource.
|
609
603
|
# @param [String] filter
|
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.
|
4
|
+
version: 0.5.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-03-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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2/v0.5.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: []
|