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 +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/client.rb +10 -10
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/rest/client.rb +1005 -0
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/rest/service_stub.rb +587 -0
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/rest.rb +54 -0
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service.rb +6 -0
- data/lib/google/cloud/bigquery/data_policies/v1/rest.rb +39 -0
- data/lib/google/cloud/bigquery/data_policies/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/data_policies/v1.rb +5 -0
- data/lib/google/cloud/bigquery/datapolicies/v1/datapolicy_pb.rb +25 -56
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- metadata +12 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ad8962d7ad180b7fb9254f6af85b442a57d87234e0279dc003f6bf6780a4cfc
|
4
|
+
data.tar.gz: 412ce2d21a00a9a085d28b1348c0506c2b78dfd4e3dbf3139c69c22d3a8d888c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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://
|
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 ==
|
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
|
-
# #
|
698
|
-
#
|
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
|
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://
|
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://
|
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
|
-
|
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
|