Class: Google::Apis::RunV1::ResourceRecord
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::ResourceRecord
- 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
-
#name ⇒ String
Relative name of the object affected by this record.
-
#rrdata ⇒ String
Data for this record.
-
#type ⇒ String
Resource record type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceRecord
constructor
A new instance of ResourceRecord.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceRecord
Returns a new instance of ResourceRecord.
1972 1973 1974 |
# File 'lib/google/apis/run_v1/classes.rb', line 1972 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Relative name of the object affected by this record. Only applicable for
CNAME
records. Example: 'www'.
Corresponds to the JSON property name
1959 1960 1961 |
# File 'lib/google/apis/run_v1/classes.rb', line 1959 def name @name end |
#rrdata ⇒ String
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
1965 1966 1967 |
# File 'lib/google/apis/run_v1/classes.rb', line 1965 def rrdata @rrdata end |
#type ⇒ String
Resource record type. Example: AAAA
.
Corresponds to the JSON property type
1970 1971 1972 |
# File 'lib/google/apis/run_v1/classes.rb', line 1970 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1977 1978 1979 1980 1981 |
# File 'lib/google/apis/run_v1/classes.rb', line 1977 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 |