google-cloud-dlp-v2 0.2.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/lib/google/cloud/dlp/v2/dlp_service/client.rb +16 -11
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c627000e9f992a7d56c12fffebb2f6ffeabb8420d69df3bc53715ebf31aef566
|
4
|
+
data.tar.gz: 618bde9dadd62230507eec3d1de897a4882654adf01fb1b46cef5bf919dbc096
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a23391a8d0084846432a922d55413530b00138275f9748458119e99978575ed9bcb2aab792d74da1b9fca2e51f6c108e9b9e8bfebf4d297d83fef09cb2e3e2d9
|
7
|
+
data.tar.gz: 1cc46f2a34547cd102883a4e05727e521b5153166693cc30a3424e9402f3caf35878b7605c11c7c1922deefb6adae957c3156985dd28419a5871d634b6eaa85d
|
@@ -344,7 +344,8 @@ module Google
|
|
344
344
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
345
345
|
credentials = Credentials.new credentials, scope: @config.scope
|
346
346
|
end
|
347
|
-
@quota_project_id =
|
347
|
+
@quota_project_id = @config.quota_project
|
348
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
348
349
|
|
349
350
|
@dlp_service_stub = ::Gapic::ServiceStub.new(
|
350
351
|
::Google::Cloud::Dlp::V2::DlpService::Stub,
|
@@ -3132,24 +3133,28 @@ module Google
|
|
3132
3133
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
3133
3134
|
# trigger a retry.
|
3134
3135
|
# @return [::Hash]
|
3136
|
+
# @!attribute [rw] quota_project
|
3137
|
+
# A separate project against which to charge quota.
|
3138
|
+
# @return [::String]
|
3135
3139
|
#
|
3136
3140
|
class Configuration
|
3137
3141
|
extend ::Gapic::Config
|
3138
3142
|
|
3139
|
-
config_attr :endpoint,
|
3140
|
-
config_attr :credentials,
|
3143
|
+
config_attr :endpoint, "dlp.googleapis.com", ::String
|
3144
|
+
config_attr :credentials, nil do |value|
|
3141
3145
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3142
3146
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
3143
3147
|
allowed.any? { |klass| klass === value }
|
3144
3148
|
end
|
3145
|
-
config_attr :scope,
|
3146
|
-
config_attr :lib_name,
|
3147
|
-
config_attr :lib_version,
|
3148
|
-
config_attr(:channel_args,
|
3149
|
-
config_attr :interceptors,
|
3150
|
-
config_attr :timeout,
|
3151
|
-
config_attr :metadata,
|
3152
|
-
config_attr :retry_policy,
|
3149
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
3150
|
+
config_attr :lib_name, nil, ::String, nil
|
3151
|
+
config_attr :lib_version, nil, ::String, nil
|
3152
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
3153
|
+
config_attr :interceptors, nil, ::Array, nil
|
3154
|
+
config_attr :timeout, nil, ::Numeric, nil
|
3155
|
+
config_attr :metadata, nil, ::Hash, nil
|
3156
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3157
|
+
config_attr :quota_project, nil, ::String, nil
|
3153
3158
|
|
3154
3159
|
# @private
|
3155
3160
|
def initialize parent_config = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dlp-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -58,14 +58,42 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '5.
|
61
|
+
version: '5.14'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '5.
|
68
|
+
version: '5.14'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-focus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-rg
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.2'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rake
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|