Class: Google::Apis::CalendarV3::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Error

Returns a new instance of Error.



1022
1023
1024
# File 'generated/google/apis/calendar_v3/classes.rb', line 1022

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

Instance Attribute Details

#domainString

Domain, or broad category, of the error. Corresponds to the JSON property domain

Returns:

  • (String)


1007
1008
1009
# File 'generated/google/apis/calendar_v3/classes.rb', line 1007

def domain
  @domain
end

#reasonString

Specific reason for the error. Some of the possible values are:

  • "groupTooBig" - The group of users requested is too large for a single query.

  • "tooManyCalendarsRequested" - The number of calendars requested is too large for a single query.

  • "notFound" - The requested resource was not found.

  • "internalError" - The API service has encountered an internal error. Additional error types may be added in the future, so clients should gracefully handle additional error statuses not included in this list. Corresponds to the JSON property reason

Returns:

  • (String)


1020
1021
1022
# File 'generated/google/apis/calendar_v3/classes.rb', line 1020

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1027
1028
1029
1030
# File 'generated/google/apis/calendar_v3/classes.rb', line 1027

def update!(**args)
  @domain = args[:domain] if args.key?(:domain)
  @reason = args[:reason] if args.key?(:reason)
end