Class: Google::Apis::ServicenetworkingV1::DnsRecordSet
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::DnsRecordSet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/google/apis/servicenetworking_v1/representations.rb
Overview
Represents a DNS record set resource.
Instance Attribute Summary collapse
-
#data ⇒ Array<String>
Required.
-
#domain ⇒ String
Required.
-
#ttl ⇒ String
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DnsRecordSet
constructor
A new instance of DnsRecordSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DnsRecordSet
Returns a new instance of DnsRecordSet.
1276 1277 1278 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1276 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ Array<String>
Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) for
examples see https://cloud.google.com/dns/records/json-record.
Corresponds to the JSON property data
1258 1259 1260 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1258 def data @data end |
#domain ⇒ String
Required. The DNS or domain name of the record set, e.g. test.example.com.
Corresponds to the JSON property domain
1263 1264 1265 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1263 def domain @domain end |
#ttl ⇒ String
Required. The period of time for which this RecordSet can be cached by
resolvers.
Corresponds to the JSON property ttl
1269 1270 1271 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1269 def ttl @ttl end |
#type ⇒ String
Required. The identifier of a supported record type.
Corresponds to the JSON property type
1274 1275 1276 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1274 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1281 1282 1283 1284 1285 1286 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1281 def update!(**args) @data = args[:data] if args.key?(:data) @domain = args[:domain] if args.key?(:domain) @ttl = args[:ttl] if args.key?(:ttl) @type = args[:type] if args.key?(:type) end |