Class: Google::Apis::PrivatecaV1beta1::KeyId

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

Overview

A KeyId identifies a specific public key, usually by hashing the public key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KeyId

Returns a new instance of KeyId.



1127
1128
1129
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1127

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

Instance Attribute Details

#key_idString

Optional. The value of this KeyId encoded in lowercase hexadecimal. This is most likely the 160 bit SHA-1 hash of the public key. Corresponds to the JSON property keyId

Returns:

  • (String)


1125
1126
1127
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1125

def key_id
  @key_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1132
1133
1134
# File 'lib/google/apis/privateca_v1beta1/classes.rb', line 1132

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