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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b92e3213f9c1d1a5f808ca703cd7759f474520f9d0f3c24d0580993aaf6c2e07
4
- data.tar.gz: 535de29e1a1ac106bccd55327971ba841cd151b41e32f7296c84fbdcc6d85f3d
3
+ metadata.gz: c627000e9f992a7d56c12fffebb2f6ffeabb8420d69df3bc53715ebf31aef566
4
+ data.tar.gz: 618bde9dadd62230507eec3d1de897a4882654adf01fb1b46cef5bf919dbc096
5
5
  SHA512:
6
- metadata.gz: 502e8b861ea752647cf2c16db674082f0ea6775ae25ea0185709c067d8c51d33b488092399b979892b3bb132edfe899617fb4c1c598f09f13e2e341a65107532
7
- data.tar.gz: 67f860bf279321dd8bd5d187c7a46304b1abc4aacf558993ace94cd2f2f7882b5ffa4938d614fcb60a6dfd8f9138b3072945c67b7d16e19f800cbd042d12c886
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 = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
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, "dlp.googleapis.com", String
3140
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
3146
- config_attr :lib_name, nil, ::String, nil
3147
- config_attr :lib_version, nil, ::String, nil
3148
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
3149
- config_attr :interceptors, nil, ::Array, nil
3150
- config_attr :timeout, nil, ::Numeric, nil
3151
- config_attr :metadata, nil, ::Hash, nil
3152
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.2.0"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
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.2.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-14 00:00:00.000000000 Z
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.10'
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.10'
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