google-cloud-binary_authorization-v1beta1 0.3.1 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/client.rb +203 -89
- data/lib/google/cloud/binary_authorization/v1beta1/version.rb +1 -1
- data/lib/google/cloud/binaryauthorization/v1beta1/continuous_validation_logging_pb.rb +1 -1
- data/lib/google/cloud/binaryauthorization/v1beta1/resources_pb.rb +2 -2
- data/lib/google/cloud/binaryauthorization/v1beta1/service_pb.rb +2 -2
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/binaryauthorization/v1beta1/resources.rb +2 -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: a4268729806a969f86092e8f77a4f6c55184cafd6ff11c0394ceffbb431a27c7
|
4
|
+
data.tar.gz: 42f9772ebc6c51edebc9f1f8cc1f8a9d04958979fb5241fc01fd6d702215a1d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 486886c2dbc55d981bd34a92224671967e1c00ef0d6fe87d9cd55b1f287939e1f233d70df746e1c29d11804535463f7bd63cc93476454862d3e68c40a83cf9e5
|
7
|
+
data.tar.gz: d1691b4c6a13cd6b2fbff7948b5919aa14caa20885471932f1bb687b17fe4609d4c59cc00573802536e6a4ded185fa4d8459438edf73d020957d75baf373e8a5
|
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
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
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
|
86
|
-
environment
|
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
|
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 =
|
36
|
+
request = ::Google::Cloud::BinaryAuthorization::V1beta1::GetPolicyRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.get_policy request
|
38
38
|
```
|
39
39
|
|
@@ -47,13 +47,12 @@ module Google
|
|
47
47
|
# See {::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client::Configuration}
|
48
48
|
# for a description of the configuration fields.
|
49
49
|
#
|
50
|
-
#
|
50
|
+
# @example
|
51
51
|
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
# end
|
52
|
+
# # Modify the configuration for all BinauthzManagementService clients
|
53
|
+
# ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.configure do |config|
|
54
|
+
# config.timeout = 10.0
|
55
|
+
# end
|
57
56
|
#
|
58
57
|
# @yield [config] Configure the Client client.
|
59
58
|
# @yieldparam config [Client::Configuration]
|
@@ -73,52 +72,34 @@ module Google
|
|
73
72
|
|
74
73
|
default_config.rpcs.get_policy.timeout = 600.0
|
75
74
|
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]
|
75
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
80
76
|
}
|
81
77
|
|
82
78
|
default_config.rpcs.update_policy.timeout = 600.0
|
83
79
|
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]
|
80
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
88
81
|
}
|
89
82
|
|
90
83
|
default_config.rpcs.create_attestor.timeout = 600.0
|
91
84
|
|
92
85
|
default_config.rpcs.get_attestor.timeout = 600.0
|
93
86
|
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]
|
87
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
98
88
|
}
|
99
89
|
|
100
90
|
default_config.rpcs.update_attestor.timeout = 600.0
|
101
91
|
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]
|
92
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
106
93
|
}
|
107
94
|
|
108
95
|
default_config.rpcs.list_attestors.timeout = 600.0
|
109
96
|
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]
|
97
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
114
98
|
}
|
115
99
|
|
116
100
|
default_config.rpcs.delete_attestor.timeout = 600.0
|
117
101
|
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]
|
102
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
122
103
|
}
|
123
104
|
|
124
105
|
default_config
|
@@ -150,19 +131,15 @@ module Google
|
|
150
131
|
##
|
151
132
|
# Create a new BinauthzManagementService client object.
|
152
133
|
#
|
153
|
-
#
|
154
|
-
#
|
155
|
-
# To create a new BinauthzManagementService client with the default
|
156
|
-
# configuration:
|
134
|
+
# @example
|
157
135
|
#
|
158
|
-
#
|
136
|
+
# # Create a client using the default configuration
|
137
|
+
# client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
|
159
138
|
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
#
|
163
|
-
#
|
164
|
-
# config.timeout = 10.0
|
165
|
-
# end
|
139
|
+
# # Create a client using a custom configuration
|
140
|
+
# client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new do |config|
|
141
|
+
# config.timeout = 10.0
|
142
|
+
# end
|
166
143
|
#
|
167
144
|
# @yield [config] Configure the BinauthzManagementService client.
|
168
145
|
# @yieldparam config [Client::Configuration]
|
@@ -182,14 +159,13 @@ module Google
|
|
182
159
|
|
183
160
|
# Create credentials
|
184
161
|
credentials = @config.credentials
|
185
|
-
# Use self-signed JWT if the
|
162
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
186
163
|
# but only if the default endpoint does not have a region prefix.
|
187
|
-
enable_self_signed_jwt = @config.
|
188
|
-
@config.endpoint == Client.configure.endpoint &&
|
164
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
189
165
|
!@config.endpoint.split(".").first.include?("-")
|
190
166
|
credentials ||= Credentials.default scope: @config.scope,
|
191
167
|
enable_self_signed_jwt: enable_self_signed_jwt
|
192
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
168
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
193
169
|
credentials = Credentials.new credentials, scope: @config.scope
|
194
170
|
end
|
195
171
|
@quota_project_id = @config.quota_project
|
@@ -246,6 +222,21 @@ module Google
|
|
246
222
|
#
|
247
223
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
248
224
|
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/cloud/binary_authorization/v1beta1"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::GetPolicyRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_policy method.
|
235
|
+
# result = client.get_policy request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1beta1::Policy.
|
238
|
+
# p result
|
239
|
+
#
|
249
240
|
def get_policy request, options = nil
|
250
241
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
251
242
|
|
@@ -263,16 +254,20 @@ module Google
|
|
263
254
|
gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
|
264
255
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
265
256
|
|
266
|
-
header_params = {
|
267
|
-
|
268
|
-
|
257
|
+
header_params = {}
|
258
|
+
if request.name
|
259
|
+
header_params["name"] = request.name
|
260
|
+
end
|
261
|
+
|
269
262
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
270
263
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
271
264
|
|
272
265
|
options.apply_defaults timeout: @config.rpcs.get_policy.timeout,
|
273
266
|
metadata: metadata,
|
274
267
|
retry_policy: @config.rpcs.get_policy.retry_policy
|
275
|
-
|
268
|
+
|
269
|
+
options.apply_defaults timeout: @config.timeout,
|
270
|
+
metadata: @config.metadata,
|
276
271
|
retry_policy: @config.retry_policy
|
277
272
|
|
278
273
|
@binauthz_management_service_stub.call_rpc :get_policy, request, options: options do |response, operation|
|
@@ -322,6 +317,21 @@ module Google
|
|
322
317
|
#
|
323
318
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
324
319
|
#
|
320
|
+
# @example Basic example
|
321
|
+
# require "google/cloud/binary_authorization/v1beta1"
|
322
|
+
#
|
323
|
+
# # Create a client object. The client can be reused for multiple calls.
|
324
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
|
325
|
+
#
|
326
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
327
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::UpdatePolicyRequest.new
|
328
|
+
#
|
329
|
+
# # Call the update_policy method.
|
330
|
+
# result = client.update_policy request
|
331
|
+
#
|
332
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1beta1::Policy.
|
333
|
+
# p result
|
334
|
+
#
|
325
335
|
def update_policy request, options = nil
|
326
336
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
327
337
|
|
@@ -339,16 +349,20 @@ module Google
|
|
339
349
|
gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
|
340
350
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
341
351
|
|
342
|
-
header_params = {
|
343
|
-
|
344
|
-
|
352
|
+
header_params = {}
|
353
|
+
if request.policy&.name
|
354
|
+
header_params["policy.name"] = request.policy.name
|
355
|
+
end
|
356
|
+
|
345
357
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
346
358
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
347
359
|
|
348
360
|
options.apply_defaults timeout: @config.rpcs.update_policy.timeout,
|
349
361
|
metadata: metadata,
|
350
362
|
retry_policy: @config.rpcs.update_policy.retry_policy
|
351
|
-
|
363
|
+
|
364
|
+
options.apply_defaults timeout: @config.timeout,
|
365
|
+
metadata: @config.metadata,
|
352
366
|
retry_policy: @config.retry_policy
|
353
367
|
|
354
368
|
@binauthz_management_service_stub.call_rpc :update_policy, request, options: options do |response, operation|
|
@@ -404,6 +418,21 @@ module Google
|
|
404
418
|
#
|
405
419
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
406
420
|
#
|
421
|
+
# @example Basic example
|
422
|
+
# require "google/cloud/binary_authorization/v1beta1"
|
423
|
+
#
|
424
|
+
# # Create a client object. The client can be reused for multiple calls.
|
425
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
|
426
|
+
#
|
427
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
428
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::CreateAttestorRequest.new
|
429
|
+
#
|
430
|
+
# # Call the create_attestor method.
|
431
|
+
# result = client.create_attestor request
|
432
|
+
#
|
433
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1beta1::Attestor.
|
434
|
+
# p result
|
435
|
+
#
|
407
436
|
def create_attestor request, options = nil
|
408
437
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
409
438
|
|
@@ -421,16 +450,20 @@ module Google
|
|
421
450
|
gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
|
422
451
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
423
452
|
|
424
|
-
header_params = {
|
425
|
-
|
426
|
-
|
453
|
+
header_params = {}
|
454
|
+
if request.parent
|
455
|
+
header_params["parent"] = request.parent
|
456
|
+
end
|
457
|
+
|
427
458
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
428
459
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
429
460
|
|
430
461
|
options.apply_defaults timeout: @config.rpcs.create_attestor.timeout,
|
431
462
|
metadata: metadata,
|
432
463
|
retry_policy: @config.rpcs.create_attestor.retry_policy
|
433
|
-
|
464
|
+
|
465
|
+
options.apply_defaults timeout: @config.timeout,
|
466
|
+
metadata: @config.metadata,
|
434
467
|
retry_policy: @config.retry_policy
|
435
468
|
|
436
469
|
@binauthz_management_service_stub.call_rpc :create_attestor, request, options: options do |response, operation|
|
@@ -475,6 +508,21 @@ module Google
|
|
475
508
|
#
|
476
509
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
477
510
|
#
|
511
|
+
# @example Basic example
|
512
|
+
# require "google/cloud/binary_authorization/v1beta1"
|
513
|
+
#
|
514
|
+
# # Create a client object. The client can be reused for multiple calls.
|
515
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
|
516
|
+
#
|
517
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
518
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::GetAttestorRequest.new
|
519
|
+
#
|
520
|
+
# # Call the get_attestor method.
|
521
|
+
# result = client.get_attestor request
|
522
|
+
#
|
523
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1beta1::Attestor.
|
524
|
+
# p result
|
525
|
+
#
|
478
526
|
def get_attestor request, options = nil
|
479
527
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
480
528
|
|
@@ -492,16 +540,20 @@ module Google
|
|
492
540
|
gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
|
493
541
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
494
542
|
|
495
|
-
header_params = {
|
496
|
-
|
497
|
-
|
543
|
+
header_params = {}
|
544
|
+
if request.name
|
545
|
+
header_params["name"] = request.name
|
546
|
+
end
|
547
|
+
|
498
548
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
499
549
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
500
550
|
|
501
551
|
options.apply_defaults timeout: @config.rpcs.get_attestor.timeout,
|
502
552
|
metadata: metadata,
|
503
553
|
retry_policy: @config.rpcs.get_attestor.retry_policy
|
504
|
-
|
554
|
+
|
555
|
+
options.apply_defaults timeout: @config.timeout,
|
556
|
+
metadata: @config.metadata,
|
505
557
|
retry_policy: @config.retry_policy
|
506
558
|
|
507
559
|
@binauthz_management_service_stub.call_rpc :get_attestor, request, options: options do |response, operation|
|
@@ -549,6 +601,21 @@ module Google
|
|
549
601
|
#
|
550
602
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
551
603
|
#
|
604
|
+
# @example Basic example
|
605
|
+
# require "google/cloud/binary_authorization/v1beta1"
|
606
|
+
#
|
607
|
+
# # Create a client object. The client can be reused for multiple calls.
|
608
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
|
609
|
+
#
|
610
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
611
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::UpdateAttestorRequest.new
|
612
|
+
#
|
613
|
+
# # Call the update_attestor method.
|
614
|
+
# result = client.update_attestor request
|
615
|
+
#
|
616
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1beta1::Attestor.
|
617
|
+
# p result
|
618
|
+
#
|
552
619
|
def update_attestor request, options = nil
|
553
620
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
554
621
|
|
@@ -566,16 +633,20 @@ module Google
|
|
566
633
|
gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
|
567
634
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
568
635
|
|
569
|
-
header_params = {
|
570
|
-
|
571
|
-
|
636
|
+
header_params = {}
|
637
|
+
if request.attestor&.name
|
638
|
+
header_params["attestor.name"] = request.attestor.name
|
639
|
+
end
|
640
|
+
|
572
641
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
573
642
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
574
643
|
|
575
644
|
options.apply_defaults timeout: @config.rpcs.update_attestor.timeout,
|
576
645
|
metadata: metadata,
|
577
646
|
retry_policy: @config.rpcs.update_attestor.retry_policy
|
578
|
-
|
647
|
+
|
648
|
+
options.apply_defaults timeout: @config.timeout,
|
649
|
+
metadata: @config.metadata,
|
579
650
|
retry_policy: @config.retry_policy
|
580
651
|
|
581
652
|
@binauthz_management_service_stub.call_rpc :update_attestor, request, options: options do |response, operation|
|
@@ -626,6 +697,27 @@ module Google
|
|
626
697
|
#
|
627
698
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
628
699
|
#
|
700
|
+
# @example Basic example
|
701
|
+
# require "google/cloud/binary_authorization/v1beta1"
|
702
|
+
#
|
703
|
+
# # Create a client object. The client can be reused for multiple calls.
|
704
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
|
705
|
+
#
|
706
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
707
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::ListAttestorsRequest.new
|
708
|
+
#
|
709
|
+
# # Call the list_attestors method.
|
710
|
+
# result = client.list_attestors request
|
711
|
+
#
|
712
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
713
|
+
# # iterate over all elements by calling #each, and the enumerable
|
714
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
715
|
+
# # methods are also available for managing paging directly.
|
716
|
+
# result.each do |response|
|
717
|
+
# # Each element is of type ::Google::Cloud::BinaryAuthorization::V1beta1::Attestor.
|
718
|
+
# p response
|
719
|
+
# end
|
720
|
+
#
|
629
721
|
def list_attestors request, options = nil
|
630
722
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
631
723
|
|
@@ -643,16 +735,20 @@ module Google
|
|
643
735
|
gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
|
644
736
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
645
737
|
|
646
|
-
header_params = {
|
647
|
-
|
648
|
-
|
738
|
+
header_params = {}
|
739
|
+
if request.parent
|
740
|
+
header_params["parent"] = request.parent
|
741
|
+
end
|
742
|
+
|
649
743
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
650
744
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
651
745
|
|
652
746
|
options.apply_defaults timeout: @config.rpcs.list_attestors.timeout,
|
653
747
|
metadata: metadata,
|
654
748
|
retry_policy: @config.rpcs.list_attestors.retry_policy
|
655
|
-
|
749
|
+
|
750
|
+
options.apply_defaults timeout: @config.timeout,
|
751
|
+
metadata: @config.metadata,
|
656
752
|
retry_policy: @config.retry_policy
|
657
753
|
|
658
754
|
@binauthz_management_service_stub.call_rpc :list_attestors, request, options: options do |response, operation|
|
@@ -698,6 +794,21 @@ module Google
|
|
698
794
|
#
|
699
795
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
700
796
|
#
|
797
|
+
# @example Basic example
|
798
|
+
# require "google/cloud/binary_authorization/v1beta1"
|
799
|
+
#
|
800
|
+
# # Create a client object. The client can be reused for multiple calls.
|
801
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new
|
802
|
+
#
|
803
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
804
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::DeleteAttestorRequest.new
|
805
|
+
#
|
806
|
+
# # Call the delete_attestor method.
|
807
|
+
# result = client.delete_attestor request
|
808
|
+
#
|
809
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
810
|
+
# p result
|
811
|
+
#
|
701
812
|
def delete_attestor request, options = nil
|
702
813
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
703
814
|
|
@@ -715,16 +826,20 @@ module Google
|
|
715
826
|
gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
|
716
827
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
717
828
|
|
718
|
-
header_params = {
|
719
|
-
|
720
|
-
|
829
|
+
header_params = {}
|
830
|
+
if request.name
|
831
|
+
header_params["name"] = request.name
|
832
|
+
end
|
833
|
+
|
721
834
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
722
835
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
723
836
|
|
724
837
|
options.apply_defaults timeout: @config.rpcs.delete_attestor.timeout,
|
725
838
|
metadata: metadata,
|
726
839
|
retry_policy: @config.rpcs.delete_attestor.retry_policy
|
727
|
-
|
840
|
+
|
841
|
+
options.apply_defaults timeout: @config.timeout,
|
842
|
+
metadata: @config.metadata,
|
728
843
|
retry_policy: @config.retry_policy
|
729
844
|
|
730
845
|
@binauthz_management_service_stub.call_rpc :delete_attestor, request, options: options do |response, operation|
|
@@ -748,22 +863,21 @@ module Google
|
|
748
863
|
# Configuration can be applied globally to all clients, or to a single client
|
749
864
|
# on construction.
|
750
865
|
#
|
751
|
-
#
|
752
|
-
#
|
753
|
-
#
|
754
|
-
# to 20 seconds,
|
755
|
-
#
|
756
|
-
#
|
757
|
-
#
|
758
|
-
#
|
759
|
-
#
|
760
|
-
#
|
761
|
-
#
|
762
|
-
#
|
763
|
-
#
|
764
|
-
#
|
765
|
-
#
|
766
|
-
# end
|
866
|
+
# @example
|
867
|
+
#
|
868
|
+
# # Modify the global config, setting the timeout for
|
869
|
+
# # get_policy to 20 seconds,
|
870
|
+
# # and all remaining timeouts to 10 seconds.
|
871
|
+
# ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.configure do |config|
|
872
|
+
# config.timeout = 10.0
|
873
|
+
# config.rpcs.get_policy.timeout = 20.0
|
874
|
+
# end
|
875
|
+
#
|
876
|
+
# # Apply the above configuration only to a new client.
|
877
|
+
# client = ::Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Client.new do |config|
|
878
|
+
# config.timeout = 10.0
|
879
|
+
# config.rpcs.get_policy.timeout = 20.0
|
880
|
+
# end
|
767
881
|
#
|
768
882
|
# @!attribute [rw] endpoint
|
769
883
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto
|
3
3
|
|
4
|
+
require 'google/protobuf/timestamp_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/protobuf/timestamp_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/binaryauthorization/v1beta1/continuous_validation_logging.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.binaryauthorization.v1beta1.ContinuousValidationEvent" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/binaryauthorization/v1beta1/resources.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/field_behavior_pb'
|
8
6
|
require 'google/api/resource_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/binaryauthorization/v1beta1/resources.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.binaryauthorization.v1beta1.Policy" do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/binaryauthorization/v1beta1/service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
10
8
|
require 'google/cloud/binaryauthorization/v1beta1/resources_pb'
|
11
9
|
require 'google/protobuf/empty_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/binaryauthorization/v1beta1/service.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.binaryauthorization.v1beta1.GetPolicyRequest" do
|
@@ -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
|
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
|
@@ -74,10 +74,10 @@ module Google
|
|
74
74
|
# Not specified: DISABLE is assumed.
|
75
75
|
GLOBAL_POLICY_EVALUATION_MODE_UNSPECIFIED = 0
|
76
76
|
|
77
|
-
# Enables
|
77
|
+
# Enables system policy evaluation.
|
78
78
|
ENABLE = 1
|
79
79
|
|
80
|
-
# Disables
|
80
|
+
# Disables system policy evaluation.
|
81
81
|
DISABLE = 2
|
82
82
|
end
|
83
83
|
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.
|
4
|
+
version: 0.3.5
|
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-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|