google-apis-tpu_v2alpha1 0.12.0 → 0.14.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: c1cd3439c2fa42b94f3418ca750b0f80a043946c0f07823bc40d91778390e918
4
- data.tar.gz: cd0dea717d8b6522e8216a547aecd48096ed80a4fa464a054e331e3a55f71c6a
3
+ metadata.gz: 43cd46d69cf8594d86b655ec78d50ee87d1f3c6ce1fc696710f1bd7b0c2289e1
4
+ data.tar.gz: 5258379013872baa509b967fad028921b4617d0922948b89a89fdb22cb2ddcba
5
5
  SHA512:
6
- metadata.gz: cac4462f099e0c40ca5ea07ce276a13013283decb6cc4bb29e88749b711c186ef2d328b64d44638d5b5ed6f71c08ee832809b7accdc18d852ca3f8ce51671a9a
7
- data.tar.gz: b2af4950ec0efdb3b50db7e65faa2b42f49b7dfcd8d999600cfbca6a3104474644bc95d51db76624b28b9e0efdd49e49a70c639c8858defb5d9a593450c6975a
6
+ metadata.gz: a07beaf109198c58c9f6e683eafbec47b67bd26d0dff0a308db40fa49598e526a6f32b946d82dba660b915c2ae92440fb8a16768435259c84c0720839a2a0d19
7
+ data.tar.gz: 5622611ebf59dedfc7b4478057d891475977ee01f038d4fd7d5f5d927e976af55ff6e044e171782043426b0e01279d63528066c628c8e909c7bd8f7479d61044
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-tpu_v2alpha1
2
2
 
3
+ ### v0.14.0 (2023-01-29)
4
+
5
+ * Regenerated from discovery document revision 20230125
6
+
7
+ ### v0.13.0 (2023-01-15)
8
+
9
+ * Regenerated from discovery document revision 20230105
10
+ * Regenerated using generator version 0.11.1
11
+
3
12
  ### v0.12.0 (2022-11-19)
4
13
 
5
14
  * Regenerated from discovery document revision 20221107
@@ -22,10 +22,40 @@ module Google
22
22
  module Apis
23
23
  module TpuV2alpha1
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::TpuV2alpha1::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
@@ -710,6 +741,11 @@ module Google
710
741
  class Node
711
742
  include Google::Apis::Core::Hashable
712
743
 
744
+ # A TPU accelerator configuration.
745
+ # Corresponds to the JSON property `acceleratorConfig`
746
+ # @return [Google::Apis::TpuV2alpha1::AcceleratorConfig]
747
+ attr_accessor :accelerator_config
748
+
713
749
  # The type of hardware accelerators associated with this node.
714
750
  # Corresponds to the JSON property `acceleratorType`
715
751
  # @return [String]
@@ -837,6 +873,7 @@ module Google
837
873
 
838
874
  # Update properties of this object
839
875
  def update!(**args)
876
+ @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
840
877
  @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
841
878
  @api_version = args[:api_version] if args.key?(:api_version)
842
879
  @cidr_block = args[:cidr_block] if args.key?(:cidr_block)
@@ -873,7 +910,7 @@ module Google
873
910
  # @return [Google::Apis::TpuV2alpha1::Node]
874
911
  attr_accessor :node
875
912
 
876
- # The unqualified resource name. Should follow the ^[A-Za-z0-9_.~+%-]+$ regex
913
+ # The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex
877
914
  # format. This is only specified when requesting a single node. In case of multi-
878
915
  # node requests, multi_node_params must be populated instead. It's an error to
879
916
  # specify both node_id and multi_node_params.
@@ -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.12.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221107"
25
+ REVISION = "20230125"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module TpuV2alpha1
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
 
@@ -316,9 +322,19 @@ module Google
316
322
  include Google::Apis::Core::JsonObjectSupport
317
323
  end
318
324
 
325
+ class AcceleratorConfig
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :topology, as: 'topology'
329
+ property :type, as: 'type'
330
+ end
331
+ end
332
+
319
333
  class AcceleratorType
320
334
  # @private
321
335
  class Representation < Google::Apis::Core::JsonRepresentation
336
+ collection :accelerator_configs, as: 'acceleratorConfigs', class: Google::Apis::TpuV2alpha1::AcceleratorConfig, decorator: Google::Apis::TpuV2alpha1::AcceleratorConfig::Representation
337
+
322
338
  property :name, as: 'name'
323
339
  property :type, as: 'type'
324
340
  end
@@ -547,6 +563,8 @@ module Google
547
563
  class Node
548
564
  # @private
549
565
  class Representation < Google::Apis::Core::JsonRepresentation
566
+ property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::TpuV2alpha1::AcceleratorConfig, decorator: Google::Apis::TpuV2alpha1::AcceleratorConfig::Representation
567
+
550
568
  property :accelerator_type, as: 'acceleratorType'
551
569
  property :api_version, as: 'apiVersion'
552
570
  property :cidr_block, as: 'cidrBlock'
@@ -470,7 +470,7 @@ module Google
470
470
 
471
471
  # Starts a node.
472
472
  # @param [String] name
473
- # The resource name.
473
+ # Required. The resource name.
474
474
  # @param [Google::Apis::TpuV2alpha1::StartNodeRequest] start_node_request_object
475
475
  # @param [String] fields
476
476
  # Selector specifying which fields to include in a partial response.
@@ -503,7 +503,7 @@ module Google
503
503
 
504
504
  # Stops a node. This operation is only available with single TPU nodes.
505
505
  # @param [String] name
506
- # The resource name.
506
+ # Required. The resource name.
507
507
  # @param [Google::Apis::TpuV2alpha1::StopNodeRequest] stop_node_request_object
508
508
  # @param [String] fields
509
509
  # Selector specifying which fields to include in a partial response.
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.12.0
4
+ version: 0.14.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: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2023-01-29 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.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.14.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.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud TPU API V2alpha1