Class: Google::Apis::DnsV1beta2::DnsKeySpec
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::DnsKeySpec
- 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
-
#algorithm ⇒ String
Corresponds to the JSON property
algorithm
. -
#key_length ⇒ Fixnum
Corresponds to the JSON property
keyLength
. -
#key_type ⇒ String
Corresponds to the JSON property
keyType
. -
#kind ⇒ String
Identifies what kind of resource this is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DnsKeySpec
constructor
A new instance of DnsKeySpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#algorithm ⇒ String
Corresponds to the JSON property algorithm
230 231 232 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 230 def algorithm @algorithm end |
#key_length ⇒ Fixnum
Corresponds to the JSON property keyLength
235 236 237 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 235 def key_length @key_length end |
#key_type ⇒ String
Corresponds to the JSON property keyType
240 241 242 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 240 def key_type @key_type end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "dns#
dnsKeySpec".
Corresponds to the JSON property kind
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 |