google-apis-tpu_v2alpha1 0.1.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/tpu_v2alpha1/classes.rb +18 -11
- data/lib/google/apis/tpu_v2alpha1/gem_version.rb +3 -3
- data/lib/google/apis/tpu_v2alpha1/representations.rb +1 -0
- data/lib/google/apis/tpu_v2alpha1/service.rb +8 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c372cc6fc010fca975d7ce054fb193ce8de9b1fb85c34844b5f10591d25c395d
|
4
|
+
data.tar.gz: cb60075ffcfec83137024baa41e0ee662cb77ee4b42689eb1fab48a7196ccbfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68d9e6d9fc966966921a315208b4027d4546f7fc1056b9238487d2ce7b248c1dccb8a95a54417256145b86b9fd2875d9d1e2241b1e7b888f03c5233981ee2464
|
7
|
+
data.tar.gz: c4b1769d5ca77954b682203f6a16df5784082ebc19a5db8ff7c12b64a898e32df318e7897363414d86c25cd4279f36348a70fb10224fe9d580de63e5030e31d5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-tpu_v2alpha1
|
2
2
|
|
3
|
+
### v0.4.0 (2022-03-06)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220301
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.3.0 (2021-12-14)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.2.0 (2021-11-13)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211108
|
15
|
+
|
3
16
|
### v0.1.0 (2021-10-26)
|
4
17
|
|
5
18
|
* Regenerated from discovery document revision 20211021
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/tpu_v2alpha1"
|
|
51
51
|
client = Google::Apis::TpuV2alpha1::TPUService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -457,6 +457,14 @@ module Google
|
|
457
457
|
class NetworkConfig
|
458
458
|
include Google::Apis::Core::Hashable
|
459
459
|
|
460
|
+
# Allows the TPU node to send and receive packets with non-matching destination
|
461
|
+
# or source IPs. This is required if you plan to use the TPU workers to forward
|
462
|
+
# routes.
|
463
|
+
# Corresponds to the JSON property `canIpForward`
|
464
|
+
# @return [Boolean]
|
465
|
+
attr_accessor :can_ip_forward
|
466
|
+
alias_method :can_ip_forward?, :can_ip_forward
|
467
|
+
|
460
468
|
# Indicates that external IP addresses would be associated with the TPU workers.
|
461
469
|
# If set to false, the specified subnetwork or network should have Private
|
462
470
|
# Google Access enabled.
|
@@ -483,6 +491,7 @@ module Google
|
|
483
491
|
|
484
492
|
# Update properties of this object
|
485
493
|
def update!(**args)
|
494
|
+
@can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
|
486
495
|
@enable_external_ips = args[:enable_external_ips] if args.key?(:enable_external_ips)
|
487
496
|
@network = args[:network] if args.key?(:network)
|
488
497
|
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
@@ -726,45 +735,43 @@ module Google
|
|
726
735
|
end
|
727
736
|
end
|
728
737
|
|
729
|
-
#
|
738
|
+
# Metadata describing an Operation
|
730
739
|
class OperationMetadata
|
731
740
|
include Google::Apis::Core::Hashable
|
732
741
|
|
733
|
-
#
|
742
|
+
# API version.
|
734
743
|
# Corresponds to the JSON property `apiVersion`
|
735
744
|
# @return [String]
|
736
745
|
attr_accessor :api_version
|
737
746
|
|
738
|
-
#
|
739
|
-
# operation. Operations that have been cancelled successfully have Operation.
|
740
|
-
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
|
741
|
-
# CANCELLED`.
|
747
|
+
# Specifies if cancellation was requested for the operation.
|
742
748
|
# Corresponds to the JSON property `cancelRequested`
|
743
749
|
# @return [Boolean]
|
744
750
|
attr_accessor :cancel_requested
|
745
751
|
alias_method :cancel_requested?, :cancel_requested
|
746
752
|
|
747
|
-
#
|
753
|
+
# The time the operation was created.
|
748
754
|
# Corresponds to the JSON property `createTime`
|
749
755
|
# @return [String]
|
750
756
|
attr_accessor :create_time
|
751
757
|
|
752
|
-
#
|
758
|
+
# The time the operation finished running.
|
753
759
|
# Corresponds to the JSON property `endTime`
|
754
760
|
# @return [String]
|
755
761
|
attr_accessor :end_time
|
756
762
|
|
757
|
-
#
|
763
|
+
# Human-readable status of the operation, if any.
|
758
764
|
# Corresponds to the JSON property `statusDetail`
|
759
765
|
# @return [String]
|
760
766
|
attr_accessor :status_detail
|
761
767
|
|
762
|
-
#
|
768
|
+
# Target of the operation - for example projects/project-1/connectivityTests/
|
769
|
+
# test-1
|
763
770
|
# Corresponds to the JSON property `target`
|
764
771
|
# @return [String]
|
765
772
|
attr_accessor :target
|
766
773
|
|
767
|
-
#
|
774
|
+
# Name of the verb executed by the operation.
|
768
775
|
# Corresponds to the JSON property `verb`
|
769
776
|
# @return [String]
|
770
777
|
attr_accessor :verb
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.4.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220301"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -349,6 +349,7 @@ module Google
|
|
349
349
|
class NetworkConfig
|
350
350
|
# @private
|
351
351
|
class Representation < Google::Apis::Core::JsonRepresentation
|
352
|
+
property :can_ip_forward, as: 'canIpForward'
|
352
353
|
property :enable_external_ips, as: 'enableExternalIps'
|
353
354
|
property :network, as: 'network'
|
354
355
|
property :subnetwork, as: 'subnetwork'
|
@@ -233,6 +233,8 @@ module Google
|
|
233
233
|
# @param [Google::Apis::TpuV2alpha1::Node] node_object
|
234
234
|
# @param [String] node_id
|
235
235
|
# The unqualified resource name.
|
236
|
+
# @param [String] request_id
|
237
|
+
# Idempotent request UUID.
|
236
238
|
# @param [String] fields
|
237
239
|
# Selector specifying which fields to include in a partial response.
|
238
240
|
# @param [String] quota_user
|
@@ -250,7 +252,7 @@ module Google
|
|
250
252
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
251
253
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
252
254
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
253
|
-
def create_project_location_node(parent, node_object = nil, node_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
255
|
+
def create_project_location_node(parent, node_object = nil, node_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
254
256
|
command = make_simple_command(:post, 'v2alpha1/{+parent}/nodes', options)
|
255
257
|
command.request_representation = Google::Apis::TpuV2alpha1::Node::Representation
|
256
258
|
command.request_object = node_object
|
@@ -258,6 +260,7 @@ module Google
|
|
258
260
|
command.response_class = Google::Apis::TpuV2alpha1::Operation
|
259
261
|
command.params['parent'] = parent unless parent.nil?
|
260
262
|
command.query['nodeId'] = node_id unless node_id.nil?
|
263
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
261
264
|
command.query['fields'] = fields unless fields.nil?
|
262
265
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
263
266
|
execute_or_queue_command(command, &block)
|
@@ -266,6 +269,8 @@ module Google
|
|
266
269
|
# Deletes a node.
|
267
270
|
# @param [String] name
|
268
271
|
# Required. The resource name.
|
272
|
+
# @param [String] request_id
|
273
|
+
# Idempotent request UUID.
|
269
274
|
# @param [String] fields
|
270
275
|
# Selector specifying which fields to include in a partial response.
|
271
276
|
# @param [String] quota_user
|
@@ -283,11 +288,12 @@ module Google
|
|
283
288
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
284
289
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
285
290
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
286
|
-
def delete_project_location_node(name, fields: nil, quota_user: nil, options: nil, &block)
|
291
|
+
def delete_project_location_node(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
287
292
|
command = make_simple_command(:delete, 'v2alpha1/{+name}', options)
|
288
293
|
command.response_representation = Google::Apis::TpuV2alpha1::Operation::Representation
|
289
294
|
command.response_class = Google::Apis::TpuV2alpha1::Operation
|
290
295
|
command.params['name'] = name unless name.nil?
|
296
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
291
297
|
command.query['fields'] = fields unless fields.nil?
|
292
298
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
293
299
|
execute_or_queue_command(command, &block)
|
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.
|
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:
|
11
|
+
date: 2022-03-07 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-tpu_v2alpha1/v0.4.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.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud TPU API V2alpha1
|