Class: Google::Apis::DnsV1::DnsKeySpec
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1::DnsKeySpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dns_v1/classes.rb,
generated/google/apis/dns_v1/representations.rb,
generated/google/apis/dns_v1/representations.rb
Overview
Parameters for DnsKey key generation. Used for generating initial keys for a new ManagedZone and as default when adding a new DnsKey.
Instance Attribute Summary collapse
-
#algorithm ⇒ String
String mnemonic specifying the DNSSEC algorithm of this key.
-
#key_length ⇒ Fixnum
Length of the keys in bits.
-
#key_type ⇒ String
One of "KEY_SIGNING" or "ZONE_SIGNING".
-
#kind ⇒ String
Identifies what kind of resource this is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DnsKeySpec
constructor
A new instance of DnsKeySpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DnsKeySpec
Returns a new instance of DnsKeySpec
279 280 281 |
# File 'generated/google/apis/dns_v1/classes.rb', line 279 def initialize(**args) update!(**args) end |
Instance Attribute Details
#algorithm ⇒ String
String mnemonic specifying the DNSSEC algorithm of this key.
Corresponds to the JSON property algorithm
257 258 259 |
# File 'generated/google/apis/dns_v1/classes.rb', line 257 def algorithm @algorithm end |
#key_length ⇒ Fixnum
Length of the keys in bits.
Corresponds to the JSON property keyLength
262 263 264 |
# File 'generated/google/apis/dns_v1/classes.rb', line 262 def key_length @key_length end |
#key_type ⇒ String
One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
Secure Entry Point flag set and, when active, will be used to sign only
resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
will be cleared and this key will be used to sign only resource record sets of
other types.
Corresponds to the JSON property keyType
271 272 273 |
# File 'generated/google/apis/dns_v1/classes.rb', line 271 def key_type @key_type end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "dns#
dnsKeySpec".
Corresponds to the JSON property kind
277 278 279 |
# File 'generated/google/apis/dns_v1/classes.rb', line 277 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
284 285 286 287 288 289 |
# File 'generated/google/apis/dns_v1/classes.rb', line 284 def update!(**args) @algorithm = args[:algorithm] if args.key?(:algorithm) @key_length = args[:key_length] if args.key?(:key_length) @key_type = args[:key_type] if args.key?(:key_type) @kind = args[:kind] if args.key?(:kind) end |