google-cloud-binary_authorization-v1 0.4.0 → 0.5.0
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 +4 -4
- data/lib/google/cloud/binary_authorization/v1/binauthz_management_service/client.rb +10 -1
- data/lib/google/cloud/binary_authorization/v1/binauthz_management_service/rest/client.rb +116 -0
- data/lib/google/cloud/binary_authorization/v1/system_policy/client.rb +10 -1
- data/lib/google/cloud/binary_authorization/v1/system_policy/rest/client.rb +16 -0
- data/lib/google/cloud/binary_authorization/v1/validation_helper/client.rb +10 -1
- data/lib/google/cloud/binary_authorization/v1/validation_helper/rest/client.rb +16 -0
- data/lib/google/cloud/binary_authorization/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1f94086500116dd1b6fe9debe45badaf5ffa59b55fe2d9cbbb2cc104e80bec7
|
4
|
+
data.tar.gz: 9ad5835ced171d73039429fa9c243a17c87c0a7dcd0b50686ca0feaab6a809b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90b59cf0b4a9d5652b6364e0794b7d8a0a6fa8a9f67f686206edc2a52551e61edf40995cf894de5d62d02cc2bd300573d00feeb11b9463c38d42c5c456bdb7d0
|
7
|
+
data.tar.gz: bfb1f8e21c89a53dfcb0c41a05c93750bfdb5f13bcbbba02fc4ee7217aa883153e958a8e0fdf63f49697e3d0e57dd8d6a85ef7e95c515a832b200c648fb3a6ea
|
@@ -176,7 +176,8 @@ module Google
|
|
176
176
|
credentials: credentials,
|
177
177
|
endpoint: @config.endpoint,
|
178
178
|
channel_args: @config.channel_args,
|
179
|
-
interceptors: @config.interceptors
|
179
|
+
interceptors: @config.interceptors,
|
180
|
+
channel_pool_config: @config.channel_pool
|
180
181
|
)
|
181
182
|
end
|
182
183
|
|
@@ -939,6 +940,14 @@ module Google
|
|
939
940
|
end
|
940
941
|
end
|
941
942
|
|
943
|
+
##
|
944
|
+
# Configuration for the channel pool
|
945
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
946
|
+
#
|
947
|
+
def channel_pool
|
948
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
949
|
+
end
|
950
|
+
|
942
951
|
##
|
943
952
|
# Configuration RPC class for the BinauthzManagementService API.
|
944
953
|
#
|
@@ -207,6 +207,22 @@ module Google
|
|
207
207
|
# @return [::Google::Cloud::BinaryAuthorization::V1::Policy]
|
208
208
|
#
|
209
209
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
210
|
+
#
|
211
|
+
# @example Basic example
|
212
|
+
# require "google/cloud/binary_authorization/v1"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::BinaryAuthorization::V1::BinauthzManagementService::Rest::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::BinaryAuthorization::V1::GetPolicyRequest.new
|
219
|
+
#
|
220
|
+
# # Call the get_policy method.
|
221
|
+
# result = client.get_policy request
|
222
|
+
#
|
223
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1::Policy.
|
224
|
+
# p result
|
225
|
+
#
|
210
226
|
def get_policy request, options = nil
|
211
227
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
228
|
|
@@ -275,6 +291,22 @@ module Google
|
|
275
291
|
# @return [::Google::Cloud::BinaryAuthorization::V1::Policy]
|
276
292
|
#
|
277
293
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
294
|
+
#
|
295
|
+
# @example Basic example
|
296
|
+
# require "google/cloud/binary_authorization/v1"
|
297
|
+
#
|
298
|
+
# # Create a client object. The client can be reused for multiple calls.
|
299
|
+
# client = Google::Cloud::BinaryAuthorization::V1::BinauthzManagementService::Rest::Client.new
|
300
|
+
#
|
301
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
302
|
+
# request = Google::Cloud::BinaryAuthorization::V1::UpdatePolicyRequest.new
|
303
|
+
#
|
304
|
+
# # Call the update_policy method.
|
305
|
+
# result = client.update_policy request
|
306
|
+
#
|
307
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1::Policy.
|
308
|
+
# p result
|
309
|
+
#
|
278
310
|
def update_policy request, options = nil
|
279
311
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
280
312
|
|
@@ -346,6 +378,22 @@ module Google
|
|
346
378
|
# @return [::Google::Cloud::BinaryAuthorization::V1::Attestor]
|
347
379
|
#
|
348
380
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
381
|
+
#
|
382
|
+
# @example Basic example
|
383
|
+
# require "google/cloud/binary_authorization/v1"
|
384
|
+
#
|
385
|
+
# # Create a client object. The client can be reused for multiple calls.
|
386
|
+
# client = Google::Cloud::BinaryAuthorization::V1::BinauthzManagementService::Rest::Client.new
|
387
|
+
#
|
388
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
389
|
+
# request = Google::Cloud::BinaryAuthorization::V1::CreateAttestorRequest.new
|
390
|
+
#
|
391
|
+
# # Call the create_attestor method.
|
392
|
+
# result = client.create_attestor request
|
393
|
+
#
|
394
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1::Attestor.
|
395
|
+
# p result
|
396
|
+
#
|
349
397
|
def create_attestor request, options = nil
|
350
398
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
351
399
|
|
@@ -410,6 +458,22 @@ module Google
|
|
410
458
|
# @return [::Google::Cloud::BinaryAuthorization::V1::Attestor]
|
411
459
|
#
|
412
460
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
461
|
+
#
|
462
|
+
# @example Basic example
|
463
|
+
# require "google/cloud/binary_authorization/v1"
|
464
|
+
#
|
465
|
+
# # Create a client object. The client can be reused for multiple calls.
|
466
|
+
# client = Google::Cloud::BinaryAuthorization::V1::BinauthzManagementService::Rest::Client.new
|
467
|
+
#
|
468
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
469
|
+
# request = Google::Cloud::BinaryAuthorization::V1::GetAttestorRequest.new
|
470
|
+
#
|
471
|
+
# # Call the get_attestor method.
|
472
|
+
# result = client.get_attestor request
|
473
|
+
#
|
474
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1::Attestor.
|
475
|
+
# p result
|
476
|
+
#
|
413
477
|
def get_attestor request, options = nil
|
414
478
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
415
479
|
|
@@ -475,6 +539,22 @@ module Google
|
|
475
539
|
# @return [::Google::Cloud::BinaryAuthorization::V1::Attestor]
|
476
540
|
#
|
477
541
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
542
|
+
#
|
543
|
+
# @example Basic example
|
544
|
+
# require "google/cloud/binary_authorization/v1"
|
545
|
+
#
|
546
|
+
# # Create a client object. The client can be reused for multiple calls.
|
547
|
+
# client = Google::Cloud::BinaryAuthorization::V1::BinauthzManagementService::Rest::Client.new
|
548
|
+
#
|
549
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
550
|
+
# request = Google::Cloud::BinaryAuthorization::V1::UpdateAttestorRequest.new
|
551
|
+
#
|
552
|
+
# # Call the update_attestor method.
|
553
|
+
# result = client.update_attestor request
|
554
|
+
#
|
555
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1::Attestor.
|
556
|
+
# p result
|
557
|
+
#
|
478
558
|
def update_attestor request, options = nil
|
479
559
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
480
560
|
|
@@ -546,6 +626,26 @@ module Google
|
|
546
626
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BinaryAuthorization::V1::Attestor>]
|
547
627
|
#
|
548
628
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
629
|
+
#
|
630
|
+
# @example Basic example
|
631
|
+
# require "google/cloud/binary_authorization/v1"
|
632
|
+
#
|
633
|
+
# # Create a client object. The client can be reused for multiple calls.
|
634
|
+
# client = Google::Cloud::BinaryAuthorization::V1::BinauthzManagementService::Rest::Client.new
|
635
|
+
#
|
636
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
637
|
+
# request = Google::Cloud::BinaryAuthorization::V1::ListAttestorsRequest.new
|
638
|
+
#
|
639
|
+
# # Call the list_attestors method.
|
640
|
+
# result = client.list_attestors request
|
641
|
+
#
|
642
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
643
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
644
|
+
# result.each do |item|
|
645
|
+
# # Each element is of type ::Google::Cloud::BinaryAuthorization::V1::Attestor.
|
646
|
+
# p item
|
647
|
+
# end
|
648
|
+
#
|
549
649
|
def list_attestors request, options = nil
|
550
650
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
551
651
|
|
@@ -611,6 +711,22 @@ module Google
|
|
611
711
|
# @return [::Google::Protobuf::Empty]
|
612
712
|
#
|
613
713
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
714
|
+
#
|
715
|
+
# @example Basic example
|
716
|
+
# require "google/cloud/binary_authorization/v1"
|
717
|
+
#
|
718
|
+
# # Create a client object. The client can be reused for multiple calls.
|
719
|
+
# client = Google::Cloud::BinaryAuthorization::V1::BinauthzManagementService::Rest::Client.new
|
720
|
+
#
|
721
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
722
|
+
# request = Google::Cloud::BinaryAuthorization::V1::DeleteAttestorRequest.new
|
723
|
+
#
|
724
|
+
# # Call the delete_attestor method.
|
725
|
+
# result = client.delete_attestor request
|
726
|
+
#
|
727
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
728
|
+
# p result
|
729
|
+
#
|
614
730
|
def delete_attestor request, options = nil
|
615
731
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
616
732
|
|
@@ -138,7 +138,8 @@ module Google
|
|
138
138
|
credentials: credentials,
|
139
139
|
endpoint: @config.endpoint,
|
140
140
|
channel_args: @config.channel_args,
|
141
|
-
interceptors: @config.interceptors
|
141
|
+
interceptors: @config.interceptors,
|
142
|
+
channel_pool_config: @config.channel_pool
|
142
143
|
)
|
143
144
|
end
|
144
145
|
|
@@ -349,6 +350,14 @@ module Google
|
|
349
350
|
end
|
350
351
|
end
|
351
352
|
|
353
|
+
##
|
354
|
+
# Configuration for the channel pool
|
355
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
356
|
+
#
|
357
|
+
def channel_pool
|
358
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
359
|
+
end
|
360
|
+
|
352
361
|
##
|
353
362
|
# Configuration RPC class for the SystemPolicy API.
|
354
363
|
#
|
@@ -163,6 +163,22 @@ module Google
|
|
163
163
|
# @return [::Google::Cloud::BinaryAuthorization::V1::Policy]
|
164
164
|
#
|
165
165
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
166
|
+
#
|
167
|
+
# @example Basic example
|
168
|
+
# require "google/cloud/binary_authorization/v1"
|
169
|
+
#
|
170
|
+
# # Create a client object. The client can be reused for multiple calls.
|
171
|
+
# client = Google::Cloud::BinaryAuthorization::V1::SystemPolicy::Rest::Client.new
|
172
|
+
#
|
173
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
174
|
+
# request = Google::Cloud::BinaryAuthorization::V1::GetSystemPolicyRequest.new
|
175
|
+
#
|
176
|
+
# # Call the get_system_policy method.
|
177
|
+
# result = client.get_system_policy request
|
178
|
+
#
|
179
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1::Policy.
|
180
|
+
# p result
|
181
|
+
#
|
166
182
|
def get_system_policy request, options = nil
|
167
183
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
168
184
|
|
@@ -136,7 +136,8 @@ module Google
|
|
136
136
|
credentials: credentials,
|
137
137
|
endpoint: @config.endpoint,
|
138
138
|
channel_args: @config.channel_args,
|
139
|
-
interceptors: @config.interceptors
|
139
|
+
interceptors: @config.interceptors,
|
140
|
+
channel_pool_config: @config.channel_pool
|
140
141
|
)
|
141
142
|
end
|
142
143
|
|
@@ -360,6 +361,14 @@ module Google
|
|
360
361
|
end
|
361
362
|
end
|
362
363
|
|
364
|
+
##
|
365
|
+
# Configuration for the channel pool
|
366
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
367
|
+
#
|
368
|
+
def channel_pool
|
369
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
370
|
+
end
|
371
|
+
|
363
372
|
##
|
364
373
|
# Configuration RPC class for the ValidationHelper API.
|
365
374
|
#
|
@@ -174,6 +174,22 @@ module Google
|
|
174
174
|
# @return [::Google::Cloud::BinaryAuthorization::V1::ValidateAttestationOccurrenceResponse]
|
175
175
|
#
|
176
176
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
177
|
+
#
|
178
|
+
# @example Basic example
|
179
|
+
# require "google/cloud/binary_authorization/v1"
|
180
|
+
#
|
181
|
+
# # Create a client object. The client can be reused for multiple calls.
|
182
|
+
# client = Google::Cloud::BinaryAuthorization::V1::ValidationHelper::Rest::Client.new
|
183
|
+
#
|
184
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
185
|
+
# request = Google::Cloud::BinaryAuthorization::V1::ValidateAttestationOccurrenceRequest.new
|
186
|
+
#
|
187
|
+
# # Call the validate_attestation_occurrence method.
|
188
|
+
# result = client.validate_attestation_occurrence request
|
189
|
+
#
|
190
|
+
# # The returned object is of type Google::Cloud::BinaryAuthorization::V1::ValidateAttestationOccurrenceResponse.
|
191
|
+
# p result
|
192
|
+
#
|
177
193
|
def validate_attestation_occurrence request, options = nil
|
178
194
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
179
195
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-binary_authorization-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 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.20.0
|
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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
- !ruby/object:Gem::Version
|
249
249
|
version: '0'
|
250
250
|
requirements: []
|
251
|
-
rubygems_version: 3.4.
|
251
|
+
rubygems_version: 3.4.19
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: The management interface for Binary Authorization, a system providing policy
|