Class: Google::Apis::DnsV1::DnsKey
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1::DnsKey
- 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
Instance Attribute Summary collapse
-
#algorithm ⇒ String
Corresponds to the JSON property
algorithm
. -
#creation_time ⇒ String
Corresponds to the JSON property
creationTime
. -
#description ⇒ String
Corresponds to the JSON property
description
. -
#digests ⇒ Array<Google::Apis::DnsV1::DnsKeyDigest>
Corresponds to the JSON property
digests
. -
#id ⇒ String
Corresponds to the JSON property
id
. -
#is_active ⇒ Boolean
(also: #is_active?)
Corresponds to the JSON property
isActive
. -
#key_length ⇒ Fixnum
Corresponds to the JSON property
keyLength
. -
#key_tag ⇒ Fixnum
Corresponds to the JSON property
keyTag
. -
#kind ⇒ String
Identifies what kind of resource this is.
-
#public_key ⇒ String
Corresponds to the JSON property
publicKey
. -
#type ⇒ String
Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DnsKey
constructor
A new instance of DnsKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DnsKey
Returns a new instance of DnsKey
178 179 180 |
# File 'generated/google/apis/dns_v1/classes.rb', line 178 def initialize(**args) update!(**args) end |
Instance Attribute Details
#algorithm ⇒ String
Corresponds to the JSON property algorithm
125 126 127 |
# File 'generated/google/apis/dns_v1/classes.rb', line 125 def algorithm @algorithm end |
#creation_time ⇒ String
Corresponds to the JSON property creationTime
130 131 132 |
# File 'generated/google/apis/dns_v1/classes.rb', line 130 def creation_time @creation_time end |
#description ⇒ String
Corresponds to the JSON property description
135 136 137 |
# File 'generated/google/apis/dns_v1/classes.rb', line 135 def description @description end |
#digests ⇒ Array<Google::Apis::DnsV1::DnsKeyDigest>
Corresponds to the JSON property digests
140 141 142 |
# File 'generated/google/apis/dns_v1/classes.rb', line 140 def digests @digests end |
#id ⇒ String
Corresponds to the JSON property id
145 146 147 |
# File 'generated/google/apis/dns_v1/classes.rb', line 145 def id @id end |
#is_active ⇒ Boolean Also known as: is_active?
Corresponds to the JSON property isActive
150 151 152 |
# File 'generated/google/apis/dns_v1/classes.rb', line 150 def is_active @is_active end |
#key_length ⇒ Fixnum
Corresponds to the JSON property keyLength
156 157 158 |
# File 'generated/google/apis/dns_v1/classes.rb', line 156 def key_length @key_length end |
#key_tag ⇒ Fixnum
Corresponds to the JSON property keyTag
161 162 163 |
# File 'generated/google/apis/dns_v1/classes.rb', line 161 def key_tag @key_tag end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "dns#dnsKey".
Corresponds to the JSON property kind
166 167 168 |
# File 'generated/google/apis/dns_v1/classes.rb', line 166 def kind @kind end |
#public_key ⇒ String
Corresponds to the JSON property publicKey
171 172 173 |
# File 'generated/google/apis/dns_v1/classes.rb', line 171 def public_key @public_key end |
#type ⇒ String
Corresponds to the JSON property type
176 177 178 |
# File 'generated/google/apis/dns_v1/classes.rb', line 176 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
183 184 185 186 187 188 189 190 191 192 193 194 195 |
# File 'generated/google/apis/dns_v1/classes.rb', line 183 def update!(**args) @algorithm = args[:algorithm] if args.key?(:algorithm) @creation_time = args[:creation_time] if args.key?(:creation_time) @description = args[:description] if args.key?(:description) @digests = args[:digests] if args.key?(:digests) @id = args[:id] if args.key?(:id) @is_active = args[:is_active] if args.key?(:is_active) @key_length = args[:key_length] if args.key?(:key_length) @key_tag = args[:key_tag] if args.key?(:key_tag) @kind = args[:kind] if args.key?(:kind) @public_key = args[:public_key] if args.key?(:public_key) @type = args[:type] if args.key?(:type) end |