google-apis-apikeys_v2 0.8.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46e9925dfd29b2b08bee2ca5e6755078e153a893f9b4b5efeb3687d325f369b7
4
- data.tar.gz: 4031f231bd0f00344feac6460d0ce5e5db8aa726fa6a51c71345595f97fc066b
3
+ metadata.gz: '094aa69fe3a8c2c743a82e7f73a308b741822187ca5661aabc39355e52cdb34c'
4
+ data.tar.gz: 8d78039080b021cf0a94ace2d2725a5a673f75e7ea971e2ba58cfa76a333a992
5
5
  SHA512:
6
- metadata.gz: f1b912bd67651cbad5f6bec1378bf964e5977d4a447ac389a7db8bf29d8c33838e8bbdfff1d417e38c0773b1aff1d5bee0f1a93066ca02a39aaac4f3b230df82
7
- data.tar.gz: 2a5896b7929c24dad7d5048d4edd1dee02e02b1c0b5644dd1881b0d370f1bc8b40db84ac68ef3c92a2e064e794593f9c4fe0dcd3c190beed7fdea686a5e1869a
6
+ metadata.gz: c2fbd7eaf9231720b2087bed97ab8b046da4e82ead067a6c53f07b4ad40b7b603f2823e3206144988bd34077186b8ec501068c200d9173862576e544a4fd4b08
7
+ data.tar.gz: 6488315b39aae82bd7f9e426429dcdfd89a83588c21754a61b7db14c6b320dd7c9ed410f8a8cec123fffa389fefab32e7addfb085e2d91e78e7285f84e8b2788
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-apikeys_v2
2
2
 
3
+ ### v0.11.0 (2022-04-07)
4
+
5
+ * Regenerated from discovery document revision 20220405
6
+
7
+ ### v0.10.0 (2022-04-01)
8
+
9
+ * Regenerated from discovery document revision 20220330
10
+
11
+ ### v0.9.0 (2022-03-22)
12
+
13
+ * Regenerated from discovery document revision 20220319
14
+
3
15
  ### v0.8.0 (2022-01-19)
4
16
 
5
17
  * Regenerated from discovery document revision 20220118
@@ -222,30 +222,6 @@ module Google
222
222
  end
223
223
  end
224
224
 
225
- # Request message for `CloneKey` method.
226
- class V2CloneKeyRequest
227
- include Google::Apis::Core::Hashable
228
-
229
- # User specified key id (optional). If specified, it will become the final
230
- # component of the key resource name. The id must be unique within the project,
231
- # must conform with RFC-1034, is restricted to lower-cased letters, and has a
232
- # maximum length of 63 characters. In another word, the id must match the
233
- # regular expression: `[a-z]([a-z0-9-]`0,61`[a-z0-9])?`. The id must NOT be a
234
- # UUID-like string.
235
- # Corresponds to the JSON property `keyId`
236
- # @return [String]
237
- attr_accessor :key_id
238
-
239
- def initialize(**args)
240
- update!(**args)
241
- end
242
-
243
- # Update properties of this object
244
- def update!(**args)
245
- @key_id = args[:key_id] if args.key?(:key_id)
246
- end
247
- end
248
-
249
225
  # Response message for `GetKeyString` method.
250
226
  class V2GetKeyStringResponse
251
227
  include Google::Apis::Core::Hashable
@@ -288,6 +264,13 @@ module Google
288
264
  class V2Key
289
265
  include Google::Apis::Core::Hashable
290
266
 
267
+ # Annotations is an unstructured key-value map stored with a policy that may be
268
+ # set by external tools to store and retrieve arbitrary metadata. They are not
269
+ # queryable and should be preserved when modifying objects.
270
+ # Corresponds to the JSON property `annotations`
271
+ # @return [Hash<String,String>]
272
+ attr_accessor :annotations
273
+
291
274
  # Output only. A timestamp identifying the time this key was originally created.
292
275
  # Corresponds to the JSON property `createTime`
293
276
  # @return [String]
@@ -348,6 +331,7 @@ module Google
348
331
 
349
332
  # Update properties of this object
350
333
  def update!(**args)
334
+ @annotations = args[:annotations] if args.key?(:annotations)
351
335
  @create_time = args[:create_time] if args.key?(:create_time)
352
336
  @delete_time = args[:delete_time] if args.key?(:delete_time)
353
337
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ApikeysV2
18
18
  # Version of the google-apis-apikeys_v2 gem
19
- GEM_VERSION = "0.8.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220118"
25
+ REVISION = "20220405"
26
26
  end
27
27
  end
28
28
  end
@@ -58,12 +58,6 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class V2CloneKeyRequest
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
61
  class V2GetKeyStringResponse
68
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
63
 
@@ -164,13 +158,6 @@ module Google
164
158
  end
165
159
  end
166
160
 
167
- class V2CloneKeyRequest
168
- # @private
169
- class Representation < Google::Apis::Core::JsonRepresentation
170
- property :key_id, as: 'keyId'
171
- end
172
- end
173
-
174
161
  class V2GetKeyStringResponse
