google-cloud-binary_authorization-v1beta1 0.3.4 → 0.3.5

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: 0b2409e68ea2a91e67465a81c38b4f7d8da7cc0880180287e2e3f50f62a030c6
4
- data.tar.gz: 8c0093f6dda1fee6797b5a0d5e62475abbcaebfb4193b25aff7c81421a20a2db
3
+ metadata.gz: a4268729806a969f86092e8f77a4f6c55184cafd6ff11c0394ceffbb431a27c7
4
+ data.tar.gz: 42f9772ebc6c51edebc9f1f8cc1f8a9d04958979fb5241fc01fd6d702215a1d2
5
5
  SHA512:
6
- metadata.gz: 43b6ba3464e0b63b7ef496a35aee3406a00ea7aa9aa9d22037fae12434b51a8a4e218b7c6fef00f301109fd174ac3f0ae63e5f9239e0fdb9dbe03e5ae7206458
7
- data.tar.gz: 9e0d97ec9a80a0818257f6dddc208b377bf44702795171027a6e98b511968f0b0c864aa1df74a31558ef8bd3c875b6f9777e82a197820ec05d64fa8fd1f09d18
6
+ metadata.gz: 486886c2dbc55d981bd34a92224671967e1c00ef0d6fe87d9cd55b1f287939e1f233d70df746e1c29d11804535463f7bd63cc93476454862d3e68c40a83cf9e5
7
+ data.tar.gz: d1691b4c6a13cd6b2fbff7948b5919aa14caa20885471932f1bb687b17fe4609d4c59cc00573802536e6a4ded185fa4d8459438edf73d020957d75baf373e8a5
@@ -222,6 +222,21 @@ module Google
222
222
  #
223
223
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
224
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
+ #
225
240
  def get_policy request, options = nil
226
241
  raise ::ArgumentError, "request must be provided" if request.nil?
227
242
 
@@ -239,9 +254,11 @@ module Google
239
254
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
240
255
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
241
256
 
242
- header_params = {
243
- "name" => request.name
244
- }
257
+ header_params = {}
258
+ if request.name
259
+ header_params["name"] = request.name
260
+ end
261
+
245
262
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
246
263
  metadata[:"x-goog-request-params"] ||= request_params_header
247
264
 
@@ -300,6 +317,21 @@ module Google
300
317
  #
301
318
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
302
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
+ #
303
335
  def update_policy request, options = nil
304
336
  raise ::ArgumentError, "request must be provided" if request.nil?
305
337
 
@@ -317,9 +349,11 @@ module Google
317
349
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
318
350
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
319
351
 
320
- header_params = {
321
- "policy.name" => request.policy.name
322
- }
352
+ header_params = {}
353
+ if request.policy&.name
354
+ header_params["policy.name"] = request.policy.name
355
+ end
356
+
323
357
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
324
358
  metadata[:"x-goog-request-params"] ||= request_params_header
325
359
 
@@ -384,6 +418,21 @@ module Google
384
418
  #
385
419
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
386
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
+ #
387
436
  def create_attestor request, options = nil
388
437
  raise ::ArgumentError, "request must be provided" if request.nil?
389
438
 
@@ -401,9 +450,11 @@ module Google
401
450
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
402
451
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
403
452
 
404
- header_params = {
405
- "parent" => request.parent
406
- }
453
+ header_params = {}
454
+ if request.parent
455
+ header_params["parent"] = request.parent
456
+ end
457
+
407
458
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
408
459
  metadata[:"x-goog-request-params"] ||= request_params_header
409
460
 
@@ -457,6 +508,21 @@ module Google
457
508
  #
458
509
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
459
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
+ #
460
526
  def get_attestor request, options = nil
461
527
  raise ::ArgumentError, "request must be provided" if request.nil?
462
528
 
@@ -474,9 +540,11 @@ module Google
474
540
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
475
541
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
476
542
 
477
- header_params = {
478
- "name" => request.name
479
- }
543
+ header_params = {}
544
+ if request.name
545
+ header_params["name"] = request.name
546
+ end
547
+
480
548
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
481
549
  metadata[:"x-goog-request-params"] ||= request_params_header
482
550
 
@@ -533,6 +601,21 @@ module Google
533
601
  #
534
602
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
535
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
+ #
536
619
  def update_attestor request, options = nil
537
620
  raise ::ArgumentError, "request must be provided" if request.nil?
538
621
 
@@ -550,9 +633,11 @@ module Google
550
633
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
551
634
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
552
635
 
553
- header_params = {
554
- "attestor.name" => request.attestor.name
555
- }
636
+ header_params = {}
637
+ if request.attestor&.name
638
+ header_params["attestor.name"] = request.attestor.name
639
+ end
640
+
556
641
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
557
642
  metadata[:"x-goog-request-params"] ||= request_params_header
558
643
 
@@ -612,6 +697,27 @@ module Google
612
697
  #
613
698
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
614
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
+ #
615
721
  def list_attestors request, options = nil
616
722
  raise ::ArgumentError, "request must be provided" if request.nil?
617
723
 
@@ -629,9 +735,11 @@ module Google
629
735
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
630
736
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
631
737
 
632
- header_params = {
633
- "parent" => request.parent
634
- }
738
+ header_params = {}
739
+ if request.parent
740
+ header_params["parent"] = request.parent
741
+ end
742
+
635
743
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
636
744
  metadata[:"x-goog-request-params"] ||= request_params_header
637
745
 
@@ -686,6 +794,21 @@ module Google
686
794
  #
687
795
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
688
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
+ #
689
812
  def delete_attestor request, options = nil
690
813
  raise ::ArgumentError, "request must be provided" if request.nil?
691
814
 
@@ -703,9 +826,11 @@ module Google
703
826
  gapic_version: ::Google::Cloud::BinaryAuthorization::V1beta1::VERSION
704
827
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
705
828
 
706
- header_params = {
707
- "name" => request.name
708
- }
829
+ header_params = {}
830
+ if request.name
831
+ header_params["name"] = request.name
832
+ end
833
+
709
834
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
710
835
  metadata[:"x-goog-request-params"] ||= request_params_header
711
836
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module BinaryAuthorization
23
23
  module V1beta1
24
- VERSION = "0.3.4"
24
+ VERSION = "0.3.5"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -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
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
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-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common