class AsposeTasksCloud::CalendarExceptionsResponse

Attributes

calendar_exceptions[RW]
code[RW]
status[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# File lib/aspose_tasks_cloud/models/calendar_exceptions_response.rb, line 6
def self.attribute_map
  {
    
    #
    :'calendar_exceptions' => :'CalendarExceptions',
    
    #
    :'status' => :'Status',
    
    #
    :'code' => :'Code'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/aspose_tasks_cloud/models/calendar_exceptions_response.rb, line 31
def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'CalendarExceptions']
    if (value = attributes[:'CalendarExceptions']).is_a?(Array)
      self.calendar_exceptions = value
    end
  end
  
  if attributes[:'Status']
    self.status = attributes[:'Status']
  end
  
  if attributes[:'Code']
    self.code = attributes[:'Code']
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/aspose_tasks_cloud/models/calendar_exceptions_response.rb, line 22
def self.swagger_types
  {
    :'calendar_exceptions' => :'Array<CalendarException>',
    :'status' => :'String',
    :'code' => :'String'
    
  }
end

Public Instance Methods

status=(status) click to toggle source
# File lib/aspose_tasks_cloud/models/calendar_exceptions_response.rb, line 54
def status=(status)
  allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
  if status && !allowed_values.include?(status)
    fail "invalid value for 'status', must be one of #{allowed_values}"
  end
  @status = status
end