Class: Google::Apis::RunV1alpha1::ResourceRecord

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

Overview

A DNS resource record.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ResourceRecord

Returns a new instance of ResourceRecord.



3143
3144
3145
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3143

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)


3130
3131
3132
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3130

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)


3136
3137
3138
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3136

def rrdata
  @rrdata
end

#typeString

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

Returns:

  • (String)


3141
3142
3143
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3141

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3148
3149
3150
3151
3152
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3148

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