Class: Google::Apis::ServicenetworkingV1beta::DnsRecordSet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicenetworking_v1beta/classes.rb,
lib/google/apis/servicenetworking_v1beta/representations.rb,
lib/google/apis/servicenetworking_v1beta/representations.rb

Overview

Represents a DNS record set resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DnsRecordSet

Returns a new instance of DnsRecordSet.



1033
1034
1035
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1033

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

Instance Attribute Details

#dataArray<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

Returns:

  • (Array<String>)


1015
1016
1017
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1015

def data
  @data
end

#domainString

Required. The DNS or domain name of the record set, e.g. test.example.com. Corresponds to the JSON property domain

Returns:

  • (String)


1020
1021
1022
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1020

def domain
  @domain
end

#ttlString

Required. The period of time for which this RecordSet can be cached by resolvers. Corresponds to the JSON property ttl

Returns:

  • (String)


1026
1027
1028
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1026

def ttl
  @ttl
end

#typeString

Required. The identifier of a supported record type. Corresponds to the JSON property type

Returns:

  • (String)


1031
1032
1033
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1031

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1038
1039
1040
1041
1042
1043
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 1038

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