google-cloud-secret_manager-v1 0.15.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/secret_manager/v1/rest.rb +37 -0
- data/lib/google/cloud/secret_manager/v1/secret_manager_service/client.rb +10 -14
- data/lib/google/cloud/secret_manager/v1/secret_manager_service/rest/client.rb +1473 -0
- data/lib/google/cloud/secret_manager/v1/secret_manager_service/rest/service_stub.rb +941 -0
- data/lib/google/cloud/secret_manager/v1/secret_manager_service/rest.rb +58 -0
- data/lib/google/cloud/secret_manager/v1/secret_manager_service.rb +6 -0
- data/lib/google/cloud/secret_manager/v1/version.rb +1 -1
- data/lib/google/cloud/secret_manager/v1.rb +5 -0
- data/lib/google/cloud/secretmanager/v1/resources_pb.rb +26 -80
- data/lib/google/cloud/secretmanager/v1/service_pb.rb +26 -65
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 930191d1f7cb0a2b51538510b12f9471633e25fdc1d1fc8b2837849a7c5203d5
|
4
|
+
data.tar.gz: bf7a4ba2b66ec33e35a121f4f6ad800c66e6b1a0bde5f136962372a77a192e7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7873f915c7832eb389941babb1c528a8aae701d55559d4e6163dea2d629a5654bb32ec44659183adf63688c2b58d1157e7abf3c0330108bccbe7d9f85a1034ec
|
7
|
+
data.tar.gz: c318b5b6743ca15626f052b077e1e93cd60407176aba78236cb51c044ec9abbcf638dc650f34658a0212ccdd285d04403d0828a636d6f3499b35e6050e02436e
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Secret Manager V1 API
|
2
2
|
|
3
|
-
API
|
3
|
+
Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security.
|
4
4
|
|
5
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
6
|
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
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)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/secret_manager/v1/secret_manager_service/rest"
|
20
|
+
require "google/cloud/secret_manager/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module SecretManager
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/secret_manager/v1/rest"
|
31
|
+
# client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -238,13 +238,11 @@ module Google
|
|
238
238
|
# # Call the list_secrets method.
|
239
239
|
# result = client.list_secrets request
|
240
240
|
#
|
241
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
242
|
-
# #
|
243
|
-
#
|
244
|
-
# # methods are also available for managing paging directly.
|
245
|
-
# result.each do |response|
|
241
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
242
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
243
|
+
# result.each do |item|
|
246
244
|
# # Each element is of type ::Google::Cloud::SecretManager::V1::Secret.
|
247
|
-
# p
|
245
|
+
# p item
|
248
246
|
# end
|
249
247
|
#
|
250
248
|
def list_secrets request, options = nil
|
@@ -791,13 +789,11 @@ module Google
|
|
791
789
|
# # Call the list_secret_versions method.
|
792
790
|
# result = client.list_secret_versions request
|
793
791
|
#
|
794
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
795
|
-
# #
|
796
|
-
#
|
797
|
-
# # methods are also available for managing paging directly.
|
798
|
-
# result.each do |response|
|
792
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
793
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
794
|
+
# result.each do |item|
|
799
795
|
# # Each element is of type ::Google::Cloud::SecretManager::V1::SecretVersion.
|
800
|
-
# p
|
796
|
+
# p item
|
801
797
|
# end
|
802
798
|
#
|
803
799
|
def list_secret_versions request, options = nil
|
@@ -1632,9 +1628,9 @@ module Google
|
|
1632
1628
|
# * (`String`) The path to a service account key file in JSON format
|
1633
1629
|
# * (`Hash`) A service account key as a Hash
|
1634
1630
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1635
|
-
# (see the [googleauth docs](https://
|
1631
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1636
1632
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1637
|
-
# (see the [signet docs](https://
|
1633
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1638
1634
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1639
1635
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1640
1636
|
# * (`nil`) indicating no credentials
|