Class: Google::Apis::DomainsrdapV1::Notice

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

Overview

Notices object defined in section 4.3 of RFC 7483.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Notice

Returns a new instance of Notice.



157
158
159
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 157

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

Instance Attribute Details

#descriptionArray<String>

Description of the notice. Corresponds to the JSON property description

Returns:

  • (Array<String>)


137
138
139
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 137

def description
  @description
end

Link to a document containing more information. Corresponds to the JSON property links



142
143
144
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 142

def links
  @links
end

#titleString

Title of a notice. Example: "Terms of Service". Corresponds to the JSON property title

Returns:

  • (String)


147
148
149
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 147

def title
  @title
end

#typeString

Type values defined in section 10.2.1 of RFC 7483 specific to a whole response: "result set truncated due to authorization", "result set truncated due to excessive load", "result set truncated due to unexplainable reasons". Corresponds to the JSON property type

Returns:

  • (String)


155
156
157
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 155

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



162
163
164
165
166
167
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 162

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @links = args[:links] if args.key?(:links)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
end