google-cloud-secret_manager-v1beta1 0.5.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcc045292215ef9e67cc509446a12ceb6ac21e2af29be20f60d71698708e7376
4
- data.tar.gz: f178889683a4111279f966d19b6469c7c546ddae7c7801bba7e34eeaf71e49e8
3
+ metadata.gz: 84be796d639c130b885bee50e85c277fa384f87f1514c1212c63d306042ed5b5
4
+ data.tar.gz: 017401da3548583ce2a9f11b0233791377dc8d6ef5416c90bd7736e98e0f2871
5
5
  SHA512:
6
- metadata.gz: 173027c91900205a2ec1d0cc20ebeacefea3e0ecaaaa114945833f841af93c70781cd227e08430efa174d3b309fb130f51932590e0dbb3c7813b4e0a0a4e4634
7
- data.tar.gz: f414606073391a97b98d21b0d39b78dd05854640af1a4b73f4442d9865ed982f711e41f4fd4f6aacbb07e067c68680b9f91bb9f4a6286af52809e9dd93c661f1
6
+ metadata.gz: a8dceda2668bf02d45616c98ef60fc131a7ba99104613088a1c434eb343f234c3694b573a2351fe2c58466c83613040457560b9522d00a57149494482ad64e27
7
+ data.tar.gz: cde4c5d1532b894351633b52feb549b70c9ad4a72812c1856d96b9fbd671cd0364ce20f56ebc03ecc80331f54caab6cf4f79fd49b28df013df3aaadb575cdbd0
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/secretmanager.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.list_secrets request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-secret_manager-v1beta1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/secret-manager)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -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::V1beta1::SecretManagerService::Stub,
@@ -288,7 +289,7 @@ module Google
288
289
  # contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and
289
290
  # underscore (`_`) characters.
290
291
  # @param secret [::Google::Cloud::SecretManager::V1beta1::Secret, ::Hash]
291
- # A {::Google::Cloud::SecretManager::V1beta1::Secret Secret} with initial field values.
292
+ # Required. A {::Google::Cloud::SecretManager::V1beta1::Secret Secret} with initial field values.
292
293
  #
293
294
  # @yield [response, operation] Access the result along with the RPC operation
294
295
  # @yieldparam response [::Google::Cloud::SecretManager::V1beta1::Secret]
@@ -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
@@ -1370,7 +1375,7 @@ module Google
1370
1375
  def rpcs
1371
1376
  @rpcs ||= begin
1372
1377
  parent_rpcs = nil
1373
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
1378
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1374
1379
  Rpcs.new parent_rpcs
1375
1380
  end
1376
1381
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1beta1
24
- VERSION = "0.5.1"
24
+ VERSION = "0.6.3"
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/secrets/v1beta1/service.proto for package 'Google.Cloud.SecretManager.V1beta1'
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/secrets/v1beta1/service_pb'
@@ -71,7 +71,7 @@ module Google
71
71
  # underscore (`_`) characters.
72
72
  # @!attribute [rw] secret
73
73
  # @return [::Google::Cloud::SecretManager::V1beta1::Secret]
74
- # A {::Google::Cloud::SecretManager::V1beta1::Secret Secret} with initial field values.
74
+ # Required. A {::Google::Cloud::SecretManager::V1beta1::Secret Secret} with initial field values.
75
75
  class CreateSecretRequest
76
76
  include ::Google::Protobuf::MessageExts
77
77
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-secret_manager-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.3
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-06-18 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
@@ -156,7 +184,6 @@ files:
156
184
  - LICENSE.md
157
185
  - README.md
158
186
  - lib/google-cloud-secret_manager-v1beta1.rb
159
- - lib/google/cloud/common_resources_pb.rb
160
187
  - lib/google/cloud/secret_manager/v1beta1.rb
161
188
  - lib/google/cloud/secret_manager/v1beta1/secret_manager_service.rb
162
189
  - lib/google/cloud/secret_manager/v1beta1/secret_manager_service/client.rb
@@ -197,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
224
  - !ruby/object:Gem::Version
198
225
  version: '0'
199
226
  requirements: []
200
- rubygems_version: 3.0.6
227
+ rubygems_version: 3.1.3
201
228
  signing_key:
202
229
  specification_version: 4
203
230
  summary: API Client library for the Secret Manager V1beta1 API
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end