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

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Notice

Returns a new instance of Notice.



171
172
173
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 171

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

Instance Attribute Details

#descriptionArray<String>

Description of the notice. Corresponds to the JSON property description

Returns:

  • (Array<String>)


150
151
152
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 150

def description
  @description
end

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



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

def links
  @links
end

#titleString

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

Returns:

  • (String)


160
161
162
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 160

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)


169
170
171
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 169

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



176
177
178
179
180
181
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 176

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