google-cloud-tpu-v1 0.1.0 → 0.1.1

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: f06774a58697093d7db4d47bee3e87baa218499faa42f3ec8a1b6a5f17f1f463
4
- data.tar.gz: 8054707a5f3369e1ead36473e0d2ac2a15ce101f47599954d835977b7b7d176d
3
+ metadata.gz: 49fe590d652461edc27e36082447ea0c008a1359c92354f2661377da921bf65d
4
+ data.tar.gz: 1d3654100fdd8ed44b521c90b803d2e5e168345fb48a2221c33c2e8291f06cb0
5
5
  SHA512:
6
- metadata.gz: 5c95ab80bf480124c99c950d91b0697306e3d0caec7343f35d542c443a73307350c6798a7c64ce7abbf4ab33d9327fd05253081f491a87856d6f8541a6b46f54
7
- data.tar.gz: 58c2dd83f6f748bfd912187014ae9d2c1bc1e076ba38932b67ec57c07024c01950c150082b53adc82d7ca2e9fad6cf6e3c96cf14a2d4c05254e21485012062df
6
+ metadata.gz: 4a56fd9d1a7a4d708598a48074a5500f637e32c80fffb03ef4e0fac4a2c43317b397fb61e269402e191a65e82250599af2481c2d30f564c87b6a3afb40f3e1bd
7
+ data.tar.gz: d4f52f318371fc6a94716e64979694100a98e5e9e486f185d474f2e395f488d45d121e3dfa34a7fd066cb3a077fa6646754bb780bfc777d8a30713c8933fd8bf
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-tpu-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Tpu::V1::Tpu::Credentials}):
68
68
 
69
- 1. `CLOUD_TPU_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `CLOUD_TPU_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `CLOUD_TPU_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `CLOUD_TPU_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/tpu/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Tpu::V1::Tpu::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/tpu/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Tpu::V1::Tpu::Client.new do |config|
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/tpu/v1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/tpu/v1"
34
34
 
35
35
  client = ::Google::Cloud::Tpu::V1::Tpu::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Tpu::V1::ListNodesRequest.new # (request fields as keyword arguments...)
37
37
  response = client.list_nodes request
38
38
  ```
39
39
 
@@ -137,7 +137,7 @@ module Google
137
137
  !@config.endpoint.split(".").first.include?("-")
138
138
  credentials ||= Credentials.default scope: @config.scope,
139
139
  enable_self_signed_jwt: enable_self_signed_jwt
140
- if credentials.is_a?(String) || credentials.is_a?(Hash)
140
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
141
141
  credentials = Credentials.new credentials, scope: @config.scope
142
142
  end
143
143
  @quota_project_id = @config.quota_project
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Tpu
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.1.1"
25
25
  end
26
26
  end
27
27
  end
@@ -60,6 +60,12 @@ module Google
60
60
  # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tpu-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-21 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common