google-cloud-secret_manager-v1beta1 0.10.0 → 0.12.0
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/README.md +3 -3
- data/lib/google/cloud/secret_manager/v1beta1/rest.rb +37 -0
- data/lib/google/cloud/secret_manager/v1beta1/secret_manager_service/client.rb +10 -14
- data/lib/google/cloud/secret_manager/v1beta1/secret_manager_service/rest/client.rb +1441 -0
- data/lib/google/cloud/secret_manager/v1beta1/secret_manager_service/rest/service_stub.rb +941 -0
- data/lib/google/cloud/secret_manager/v1beta1/secret_manager_service/rest.rb +58 -0
- data/lib/google/cloud/secret_manager/v1beta1/secret_manager_service.rb +7 -1
- data/lib/google/cloud/secret_manager/v1beta1/version.rb +1 -1
- data/lib/google/cloud/secret_manager/v1beta1.rb +7 -2
- data/lib/google/cloud/secrets/v1beta1/resources_pb.rb +25 -37
- data/lib/google/cloud/secrets/v1beta1/service_pb.rb +26 -59
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +16 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e657cc236089cb7877f3586e17cb83bb0877033f72a3c5719b9d7c3fd81bfeb
|
4
|
+
data.tar.gz: eb3f48e75c2f4d88644e179346076e25c9bc382b3c0ffee94d8c4a83d535c58b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b3502887784f539fe6ef8b4ce88bfb429d1b3b97ea097e60f5eb1ef49e06d3134e669558f9a17aff2c395c46110e80c236445e9496bdb7b670d7b9d1b3a9f1c
|
7
|
+
data.tar.gz: 9ff3171c3ffad2d914d87580a9cd05d98f81f60880a3ab12c5f78d43a8f43a38c554eb6de8fa3ae8981bc408854ea14931b9190999290a5eab6cd9219f2ef903
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Secret Manager V1beta1 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
|
|
@@ -46,8 +46,8 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
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
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
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://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/v1beta1/secret_manager_service/rest"
|
20
|
+
require "google/cloud/secret_manager/v1beta1/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/v1beta1/rest"
|
31
|
+
# client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1beta1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -232,13 +232,11 @@ module Google
|
|
232
232
|
# # Call the list_secrets method.
|
233
233
|
# result = client.list_secrets request
|
234
234
|
#
|
235
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
236
|
-
# #
|
237
|
-
#
|
238
|
-
# # methods are also available for managing paging directly.
|
239
|
-
# result.each do |response|
|
235
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
236
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
237
|
+
# result.each do |item|
|
240
238
|
# # Each element is of type ::Google::Cloud::SecretManager::V1beta1::Secret.
|
241
|
-
# p
|
239
|
+
# p item
|
242
240
|
# end
|
243
241
|
#
|
244
242
|
def list_secrets request, options = nil
|
@@ -775,13 +773,11 @@ module Google
|
|
775
773
|
# # Call the list_secret_versions method.
|
776
774
|
# result = client.list_secret_versions request
|
777
775
|
#
|
778
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
779
|
-
# #
|
780
|
-
#
|
781
|
-
# # methods are also available for managing paging directly.
|
782
|
-
# result.each do |response|
|
776
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
777
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
778
|
+
# result.each do |item|
|
783
779
|
# # Each element is of type ::Google::Cloud::SecretManager::V1beta1::SecretVersion.
|
784
|
-
# p
|
780
|
+
# p item
|
785
781
|
# end
|
786
782
|
#
|
787
783
|
def list_secret_versions request, options = nil
|
@@ -1600,9 +1596,9 @@ module Google
|
|
1600
1596
|
# * (`String`) The path to a service account key file in JSON format
|
1601
1597
|
# * (`Hash`) A service account key as a Hash
|
1602
1598
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1603
|
-
# (see the [googleauth docs](https://
|
1599
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1604
1600
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1605
|
-
# (see the [signet docs](https://
|
1601
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1606
1602
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1607
1603
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1608
1604
|
# * (`nil`) indicating no credentials
|