google-cloud-secret_manager-v1 0.3.1 → 0.4.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: ef21d91ae5b49118a8a606df7544c7517cc39fcf1625c2b0b505189d4c18d538
4
- data.tar.gz: 55d1acae67ee19b4829a5a6452fc29bde6f60c1a96cb32c861bcfb200ad4fb6d
3
+ metadata.gz: b95ca8fad6e2e59d67ee703a6b21b30d61ab28cdb7d73483da199181c780d65f
4
+ data.tar.gz: 894f73c9aaeb73208467b2de7532154df29039931c313e5cfc3bbd392d3f48cb
5
5
  SHA512:
6
- metadata.gz: 8ceac964231dfc743346334b2b7164090b1700d2b7cfa2b490c0ef482ce056186cb62a331ef82aa02c191289f92ada4209bb366f149887ef1f2a9e0aebcd7e8e
7
- data.tar.gz: 521eae0bffdd634dce61a4a0561f6f8d73d681526cfc162b538b1baa34592163a87d8ba09ab663182e7c3595e74cb86f08f8ead62a7e41f2b434333120607cb6
6
+ metadata.gz: 92579961686a3db1ff11df7b1cfd4ff751f5d6dcc89b8aad5ebb2f908e5a6aad123e21446bfe627258720553e6e1174307766d37217c76e6928fc83ef8e3409e
7
+ data.tar.gz: 53b54843648c656e36dd5dfa7c157c83b75ec8aaf54d087e36223ca808ecce79c313d8333805b8abd274cb76e8be3e274b187e17177d3253b0d2c9274b655ed0
@@ -172,7 +172,8 @@ module Google
172
172
  if credentials.is_a?(String) || credentials.is_a?(Hash)
173
173
  credentials = Credentials.new credentials, scope: @config.scope
174
174
  end
175
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
175
+ @quota_project_id = @config.quota_project
176
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
176
177
 
177
178
  @secret_manager_service_stub = ::Gapic::ServiceStub.new(
178
179
  ::Google::Cloud::SecretManager::V1::SecretManagerService::Stub,
@@ -1337,24 +1338,28 @@ module Google
1337
1338
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1338
1339
  # trigger a retry.
1339
1340
  # @return [::Hash]
1341
+ # @!attribute [rw] quota_project
1342
+ # A separate project against which to charge quota.
1343
+ # @return [::String]
1340
1344
  #
1341
1345
  class Configuration
1342
1346
  extend ::Gapic::Config
1343
1347
 
1344
- config_attr :endpoint, "secretmanager.googleapis.com", String
1345
- config_attr :credentials, nil do |value|
1348
+ config_attr :endpoint, "secretmanager.googleapis.com", ::String
1349
+ config_attr :credentials, nil do |value|
1346
1350
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1347
1351
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1348
1352
  allowed.any? { |klass| klass === value }
1349
1353
  end
1350
- config_attr :scope, nil, ::String, ::Array, nil
1351
- config_attr :lib_name, nil, ::String, nil
1352
- config_attr :lib_version, nil, ::String, nil
1353
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1354
- config_attr :interceptors, nil, ::Array, nil
1355
- config_attr :timeout, nil, ::Numeric, nil
1356
- config_attr :metadata, nil, ::Hash, nil
1357
- config_attr :retry_policy, nil, ::Hash, Proc, nil
1354
+ config_attr :scope, nil, ::String, ::Array, nil
1355
+ config_attr :lib_name, nil, ::String, nil
1356
+ config_attr :lib_version, nil, ::String, nil
1357
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1358
+ config_attr :interceptors, nil, ::Array, nil
1359
+ config_attr :timeout, nil, ::Numeric, nil
1360
+ config_attr :metadata, nil, ::Hash, nil
1361
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1362
+ config_attr :quota_project, nil, ::String, nil
1358
1363
 
1359
1364
  # @private
1360
1365
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- VERSION = "0.3.1"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/secretmanager/v1/service.proto for package 'Google.Cloud.SecretManager.V1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
  require 'grpc'
21
20
  require 'google/cloud/secretmanager/v1/service_pb'
@@ -148,7 +148,7 @@ module Google
148
148
  end
149
149
 
150
150
  # A secret payload resource in the Secret Manager API. This contains the
151
- # sensitive secret data that is associated with a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
151
+ # sensitive secret payload that is associated with a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
152
152
  # @!attribute [rw] data
153
153
  # @return [::String]
154
154
  # The secret data. Must be no larger than 64KiB.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-secret_manager-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.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