google-apis-apikeys_v2 0.6.0 → 0.9.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: 7f7c525f59c88392537da19f9056042a33a4715577a5e2120f94b01a5d882f83
4
- data.tar.gz: d99d9f1e4a2519758bd33c17b8f30e501d62ad149dbe865989ece98e3f9e02b5
3
+ metadata.gz: 75ba09092b654f9d4ffb262097ace2fec0a93f65db22f8a6d1ed4a5de0473930
4
+ data.tar.gz: a518f9f72e28ff69cbfc6658d6d65e5a77ec63efbe3561a26b4aed4610cd0614
5
5
  SHA512:
6
- metadata.gz: b7a3fce37fd45fbf1ea19a9bab87015e7f7f45e227c5f4d47d2933d9df826252588dec84353ea67ba2801edb20e6c820020f9149e441177f423e080320318b53
7
- data.tar.gz: 42b5c6cfbade6a50edd832a7488a4af6180bee2df66d79a934047b1218e66ee8ec1b68b19a2c0e75bab9bbb988afd3e769dd74c31742b7f19026bea0fc75d4ed
6
+ metadata.gz: fc734a9a5a376ab59c4b538186e39f28209fea1d475ae3ff9e94d79a5ff099978a0abff6caabcb36c42bb8ab402e52680d57df7908ac8b0f8477610b36381c11
7
+ data.tar.gz: 4725118ec95edbbeffe27be94a7d496a76d97c7c08d5cdddb0941a4c8ac8e99788d86ea0e53ff275e32a6ec4a73efe52074a3d54c8d55f6393bb66d58e0a4623
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-apikeys_v2
2
2
 
3
+ ### v0.9.0 (2022-03-22)
4
+
5
+ * Regenerated from discovery document revision 20220319
6
+
7
+ ### v0.8.0 (2022-01-19)
8
+
9
+ * Regenerated from discovery document revision 20220118
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.7.0 (2022-01-07)
13
+
14
+ * Regenerated from discovery document revision 20220105
15
+ * Unspecified changes
16
+
3
17
  ### v0.6.0 (2021-10-20)
4
18
 
5
19
  * Unspecified changes
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/apikeys_v2"
51
51
  client = Google::Apis::ApikeysV2::ApiKeysServiceService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -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]
@@ -307,7 +314,8 @@ module Google
307
314
 
308
315
  # Output only. A checksum computed by the server based on the current value of
309
316
  # the Key resource. This may be sent on update and delete requests to ensure the
310
- # client has an up-to-date value before proceeding.
317
+ # client has an up-to-date value before proceeding. See https://google.aip.dev/
318
+ # 154.
311
319
  # Corresponds to the JSON property `etag`
312
320
  # @return [String]
313
321
  attr_accessor :etag
@@ -347,6 +355,7 @@ module Google
347
355
 
348
356
  # Update properties of this object
349
357
  def update!(**args)
358
+ @annotations = args[:annotations] if args.key?(:annotations)
350
359
  @create_time = args[:create_time] if args.key?(:create_time)
351
360
  @delete_time = args[:delete_time] if args.key?(:delete_time)
352
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.6.0"
19
+ GEM_VERSION = "0.9.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 = "20210807"
25
+ REVISION = "20220319"
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 are marked as deleted within 30 days should also
310
+ # be returned. Normally only active keys are 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.6.0
4
+ version: 0.9.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: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-03-28 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.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apikeys_v2/v0.9.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.2.17
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