google-cloud-secret_manager 0.3.1 → 1.0.1

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: 821499f0e0ee1ff42c9709ccdeb23a75a531ce139a042f4304597c223a731f53
4
- data.tar.gz: a7b4585d774149f966a62fee7f4aa619470ed4fb9d8dd604e0a0a3911a76d000
3
+ metadata.gz: a886a1887590dc7fb62954bbee60d282d8f5a68587f3682d4721e3ddcb36aa48
4
+ data.tar.gz: c222304a3a964188f05f801f18f351de3e7226770335ea077ae9e0601e1df5b8
5
5
  SHA512:
6
- metadata.gz: 700c37d726285303e5607b0cabccf75b80e8454b1ee928e51134c017d86eaa464af9f35b96be85abe13f4c14414b296fbe9bdb96590edd3898e44bef91e88eac
7
- data.tar.gz: 5e4a4cb35584f41bf9ce997da7a999d7616e39ba18ccd71247253fe875418bf6832574f711aa68b79fd7f398604f0cee43e79575f121930d0656cddfdc52770a
6
+ metadata.gz: 1a79a185c10e285ba81d4967ea2ef220c30a77a000fc1697a53d29449dcb733c50689ae87b074d836ab97d486189cad2f4740c2da30e5816e74761b2a5dc42aa
7
+ data.tar.gz: 3ca46c092bd3ec14f68094e407934ccf2d4b1bb2b0c789f792394bf6adab04374c99d081bdc815e688ed0b4170d93a1b0299ab43343a83aa5e9bb710d0fc507c
@@ -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
- `Google::Cloud::SecretManager::V1::SecretManagerService::Credentials`):
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
data/README.md CHANGED
@@ -39,7 +39,7 @@ In order to use this library, you first need to go through the following steps:
39
39
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
40
40
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
41
41
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
42
- that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
42
+ that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
43
43
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
44
44
 
45
45
  Configuring a Ruby stdlib logger:
@@ -16,20 +16,4 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- gem "google-cloud-core"
20
- require "google/cloud" unless defined? Google::Cloud.new
21
- require "google/cloud/config"
22
- require "googleauth"
23
-
24
- # Set the default configuration
25
- Google::Cloud.configure.add_config! :secret_manager do |config|
26
- config.add_field! :credentials, nil, match: [String, Hash, Google::Auth::Credentials]
27
- config.add_field! :lib_name, nil, match: String
28
- config.add_field! :lib_version, nil, match: String
29
- config.add_field! :interceptors, nil, match: Array
30
- config.add_field! :timeout, nil, match: Numeric
31
- config.add_field! :metadata, nil, match: Hash
32
- config.add_field! :retry_policy, nil, match: [Hash, Proc]
33
- end
34
-
35
- require "google/cloud/secret_manager/version"
19
+ require "google/cloud/secret_manager" unless defined? Google::Cloud::SecretManager::VERSION
@@ -16,7 +16,30 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "google-cloud-secret_manager"
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.
23
+ require "google/cloud/secret_manager/version"
24
+
25
+ require "googleauth"
26
+ gem "google-cloud-core"
27
+ require "google/cloud" unless defined? ::Google::Cloud.new
28
+ require "google/cloud/config"
29
+
30
+ # Set the default configuration
31
+ ::Google::Cloud.configure.add_config! :secret_manager do |config|
32
+ config.add_field! :endpoint, "secretmanager.googleapis.com", match: ::String
33
+ config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
34
+ config.add_field! :scope, nil, match: [::Array, ::String]
35
+ config.add_field! :lib_name, nil, match: ::String
36
+ config.add_field! :lib_version, nil, match: ::String
37
+ config.add_field! :interceptors, nil, match: ::Array
38
+ config.add_field! :timeout, nil, match: ::Numeric
39
+ config.add_field! :metadata, nil, match: ::Hash
40
+ config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
41
+ config.add_field! :quota_project, nil, match: ::String
42
+ end
20
43
 
21
44
  module Google
22
45
  module Cloud
@@ -42,7 +65,7 @@ module Google
42
65
  # * Secret
43
66
  # * SecretVersion
44
67
  #
45
- # @param version [String, Symbol] The API version to connect to. Optional.
68
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
46
69
  # Defaults to `:v1`.
47
70
  # @return [SecretManagerService::Client] A client object for the specified version.
48
71
  #
@@ -71,8 +94,8 @@ module Google
71
94
  # The library version as recorded in instrumentation and logging.
72
95
  # * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
73
96
  # An array of interceptors that are run before calls are executed.
74
- # * `timeout` (*type:* `Integer`) -
75
- # Default timeout in milliseconds.
97
+ # * `timeout` (*type:* `Numeric`) -
98
+ # Default timeout in seconds.
76
99
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
77
100
  # Additional gRPC headers to be sent with the call.
78
101
  # * `retry_policy` (*type:* `Hash`) -
@@ -83,13 +106,16 @@ module Google
83
106
  # * `:retry_codes` (*type:* `Array<String>`) -
84
107
  # The error codes that should trigger a retry.
85
108
  #
86
- # @return [Google::Cloud::Config] The default configuration used by this library
109
+ # @return [::Google::Cloud::Config] The default configuration used by this library
87
110
  #
88
111
  def self.configure
89
- yield Google::Cloud.configure.secret_manager if block_given?
112
+ yield ::Google::Cloud.configure.secret_manager if block_given?
90
113
 
91
- Google::Cloud.configure.secret_manager
114
+ ::Google::Cloud.configure.secret_manager
92
115
  end
93
116
  end
94
117
  end
95
118
  end
119
+
120
+ helper_path = ::File.join __dir__, "secret_manager", "helpers.rb"
121
+ require "google/cloud/secret_manager/helpers" if ::File.file? helper_path
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module SecretManager
19
- VERSION = "0.3.1".freeze
19
+ VERSION = "1.0.1".freeze
20
20
  end
21
21
  end
22
22
  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.3.1
4
+ version: 1.0.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-03-25 00:00:00.000000000 Z
11
+ date: 2021-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.3'
55
- - !ruby/object:Gem::Dependency
56
- name: autotest-suffix
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '1.1'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '1.1'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: google-style
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,56 +72,56 @@ dependencies:
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '5.10'
75
+ version: '5.14'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '5.10'
82
+ version: '5.14'
97
83
  - !ruby/object:Gem::Dependency
98
- name: minitest-autotest
84
+ name: minitest-focus
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '1.0'
89
+ version: '1.1'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '1.0'
96
+ version: '1.1'
111
97
  - !ruby/object:Gem::Dependency
112
- name: minitest-focus
98
+ name: minitest-rg
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '1.1'
103
+ version: '5.2'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: '1.1'
110
+ version: '5.2'
125
111
  - !ruby/object:Gem::Dependency
126
- name: minitest-rg
112
+ name: rake
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - "~>"
115
+ - - ">="
130
116
  - !ruby/object:Gem::Version
131
- version: '5.2'
117
+ version: '12.0'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - "~>"
122
+ - - ">="
137
123
  - !ruby/object:Gem::Version
138
- version: '5.2'
124
+ version: '12.0'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: redcarpet
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -213,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
199
  - !ruby/object:Gem::Version
214
200
  version: '0'
215
201
  requirements: []
216
- rubygems_version: 3.0.6
202
+ rubygems_version: 3.2.6
217
203
  signing_key:
218
204
  specification_version: 4
219
205
  summary: API Client library for the Secret Manager API