google-apis-apikeys_v2 0.7.0 → 0.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7efec06cb49e1190424007fcc6fe49f3637e95a80dda84a742310aecb302197e
4
- data.tar.gz: c8ad462d7ffdc497958f2449818f22ba60149409a6adfb79ad2b48e3bd28416a
3
+ metadata.gz: c9c47e4926f8ddd115ef415bb9eb8f52c3feb1e42e174499f259724a393d9cc5
4
+ data.tar.gz: 1708b4bec5fd31aec58bbdbc47ccd56178e9e0c61ebfa40b8f96b4b7a09126b4
5
5
  SHA512:
6
- metadata.gz: 409bf38664448cf9d4964b4b249014ffee690c4aaf7bc7e9b36d7994cc975e38c74cdf1440a70a5b58a914a8fc13e5bcc317661a6b587071f1e6bd55c2ca08c7
7
- data.tar.gz: 122d5ccf4e8cb80ab68c6b5429ab59921b99f4c13979fca49f990bcf7cece74047b81b276b3a4401801a5453ce4d6b0a342817c86dee7c0c62089f470009d245
6
+ metadata.gz: 4b6db43fd9560970168a14031cb07e455471d4cdf373842b0535a0345f0ff62d617f5af25169039bf33d15d1840cd25315d81cccd4d7443b2264384a86a1009e
7
+ data.tar.gz: 0207f326b69c6785fbd9f9700b65893d219dca117d7cf971c1cd876e3551d2a9ea28ecf46eacb4a79c06bdd42d9e85ab72975387569a9a585f3722cf37595cfa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-apikeys_v2
2
2
 
3
+ ### v0.10.0 (2022-04-01)
4
+
5
+ * Regenerated from discovery document revision 20220330
6
+
7
+ ### v0.9.0 (2022-03-22)
8
+
9
+ * Regenerated from discovery document revision 20220319
10
+
11
+ ### v0.8.0 (2022-01-19)
12
+
13
+ * Regenerated from discovery document revision 20220118
14
+ * Regenerated using generator version 0.4.1
15
+
3
16
  ### v0.7.0 (2022-01-07)
4
17
 
5
18
  * Regenerated from discovery document revision 20220105
@@ -288,6 +288,13 @@ module Google
288
288
  class V2Key
289
289
  include Google::Apis::Core::Hashable
290
290
 
291
+ # Annotations is an unstructured key-value map stored with a policy that may be
292
+ # set by external tools to store and retrieve arbitrary metadata. They are not
293
+ # queryable and should be preserved when modifying objects.
294
+ # Corresponds to the JSON property `annotations`
295
+ # @return [Hash<String,String>]
296
+ attr_accessor :annotations
297
+
291
298
  # Output only. A timestamp identifying the time this key was originally created.
292
299
  # Corresponds to the JSON property `createTime`
293
300
  # @return [String]
@@ -348,6 +355,7 @@ module Google
348
355
 
349
356
  # Update properties of this object
350
357
  def update!(**args)
358
+ @annotations = args[:annotations] if args.key?(:annotations)
351
359
  @create_time = args[:create_time] if args.key?(:create_time)
352
360
  @delete_time = args[:delete_time] if args.key?(:delete_time)
353
361
  @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.7.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220105"
25
+ REVISION = "20220330"
26
26
  end
27
27
  end
28
28
  end
@@ -188,6 +188,7 @@ module Google
188
188
  class V2Key
189
189
  # @private
190
190
  class Representation < Google::Apis::Core::JsonRepresentation
191
+ hash :annotations, as: 'annotations'
191
192
  property :create_time, as: 'createTime'
192
193
  property :delete_time, as: 'deleteTime'
193
194
  property :display_name, as: 'displayName'
@@ -113,10 +113,12 @@ module Google
113
113
  execute_or_queue_command(command, &block)
114
114
  end
115
115
 
116
- # Clones the existing key's restriction and display name to a new API key. The
117
- # service account must have the `apikeys.keys.get` and `apikeys.keys.create`
118
- # permissions in the project. NOTE: Key is a global resource; hence the only
119
- # supported value for location is `global`.
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`.
120
122
  # @param [String] name
121
123
  # Required. The resource name of the API key to be cloned in the same project.
122
124
  # @param [Google::Apis::ApikeysV2::V2CloneKeyRequest] v2_clone_key_request_object
@@ -296,13 +298,16 @@ module Google
296
298
  # @param [String] parent
297
299
  # Required. Lists all API keys associated with this project.
298
300
  # @param [String] filter
299
- # Optional. Only list keys that conform to the specified filter. The allowed
300
- # filter strings are `state:ACTIVE` and `state:DELETED`. By default, ListKeys
301
- # returns only active keys.
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.
302
304
  # @param [Fixnum] page_size
303
305
  # Optional. Specifies the maximum number of results to be returned at a time.
304
306
  # @param [String] page_token
305
307
  # Optional. Requests a specific page of results.
308
+ # @param [Boolean] show_deleted
309
+ # Optional. Indicate that keys deleted in the past 30 days should also be
310
+ # returned.
306
311
  # @param [String] fields
307
312
  # Selector specifying which fields to include in a partial response.
308
313
  # @param [String] quota_user
@@ -320,7 +325,7 @@ module Google
320
325
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
321
326
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
322
327
  # @raise [Google::Apis::AuthorizationError] Authorization is required
323
- def list_project_location_keys(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
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)
324
329
  command = make_simple_command(:get, 'v2/{+parent}/keys', options)
325
330
  command.response_representation = Google::Apis::ApikeysV2::V2ListKeysResponse::Representation
326
331
  command.response_class = Google::Apis::ApikeysV2::V2ListKeysResponse
@@ -328,6 +333,7 @@ module Google
328
333
  command.query['filter'] = filter unless filter.nil?
329
334
  command.query['pageSize'] = page_size unless page_size.nil?
330
335
  command.query['pageToken'] = page_token unless page_token.nil?
336
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
331
337
  command.query['fields'] = fields unless fields.nil?
332
338
  command.query['quotaUser'] = quota_user unless quota_user.nil?
333
339
  execute_or_queue_command(command, &block)
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.7.0
4
+ version: 0.10.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-10 00:00:00.000000000 Z
11
+ date: 2022-04-04 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.7.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apikeys_v2/v0.10.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for API Keys API V2