Class: Google::Apis::DnsV1beta2::DnsKeyDigest

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

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) ⇒ DnsKeyDigest

Returns a new instance of DnsKeyDigest.


246
247
248
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 246

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

Instance Attribute Details

#digestString

The base-16 encoded bytes of this digest. Suitable for use in a DS resource record. Corresponds to the JSON property digest

Returns:

  • (String)

239
240
241
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 239

def digest
  @digest
end

#typeString

Specifies the algorithm used to calculate this digest. Corresponds to the JSON property type

Returns:

  • (String)

244
245
246
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 244

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


251
252
253
254
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 251

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