Class: Google::Apis::RunV1::ResourceRecord

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/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.



2470
2471
2472
# File 'lib/google/apis/run_v1/classes.rb', line 2470

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)


2457
2458
2459
# File 'lib/google/apis/run_v1/classes.rb', line 2457

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)


2463
2464
2465
# File 'lib/google/apis/run_v1/classes.rb', line 2463

def rrdata
  @rrdata
end

#typeString

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

Returns:

  • (String)


2468
2469
2470
# File 'lib/google/apis/run_v1/classes.rb', line 2468

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2475
2476
2477
2478
2479
# File 'lib/google/apis/run_v1/classes.rb', line 2475

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