google-cloud-binary_authorization-v1beta1 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/client.rb +10 -1
- data/lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/rest/client.rb +116 -0
- data/lib/google/cloud/binary_authorization/v1beta1/system_policy/client.rb +10 -1
- data/lib/google/cloud/binary_authorization/v1beta1/system_policy/rest/client.rb +16 -0
- data/lib/google/cloud/binary_authorization/v1beta1/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: 7af7f63ffc6f3f76f89a4dacab34d9357dce8ef4314959fca90ef4904923f7c0
|
4
|
+
data.tar.gz: 5bc338d7e9d55c3db14ae54b97a1e56329fb94525f83e46aea33162b39c984fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85252cbc701bcb877e7159b23a8d6374e5d8312feb302d0f604767643c6be7edcf0ed7f2bd1ed893ebcdd1daebd8e43ced51ab45b78b88efea0b222909a4a3fe
|
7
|
+
data.tar.gz: 9be75b9662aca483a156accc931b4573e6d1eda06ad7ce08b692b0ca8383afc53a692537f423645f113f9b830276eb4bc29339ab1dab3ef508d3cca9490d08b5
|
@@ -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
|
#
|
data/lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/rest/client.rb
CHANGED
@@ -207,6 +207,22 @@ module Google
|
|
207
207
|
# @return [::Google::Cloud::BinaryAuthorization::V1beta1::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/v1beta1"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Rest::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::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::V1beta1::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::V1beta1::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/v1beta1"
|
297
|
+
#
|
298
|
+
# # Create a client object. The client can be reused for multiple calls.
|
299
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Rest::Client.new
|
300
|
+
#
|
301
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
302
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::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::V1beta1::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::V1beta1::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/v1beta1"
|
384
|
+
#
|
385
|
+
# # Create a client object. The client can be reused for multiple calls.
|
386
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Rest::Client.new
|
387
|
+
#
|
388
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
389
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::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::V1beta1::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::V1beta1::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/v1beta1"
|
464
|
+
#
|
465
|
+
# # Create a client object. The client can be reused for multiple calls.
|
466
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Rest::Client.new
|
467
|
+
#
|
468
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
469
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::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::V1beta1::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::V1beta1::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/v1beta1"
|
545
|
+
#
|
546
|
+
# # Create a client object. The client can be reused for multiple calls.
|
547
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Rest::Client.new
|
548
|
+
#
|
549
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
550
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::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::V1beta1::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::V1beta1::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/v1beta1"
|
632
|
+
#
|
633
|
+
# # Create a client object. The client can be reused for multiple calls.
|
634
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Rest::Client.new
|
635
|
+
#
|
636
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
637
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::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::V1beta1::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/v1beta1"
|
717
|
+
#
|
718
|
+
# # Create a client object. The client can be reused for multiple calls.
|
719
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Rest::Client.new
|
720
|
+
#
|
721
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
722
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::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::V1beta1::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/v1beta1"
|
169
|
+
#
|
170
|
+
# # Create a client object. The client can be reused for multiple calls.
|
171
|
+
# client = Google::Cloud::BinaryAuthorization::V1beta1::SystemPolicy::Rest::Client.new
|
172
|
+
#
|
173
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
174
|
+
# request = Google::Cloud::BinaryAuthorization::V1beta1::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::V1beta1::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
|
|
@@ -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-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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
|
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
- !ruby/object:Gem::Version
|
224
224
|
version: '0'
|
225
225
|
requirements: []
|
226
|
-
rubygems_version: 3.4.
|
226
|
+
rubygems_version: 3.4.19
|
227
227
|
signing_key:
|
228
228
|
specification_version: 4
|
229
229
|
summary: The management interface for Binary Authorization, a system providing policy
|