google-cloud-secret_manager-v1beta1 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/secret_manager/v1beta1/secret_manager_service/client.rb +187 -3
- data/lib/google/cloud/secret_manager/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/cloud/secrets/v1beta1/resources.rb +1 -1
- data/proto_docs/google/iam/v1/policy.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e279fc4f5eaf4d3fac171b9dd5a4aeb7f71b978bb339234ed0a473463a425746
|
4
|
+
data.tar.gz: 7a12addd437e83c4105ab318359248fe8e8d2a2321cc217e182e14d51f5cbaa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 632a144908b5fb8ae785c547f55c042d33e4013407ffb35d3146904a3e1e0e3c5096dde6d1010a47dddf7bdce9985f363cf0984d606f456b2ec15be7f7dc9de5
|
7
|
+
data.tar.gz: 685f96628760baba81e6be82d645530102d4e7a8cdc2e5714dbd1e8253771949c3ba173c583548fb00f441847398466f390358179db3514d7b62a3b12d449cb6
|
@@ -40,7 +40,18 @@ module Google
|
|
40
40
|
attr_reader :secret_manager_service_stub
|
41
41
|
|
42
42
|
##
|
43
|
-
#
|
43
|
+
# Configure the SecretManagerService Client class.
|
44
|
+
#
|
45
|
+
# See {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client::Configuration}
|
46
|
+
# for a description of the configuration fields.
|
47
|
+
#
|
48
|
+
# ## Example
|
49
|
+
#
|
50
|
+
# To modify the configuration for all SecretManagerService clients:
|
51
|
+
#
|
52
|
+
# Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.configure do |config|
|
53
|
+
# config.timeout = 10_000
|
54
|
+
# end
|
44
55
|
#
|
45
56
|
# @yield [config] Configure the Client client.
|
46
57
|
# @yieldparam config [Client::Configuration]
|
@@ -69,6 +80,9 @@ module Google
|
|
69
80
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
70
81
|
# should be made on {Client.configure}.
|
71
82
|
#
|
83
|
+
# See {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client::Configuration}
|
84
|
+
# for a description of the configuration fields.
|
85
|
+
#
|
72
86
|
# @yield [config] Configure the Client client.
|
73
87
|
# @yieldparam config [Client::Configuration]
|
74
88
|
#
|
@@ -80,9 +94,23 @@ module Google
|
|
80
94
|
end
|
81
95
|
|
82
96
|
##
|
83
|
-
# Create a new
|
97
|
+
# Create a new SecretManagerService client object.
|
84
98
|
#
|
85
|
-
#
|
99
|
+
# ## Examples
|
100
|
+
#
|
101
|
+
# To create a new SecretManagerService client with the default
|
102
|
+
# configuration:
|
103
|
+
#
|
104
|
+
# client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
|
105
|
+
#
|
106
|
+
# To create a new SecretManagerService client with a custom
|
107
|
+
# configuration:
|
108
|
+
#
|
109
|
+
# client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new do |config|
|
110
|
+
# config.timeout = 10_000
|
111
|
+
# end
|
112
|
+
#
|
113
|
+
# @yield [config] Configure the SecretManagerService client.
|
86
114
|
# @yieldparam config [Client::Configuration]
|
87
115
|
#
|
88
116
|
def initialize
|
@@ -1100,6 +1128,81 @@ module Google
|
|
1100
1128
|
|
1101
1129
|
##
|
1102
1130
|
# Configuration class for the SecretManagerService API.
|
1131
|
+
#
|
1132
|
+
# This class represents the configuration for SecretManagerService,
|
1133
|
+
# providing control over timeouts, retry behavior, logging, transport
|
1134
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
1135
|
+
# applied individually to specific RPCs. See
|
1136
|
+
# {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client::Configuration::Rpcs}
|
1137
|
+
# for a list of RPCs that can be configured independently.
|
1138
|
+
#
|
1139
|
+
# Configuration can be applied globally to all clients, or to a single client
|
1140
|
+
# on construction.
|
1141
|
+
#
|
1142
|
+
# # Examples
|
1143
|
+
#
|
1144
|
+
# To modify the global config, setting the timeout for list_secrets
|
1145
|
+
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
1146
|
+
#
|
1147
|
+
# Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.configure do |config|
|
1148
|
+
# config.timeout = 10_000
|
1149
|
+
# config.rpcs.list_secrets.timeout = 20_000
|
1150
|
+
# end
|
1151
|
+
#
|
1152
|
+
# To apply the above configuration only to a new client:
|
1153
|
+
#
|
1154
|
+
# client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new do |config|
|
1155
|
+
# config.timeout = 10_000
|
1156
|
+
# config.rpcs.list_secrets.timeout = 20_000
|
1157
|
+
# end
|
1158
|
+
#
|
1159
|
+
# @!attribute [rw] endpoint
|
1160
|
+
# The hostname or hostname:port of the service endpoint.
|
1161
|
+
# Defaults to `"secretmanager.googleapis.com"`.
|
1162
|
+
# @return [String]
|
1163
|
+
# @!attribute [rw] credentials
|
1164
|
+
# Credentials to send with calls. You may provide any of the following types:
|
1165
|
+
# * (`String`) The path to a service account key file in JSON format
|
1166
|
+
# * (`Hash`) A service account key as a Hash
|
1167
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1168
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
1169
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1170
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
1171
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1172
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1173
|
+
# * (`nil`) indicating no credentials
|
1174
|
+
# @return [Object]
|
1175
|
+
# @!attribute [rw] scope
|
1176
|
+
# The OAuth scopes
|
1177
|
+
# @return [Array<String>]
|
1178
|
+
# @!attribute [rw] lib_name
|
1179
|
+
# The library name as recorded in instrumentation and logging
|
1180
|
+
# @return [String]
|
1181
|
+
# @!attribute [rw] lib_version
|
1182
|
+
# The library version as recorded in instrumentation and logging
|
1183
|
+
# @return [String]
|
1184
|
+
# @!attribute [rw] channel_args
|
1185
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
1186
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
1187
|
+
# @return [Hash]
|
1188
|
+
# @!attribute [rw] interceptors
|
1189
|
+
# An array of interceptors that are run before calls are executed.
|
1190
|
+
# @return [Array<GRPC::ClientInterceptor>]
|
1191
|
+
# @!attribute [rw] timeout
|
1192
|
+
# The call timeout in milliseconds.
|
1193
|
+
# @return [Numeric]
|
1194
|
+
# @!attribute [rw] metadata
|
1195
|
+
# Additional gRPC headers to be sent with the call.
|
1196
|
+
# @return [Hash{Symbol=>String}]
|
1197
|
+
# @!attribute [rw] retry_policy
|
1198
|
+
# The retry policy. The value is a hash with the following keys:
|
1199
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1200
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1201
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1202
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1203
|
+
# trigger a retry.
|
1204
|
+
# @return [Hash]
|
1205
|
+
#
|
1103
1206
|
class Configuration
|
1104
1207
|
extend Gapic::Config
|
1105
1208
|
|
@@ -1118,12 +1221,17 @@ module Google
|
|
1118
1221
|
config_attr :metadata, nil, Hash, nil
|
1119
1222
|
config_attr :retry_policy, nil, Hash, Proc, nil
|
1120
1223
|
|
1224
|
+
# @private
|
1121
1225
|
def initialize parent_config = nil
|
1122
1226
|
@parent_config = parent_config unless parent_config.nil?
|
1123
1227
|
|
1124
1228
|
yield self if block_given?
|
1125
1229
|
end
|
1126
1230
|
|
1231
|
+
##
|
1232
|
+
# Configurations for individual RPCs
|
1233
|
+
# @return [Rpcs]
|
1234
|
+
#
|
1127
1235
|
def rpcs
|
1128
1236
|
@rpcs ||= begin
|
1129
1237
|
parent_rpcs = nil
|
@@ -1134,23 +1242,99 @@ module Google
|
|
1134
1242
|
|
1135
1243
|
##
|
1136
1244
|
# Configuration RPC class for the SecretManagerService API.
|
1245
|
+
#
|
1246
|
+
# Includes fields providing the configuration for each RPC in this service.
|
1247
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
1248
|
+
# the following configuration fields:
|
1249
|
+
#
|
1250
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
|
1251
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
1252
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1253
|
+
# include the following keys:
|
1254
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1255
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1256
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1257
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1258
|
+
# trigger a retry.
|
1259
|
+
#
|
1137
1260
|
class Rpcs
|
1261
|
+
##
|
1262
|
+
# RPC-specific configuration for `list_secrets`
|
1263
|
+
# @return [Gapic::Config::Method]
|
1264
|
+
#
|
1138
1265
|
attr_reader :list_secrets
|
1266
|
+
##
|
1267
|
+
# RPC-specific configuration for `create_secret`
|
1268
|
+
# @return [Gapic::Config::Method]
|
1269
|
+
#
|
1139
1270
|
attr_reader :create_secret
|
1271
|
+
##
|
1272
|
+
# RPC-specific configuration for `add_secret_version`
|
1273
|
+
# @return [Gapic::Config::Method]
|
1274
|
+
#
|
1140
1275
|
attr_reader :add_secret_version
|
1276
|
+
##
|
1277
|
+
# RPC-specific configuration for `get_secret`
|
1278
|
+
# @return [Gapic::Config::Method]
|
1279
|
+
#
|
1141
1280
|
attr_reader :get_secret
|
1281
|
+
##
|
1282
|
+
# RPC-specific configuration for `update_secret`
|
1283
|
+
# @return [Gapic::Config::Method]
|
1284
|
+
#
|
1142
1285
|
attr_reader :update_secret
|
1286
|
+
##
|
1287
|
+
# RPC-specific configuration for `delete_secret`
|
1288
|
+
# @return [Gapic::Config::Method]
|
1289
|
+
#
|
1143
1290
|
attr_reader :delete_secret
|
1291
|
+
##
|
1292
|
+
# RPC-specific configuration for `list_secret_versions`
|
1293
|
+
# @return [Gapic::Config::Method]
|
1294
|
+
#
|
1144
1295
|
attr_reader :list_secret_versions
|
1296
|
+
##
|
1297
|
+
# RPC-specific configuration for `get_secret_version`
|
1298
|
+
# @return [Gapic::Config::Method]
|
1299
|
+
#
|
1145
1300
|
attr_reader :get_secret_version
|
1301
|
+
##
|
1302
|
+
# RPC-specific configuration for `access_secret_version`
|
1303
|
+
# @return [Gapic::Config::Method]
|
1304
|
+
#
|
1146
1305
|
attr_reader :access_secret_version
|
1306
|
+
##
|
1307
|
+
# RPC-specific configuration for `disable_secret_version`
|
1308
|
+
# @return [Gapic::Config::Method]
|
1309
|
+
#
|
1147
1310
|
attr_reader :disable_secret_version
|
1311
|
+
##
|
1312
|
+
# RPC-specific configuration for `enable_secret_version`
|
1313
|
+
# @return [Gapic::Config::Method]
|
1314
|
+
#
|
1148
1315
|
attr_reader :enable_secret_version
|
1316
|
+
##
|
1317
|
+
# RPC-specific configuration for `destroy_secret_version`
|
1318
|
+
# @return [Gapic::Config::Method]
|
1319
|
+
#
|
1149
1320
|
attr_reader :destroy_secret_version
|
1321
|
+
##
|
1322
|
+
# RPC-specific configuration for `set_iam_policy`
|
1323
|
+
# @return [Gapic::Config::Method]
|
1324
|
+
#
|
1150
1325
|
attr_reader :set_iam_policy
|
1326
|
+
##
|
1327
|
+
# RPC-specific configuration for `get_iam_policy`
|
1328
|
+
# @return [Gapic::Config::Method]
|
1329
|
+
#
|
1151
1330
|
attr_reader :get_iam_policy
|
1331
|
+
##
|
1332
|
+
# RPC-specific configuration for `test_iam_permissions`
|
1333
|
+
# @return [Gapic::Config::Method]
|
1334
|
+
#
|
1152
1335
|
attr_reader :test_iam_permissions
|
1153
1336
|
|
1337
|
+
# @private
|
1154
1338
|
def initialize parent_rpcs = nil
|
1155
1339
|
list_secrets_config = parent_rpcs&.list_secrets if parent_rpcs&.respond_to? :list_secrets
|
1156
1340
|
@list_secrets = Gapic::Config::Method.new list_secrets_config
|
@@ -165,7 +165,7 @@ module Google
|
|
165
165
|
# Optional. The field on the resource that designates the resource name
|
166
166
|
# field. If omitted, this is assumed to be "name".
|
167
167
|
# @!attribute [rw] history
|
168
|
-
# @return [
|
168
|
+
# @return [Google::Api::ResourceDescriptor::History]
|
169
169
|
# Optional. The historical or future-looking state of the resource pattern.
|
170
170
|
#
|
171
171
|
# Example:
|
@@ -81,7 +81,7 @@ module Google
|
|
81
81
|
# Only present if [state][google.cloud.secrets.v1beta1.SecretVersion.state] is
|
82
82
|
# [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED].
|
83
83
|
# @!attribute [r] state
|
84
|
-
# @return [
|
84
|
+
# @return [Google::Cloud::SecretManager::V1beta1::SecretVersion::State]
|
85
85
|
# Output only. The current state of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
|
86
86
|
class SecretVersion
|
87
87
|
include Google::Protobuf::MessageExts
|
@@ -122,7 +122,7 @@ module Google
|
|
122
122
|
# One delta entry for Binding. Each individual change (only one member in each
|
123
123
|
# entry) to a binding will be a separate entry.
|
124
124
|
# @!attribute [rw] action
|
125
|
-
# @return [
|
125
|
+
# @return [Google::Iam::V1::BindingDelta::Action]
|
126
126
|
# The action that was performed on a Binding.
|
127
127
|
# Required
|
128
128
|
# @!attribute [rw] role
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-secret_manager-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
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-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
117
|
+
version: '0.18'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0.
|
124
|
+
version: '0.18'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: yard
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|