Class: Google::Apis::ServicenetworkingV1::DnsRecordSet

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DnsRecordSet

Returns a new instance of DnsRecordSet.



1528
1529
1530
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1528

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>)


1509
1510
1511
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1509

def data
  @data
end

#domainString

Required. The DNS or domain name of the record set, e.g. test.example.com. Cloud DNS requires that a DNS suffix ends with a trailing dot. Corresponds to the JSON property domain

Returns:

  • (String)


1515
1516
1517
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1515

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)


1521
1522
1523
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1521

def ttl
  @ttl
end

#typeString

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

Returns:

  • (String)


1526
1527
1528
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1526

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1533
1534
1535
1536
1537
1538
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1533

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