google-cloud-binary_authorization-v1 0.2.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +3 -3
  4. data/lib/google/cloud/binary_authorization/v1/binauthz_management_service/client.rb +10 -10
  5. data/lib/google/cloud/binary_authorization/v1/binauthz_management_service/rest/client.rb +837 -0
  6. data/lib/google/cloud/binary_authorization/v1/binauthz_management_service/rest/service_stub.rb +464 -0
  7. data/lib/google/cloud/binary_authorization/v1/binauthz_management_service/rest.rb +58 -0
  8. data/lib/google/cloud/binary_authorization/v1/binauthz_management_service.rb +7 -1
  9. data/lib/google/cloud/binary_authorization/v1/rest.rb +39 -0
  10. data/lib/google/cloud/binary_authorization/v1/system_policy/client.rb +6 -4
  11. data/lib/google/cloud/binary_authorization/v1/system_policy/rest/client.rb +347 -0
  12. data/lib/google/cloud/binary_authorization/v1/system_policy/rest/service_stub.rb +107 -0
  13. data/lib/google/cloud/binary_authorization/v1/system_policy/rest.rb +52 -0
  14. data/lib/google/cloud/binary_authorization/v1/system_policy.rb +7 -1
  15. data/lib/google/cloud/binary_authorization/v1/validation_helper/client.rb +6 -4
  16. data/lib/google/cloud/binary_authorization/v1/validation_helper/rest/client.rb +358 -0
  17. data/lib/google/cloud/binary_authorization/v1/validation_helper/rest/service_stub.rb +108 -0
  18. data/lib/google/cloud/binary_authorization/v1/validation_helper/rest.rb +51 -0
  19. data/lib/google/cloud/binary_authorization/v1/validation_helper.rb +7 -1
  20. data/lib/google/cloud/binary_authorization/v1/version.rb +1 -1
  21. data/lib/google/cloud/binary_authorization/v1.rb +7 -2
  22. data/lib/google/cloud/binaryauthorization/v1/resources_pb.rb +25 -80
  23. data/lib/google/cloud/binaryauthorization/v1/service_pb.rb +26 -48
  24. data/proto_docs/google/api/client.rb +381 -0
  25. data/proto_docs/google/api/launch_stage.rb +71 -0
  26. data/proto_docs/google/protobuf/duration.rb +98 -0
  27. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  28. data/proto_docs/grafeas/v1/common.rb +3 -0
  29. metadata +23 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ceabbeee8de79269576d551bf2ae3e5417091d9e04040bd9b3f1214187b57ec8
4
- data.tar.gz: ae54318b5c28f313eaf2f606109a50b3b83970ec91f408512bdae7a39c781ac0
3
+ metadata.gz: d555475b21bc2b68a8d7bd62a78c521c0d37eb7d14a794caedbe1cab72b53479
4
+ data.tar.gz: 18cc1703aaceaebcc89a8fd291297d58f645f3151eeaba65742965fc497f6642
5
5
  SHA512:
6
- metadata.gz: 444619bc6e9d56b0e627a8984fb4dabb62175fdce6027da0704d5eca11d33b83d2c12e2d05f4dc8631c7c5fde10b3e51d9a4361df4e23966f6e2944f289deacf
7
- data.tar.gz: 66a7ae963eaa6d1b9ff2e27e914b7ed7ea40472bbce86ac8c6e0a3eba9583d44602e06df2c21995ce767f3c7932f40d42d1d8bcedd96e3e51da24326553edae7
6
+ metadata.gz: 3125f17c2a83070cfd2284f20a2cc5c615ce47af7038ec03a8b099964d032fe79281545447c8f75da82f033701ed449a96ad609d359ff7ffcc07e8dba1cf2aff
7
+ data.tar.gz: 0a8927d01d96a185d31ca8f308c3fb353f74e2c3069a21113c6cae7ec32f4d6fc728666b9ff83085ca2e672f4f75388884377c49927e8d64e97f684fdd2ecd40
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Binary Authorization V1 API
2
2
 
3
- API Client library for the Binary Authorization V1 API
3
+ The management interface for Binary Authorization, a system providing policy control for images deployed to Kubernetes Engine clusters, Anthos clusters on VMware, 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
 
@@ -46,8 +46,8 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -161,7 +161,7 @@ module Google
161
161
  credentials = @config.credentials
162
162
  # Use self-signed JWT if the endpoint is unchanged from default,
163
163
  # but only if the default endpoint does not have a region prefix.
164
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
164
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
165
165
  !@config.endpoint.split(".").first.include?("-")
166
166
  credentials ||= Credentials.default scope: @config.scope,
167
167
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -684,13 +684,11 @@ module Google
684
684
  # # Call the list_attestors method.
685
685
  # result = client.list_attestors request
686
686
  #
687
- # # The returned object is of type Gapic::PagedEnumerable. You can
688
- # # iterate over all elements by calling #each, and the enumerable
689
- # # will lazily make API calls to fetch subsequent pages. Other
690
- # # methods are also available for managing paging directly.
691
- # result.each do |response|
687
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
688
+ # # over elements, and API calls will be issued to fetch pages as needed.
689
+ # result.each do |item|
692
690
  # # Each element is of type ::Google::Cloud::BinaryAuthorization::V1::Attestor.
693
- # p response
691
+ # p item
694
692
  # end
695
693
  #
696
694
  def list_attestors request, options = nil
@@ -860,9 +858,9 @@ module Google
860
858
  # * (`String`) The path to a service account key file in JSON format
861
859
  # * (`Hash`) A service account key as a Hash
862
860
  # * (`Google::Auth::Credentials`) A googleauth credentials object
863
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
861
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
864
862
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
865
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
863
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
866
864
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
867
865
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
868
866
  # * (`nil`) indicating no credentials
@@ -904,7 +902,9 @@ module Google
904
902
  class Configuration
905
903
  extend ::Gapic::Config
906
904
 
907
- config_attr :endpoint, "binaryauthorization.googleapis.com", ::String
905
+ DEFAULT_ENDPOINT = "binaryauthorization.googleapis.com"
906
+
907
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
908
908
  config_attr :credentials, nil do |value|
909
909
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
910
910
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC