google-cloud-secret_manager-v1 0.20.0 → 1.0.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.
@@ -21,11 +21,13 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
24
+ # Request message for
25
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
25
26
  # @!attribute [rw] parent
26
27
  # @return [::String]
27
28
  # Required. The resource name of the project associated with the
28
- # {::Google::Cloud::SecretManager::V1::Secret Secrets}, in the format `projects/*`.
29
+ # {::Google::Cloud::SecretManager::V1::Secret Secrets}, in the format `projects/*`
30
+ # or `projects/*/locations/*`
29
31
  # @!attribute [rw] page_size
30
32
  # @return [::Integer]
31
33
  # Optional. The maximum number of results to be returned in a single page. If
@@ -47,28 +49,35 @@ module Google
47
49
  extend ::Google::Protobuf::MessageExts::ClassMethods
48
50
  end
49
51
 
50
- # Response message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
52
+ # Response message for
53
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
51
54
  # @!attribute [rw] secrets
52
55
  # @return [::Array<::Google::Cloud::SecretManager::V1::Secret>]
53
- # The list of {::Google::Cloud::SecretManager::V1::Secret Secrets} sorted in reverse by create_time (newest
54
- # first).
56
+ # The list of {::Google::Cloud::SecretManager::V1::Secret Secrets} sorted in
57
+ # reverse by create_time (newest first).
55
58
  # @!attribute [rw] next_page_token
56
59
  # @return [::String]
57
60
  # A token to retrieve the next page of results. Pass this value in
58
- # {::Google::Cloud::SecretManager::V1::ListSecretsRequest#page_token ListSecretsRequest.page_token} to retrieve the next page.
61
+ # {::Google::Cloud::SecretManager::V1::ListSecretsRequest#page_token ListSecretsRequest.page_token}
62
+ # to retrieve the next page.
59
63
  # @!attribute [rw] total_size
60
64
  # @return [::Integer]
61
- # The total number of {::Google::Cloud::SecretManager::V1::Secret Secrets}.
65
+ # The total number of {::Google::Cloud::SecretManager::V1::Secret Secrets} but 0
66
+ # when the
67
+ # {::Google::Cloud::SecretManager::V1::ListSecretsRequest#filter ListSecretsRequest.filter}
68
+ # field is set.
62
69
  class ListSecretsResponse
63
70
  include ::Google::Protobuf::MessageExts
64
71
  extend ::Google::Protobuf::MessageExts::ClassMethods
65
72
  end
66
73
 
67
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#create_secret SecretManagerService.CreateSecret}.
74
+ # Request message for
75
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#create_secret SecretManagerService.CreateSecret}.
68
76
  # @!attribute [rw] parent
69
77
  # @return [::String]
70
78
  # Required. The resource name of the project to associate with the
71
- # {::Google::Cloud::SecretManager::V1::Secret Secret}, in the format `projects/*`.
79
+ # {::Google::Cloud::SecretManager::V1::Secret Secret}, in the format `projects/*`
80
+ # or `projects/*/locations/*`.
72
81
  # @!attribute [rw] secret_id
73
82
  # @return [::String]
74
83
  # Required. This must be unique within the project.
@@ -78,40 +87,50 @@ module Google
78
87
  # underscore (`_`) characters.
79
88
  # @!attribute [rw] secret
80
89
  # @return [::Google::Cloud::SecretManager::V1::Secret]
81
- # Required. A {::Google::Cloud::SecretManager::V1::Secret Secret} with initial field values.
90
+ # Required. A {::Google::Cloud::SecretManager::V1::Secret Secret} with initial
91
+ # field values.
82
92
  class CreateSecretRequest
83
93
  include ::Google::Protobuf::MessageExts
84
94
  extend ::Google::Protobuf::MessageExts::ClassMethods
85
95
  end
86
96
 
87
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion}.
97
+ # Request message for
98
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion}.
88
99
  # @!attribute [rw] parent
89
100
  # @return [::String]
90
- # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} to associate with the
91
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format `projects/*/secrets/*`.
101
+ # Required. The resource name of the
102
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} to associate with the
103
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
104
+ # `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
92
105
  # @!attribute [rw] payload
93
106
  # @return [::Google::Cloud::SecretManager::V1::SecretPayload]
94
- # Required. The secret payload of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
107
+ # Required. The secret payload of the
108
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
95
109
  class AddSecretVersionRequest
96
110
  include ::Google::Protobuf::MessageExts
97
111
  extend ::Google::Protobuf::MessageExts::ClassMethods
98
112
  end
99
113
 
100
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#get_secret SecretManagerService.GetSecret}.
114
+ # Request message for
115
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#get_secret SecretManagerService.GetSecret}.
101
116
  # @!attribute [rw] name
102
117
  # @return [::String]
103
- # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret}, in the format `projects/*/secrets/*`.
118
+ # Required. The resource name of the
119
+ # {::Google::Cloud::SecretManager::V1::Secret Secret}, in the format
120
+ # `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
104
121
  class GetSecretRequest
105
122
  include ::Google::Protobuf::MessageExts
106
123
  extend ::Google::Protobuf::MessageExts::ClassMethods
107
124
  end
108
125
 
109
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
126
+ # Request message for
127
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
110
128
  # @!attribute [rw] parent
111
129
  # @return [::String]
112
- # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} associated with the
113
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} to list, in the format
114
- # `projects/*/secrets/*`.
130
+ # Required. The resource name of the
131
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} associated with the
132
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} to list, in
133
+ # the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
115
134
  # @!attribute [rw] page_size
116
135
  # @return [::Integer]
117
136
  # Optional. The maximum number of results to be returned in a single page. If
@@ -133,40 +152,53 @@ module Google
133
152
  extend ::Google::Protobuf::MessageExts::ClassMethods
134
153
  end
135
154
 
136
- # Response message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
155
+ # Response message for
156
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
137
157
  # @!attribute [rw] versions
138
158
  # @return [::Array<::Google::Cloud::SecretManager::V1::SecretVersion>]
139
- # The list of {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} sorted in reverse by
140
- # create_time (newest first).
159
+ # The list of {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}
160
+ # sorted in reverse by create_time (newest first).
141
161
  # @!attribute [rw] next_page_token
142
162
  # @return [::String]
143
163
  # A token to retrieve the next page of results. Pass this value in
144
- # {::Google::Cloud::SecretManager::V1::ListSecretVersionsRequest#page_token ListSecretVersionsRequest.page_token} to retrieve the next page.
164
+ # {::Google::Cloud::SecretManager::V1::ListSecretVersionsRequest#page_token ListSecretVersionsRequest.page_token}
165
+ # to retrieve the next page.
145
166
  # @!attribute [rw] total_size
146
167
  # @return [::Integer]
147
- # The total number of {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}.
168
+ # The total number of
169
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} but 0 when
170
+ # the
171
+ # {::Google::Cloud::SecretManager::V1::ListSecretsRequest#filter ListSecretsRequest.filter}
172
+ # field is set.
148
173
  class ListSecretVersionsResponse
149
174
  include ::Google::Protobuf::MessageExts
150
175
  extend ::Google::Protobuf::MessageExts::ClassMethods
151
176
  end
152
177
 
153
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#get_secret_version SecretManagerService.GetSecretVersion}.
178
+ # Request message for
179
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#get_secret_version SecretManagerService.GetSecretVersion}.
154
180
  # @!attribute [rw] name
155
181
  # @return [::String]
156
- # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
157
- # `projects/*/secrets/*/versions/*`.
182
+ # Required. The resource name of the
183
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
184
+ # `projects/*/secrets/*/versions/*` or
185
+ # `projects/*/locations/*/secrets/*/versions/*`.
158
186
  #
159
- # `projects/*/secrets/*/versions/latest` is an alias to the most recently
160
- # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
187
+ # `projects/*/secrets/*/versions/latest` or
188
+ # `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most
189
+ # recently created
190
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
161
191
  class GetSecretVersionRequest
162
192
  include ::Google::Protobuf::MessageExts
163
193
  extend ::Google::Protobuf::MessageExts::ClassMethods
164
194
  end
165
195
 
166
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#update_secret SecretManagerService.UpdateSecret}.
196
+ # Request message for
197
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#update_secret SecretManagerService.UpdateSecret}.
167
198
  # @!attribute [rw] secret
168
199
  # @return [::Google::Cloud::SecretManager::V1::Secret]
169
- # Required. {::Google::Cloud::SecretManager::V1::Secret Secret} with updated field values.
200
+ # Required. {::Google::Cloud::SecretManager::V1::Secret Secret} with updated field
201
+ # values.
170
202
  # @!attribute [rw] update_mask
171
203
  # @return [::Google::Protobuf::FieldMask]
172
204
  # Required. Specifies the fields to be updated.
@@ -175,24 +207,32 @@ module Google
175
207
  extend ::Google::Protobuf::MessageExts::ClassMethods
176
208
  end
177
209
 
178
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
210
+ # Request message for
211
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
179
212
  # @!attribute [rw] name
180
213
  # @return [::String]
181
- # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
182
- # `projects/*/secrets/*/versions/*`.
214
+ # Required. The resource name of the
215
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
216
+ # `projects/*/secrets/*/versions/*` or
217
+ # `projects/*/locations/*/secrets/*/versions/*`.
183
218
  #
184
- # `projects/*/secrets/*/versions/latest` is an alias to the most recently
185
- # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
219
+ # `projects/*/secrets/*/versions/latest` or
220
+ # `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most
221
+ # recently created
222
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
186
223
  class AccessSecretVersionRequest
187
224
  include ::Google::Protobuf::MessageExts
188
225
  extend ::Google::Protobuf::MessageExts::ClassMethods
189
226
  end
190
227
 
191
- # Response message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
228
+ # Response message for
229
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
192
230
  # @!attribute [rw] name
193
231
  # @return [::String]
194
- # The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
195
- # `projects/*/secrets/*/versions/*`.
232
+ # The resource name of the
233
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
234
+ # `projects/*/secrets/*/versions/*` or
235
+ # `projects/*/locations/*/secrets/*/versions/*`.
196
236
  # @!attribute [rw] payload
197
237
  # @return [::Google::Cloud::SecretManager::V1::SecretPayload]
198
238
  # Secret payload
@@ -201,61 +241,75 @@ module Google
201
241
  extend ::Google::Protobuf::MessageExts::ClassMethods
202
242
  end
203
243
 
204
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#delete_secret SecretManagerService.DeleteSecret}.
244
+ # Request message for
245
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#delete_secret SecretManagerService.DeleteSecret}.
205
246
  # @!attribute [rw] name
206
247
  # @return [::String]
207
- # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} to delete in the format
248
+ # Required. The resource name of the
249
+ # {::Google::Cloud::SecretManager::V1::Secret Secret} to delete in the format
208
250
  # `projects/*/secrets/*`.
209
251
  # @!attribute [rw] etag
210
252
  # @return [::String]
211
- # Optional. Etag of the {::Google::Cloud::SecretManager::V1::Secret Secret}. The request succeeds if it matches
212
- # the etag of the currently stored secret object. If the etag is omitted,
213
- # the request succeeds.
253
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::Secret Secret}. The
254
+ # request succeeds if it matches the etag of the currently stored secret
255
+ # object. If the etag is omitted, the request succeeds.
214
256
  class DeleteSecretRequest
215
257
  include ::Google::Protobuf::MessageExts
216
258
  extend ::Google::Protobuf::MessageExts::ClassMethods
217
259
  end
218
260
 
219
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#disable_secret_version SecretManagerService.DisableSecretVersion}.
261
+ # Request message for
262
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#disable_secret_version SecretManagerService.DisableSecretVersion}.
220
263
  # @!attribute [rw] name
221
264
  # @return [::String]
222
- # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to disable in the format
223
- # `projects/*/secrets/*/versions/*`.
265
+ # Required. The resource name of the
266
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to disable in
267
+ # the format `projects/*/secrets/*/versions/*` or
268
+ # `projects/*/locations/*/secrets/*/versions/*`.
224
269
  # @!attribute [rw] etag
225
270
  # @return [::String]
226
- # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
227
- # the etag of the currently stored secret version object. If the etag is
228
- # omitted, the request succeeds.
271
+ # Optional. Etag of the
272
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request
273
+ # succeeds if it matches the etag of the currently stored secret version
274
+ # object. If the etag is omitted, the request succeeds.
229
275
  class DisableSecretVersionRequest
230
276
  include ::Google::Protobuf::MessageExts
231
277
  extend ::Google::Protobuf::MessageExts::ClassMethods
232
278
  end
233
279
 
234
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#enable_secret_version SecretManagerService.EnableSecretVersion}.
280
+ # Request message for
281
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#enable_secret_version SecretManagerService.EnableSecretVersion}.
235
282
  # @!attribute [rw] name
236
283
  # @return [::String]
237
- # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to enable in the format
238
- # `projects/*/secrets/*/versions/*`.
284
+ # Required. The resource name of the
285
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to enable in
286
+ # the format `projects/*/secrets/*/versions/*` or
287
+ # `projects/*/locations/*/secrets/*/versions/*`.
239
288
  # @!attribute [rw] etag
240
289
  # @return [::String]
241
- # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
242
- # the etag of the currently stored secret version object. If the etag is
243
- # omitted, the request succeeds.
290
+ # Optional. Etag of the
291
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request
292
+ # succeeds if it matches the etag of the currently stored secret version
293
+ # object. If the etag is omitted, the request succeeds.
244
294
  class EnableSecretVersionRequest
245
295
  include ::Google::Protobuf::MessageExts
246
296
  extend ::Google::Protobuf::MessageExts::ClassMethods
247
297
  end
248
298
 
249
- # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#destroy_secret_version SecretManagerService.DestroySecretVersion}.
299
+ # Request message for
300
+ # {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#destroy_secret_version SecretManagerService.DestroySecretVersion}.
250
301
  # @!attribute [rw] name
251
302
  # @return [::String]
252
- # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to destroy in the format
253
- # `projects/*/secrets/*/versions/*`.
303
+ # Required. The resource name of the
304
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to destroy in
305
+ # the format `projects/*/secrets/*/versions/*` or
306
+ # `projects/*/locations/*/secrets/*/versions/*`.
254
307
  # @!attribute [rw] etag
255
308
  # @return [::String]
256
- # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
257
- # the etag of the currently stored secret version object. If the etag is
258
- # omitted, the request succeeds.
309
+ # Optional. Etag of the
310
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request
311
+ # succeeds if it matches the etag of the currently stored secret version
312
+ # object. If the etag is omitted, the request succeeds.
259
313
  class DestroySecretVersionRequest
260
314
  include ::Google::Protobuf::MessageExts
261
315
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-secret_manager-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -44,6 +44,26 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: google-cloud-location
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0.7'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 2.a
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0.7'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 2.a
47
67
  - !ruby/object:Gem::Dependency
48
68
  name: grpc-google-iam-v1
49
69
  requirement: !ruby/object:Gem::Requirement
@@ -75,6 +95,7 @@ files:
75
95
  - README.md
76
96
  - lib/google-cloud-secret_manager-v1.rb
77
97
  - lib/google/cloud/secret_manager/v1.rb
98
+ - lib/google/cloud/secret_manager/v1/bindings_override.rb
78
99
  - lib/google/cloud/secret_manager/v1/rest.rb
79
100
  - lib/google/cloud/secret_manager/v1/secret_manager_service.rb
80
101
  - lib/google/cloud/secret_manager/v1/secret_manager_service/client.rb