google-iam-credentials-v1 0.3.1 → 0.3.2

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: 260dc3a135d6b9ca39860f117b8fa33bb893e85732308991527a4aa0212629bb
4
- data.tar.gz: aab3c6d3410457db9840ef6bda6d2f8c0396c549cbefba95d2537bab68d79570
3
+ metadata.gz: ff1fa7efdc0e2d581032349a5c9d76a4436774d1ea4870970f256c1869f07fbd
4
+ data.tar.gz: 4399a0b70eb2cfd9dc820c23281d9382cadaf22e62904fbfe6da00587353edd9
5
5
  SHA512:
6
- metadata.gz: 7ab5fb03287c9559b499abfbf7163376378b582cb50e1bb9419c04f77d6aa515e97d01a6f9b8b80c77f607b65522c08e50a4e7afbb81540175cafb6978524cfc
7
- data.tar.gz: b034f73afe982cebf1ee80be033a10bbc677c1337be2db9d9d775ffc236cb6220b4c06f733f39451fe2693343ae08fb2a8d1188bf9bfc96959a363a77a2d96e2
6
+ metadata.gz: '091e5a60ab72d66f181666d2ce8a30a4ed3ed461c19bcdf53da6ebdee377e6b0298a5d6ea790b657e95f2bcd4286f4895b9311947b4856c4fea0a3c462709361'
7
+ data.tar.gz: cb8a601e9bf1a09408997d49c838316c1bc029fd9c4739b8a6ef2495137e7c6da686de2c2cfc522f492054bccb74e5055d640ec31d9fd5c5638374213bd72a5f
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-iam-credentials-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Iam::Credentials::V1::IAMCredentials::Credentials}):
68
68
 
69
- 1. `IAM_CREDENTIALS_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `IAM_CREDENTIALS_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
+ * `IAM_CREDENTIALS_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `IAM_CREDENTIALS_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/iam/credentials/v1"
@@ -82,8 +82,8 @@ client = ::Google::Iam::Credentials::V1::IAMCredentials::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/iam/credentials/v1"
@@ -93,7 +93,7 @@ client = ::Google::Iam::Credentials::V1::IAMCredentials::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/iam/credentials/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/iam/credentials/v1"
34
34
 
35
35
  client = ::Google::Iam::Credentials::V1::IAMCredentials::Client.new
36
- request = my_create_request
36
+ request = ::Google::Iam::Credentials::V1::GenerateAccessTokenRequest.new # (request fields as keyword arguments...)
37
37
  response = client.generate_access_token request
38
38
  ```
39
39
 
@@ -75,34 +75,22 @@ module Google
75
75
 
76
76
  default_config.rpcs.generate_access_token.timeout = 60.0
77
77
  default_config.rpcs.generate_access_token.retry_policy = {
78
- initial_delay: 0.1,
79
- max_delay: 60.0,
80
- multiplier: 1.3,
81
- retry_codes: [14, 4]
78
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
82
79
  }
83
80
 
84
81
  default_config.rpcs.generate_id_token.timeout = 60.0
85
82
  default_config.rpcs.generate_id_token.retry_policy = {
86
- initial_delay: 0.1,
87
- max_delay: 60.0,
88
- multiplier: 1.3,
89
- retry_codes: [14, 4]
83
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
90
84
  }
91
85
 
92
86
  default_config.rpcs.sign_blob.timeout = 60.0
93
87
  default_config.rpcs.sign_blob.retry_policy = {
94
- initial_delay: 0.1,
95
- max_delay: 60.0,
96
- multiplier: 1.3,
97
- retry_codes: [14, 4]
88
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
98
89
  }
99
90
 
100
91
  default_config.rpcs.sign_jwt.timeout = 60.0
101
92
  default_config.rpcs.sign_jwt.retry_policy = {
102
- initial_delay: 0.1,
103
- max_delay: 60.0,
104
- multiplier: 1.3,
105
- retry_codes: [14, 4]
93
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
106
94
  }
107
95
 
108
96
  default_config
@@ -173,7 +161,7 @@ module Google
173
161
  !@config.endpoint.split(".").first.include?("-")
174
162
  credentials ||= Credentials.default scope: @config.scope,
175
163
  enable_self_signed_jwt: enable_self_signed_jwt
176
- if credentials.is_a?(String) || credentials.is_a?(Hash)
164
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
177
165
  credentials = Credentials.new credentials, scope: @config.scope
178
166
  end
179
167
  @quota_project_id = @config.quota_project
@@ -35,7 +35,7 @@ module Google
35
35
  # more.
36
36
  class Service
37
37
 
38
- include ::GRPC::GenericService
38
+ include GRPC::GenericService
39
39
 
40
40
  self.marshal_class_method = :encode
41
41
  self.unmarshal_class_method = :decode
@@ -21,7 +21,7 @@ module Google
21
21
  module Iam
22
22
  module Credentials
23
23
  module V1
24
- VERSION = "0.3.1"
24
+ VERSION = "0.3.2"
25
25
  end
26
26
  end
27
27
  end
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
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-iam-credentials-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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-17 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