google-cloud-binary_authorization-v1beta1 0.18.0 → 0.20.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/README.md +2 -2
- data/lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/client.rb +83 -37
- data/lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/rest/client.rb +91 -37
- data/lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/rest.rb +1 -0
- data/lib/google/cloud/binary_authorization/v1beta1/bindings_override.rb +110 -0
- data/lib/google/cloud/binary_authorization/v1beta1/rest.rb +1 -0
- data/lib/google/cloud/binary_authorization/v1beta1/system_policy/client.rb +18 -0
- data/lib/google/cloud/binary_authorization/v1beta1/system_policy/rest/client.rb +26 -0
- data/lib/google/cloud/binary_authorization/v1beta1/system_policy/rest.rb +1 -0
- data/lib/google/cloud/binary_authorization/v1beta1/version.rb +1 -1
- data/lib/google/cloud/binaryauthorization/v1beta1/resources_pb.rb +1 -1
- data/lib/google/cloud/binaryauthorization/v1beta1/service_pb.rb +1 -1
- data/lib/google/cloud/binaryauthorization/v1beta1/service_services_pb.rb +31 -17
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/binaryauthorization/v1beta1/resources.rb +51 -24
- data/proto_docs/google/cloud/binaryauthorization/v1beta1/service.rb +37 -22
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +23 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 768546790de0b4b80240d30f78d010315e7150a1c182ecd77c84c305d70508ab
|
|
4
|
+
data.tar.gz: e81a0335f0941fb190ab8b9a26fa66073455269d63cfceedbe7f15babbc2d75e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a790925dd9490e8d379f4a764fd197a5e33030472106d4e2e2daacecb98b5474d85c7b3dae0ccb20e7dc621fb19cdb82a621a70cb4393054beab9727d0570294
|
|
7
|
+
data.tar.gz: 7dc0277e5cb731abd8f33aafd1ceae5b57362347c86b70bd5f873c77ce64dc4856315bd0a275fa591284be0da2a2d3a01aeeeff0eefb16b3c5894497a3125df1
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Ruby Client for the Binary Authorization V1beta1 API
|
|
2
2
|
|
|
3
|
-
The management interface for Binary Authorization, a
|
|
3
|
+
The management interface for Binary Authorization, a service that provides policy-based deployment validation and control for images deployed to Google Kubernetes Engine (GKE), Anthos Service Mesh, Anthos Clusters, and Cloud Run.
|
|
4
4
|
|
|
5
5
|
Binary Authorization is a service on Google Cloud that provides centralized software supply-chain security for applications that run on Google Kubernetes Engine (GKE) and GKE on-prem.
|
|
6
6
|
|
|
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
86
86
|
|
|
87
87
|
## Supported Ruby Versions
|
|
88
88
|
|
|
89
|
-
This library is supported on Ruby 3.
|
|
89
|
+
This library is supported on Ruby 3.2+.
|
|
90
90
|
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
require "google/cloud/errors"
|
|
20
20
|
require "google/cloud/binaryauthorization/v1beta1/service_pb"
|
|
21
|
+
require "google/iam/v1"
|
|
21
22
|
|
|
22
23
|
module Google
|
|
23
24
|
module Cloud
|
|
@@ -208,8 +209,23 @@ module Google
|
|
|
208
209
|
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
209
210
|
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
210
211
|
end
|
|
212
|
+
|
|
213
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
|
214
|
+
config.credentials = credentials
|
|
215
|
+
config.quota_project = @quota_project_id
|
|
216
|
+
config.endpoint = @binauthz_management_service_stub.endpoint
|
|
217
|
+
config.universe_domain = @binauthz_management_service_stub.universe_domain
|
|
218
|
+
config.logger = @binauthz_management_service_stub.logger if config.respond_to? :logger=
|
|
219
|
+
end
|
|
211
220
|
end
|
|
212
221
|
|
|
222
|
+
##
|
|
223
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
|
224
|
+
#
|
|
225
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
|
226
|
+
#
|
|
227
|
+
attr_reader :iam_policy_client
|
|
228
|
+
|
|
213
229
|
##
|
|
214
230
|
# The logger used for request/response debug logging.
|
|
215
231
|
#
|
|
@@ -222,13 +238,16 @@ module Google
|
|
|
222
238
|
# Service calls
|
|
223
239
|
|
|
224
240
|
##
|
|
225
|
-
# A {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} specifies the
|
|
226
|
-
#
|
|
241
|
+
# A {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} specifies the
|
|
242
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestors} that must
|
|
243
|
+
# attest to a container image, before the project is allowed to deploy that
|
|
227
244
|
# image. There is at most one policy per project. All image admission
|
|
228
245
|
# requests are permitted if a project has no policy.
|
|
229
246
|
#
|
|
230
|
-
# Gets the {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} for this
|
|
231
|
-
#
|
|
247
|
+
# Gets the {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} for this
|
|
248
|
+
# project. Returns a default
|
|
249
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} if the project
|
|
250
|
+
# does not have one.
|
|
232
251
|
#
|
|
233
252
|
# @overload get_policy(request, options = nil)
|
|
234
253
|
# Pass arguments to `get_policy` via a request object, either of type
|
|
@@ -246,8 +265,9 @@ module Google
|
|
|
246
265
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
247
266
|
#
|
|
248
267
|
# @param name [::String]
|
|
249
|
-
# Required. The resource name of the
|
|
250
|
-
#
|
|
268
|
+
# Required. The resource name of the
|
|
269
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} to retrieve, in
|
|
270
|
+
# the format `projects/*/policy`.
|
|
251
271
|
#
|
|
252
272
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
253
273
|
# @yieldparam response [::Google::Cloud::BinaryAuthorization::V1beta1::Policy]
|
|
@@ -314,11 +334,13 @@ module Google
|
|
|
314
334
|
end
|
|
315
335
|
|
|
316
336
|
##
|
|
317
|
-
# Creates or updates a project's
|
|
318
|
-
#
|
|
319
|
-
#
|
|
320
|
-
#
|
|
321
|
-
#
|
|
337
|
+
# Creates or updates a project's
|
|
338
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy}, and returns a
|
|
339
|
+
# copy of the new {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy}.
|
|
340
|
+
# A policy is always updated as a whole, to avoid race conditions with
|
|
341
|
+
# concurrent policy enforcement (or management!) requests. Returns NOT_FOUND
|
|
342
|
+
# if the project does not exist, INVALID_ARGUMENT if the request is
|
|
343
|
+
# malformed.
|
|
322
344
|
#
|
|
323
345
|
# @overload update_policy(request, options = nil)
|
|
324
346
|
# Pass arguments to `update_policy` via a request object, either of type
|
|
@@ -336,9 +358,11 @@ module Google
|
|
|
336
358
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
337
359
|
#
|
|
338
360
|
# @param policy [::Google::Cloud::BinaryAuthorization::V1beta1::Policy, ::Hash]
|
|
339
|
-
# Required. A new or updated
|
|
340
|
-
#
|
|
341
|
-
#
|
|
361
|
+
# Required. A new or updated
|
|
362
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} value. The
|
|
363
|
+
# service will overwrite the [policy
|
|
364
|
+
# name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
|
|
365
|
+
# resource name in the request URL, in the format `projects/*/policy`.
|
|
342
366
|
#
|
|
343
367
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
344
368
|
# @yieldparam response [::Google::Cloud::BinaryAuthorization::V1beta1::Policy]
|
|
@@ -405,10 +429,13 @@ module Google
|
|
|
405
429
|
end
|
|
406
430
|
|
|
407
431
|
##
|
|
408
|
-
# Creates an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor},
|
|
409
|
-
#
|
|
410
|
-
#
|
|
411
|
-
#
|
|
432
|
+
# Creates an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor},
|
|
433
|
+
# and returns a copy of the new
|
|
434
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}. Returns
|
|
435
|
+
# NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is
|
|
436
|
+
# malformed, ALREADY_EXISTS if the
|
|
437
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} already
|
|
438
|
+
# exists.
|
|
412
439
|
#
|
|
413
440
|
# @overload create_attestor(request, options = nil)
|
|
414
441
|
# Pass arguments to `create_attestor` via a request object, either of type
|
|
@@ -426,13 +453,17 @@ module Google
|
|
|
426
453
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
427
454
|
#
|
|
428
455
|
# @param parent [::String]
|
|
429
|
-
# Required. The parent of this
|
|
456
|
+
# Required. The parent of this
|
|
457
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}.
|
|
430
458
|
# @param attestor_id [::String]
|
|
431
|
-
# Required. The
|
|
459
|
+
# Required. The
|
|
460
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestors} ID.
|
|
432
461
|
# @param attestor [::Google::Cloud::BinaryAuthorization::V1beta1::Attestor, ::Hash]
|
|
433
|
-
# Required. The initial
|
|
434
|
-
#
|
|
435
|
-
#
|
|
462
|
+
# Required. The initial
|
|
463
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} value. The
|
|
464
|
+
# service will overwrite the [attestor
|
|
465
|
+
# name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
|
|
466
|
+
# the resource name, in the format `projects/*/attestors/*`.
|
|
436
467
|
#
|
|
437
468
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
438
469
|
# @yieldparam response [::Google::Cloud::BinaryAuthorization::V1beta1::Attestor]
|
|
@@ -500,7 +531,9 @@ module Google
|
|
|
500
531
|
|
|
501
532
|
##
|
|
502
533
|
# Gets an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}.
|
|
503
|
-
# Returns NOT_FOUND if the
|
|
534
|
+
# Returns NOT_FOUND if the
|
|
535
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} does not
|
|
536
|
+
# exist.
|
|
504
537
|
#
|
|
505
538
|
# @overload get_attestor(request, options = nil)
|
|
506
539
|
# Pass arguments to `get_attestor` via a request object, either of type
|
|
@@ -518,8 +551,9 @@ module Google
|
|
|
518
551
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
519
552
|
#
|
|
520
553
|
# @param name [::String]
|
|
521
|
-
# Required. The name of the
|
|
522
|
-
#
|
|
554
|
+
# Required. The name of the
|
|
555
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} to retrieve,
|
|
556
|
+
# in the format `projects/*/attestors/*`.
|
|
523
557
|
#
|
|
524
558
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
525
559
|
# @yieldparam response [::Google::Cloud::BinaryAuthorization::V1beta1::Attestor]
|
|
@@ -587,7 +621,9 @@ module Google
|
|
|
587
621
|
|
|
588
622
|
##
|
|
589
623
|
# Updates an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}.
|
|
590
|
-
# Returns NOT_FOUND if the
|
|
624
|
+
# Returns NOT_FOUND if the
|
|
625
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} does not
|
|
626
|
+
# exist.
|
|
591
627
|
#
|
|
592
628
|
# @overload update_attestor(request, options = nil)
|
|
593
629
|
# Pass arguments to `update_attestor` via a request object, either of type
|
|
@@ -605,9 +641,12 @@ module Google
|
|
|
605
641
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
606
642
|
#
|
|
607
643
|
# @param attestor [::Google::Cloud::BinaryAuthorization::V1beta1::Attestor, ::Hash]
|
|
608
|
-
# Required. The updated
|
|
609
|
-
#
|
|
610
|
-
#
|
|
644
|
+
# Required. The updated
|
|
645
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} value. The
|
|
646
|
+
# service will overwrite the [attestor
|
|
647
|
+
# name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
|
|
648
|
+
# the resource name in the request URL, in the format
|
|
649
|
+
# `projects/*/attestors/*`.
|
|
611
650
|
#
|
|
612
651
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
613
652
|
# @yieldparam response [::Google::Cloud::BinaryAuthorization::V1beta1::Attestor]
|
|
@@ -694,14 +733,16 @@ module Google
|
|
|
694
733
|
#
|
|
695
734
|
# @param parent [::String]
|
|
696
735
|
# Required. The resource name of the project associated with the
|
|
697
|
-
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestors}, in the
|
|
736
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestors}, in the
|
|
737
|
+
# format `projects/*`.
|
|
698
738
|
# @param page_size [::Integer]
|
|
699
739
|
# Requested page size. The server may return fewer results than requested. If
|
|
700
740
|
# unspecified, the server will pick an appropriate default.
|
|
701
741
|
# @param page_token [::String]
|
|
702
742
|
# A token identifying a page of results the server should return. Typically,
|
|
703
|
-
# this is the value of
|
|
704
|
-
#
|
|
743
|
+
# this is the value of
|
|
744
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::ListAttestorsResponse#next_page_token ListAttestorsResponse.next_page_token}
|
|
745
|
+
# returned from the previous call to the `ListAttestors` method.
|
|
705
746
|
#
|
|
706
747
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
707
748
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::BinaryAuthorization::V1beta1::Attestor>]
|
|
@@ -774,8 +815,10 @@ module Google
|
|
|
774
815
|
end
|
|
775
816
|
|
|
776
817
|
##
|
|
777
|
-
# Deletes an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}.
|
|
778
|
-
#
|
|
818
|
+
# Deletes an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}.
|
|
819
|
+
# Returns NOT_FOUND if the
|
|
820
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} does not
|
|
821
|
+
# exist.
|
|
779
822
|
#
|
|
780
823
|
# @overload delete_attestor(request, options = nil)
|
|
781
824
|
# Pass arguments to `delete_attestor` via a request object, either of type
|
|
@@ -793,8 +836,9 @@ module Google
|
|
|
793
836
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
794
837
|
#
|
|
795
838
|
# @param name [::String]
|
|
796
|
-
# Required. The name of the
|
|
797
|
-
#
|
|
839
|
+
# Required. The name of the
|
|
840
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestors} to delete,
|
|
841
|
+
# in the format `projects/*/attestors/*`.
|
|
798
842
|
#
|
|
799
843
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
800
844
|
# @yieldparam response [::Google::Protobuf::Empty]
|
|
@@ -956,6 +1000,7 @@ module Google
|
|
|
956
1000
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
957
1001
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
958
1002
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1003
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
959
1004
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
960
1005
|
# trigger a retry.
|
|
961
1006
|
# @return [::Hash]
|
|
@@ -1039,6 +1084,7 @@ module Google
|
|
|
1039
1084
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1040
1085
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1041
1086
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1087
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1042
1088
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1043
1089
|
# trigger a retry.
|
|
1044
1090
|
#
|
data/lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/rest/client.rb
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
require "google/cloud/errors"
|
|
20
20
|
require "google/cloud/binaryauthorization/v1beta1/service_pb"
|
|
21
21
|
require "google/cloud/binary_authorization/v1beta1/binauthz_management_service/rest/service_stub"
|
|
22
|
+
require "google/iam/v1/rest"
|
|
22
23
|
|
|
23
24
|
module Google
|
|
24
25
|
module Cloud
|
|
@@ -201,8 +202,24 @@ module Google
|
|
|
201
202
|
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
202
203
|
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
203
204
|
end
|
|
205
|
+
|
|
206
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
|
207
|
+
config.credentials = credentials
|
|
208
|
+
config.quota_project = @quota_project_id
|
|
209
|
+
config.endpoint = @binauthz_management_service_stub.endpoint
|
|
210
|
+
config.universe_domain = @binauthz_management_service_stub.universe_domain
|
|
211
|
+
config.bindings_override = @config.bindings_override
|
|
212
|
+
config.logger = @binauthz_management_service_stub.logger if config.respond_to? :logger=
|
|
213
|
+
end
|
|
204
214
|
end
|
|
205
215
|
|
|
216
|
+
##
|
|
217
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
|
218
|
+
#
|
|
219
|
+
# @return [Google::Iam::V1::IAMPolicy::Rest::Client]
|
|
220
|
+
#
|
|
221
|
+
attr_reader :iam_policy_client
|
|
222
|
+
|
|
206
223
|
##
|
|
207
224
|
# The logger used for request/response debug logging.
|
|
208
225
|
#
|
|
@@ -215,13 +232,16 @@ module Google
|
|
|
215
232
|
# Service calls
|
|
216
233
|
|
|
217
234
|
##
|
|
218
|
-
# A {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} specifies the
|
|
219
|
-
#
|
|
235
|
+
# A {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} specifies the
|
|
236
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestors} that must
|
|
237
|
+
# attest to a container image, before the project is allowed to deploy that
|
|
220
238
|
# image. There is at most one policy per project. All image admission
|
|
221
239
|
# requests are permitted if a project has no policy.
|
|
222
240
|
#
|
|
223
|
-
# Gets the {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} for this
|
|
224
|
-
#
|
|
241
|
+
# Gets the {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} for this
|
|
242
|
+
# project. Returns a default
|
|
243
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} if the project
|
|
244
|
+
# does not have one.
|
|
225
245
|
#
|
|
226
246
|
# @overload get_policy(request, options = nil)
|
|
227
247
|
# Pass arguments to `get_policy` via a request object, either of type
|
|
@@ -239,8 +259,9 @@ module Google
|
|
|
239
259
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
240
260
|
#
|
|
241
261
|
# @param name [::String]
|
|
242
|
-
# Required. The resource name of the
|
|
243
|
-
#
|
|
262
|
+
# Required. The resource name of the
|
|
263
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} to retrieve, in
|
|
264
|
+
# the format `projects/*/policy`.
|
|
244
265
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
245
266
|
# @yieldparam result [::Google::Cloud::BinaryAuthorization::V1beta1::Policy]
|
|
246
267
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -300,11 +321,13 @@ module Google
|
|
|
300
321
|
end
|
|
301
322
|
|
|
302
323
|
##
|
|
303
|
-
# Creates or updates a project's
|
|
304
|
-
#
|
|
305
|
-
#
|
|
306
|
-
#
|
|
307
|
-
#
|
|
324
|
+
# Creates or updates a project's
|
|
325
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy}, and returns a
|
|
326
|
+
# copy of the new {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy}.
|
|
327
|
+
# A policy is always updated as a whole, to avoid race conditions with
|
|
328
|
+
# concurrent policy enforcement (or management!) requests. Returns NOT_FOUND
|
|
329
|
+
# if the project does not exist, INVALID_ARGUMENT if the request is
|
|
330
|
+
# malformed.
|
|
308
331
|
#
|
|
309
332
|
# @overload update_policy(request, options = nil)
|
|
310
333
|
# Pass arguments to `update_policy` via a request object, either of type
|
|
@@ -322,9 +345,11 @@ module Google
|
|
|
322
345
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
323
346
|
#
|
|
324
347
|
# @param policy [::Google::Cloud::BinaryAuthorization::V1beta1::Policy, ::Hash]
|
|
325
|
-
# Required. A new or updated
|
|
326
|
-
#
|
|
327
|
-
#
|
|
348
|
+
# Required. A new or updated
|
|
349
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Policy policy} value. The
|
|
350
|
+
# service will overwrite the [policy
|
|
351
|
+
# name][google.cloud.binaryauthorization.v1beta1.Policy.name] field with the
|
|
352
|
+
# resource name in the request URL, in the format `projects/*/policy`.
|
|
328
353
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
329
354
|
# @yieldparam result [::Google::Cloud::BinaryAuthorization::V1beta1::Policy]
|
|
330
355
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -384,10 +409,13 @@ module Google
|
|
|
384
409
|
end
|
|
385
410
|
|
|
386
411
|
##
|
|
387
|
-
# Creates an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor},
|
|
388
|
-
#
|
|
389
|
-
#
|
|
390
|
-
#
|
|
412
|
+
# Creates an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor},
|
|
413
|
+
# and returns a copy of the new
|
|
414
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}. Returns
|
|
415
|
+
# NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is
|
|
416
|
+
# malformed, ALREADY_EXISTS if the
|
|
417
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} already
|
|
418
|
+
# exists.
|
|
391
419
|
#
|
|
392
420
|
# @overload create_attestor(request, options = nil)
|
|
393
421
|
# Pass arguments to `create_attestor` via a request object, either of type
|
|
@@ -405,13 +433,17 @@ module Google
|
|
|
405
433
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
406
434
|
#
|
|
407
435
|
# @param parent [::String]
|
|
408
|
-
# Required. The parent of this
|
|
436
|
+
# Required. The parent of this
|
|
437
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}.
|
|
409
438
|
# @param attestor_id [::String]
|
|
410
|
-
# Required. The
|
|
439
|
+
# Required. The
|
|
440
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestors} ID.
|
|
411
441
|
# @param attestor [::Google::Cloud::BinaryAuthorization::V1beta1::Attestor, ::Hash]
|
|
412
|
-
# Required. The initial
|
|
413
|
-
#
|
|
414
|
-
#
|
|
442
|
+
# Required. The initial
|
|
443
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} value. The
|
|
444
|
+
# service will overwrite the [attestor
|
|
445
|
+
# name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
|
|
446
|
+
# the resource name, in the format `projects/*/attestors/*`.
|
|
415
447
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
416
448
|
# @yieldparam result [::Google::Cloud::BinaryAuthorization::V1beta1::Attestor]
|
|
417
449
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -472,7 +504,9 @@ module Google
|
|
|
472
504
|
|
|
473
505
|
##
|
|
474
506
|
# Gets an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}.
|
|
475
|
-
# Returns NOT_FOUND if the
|
|
507
|
+
# Returns NOT_FOUND if the
|
|
508
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} does not
|
|
509
|
+
# exist.
|
|
476
510
|
#
|
|
477
511
|
# @overload get_attestor(request, options = nil)
|
|
478
512
|
# Pass arguments to `get_attestor` via a request object, either of type
|
|
@@ -490,8 +524,9 @@ module Google
|
|
|
490
524
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
491
525
|
#
|
|
492
526
|
# @param name [::String]
|
|
493
|
-
# Required. The name of the
|
|
494
|
-
#
|
|
527
|
+
# Required. The name of the
|
|
528
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} to retrieve,
|
|
529
|
+
# in the format `projects/*/attestors/*`.
|
|
495
530
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
496
531
|
# @yieldparam result [::Google::Cloud::BinaryAuthorization::V1beta1::Attestor]
|
|
497
532
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -552,7 +587,9 @@ module Google
|
|
|
552
587
|
|
|
553
588
|
##
|
|
554
589
|
# Updates an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}.
|
|
555
|
-
# Returns NOT_FOUND if the
|
|
590
|
+
# Returns NOT_FOUND if the
|
|
591
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} does not
|
|
592
|
+
# exist.
|
|
556
593
|
#
|
|
557
594
|
# @overload update_attestor(request, options = nil)
|
|
558
595
|
# Pass arguments to `update_attestor` via a request object, either of type
|
|
@@ -570,9 +607,12 @@ module Google
|
|
|
570
607
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
571
608
|
#
|
|
572
609
|
# @param attestor [::Google::Cloud::BinaryAuthorization::V1beta1::Attestor, ::Hash]
|
|
573
|
-
# Required. The updated
|
|
574
|
-
#
|
|
575
|
-
#
|
|
610
|
+
# Required. The updated
|
|
611
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} value. The
|
|
612
|
+
# service will overwrite the [attestor
|
|
613
|
+
# name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with
|
|
614
|
+
# the resource name in the request URL, in the format
|
|
615
|
+
# `projects/*/attestors/*`.
|
|
576
616
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
577
617
|
# @yieldparam result [::Google::Cloud::BinaryAuthorization::V1beta1::Attestor]
|
|
578
618
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -652,14 +692,16 @@ module Google
|
|
|
652
692
|
#
|
|
653
693
|
# @param parent [::String]
|
|
654
694
|
# Required. The resource name of the project associated with the
|
|
655
|
-
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestors}, in the
|
|
695
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestors}, in the
|
|
696
|
+
# format `projects/*`.
|
|
656
697
|
# @param page_size [::Integer]
|
|
657
698
|
# Requested page size. The server may return fewer results than requested. If
|
|
658
699
|
# unspecified, the server will pick an appropriate default.
|
|
659
700
|
# @param page_token [::String]
|
|
660
701
|
# A token identifying a page of results the server should return. Typically,
|
|
661
|
-
# this is the value of
|
|
662
|
-
#
|
|
702
|
+
# this is the value of
|
|
703
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::ListAttestorsResponse#next_page_token ListAttestorsResponse.next_page_token}
|
|
704
|
+
# returned from the previous call to the `ListAttestors` method.
|
|
663
705
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
664
706
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BinaryAuthorization::V1beta1::Attestor>]
|
|
665
707
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -725,8 +767,10 @@ module Google
|
|
|
725
767
|
end
|
|
726
768
|
|
|
727
769
|
##
|
|
728
|
-
# Deletes an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}.
|
|
729
|
-
#
|
|
770
|
+
# Deletes an {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor}.
|
|
771
|
+
# Returns NOT_FOUND if the
|
|
772
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestor} does not
|
|
773
|
+
# exist.
|
|
730
774
|
#
|
|
731
775
|
# @overload delete_attestor(request, options = nil)
|
|
732
776
|
# Pass arguments to `delete_attestor` via a request object, either of type
|
|
@@ -744,8 +788,9 @@ module Google
|
|
|
744
788
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
745
789
|
#
|
|
746
790
|
# @param name [::String]
|
|
747
|
-
# Required. The name of the
|
|
748
|
-
#
|
|
791
|
+
# Required. The name of the
|
|
792
|
+
# {::Google::Cloud::BinaryAuthorization::V1beta1::Attestor attestors} to delete,
|
|
793
|
+
# in the format `projects/*/attestors/*`.
|
|
749
794
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
750
795
|
# @yieldparam result [::Google::Protobuf::Empty]
|
|
751
796
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -874,6 +919,7 @@ module Google
|
|
|
874
919
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
875
920
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
876
921
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
922
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
877
923
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
878
924
|
# trigger a retry.
|
|
879
925
|
# @return [::Hash]
|
|
@@ -911,6 +957,13 @@ module Google
|
|
|
911
957
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
912
958
|
config_attr :quota_project, nil, ::String, nil
|
|
913
959
|
config_attr :universe_domain, nil, ::String, nil
|
|
960
|
+
|
|
961
|
+
# @private
|
|
962
|
+
# Overrides for http bindings for the RPCs of this service
|
|
963
|
+
# are only used when this service is used as mixin, and only
|
|
964
|
+
# by the host service.
|
|
965
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
966
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
|
914
967
|
config_attr :logger, :default, ::Logger, nil, :default
|
|
915
968
|
|
|
916
969
|
# @private
|
|
@@ -946,6 +999,7 @@ module Google
|
|
|
946
999
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
947
1000
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
948
1001
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1002
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
949
1003
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
950
1004
|
# trigger a retry.
|
|
951
1005
|
#
|
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
|
21
21
|
require "gapic/config/method"
|
|
22
22
|
|
|
23
23
|
require "google/cloud/binary_authorization/v1beta1/version"
|
|
24
|
+
require "google/cloud/binary_authorization/v1beta1/bindings_override"
|
|
24
25
|
|
|
25
26
|
require "google/cloud/binary_authorization/v1beta1/binauthz_management_service/credentials"
|
|
26
27
|
require "google/cloud/binary_authorization/v1beta1/binauthz_management_service/paths"
|