Class: Google::Apis::ApikeysV2::V2CloneKeyRequest
- Inherits:
-
Object
- Object
- Google::Apis::ApikeysV2::V2CloneKeyRequest
- 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
-
#key_id ⇒ String
User specified key id (optional).
Instance Method Summary collapse
-
#initialize(**args) ⇒ V2CloneKeyRequest
constructor
A new instance of V2CloneKeyRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
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
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 |