google-apis-apikeys_v2 0.9.0 → 0.12.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beb1dfc1965ba96db0c9f9e5e5e8fe114cd340f459b6e8291319f94e1db29ba3
|
4
|
+
data.tar.gz: f0b22cffb2627d9a06a46295fc4da4236753c381a7f25dcff52d62df80ddb9ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b51d94ef47cb261df84285872247e019c44bf01cd0ca3bdd79c6d8fc76261537f4110889f47018f1ecfc67d54eb5b62fac446bc89b415130677e041991df3ca3
|
7
|
+
data.tar.gz: 59aa2808e9dbb18e2091eba49e38c9697442053c7dd5cd6b119e415d02e8998c3fac7998464b0feb19c126a7a4d030b96bf9484b8fce3852bd8048b2cf77a01b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-apikeys_v2
|
2
2
|
|
3
|
+
### v0.12.0 (2022-04-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220418
|
6
|
+
|
7
|
+
### v0.11.0 (2022-04-07)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220405
|
10
|
+
|
11
|
+
### v0.10.0 (2022-04-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220330
|
14
|
+
|
3
15
|
### v0.9.0 (2022-03-22)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220319
|
@@ -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
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.12.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 = "
|
25
|
+
REVISION = "20220418"
|
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
|
@@ -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
|
310
|
-
#
|
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,
|
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?
|
@@ -350,10 +307,10 @@ module Google
|
|
350
307
|
# @param [Google::Apis::ApikeysV2::V2Key] v2_key_object
|
351
308
|
# @param [String] update_mask
|
352
309
|
# The field mask specifies which fields to be updated as part of this request.
|
353
|
-
# All other fields are ignored. Mutable fields are: `display_name`
|
354
|
-
#
|
355
|
-
# implied mask equivalent to all allowed fields that are set on the wire.
|
356
|
-
# field mask has a special value "*", the service treats it equivalent to
|
310
|
+
# All other fields are ignored. Mutable fields are: `display_name`,`restrictions`
|
311
|
+
# and `annotations`. If an update mask is not provided, the service treats it
|
312
|
+
# as an implied mask equivalent to all allowed fields that are set on the wire.
|
313
|
+
# If the field mask has a special value "*", the service treats it equivalent to
|
357
314
|
# replace all allowed mutable fields.
|
358
315
|
# @param [String] fields
|
359
316
|
# Selector specifying which fields to include in a partial response.
|
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.
|
4
|
+
version: 0.12.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-
|
11
|
+
date: 2022-04-25 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-apikeys_v2/v0.12.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: []
|