Class: Google::Apis::DomainsV1alpha2::DsRecord

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

Overview

Defines a Delegation Signer (DS) record, which is needed to enable DNSSEC for a domain. It contains a digest (hash) of a DNSKEY record that must be present in the domain's DNS zone.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DsRecord

Returns a new instance of DsRecord.



511
512
513
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 511

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

Instance Attribute Details

#algorithmString

The algorithm used to generate the referenced DNSKEY. Corresponds to the JSON property algorithm

Returns:

  • (String)


494
495
496
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 494

def algorithm
  @algorithm
end

#digestString

The digest generated from the referenced DNSKEY. Corresponds to the JSON property digest

Returns:

  • (String)


499
500
501
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 499

def digest
  @digest
end

#digest_typeString

The hash function used to generate the digest of the referenced DNSKEY. Corresponds to the JSON property digestType

Returns:

  • (String)


504
505
506
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 504

def digest_type
  @digest_type
end

#key_tagFixnum

The key tag of the record. Must be set in range 0 -- 65535. Corresponds to the JSON property keyTag

Returns:

  • (Fixnum)


509
510
511
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 509

def key_tag
  @key_tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



516
517
518
519
520
521
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 516

def update!(**args)
  @algorithm = args[:algorithm] if args.key?(:algorithm)
  @digest = args[:digest] if args.key?(:digest)
  @digest_type = args[:digest_type] if args.key?(:digest_type)
  @key_tag = args[:key_tag] if args.key?(:key_tag)
end