Class: Google::Apis::AppengineV1alpha::ResourceRecord

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

Overview

A DNS resource record.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceRecord

Returns a new instance of ResourceRecord.



801
802
803
# File 'lib/google/apis/appengine_v1alpha/classes.rb', line 801

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

Instance Attribute Details

#nameString

Relative name of the object affected by this record. Only applicable for CNAME records. Example: 'www'. Corresponds to the JSON property name

Returns:

  • (String)


788
789
790
# File 'lib/google/apis/appengine_v1alpha/classes.rb', line 788

def name
  @name
end

#rrdataString

Data for this record. Values vary by record type, as defined in RFC 1035 ( section 5) and RFC 1034 (section 3.6.1). Corresponds to the JSON property rrdata

Returns:

  • (String)


794
795
796
# File 'lib/google/apis/appengine_v1alpha/classes.rb', line 794

def rrdata
  @rrdata
end

#typeString

Resource record type. Example: AAAA. Corresponds to the JSON property type

Returns:

  • (String)


799
800
801
# File 'lib/google/apis/appengine_v1alpha/classes.rb', line 799

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



806
807
808
809
810
# File 'lib/google/apis/appengine_v1alpha/classes.rb', line 806

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @rrdata = args[:rrdata] if args.key?(:rrdata)
  @type = args[:type] if args.key?(:type)
end