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

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



248
249
250
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 248

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

Instance Attribute Details

#algorithmString

Corresponds to the JSON property algorithm

Returns:

  • (String)


230
231
232
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 230

def algorithm
  @algorithm
end

#key_lengthFixnum

Corresponds to the JSON property keyLength

Returns:

  • (Fixnum)


235
236
237
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 235

def key_length
  @key_length
end

#key_typeString

Corresponds to the JSON property keyType

Returns:

  • (String)


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

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)


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

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



253
254
255
256
257
258
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 253

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