Class: Google::Apis::PubliccaV1::ExternalAccountKey

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

Overview

A representation of an ExternalAccountKey used for external account binding within ACME.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExternalAccountKey

Returns a new instance of ExternalAccountKey.



49
50
51
# File 'lib/google/apis/publicca_v1/classes.rb', line 49

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

Instance Attribute Details

#b64_mac_keyString

Output only. Base64-URL-encoded HS256 key. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created Corresponds to the JSON property b64MacKey NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


35
36
37
# File 'lib/google/apis/publicca_v1/classes.rb', line 35

def b64_mac_key
  @b64_mac_key
end

#key_idString

Output only. Key ID. It is generated by the PublicCertificateAuthorityService when the ExternalAccountKey is created Corresponds to the JSON property keyId

Returns:

  • (String)


41
42
43
# File 'lib/google/apis/publicca_v1/classes.rb', line 41

def key_id
  @key_id
end

#nameString

Output only. Resource name. projects/project/locations/location/ externalAccountKeys/key_id Corresponds to the JSON property name

Returns:

  • (String)


47
48
49
# File 'lib/google/apis/publicca_v1/classes.rb', line 47

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



54
55
56
57
58
# File 'lib/google/apis/publicca_v1/classes.rb', line 54

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