Class: Google::Apis::DnsV1beta2::DnsKeySpec
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::DnsKeySpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dns_v1beta2/classes.rb,
lib/google/apis/dns_v1beta2/representations.rb,
lib/google/apis/dns_v1beta2/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
Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK).
-
#kind ⇒ String
Corresponds to the JSON property
kind
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DnsKeySpec
constructor
A new instance of DnsKeySpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DnsKeySpec
Returns a new instance of DnsKeySpec.
280 281 282 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 280 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
259 260 261 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 259 def algorithm @algorithm end |
#key_length ⇒ Fixnum
Length of the keys in bits.
Corresponds to the JSON property keyLength
264 265 266 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 264 def key_length @key_length end |
#key_type ⇒ String
Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK).
Key signing keys have the Secure Entry Point flag set and, when active, are
only used to sign resource record sets of type DNSKEY. Zone signing keys do
not have the Secure Entry Point flag set and are used to sign all other types
of resource record sets.
Corresponds to the JSON property keyType
273 274 275 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 273 def key_type @key_type end |
#kind ⇒ String
Corresponds to the JSON property kind
278 279 280 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 278 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
285 286 287 288 289 290 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 285 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 |