google-cloud-secret_manager 0.4.0 → 0.4.1
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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google-cloud-secret_manager.rb +1 -1
- data/lib/google/cloud/secret_manager.rb +18 -13
- data/lib/google/cloud/secret_manager/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e36f7b4635ba0a58c4f33e1a2f65a72ca26673ede86fd2c1adf08bb68036c57
|
4
|
+
data.tar.gz: e2c3366abd1c98b2bdc57f3a571004c6008a599ed91a1ad1c534c3a2c2d4a3ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50bd267d9c63c7ab4f4b41fd143b5beccd5bd1dfa32edc0002510fa16fc272d9599905d9c040eb9e00dce8c91d22a013242ce9cd1ddd36cbda78106afffbf544
|
7
|
+
data.tar.gz: bf98de086e6db946df28000488f92ea2dd560209af4e6731f6688f57f339f144fcfa257d3fc1ef99847b7845725ff45f4574cef0745e91cde48b40097c0cd981
|
data/AUTHENTICATION.md
CHANGED
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-secret_manager
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
|
67
|
+
`::Google::Cloud::SecretManager::V1::SecretManagerService::Credentials`):
|
68
68
|
|
69
69
|
1. `SECRET_MANAGER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `SECRET_MANAGER_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -16,21 +16,26 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
+
# Require this file early so that the version constant gets defined before
|
20
|
+
# requiring "google/cloud". This is because google-cloud-core will load the
|
21
|
+
# entrypoint (gem name) file, which in turn re-requires this file (hence
|
22
|
+
# causing a require cycle) unless the version constant is already defined.
|
19
23
|
require "google/cloud/secret_manager/version"
|
24
|
+
|
20
25
|
require "googleauth"
|
21
26
|
gem "google-cloud-core"
|
22
|
-
require "google/cloud" unless defined? Google::Cloud.new
|
27
|
+
require "google/cloud" unless defined? ::Google::Cloud.new
|
23
28
|
require "google/cloud/config"
|
24
29
|
|
25
30
|
# Set the default configuration
|
26
|
-
Google::Cloud.configure.add_config! :secret_manager do |config|
|
27
|
-
config.add_field! :credentials, nil, match: [String, Hash, Google::Auth::Credentials]
|
28
|
-
config.add_field! :lib_name, nil, match: String
|
29
|
-
config.add_field! :lib_version, nil, match: String
|
30
|
-
config.add_field! :interceptors, nil, match: Array
|
31
|
-
config.add_field! :timeout, nil, match: Numeric
|
32
|
-
config.add_field! :metadata, nil, match: Hash
|
33
|
-
config.add_field! :retry_policy, nil, match: [Hash, Proc]
|
31
|
+
::Google::Cloud.configure.add_config! :secret_manager do |config|
|
32
|
+
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
|
33
|
+
config.add_field! :lib_name, nil, match: ::String
|
34
|
+
config.add_field! :lib_version, nil, match: ::String
|
35
|
+
config.add_field! :interceptors, nil, match: ::Array
|
36
|
+
config.add_field! :timeout, nil, match: ::Numeric
|
37
|
+
config.add_field! :metadata, nil, match: ::Hash
|
38
|
+
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
34
39
|
end
|
35
40
|
|
36
41
|
module Google
|
@@ -57,7 +62,7 @@ module Google
|
|
57
62
|
# * Secret
|
58
63
|
# * SecretVersion
|
59
64
|
#
|
60
|
-
# @param version [String, Symbol] The API version to connect to. Optional.
|
65
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
61
66
|
# Defaults to `:v1`.
|
62
67
|
# @return [SecretManagerService::Client] A client object for the specified version.
|
63
68
|
#
|
@@ -98,12 +103,12 @@ module Google
|
|
98
103
|
# * `:retry_codes` (*type:* `Array<String>`) -
|
99
104
|
# The error codes that should trigger a retry.
|
100
105
|
#
|
101
|
-
# @return [Google::Cloud::Config] The default configuration used by this library
|
106
|
+
# @return [::Google::Cloud::Config] The default configuration used by this library
|
102
107
|
#
|
103
108
|
def self.configure
|
104
|
-
yield Google::Cloud.configure.secret_manager if block_given?
|
109
|
+
yield ::Google::Cloud.configure.secret_manager if block_given?
|
105
110
|
|
106
|
-
Google::Cloud.configure.secret_manager
|
111
|
+
::Google::Cloud.configure.secret_manager
|
107
112
|
end
|
108
113
|
end
|
109
114
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-secret_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
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-
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '5.
|
89
|
+
version: '5.14'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '5.
|
96
|
+
version: '5.14'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: minitest-autotest
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '5.2'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '12.0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '12.0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: redcarpet
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|