google-iam-v1beta 0.3.1 → 0.3.2

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: 10ae36c33ad949f45d024af57743b5a732acfaaabcc3d931be4a5850fc95375f
4
- data.tar.gz: 7babb25be7d0c10809354de967e17efe002c6ba818b0c8c956d081fa4112692d
3
+ metadata.gz: 799a7234ec60e0940e27272a92e46fd689742c1ab7412191ca875f7a1c06240d
4
+ data.tar.gz: 41ee2dea67dca9ebc86cb36e819256223a5bada5d7ef6ea58fdd766e7613e42d
5
5
  SHA512:
6
- metadata.gz: 6d1be3f4522cbedf40491de573b284f1e95546df1326a1855d11b7df8d58de7e483f90b4ccd7239bd4988378ca0eacc9939936a6e75f277f4dc3a617bc9becc7
7
- data.tar.gz: 15dc41b24fbe3c71340f2b57790476e2a1a7cefa472b37b7772493ef22fc4669f729cc79a2b4568b5d2f2706dcdbba90b7367021647180e4f67d98f915fd10b2
6
+ metadata.gz: c42496ee34502c70801bd283f9c881bdaa64bca353f14c2f08a5f7410c26ac40170b14ab25ca447929b023a883671d0e3d2396b87015f6df5bbcbbbf27a24fc1
7
+ data.tar.gz: 8e2dda5fc8724bd48a7504ac80c5dd0a74dd15bce2bcc479c2bc301aed7de541c321fa093b2d9e065a97385554db5eade330570721b69ebbbb49ad5449ade484
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-iam-v1beta
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Iam::V1beta::WorkloadIdentityPools::Credentials}):
68
68
 
69
- 1. `IAM_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `IAM_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` - Path to JSON file, or JSON contents
70
+ * `IAM_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/v1beta"
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/v1beta"
34
34
 
35
35
  client = ::Google::Iam::V1beta::WorkloadIdentityPools::Client.new
36
- request = my_create_request
36
+ request = ::Google::Iam::V1beta::ListWorkloadIdentityPoolsRequest.new # (request fields as keyword arguments...)
37
37
  response = client.list_workload_identity_pools request
38
38
  ```
39
39
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Iam
22
22
  module V1beta
23
- VERSION = "0.3.1"
23
+ VERSION = "0.3.2"
24
24
  end
25
25
  end
26
26
  end
@@ -26,7 +26,7 @@ module Google
26
26
  # Manages WorkloadIdentityPools.
27
27
  class Service
28
28
 
29
- include ::GRPC::GenericService
29
+ include GRPC::GenericService
30
30
 
31
31
  self.marshal_class_method = :encode
32
32
  self.unmarshal_class_method = :decode
@@ -66,98 +66,62 @@ module Google
66
66
 
67
67
  default_config.rpcs.list_workload_identity_pools.timeout = 60.0
68
68
  default_config.rpcs.list_workload_identity_pools.retry_policy = {
69
- initial_delay: 1.0,
70
- max_delay: 10.0,
71
- multiplier: 1.3,
72
- retry_codes: [14, 4]
69
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
73
70
  }
74
71
 
75
72
  default_config.rpcs.get_workload_identity_pool.timeout = 60.0
76
73
  default_config.rpcs.get_workload_identity_pool.retry_policy = {
77
- initial_delay: 1.0,
78
- max_delay: 10.0,
79
- multiplier: 1.3,
80
- retry_codes: [14, 4]
74
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
81
75
  }
82
76
 
83
77
  default_config.rpcs.create_workload_identity_pool.timeout = 60.0
84
78
  default_config.rpcs.create_workload_identity_pool.retry_policy = {
85
- initial_delay: 1.0,
86
- max_delay: 10.0,
87
- multiplier: 1.3,
88
- retry_codes: [14, 4]
79
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
89
80
  }
90
81
 
91
82
  default_config.rpcs.update_workload_identity_pool.timeout = 60.0
92
83
  default_config.rpcs.update_workload_identity_pool.retry_policy = {
93
- initial_delay: 1.0,
94
- max_delay: 10.0,
95
- multiplier: 1.3,
96
- retry_codes: [14, 4]
84
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
97
85
  }
98
86
 
99
87
  default_config.rpcs.delete_workload_identity_pool.timeout = 60.0
100
88
  default_config.rpcs.delete_workload_identity_pool.retry_policy = {
101
- initial_delay: 1.0,
102
- max_delay: 10.0,
103
- multiplier: 1.3,
104
- retry_codes: [14, 4]
89
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
105
90
  }
106
91
 
107
92
  default_config.rpcs.undelete_workload_identity_pool.timeout = 60.0
108
93
  default_config.rpcs.undelete_workload_identity_pool.retry_policy = {
109
- initial_delay: 1.0,
110
- max_delay: 10.0,
111
- multiplier: 1.3,
112
- retry_codes: [14, 4]
94
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
113
95
  }
114
96
 
115
97
  default_config.rpcs.list_workload_identity_pool_providers.timeout = 60.0
116
98
  default_config.rpcs.list_workload_identity_pool_providers.retry_policy = {
117
- initial_delay: 1.0,
118
- max_delay: 10.0,
119
- multiplier: 1.3,
120
- retry_codes: [14, 4]
99
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
121
100
  }
122
101
 
123
102
  default_config.rpcs.get_workload_identity_pool_provider.timeout = 60.0
124
103
  default_config.rpcs.get_workload_identity_pool_provider.retry_policy = {
125
- initial_delay: 1.0,
126
- max_delay: 10.0,
127
- multiplier: 1.3,
128
- retry_codes: [14, 4]
104
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
129
105
  }
130
106
 
131
107
  default_config.rpcs.create_workload_identity_pool_provider.timeout = 60.0
132
108
  default_config.rpcs.create_workload_identity_pool_provider.retry_policy = {
133
- initial_delay: 1.0,
134
- max_delay: 10.0,
135
- multiplier: 1.3,
136
- retry_codes: [14, 4]
109
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
137
110
  }
138
111
 
139
112
  default_config.rpcs.update_workload_identity_pool_provider.timeout = 60.0
140
113
  default_config.rpcs.update_workload_identity_pool_provider.retry_policy = {
141
- initial_delay: 1.0,
142
- max_delay: 10.0,
143
- multiplier: 1.3,
144
- retry_codes: [14, 4]
114
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
145
115
  }
146
116
 
147
117
  default_config.rpcs.delete_workload_identity_pool_provider.timeout = 60.0
148
118
  default_config.rpcs.delete_workload_identity_pool_provider.retry_policy = {
149
- initial_delay: 1.0,
150
- max_delay: 10.0,
151
- multiplier: 1.3,
152
- retry_codes: [14, 4]
119
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
153
120
  }
154
121
 
155
122
  default_config.rpcs.undelete_workload_identity_pool_provider.timeout = 60.0
156
123
  default_config.rpcs.undelete_workload_identity_pool_provider.retry_policy = {
157
- initial_delay: 1.0,
158
- max_delay: 10.0,
159
- multiplier: 1.3,
160
- retry_codes: [14, 4]
124
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4]
161
125
  }
162
126
 
163
127
  default_config
@@ -228,7 +192,7 @@ module Google
228
192
  !@config.endpoint.split(".").first.include?("-")
229
193
  credentials ||= Credentials.default scope: @config.scope,
230
194
  enable_self_signed_jwt: enable_self_signed_jwt
231
- if credentials.is_a?(String) || credentials.is_a?(Hash)
195
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
232
196
  credentials = Credentials.new credentials, scope: @config.scope
233
197
  end
234
198
  @quota_project_id = @config.quota_project
@@ -81,7 +81,7 @@ module Google
81
81
  # Create credentials
82
82
  credentials = @config.credentials
83
83
  credentials ||= Credentials.default scope: @config.scope
84
- if credentials.is_a?(String) || credentials.is_a?(Hash)
84
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
85
85
  credentials = Credentials.new credentials, scope: @config.scope
86
86
  end
87
87
  @quota_project_id = @config.quota_project
@@ -395,9 +395,9 @@ module Google
395
395
  end
396
396
 
397
397
  ##
398
- # Waits for the specified long-running operation until it is done or reaches
399
- # at most a specified timeout, returning the latest state. If the operation
400
- # is already done, the latest state is immediately returned. If the timeout
398
+ # Waits until the specified long-running operation is done or reaches at most
399
+ # a specified timeout, returning the latest state. If the operation is
400
+ # already done, the latest state is immediately returned. If the timeout
401
401
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
402
402
  # timeout is used. If the server does not support this method, it returns
403
403
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -23,6 +23,20 @@ module Google
23
23
  module WorkloadIdentityPools
24
24
  # Path helper methods for the WorkloadIdentityPools API.
25
25
  module Paths
26
+ ##
27
+ # Create a fully-qualified Project resource string.
28
+ #
29
+ # The resource will be in the following format:
30
+ #
31
+ # `projects/{project}`
32
+ #
33
+ # @param project [String]
34
+ #
35
+ # @return [::String]
36
+ def project_path project:
37
+ "projects/#{project}"
38
+ end
39
+
26
40
  ##
27
41
  # Create a fully-qualified WorkloadIdentityPool resource string.
28
42
  #
@@ -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-v1beta
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-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common