google-cloud-kms-v1 0.1.1 → 0.2.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: 75dc8de99c2703919b8e3e1c4d29657d6cf5626371a5330b53f3f801ae36d383
4
- data.tar.gz: b0ffd42eeeb592d33dc3cfbc1c1559d1bfb224d2de148175966355af327ad175
3
+ metadata.gz: cdcd9d9e102c2a3932ae574aabe824187250a9a9304b881d96e84a0a321ed5e6
4
+ data.tar.gz: 3715d2cff29d8b696f51622e736cb3e44fd9ddf7abe48360dfc5d161d24c2241
5
5
  SHA512:
6
- metadata.gz: b047c92cea8c308c682a79317412a62db579eecaba13df7442358e10b965bccec293742aba8787e3267d98724d2b30810c7257a4044e3c70ecb2fb23d101ccad
7
- data.tar.gz: d2bcef6e1c4b988386e969e4691e767b7b0962d205ea55562bdf3309767e18122b55565cea321e7e1f12b4e6092f0575ffc8ef00a22ffac68a5ada620b72cea7
6
+ metadata.gz: bc65659703ebc5a140dbddc9ba299af87c70a47968643e79b72c22ec16bd146f6bb840ea1fbed3d747591fabd10dfb08e7715bd146bb95898ee90cb34798ada8
7
+ data.tar.gz: 16da90e30f086942fdba4f6ac79e9a711b768347a7be890c0939598b6b0098adac34babc562f264bdfafd66371b42b09602a9f5979c26b37a255ca185de5b1fe
@@ -152,7 +152,8 @@ module Google
152
152
  if credentials.is_a?(String) || credentials.is_a?(Hash)
153
153
  credentials = Credentials.new credentials, scope: @config.scope
154
154
  end
155
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
155
+ @quota_project_id = @config.quota_project
156
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
156
157
 
157
158
  @iam_policy_stub = ::Gapic::ServiceStub.new(
158
159
  ::Google::Iam::V1::IAMPolicy::Stub,
@@ -464,24 +465,28 @@ module Google
464
465
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
466
  # trigger a retry.
466
467
  # @return [::Hash]
468
+ # @!attribute [rw] quota_project
469
+ # A separate project against which to charge quota.
470
+ # @return [::String]
467
471
  #
468
472
  class Configuration
469
473
  extend ::Gapic::Config
470
474
 
471
- config_attr :endpoint, "cloudkms.googleapis.com", String
472
- config_attr :credentials, nil do |value|
475
+ config_attr :endpoint, "cloudkms.googleapis.com", ::String
476
+ config_attr :credentials, nil do |value|
473
477
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
478
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
479
  allowed.any? { |klass| klass === value }
476
480
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
481
+ config_attr :scope, nil, ::String, ::Array, nil
482
+ config_attr :lib_name, nil, ::String, nil
483
+ config_attr :lib_version, nil, ::String, nil
484
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
485
+ config_attr :interceptors, nil, ::Array, nil
486
+ config_attr :timeout, nil, ::Numeric, nil
487
+ config_attr :metadata, nil, ::Hash, nil
488
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
489
+ config_attr :quota_project, nil, ::String, nil
485
490
 
486
491
  # @private
487
492
  def initialize parent_config = nil
@@ -313,7 +313,8 @@ module Google
313
313
  if credentials.is_a?(String) || credentials.is_a?(Hash)
314
314
  credentials = Credentials.new credentials, scope: @config.scope
315
315
  end
316
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
316
+ @quota_project_id = @config.quota_project
317
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
317
318
 
318
319
  @key_management_service_stub = ::Gapic::ServiceStub.new(
319
320
  ::Google::Cloud::Kms::V1::KeyManagementService::Stub,
@@ -2160,24 +2161,28 @@ module Google
2160
2161
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2161
2162
  # trigger a retry.
2162
2163
  # @return [::Hash]
2164
+ # @!attribute [rw] quota_project
2165
+ # A separate project against which to charge quota.
2166
+ # @return [::String]
2163
2167
  #
2164
2168
  class Configuration
2165
2169
  extend ::Gapic::Config
2166
2170
 
2167
- config_attr :endpoint, "cloudkms.googleapis.com", String
2168
- config_attr :credentials, nil do |value|
2171
+ config_attr :endpoint, "cloudkms.googleapis.com", ::String
2172
+ config_attr :credentials, nil do |value|
2169
2173
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2170
2174
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2171
2175
  allowed.any? { |klass| klass === value }
2172
2176
  end
2173
- config_attr :scope, nil, ::String, ::Array, nil
2174
- config_attr :lib_name, nil, ::String, nil
2175
- config_attr :lib_version, nil, ::String, nil
2176
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2177
- config_attr :interceptors, nil, ::Array, nil
2178
- config_attr :timeout, nil, ::Numeric, nil
2179
- config_attr :metadata, nil, ::Hash, nil
2180
- config_attr :retry_policy, nil, ::Hash, Proc, nil
2177
+ config_attr :scope, nil, ::String, ::Array, nil
2178
+ config_attr :lib_name, nil, ::String, nil
2179
+ config_attr :lib_version, nil, ::String, nil
2180
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2181
+ config_attr :interceptors, nil, ::Array, nil
2182
+ config_attr :timeout, nil, ::Numeric, nil
2183
+ config_attr :metadata, nil, ::Hash, nil
2184
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2185
+ config_attr :quota_project, nil, ::String, nil
2181
2186
 
2182
2187
  # @private
2183
2188
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Kms
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.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-kms-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.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-05 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
@@ -78,14 +78,42 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '5.10'
81
+ version: '5.14'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '5.10'
88
+ version: '5.14'
89
+ - !ruby/object:Gem::Dependency
90
+ name: minitest-focus
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.1'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.1'
103
+ - !ruby/object:Gem::Dependency
104
+ name: minitest-rg
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '5.2'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '5.2'
89
117
  - !ruby/object:Gem::Dependency
90
118
  name: rake
91
119
  requirement: !ruby/object:Gem::Requirement