google-cloud-secret_manager 2.2.0 → 2.2.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: 0775ded0603a3187e835d8f1b44398a87fe17a1f20b3840cd4f57df49a06cc90
4
- data.tar.gz: 1b66b9ef180ed25ddfe9c361c68d96c151c6126473db867d42f2c847f693b8ee
3
+ metadata.gz: 98bacbb82dbb0433b60b13591ae3dc45dbb94a1c84920ea84a23a54c6b4e50ed
4
+ data.tar.gz: 20b03648d0433cd29353a748a1d7208e80cafdc57c449dd3905619a24a90e79a
5
5
  SHA512:
6
- metadata.gz: 7ecdff2152fe83bff3e06ac8907810c39d66cdf7e4bce0dd9e0ee2a684284473a52167aa0efbc0ec02f307ba795d2706f0ae6de5d0743180219794c694c85ddd
7
- data.tar.gz: 9af06560bf62687571af93f1542497b652d94d32d5be2e0dbe61cca4515529349410c78ee6e8090c16a3e0b00bcfff5d7bc6af6564900bd67a72cfb9d4d29f09
6
+ metadata.gz: 38f7099ce2fb51784ae5e89e9097a0974f3e550244eb2f05bd3ea2a9e5f32f321826524f729452b5eb1db5a9edfe3566081d3b7ad82edbf65ced03cd603f479a
7
+ data.tar.gz: b8d626c1b1bd8a6c6e37954480e9d5c3d38b9ec65a3ac379e39475ed951740490a07eacc19221879bb1a533f722f8f1efc6fac9acc3c36ad29031a8cd14ad249
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Ruby Client for the Secret Manager API
2
2
 
3
- API Client library for the Secret Manager API
3
+ Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security.
4
4
 
5
- Secret Manager is a secure and convenient storage system for API keys, passwords, certificates, and other sensitive data. Secret Manager provides a central place and single source of truth to manage, access, and audit secrets across Google Cloud.
6
5
 
7
6
  Actual client classes for the various versions of this API are defined in
8
7
  _versioned_ client gems, with names of the form `google-cloud-secret_manager-v*`.
@@ -18,7 +17,7 @@ themselves can be found in the client library documentation for the versioned
18
17
  client gems:
19
18
  [google-cloud-secret_manager-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest).
20
19
 
21
- See also the [Product Documentation](https://cloud.google.com/secret-manager)
20
+ See also the [Product Documentation](https://cloud.google.com/secret-manager/docs/overview)
22
21
  for more usage information.
23
22
 
24
23
  ## Quick Start
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module SecretManager
19
- VERSION = "2.2.0".freeze
19
+ VERSION = "2.2.3".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -55,9 +55,11 @@ module Google
55
55
  # `version` parameter. If the SecretManagerService service is
56
56
  # supported by that API version, and the corresponding gem is available, the
57
57
  # appropriate versioned client will be returned.
58
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
59
+ # the `transport` parameter.
58
60
  #
59
61
  # Raises an exception if the currently installed versioned client gem for the
60
- # given API version does not support the SecretManagerService service.
62
+ # given API version does not support the given transport of the SecretManagerService service.
61
63
  # You can determine whether the method will succeed by calling
62
64
  # {Google::Cloud::SecretManager.secret_manager_service_available?}.
63
65
  #
@@ -73,9 +75,10 @@ module Google
73
75
  #
74
76
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
75
77
  # Defaults to `:v1`.
78
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
76
79
  # @return [::Object] A client object for the specified version.
77
80
  #
78
- def self.secret_manager_service version: :v1, &block
81
+ def self.secret_manager_service version: :v1, transport: :grpc, &block
79
82
  require "google/cloud/secret_manager/#{version.to_s.downcase}"
80
83
 
81
84
  package_name = Google::Cloud::SecretManager
@@ -83,6 +86,7 @@ module Google
83
86
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
84
87
  .first
85
88
  service_module = Google::Cloud::SecretManager.const_get(package_name).const_get(:SecretManagerService)
89
+ service_module = service_module.const_get(:Rest) if transport == :rest
86
90
  service_module.const_get(:Client).new(&block)
87
91
  end
88
92
 
@@ -95,9 +99,10 @@ module Google
95
99
  #
96
100
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
97
101
  # Defaults to `:v1`.
102
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
98
103
  # @return [boolean] Whether the service is available.
99
104
  #
100
- def self.secret_manager_service_available? version: :v1
105
+ def self.secret_manager_service_available? version: :v1, transport: :grpc
101
106
  require "google/cloud/secret_manager/#{version.to_s.downcase}"
102
107
  package_name = Google::Cloud::SecretManager
103
108
  .constants
@@ -107,6 +112,10 @@ module Google
107
112
  service_module = Google::Cloud::SecretManager.const_get package_name
108
113
  return false unless service_module.const_defined? :SecretManagerService
109
114
  service_module = service_module.const_get :SecretManagerService
115
+ if transport == :rest
116
+ return false unless service_module.const_defined? :Rest
117
+ service_module = service_module.const_get :Rest
118
+ end
110
119
  service_module.const_defined? :Client
111
120
  rescue ::LoadError
112
121
  false
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-secret_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -37,10 +37,8 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.2'
40
- description: Secret Manager is a secure and convenient storage system for API keys,
41
- passwords, certificates, and other sensitive data. Secret Manager provides a central
42
- place and single source of truth to manage, access, and audit secrets across Google
43
- Cloud.
40
+ description: Stores sensitive data such as API keys, passwords, and certificates.
41
+ Provides convenience while improving security.
44
42
  email: googleapis-packages@google.com
45
43
  executables: []
46
44
  extensions: []
@@ -73,5 +71,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
71
  requirements: []
74
72
  rubygems_version: 3.6.9
75
73
  specification_version: 4
76
- summary: API Client library for the Secret Manager API
74
+ summary: Stores sensitive data such as API keys, passwords, and certificates. Provides
75
+ convenience while improving security.
77
76
  test_files: []