175
162
  # @private
176
163
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -188,6 +175,7 @@ module Google
188
175
  class V2Key
189
176
  # @private
190
177
  class Representation < Google::Apis::Core::JsonRepresentation
178
+ hash :annotations, as: 'annotations'
191
179
  property :create_time, as: 'createTime'
192
180
  property :delete_time, as: 'deleteTime'
193
181
  property :display_name, as: 'displayName'
@@ -113,44 +113,6 @@ module Google
113
113
  execute_or_queue_command(command, &block)
114
114
  end
115
115
 
116
- # DEPRECATED: API customers can call `GetKey` and then `CreateKey` methods to
117
- # create a copy of an existing key. Retire `CloneKey` method to eliminate the
118
- # unnessary method from API Keys API. Clones the existing key's restriction and
119
- # display name to a new API key. The service account must have the `apikeys.keys.
120
- # get` and `apikeys.keys.create` permissions in the project. NOTE: Key is a
121
- # global resource; hence the only supported value for location is `global`.
122
- # @param [String] name
123
- # Required. The resource name of the API key to be cloned in the same project.
124
- # @param [Google::Apis::ApikeysV2::V2CloneKeyRequest] v2_clone_key_request_object
125
- # @param [String] fields
126
- # Selector specifying which fields to include in a partial response.
127
- # @param [String] quota_user
128
- # Available to use for quota purposes for server-side applications. Can be any
129
- # arbitrary string assigned to a user, but should not exceed 40 characters.
130
- # @param [Google::Apis::RequestOptions] options
131
- # Request-specific options
132
- #
133
- # @yield [result, err] Result & error if block supplied
134
- # @yieldparam result [Google::Apis::ApikeysV2::Operation] parsed result object
135
- # @yieldparam err [StandardError] error object if request failed
136
- #
137
- # @return [Google::Apis::ApikeysV2::Operation]
138
- #
139
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
- # @raise [Google::Apis::AuthorizationError] Authorization is required
142
- def clone_project_location_key(name, v2_clone_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
143
- command = make_simple_command(:post, 'v2/{+name}:clone', options)
144
- command.request_representation = Google::Apis::ApikeysV2::V2CloneKeyRequest::Representation
145
- command.request_object = v2_clone_key_request_object
146
- command.response_representation = Google::Apis::ApikeysV2::Operation::Representation
147
- command.response_class = Google::Apis::ApikeysV2::Operation
148
- command.params['name'] = name unless name.nil?
149
- command.query['fields'] = fields unless fields.nil?
150
- command.query['quotaUser'] = quota_user unless quota_user.nil?
151
- execute_or_queue_command(command, &block)
152
- end
153
-
154
116
  # Creates a new API key. NOTE: Key is a global resource; hence the only
155
117
  # supported value for location is `global`.
156
118
  # @param [String] parent
@@ -297,17 +259,13 @@ module Google
297
259
  # supported value for location is `global`.
298
260
  # @param [String] parent
299
261
  # Required. Lists all API keys associated with this project.
300
- # @param [String] filter
301
- # Optional. Deprecated: Use `show_deleted` instead. Only list keys that conform
302
- # to the specified filter. The allowed filter strings are `state:ACTIVE` and `
303
- # state:DELETED`. By default, ListKeys returns only active keys.
304
262
  # @param [Fixnum] page_size
305
263
  # Optional. Specifies the maximum number of results to be returned at a time.
306
264
  # @param [String] page_token
307
265
  # Optional. Requests a specific page of results.
308
266
  # @param [Boolean] show_deleted
309
- # Optional. Indicate that keys are marked as deleted within 30 days should also
310
- # be returned. Normally only active keys are returned.
267
+ # Optional. Indicate that keys deleted in the past 30 days should also be
268
+ # returned.
311
269
  # @param [String] fields
312
270
  # Selector specifying which fields to include in a partial response.
313
271
  # @param [String] quota_user
@@ -325,12 +283,11 @@ module Google
325
283
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
326
284
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
327
285
  # @raise [Google::Apis::AuthorizationError] Authorization is required
328
- def list_project_location_keys(parent, filter: nil, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
286
+ def list_project_location_keys(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
329
287
  command = make_simple_command(:get, 'v2/{+parent}/keys', options)
330
288
  command.response_representation = Google::Apis::ApikeysV2::V2ListKeysResponse::Representation
331
289
  command.response_class = Google::Apis::ApikeysV2::V2ListKeysResponse
332
290
  command.params['parent'] = parent unless parent.nil?
333
- command.query['filter'] = filter unless filter.nil?
334
291
  command.query['pageSize'] = page_size unless page_size.nil?
335
292
  command.query['pageToken'] = page_token unless page_token.nil?
336
293
  command.query['showDeleted'] = show_deleted unless show_deleted.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-apikeys_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.11.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: 2022-01-24 00:00:00.000000000 Z
11
+ date: 2022-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apikeys_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-apikeys_v2/v0.8.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apikeys_v2/v0.11.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apikeys_v2
63
63
  post_install_message:
64
64
  rdoc_options: []