google-cloud-bigquery-data_policies-v1 0.1.0 → 0.3.0

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: a0b9abc41737b9363549c3db8b6630ac607dcc21bb93341ace4b2d571ff75747
4
- data.tar.gz: df881fa8ed63624f6e9dcb815b2cdfd8bc63e9f482f59a7e67fbe0d130a8e772
3
+ metadata.gz: 5ad8962d7ad180b7fb9254f6af85b442a57d87234e0279dc003f6bf6780a4cfc
4
+ data.tar.gz: 412ce2d21a00a9a085d28b1348c0506c2b78dfd4e3dbf3139c69c22d3a8d888c
5
5
  SHA512:
6
- metadata.gz: fdd19aff3f36116867e725463fcf42b6e6bf73abb42873f55c515da776dab861e39ab15359510565e9aea39cbfa879d522860d2c9eb54aefad2e8abfcfe2aa5d
7
- data.tar.gz: 9b1f122eefeb816ababb69a5f50990ade292242c957b256fb0fee4bf56742c7db125e8ee24744131d82195b518e3cc7489acf4f726319a8bd1694bbc07b96742
6
+ metadata.gz: 6b35b585044aef7f342e8c379950712998c92de7c3a1bfa04d12f714494c0a6c2692d048585f263c4ce199a18faa37c8a50b3ce24a3baf263e7d47037760e82d
7
+ data.tar.gz: 45d92c35b56ac514ac97e9fe7a67eaceeab6284daf5c5343202966053839f2424f82444f0d810574596eeb678531e3687beef9c7c177829ebb11bb8e33b2d988
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the BigQuery Data Policy Service V1 API
2
2
 
3
- API Client library for the BigQuery Data Policy Service V1 API
3
+ Allows users to manage BigQuery data policies.
4
4
 
5
5
  The Data Policy Service provides APIs for managing the BigQuery label-policy bindings.
6
6
 
@@ -47,7 +47,7 @@ for general usage information.
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
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://googleapis.dev/ruby/google-cloud-logging/latest)
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
 
@@ -169,7 +169,7 @@ module Google
169
169
  credentials = @config.credentials
170
170
  # Use self-signed JWT if the endpoint is unchanged from default,
171
171
  # but only if the default endpoint does not have a region prefix.
172
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
172
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
173
173
  !@config.endpoint.split(".").first.include?("-")
174
174
  credentials ||= Credentials.default scope: @config.scope,
175
175
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -693,13 +693,11 @@ module Google
693
693
  # # Call the list_data_policies method.
694
694
  # result = client.list_data_policies request
695
695
  #
696
- # # The returned object is of type Gapic::PagedEnumerable. You can
697
- # # iterate over all elements by calling #each, and the enumerable
698
- # # will lazily make API calls to fetch subsequent pages. Other
699
- # # methods are also available for managing paging directly.
700
- # result.each do |response|
696
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
697
+ # # over elements, and API calls will be issued to fetch pages as needed.
698
+ # result.each do |item|
701
699
  # # Each element is of type ::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy.
702
- # p response
700
+ # p item
703
701
  # end
704
702
  #
705
703
  def list_data_policies request, options = nil
@@ -1059,9 +1057,9 @@ module Google
1059
1057
  # * (`String`) The path to a service account key file in JSON format
1060
1058
  # * (`Hash`) A service account key as a Hash
1061
1059
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1062
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1060
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1063
1061
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1064
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1062
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1065
1063
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1066
1064
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1067
1065
  # * (`nil`) indicating no credentials
@@ -1103,7 +1101,9 @@ module Google
1103
1101
  class Configuration
1104
1102
  extend ::Gapic::Config
1105
1103
 
1106
- config_attr :endpoint, "bigquerydatapolicy.googleapis.com", ::String
1104
+ DEFAULT_ENDPOINT = "bigquerydatapolicy.googleapis.com"
1105
+
1106
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1107
1107
  config_attr :credentials, nil do |value|
1108
1108
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1109
1109
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC