google-cloud-binary_authorization-v1beta1 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: 1a598751352a1aa2c62791d1be940c7efeb9fdf5b4b5e291e88e3919d4e288d7
4
- data.tar.gz: e6ea6e395211cc8e9ba7d9a1f9f2a8cf18c4ae126cfe723cf3012081acdbbafe
3
+ metadata.gz: adaac8ddff97203564a021f593179daf892ed954442d1fea844cb0763beb8221
4
+ data.tar.gz: 5ed710b0113450819c6858e2b7b7457343882a70fc3cf6de08530ba36aa1cc8a
5
5
  SHA512:
6
- metadata.gz: acbbff146956b340ec0ff90480b3d664672c362362593dbee868cf0e21e9d7d5156eda098beff172926a59d182c55e5c217b90902e9797c185aa10bb00e5a035
7
- data.tar.gz: 9c6494ac01fe4ef6a4fc2d386d512b8e2f76a95f229e610621b59b0e56658603b0eaf1d79b79a17af8b461885e789745cf8ca546625ccb1503c9b919931b8ca6
6
+ metadata.gz: 335cd9cccc6f403b4b9239ca109465cf2a52af1d160ec8de96cdcdda2e8a7816f93a47267f1e7282ee1cb9cd79d2f60f1aba6aae551ee1c75dba955e330cdd31
7
+ data.tar.gz: 229eb65e88652f4aad95f3174724b70b2d0131da6f39f5d319aa601b5c1a78ad78da42fe0e104dee7af223fbd4e294ceb68183a9439ed180aefc311196f7aa8f
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-binary_authorization-v1beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Credentials}):
68
68
 
69
- 1. `BINARY_AUTHORIZATION_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `BINARY_AUTHORIZATION_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
+ * `BINARY_AUTHORIZATION_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `BINARY_AUTHORIZATION_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/binary_authorization/v1beta1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementServic
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/binary_authorization/v1beta1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementServic
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/binary_authorization/v1beta1"
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/binary_authorization/v1beta1"
34
34
 
35
35
  client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::BinaryAuthorization::V1beta1::GetPolicyRequest.new # (request fields as keyword arguments...)
37
37
  response = client.get_policy request
38
38
  ```
39
39
 
@@ -73,52 +73,34 @@ module Google
73
73
 
74
74
  default_config.rpcs.get_policy.timeout = 600.0
75
75
  default_config.rpcs.get_policy.retry_policy = {
76
- initial_delay: 0.1,
77
- max_delay: 60.0,
78
- multiplier: 1.3,
79
- retry_codes: [4, 14]
76
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
80
77
  }
81
78
 
82
79
  default_config.rpcs.update_policy.timeout = 600.0
83
80
  default_config.rpcs.update_policy.retry_policy = {
84
- initial_delay: 0.1,
85
- max_delay: 60.0,
86
- multiplier: 1.3,
87
- retry_codes: [4, 14]
81
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
88
82
  }
89
83
 
90
84
  default_config.rpcs.create_attestor.timeout = 600.0
91
85
 
92
86
  default_config.rpcs.get_attestor.timeout = 600.0
93
87
  default_config.rpcs.get_attestor.retry_policy = {
94
- initial_delay: 0.1,
95
- max_delay: 60.0,
96
- multiplier: 1.3,
97
- retry_codes: [4, 14]
88
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
98
89
  }
99
90
 
100
91
  default_config.rpcs.update_attestor.timeout = 600.0
101
92
  default_config.rpcs.update_attestor.retry_policy = {
102
- initial_delay: 0.1,
103
- max_delay: 60.0,
104
- multiplier: 1.3,
105
- retry_codes: [4, 14]
93
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
106
94
  }
107
95
 
108
96
  default_config.rpcs.list_attestors.timeout = 600.0
109
97
  default_config.rpcs.list_attestors.retry_policy = {
110
- initial_delay: 0.1,
111
- max_delay: 60.0,
112
- multiplier: 1.3,
113
- retry_codes: [4, 14]
98
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
114
99
  }
115
100
 
116
101
  default_config.rpcs.delete_attestor.timeout = 600.0
117
102
  default_config.rpcs.delete_attestor.retry_policy = {
118
- initial_delay: 0.1,
119
- max_delay: 60.0,
120
- multiplier: 1.3,
121
- retry_codes: [4, 14]
103
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
122
104
  }
123
105
 
124
106
  default_config
@@ -189,7 +171,7 @@ module Google
189
171
  !@config.endpoint.split(".").first.include?("-")
190
172
  credentials ||= Credentials.default scope: @config.scope,
191
173
  enable_self_signed_jwt: enable_self_signed_jwt
192
- if credentials.is_a?(String) || credentials.is_a?(Hash)
174
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
193
175
  credentials = Credentials.new credentials, scope: @config.scope
194
176
  end
195
177
  @quota_project_id = @config.quota_project
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module BinaryAuthorization
23
23
  module V1beta1
24
- VERSION = "0.3.1"
24
+ VERSION = "0.3.2"
25
25
  end
26
26
  end
27
27
  end
@@ -36,7 +36,7 @@ module Google
36
36
  # * [Attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
37
37
  class Service
38
38
 
39
- include ::GRPC::GenericService
39
+ include GRPC::GenericService
40
40
 
41
41
  self.marshal_class_method = :encode
42
42
  self.unmarshal_class_method = :decode
@@ -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-cloud-binary_authorization-v1beta1
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