Class: Google::Apis::DnsV1beta2::DnsKeySpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dns_v1beta2/classes.rb,
generated/google/apis/dns_v1beta2/representations.rb,
generated/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DnsKeySpec

Returns a new instance of DnsKeySpec



287
288
289
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 287

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

Instance Attribute Details

#algorithmString

String mnemonic specifying the DNSSEC algorithm of this key. Corresponds to the JSON property algorithm

Returns:

  • (String)


265
266
267
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 265

def algorithm
  @algorithm
end

#key_lengthFixnum

Length of the keys in bits. Corresponds to the JSON property keyLength

Returns:

  • (Fixnum)


270
271
272
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 270

def key_length
  @key_length
end

#key_typeString

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, will only be used to sign resource record sets of type DNSKEY. Zone signing keys do not have the Secure Entry Point flag set and will be used to sign all other types of resource record sets. Corresponds to the JSON property keyType

Returns:

  • (String)


279
280
281
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 279

def key_type
  @key_type
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "dns# dnsKeySpec". Corresponds to the JSON property kind

Returns:

  • (String)


285
286
287
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 285

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



292
293
294
295
296
297
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 292

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