Class: Google::Apis::DnsV1::DnsKeySpec

Inherits:
Object
  • Object
show all
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

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



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

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)


257
258
259
# File 'generated/google/apis/dns_v1/classes.rb', line 257

def algorithm
  @algorithm
end

#key_lengthFixnum

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

Returns:

  • (Fixnum)


262
263
264
# File 'generated/google/apis/dns_v1/classes.rb', line 262

def key_length
  @key_length
end

#key_typeString

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

Returns:

  • (String)


271
272
273
# File 'generated/google/apis/dns_v1/classes.rb', line 271

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)


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