Class: Google::Apis::ApikeysV2::V2CloneKeyRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/apikeys_v2/classes.rb,
lib/google/apis/apikeys_v2/representations.rb,
lib/google/apis/apikeys_v2/representations.rb

Overview

Request message for CloneKey method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ V2CloneKeyRequest

Returns a new instance of V2CloneKeyRequest.



239
240
241
# File 'lib/google/apis/apikeys_v2/classes.rb', line 239

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#key_idString

User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression: [a-z]([a-z0-9-]0,61[a-z0-9])?. The id must NOT be a UUID-like string. Corresponds to the JSON property keyId

Returns:

  • (String)


237
238
239
# File 'lib/google/apis/apikeys_v2/classes.rb', line 237

def key_id
  @key_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



244
245
246
# File 'lib/google/apis/apikeys_v2/classes.rb', line 244

def update!(**args)
  @key_id = args[:key_id] if args.key?(:key_id)
end