Sha256: 27afa5e6a1ef1a3efa01b3711bddd370059feb5f7705e2aafd5de5a031bafddd

Contents?: true

Size: 1.88 KB

Versions: 10

Compression:

Stored size: 1.88 KB

Contents

module AsposeCellsCloud
  # 
  class BaseResponse < BaseObject
    attr_accessor :code, :status
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'code' => :'Code',
        
        # 
        :'status' => :'Status'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'code' => :'String',
        :'status' => :'String'
        
      }
    end

    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[:'Code']
        self.code = attributes[:'Code']
      end
      
      if attributes[:'Status']
        self.status = attributes[:'Status']
      end
      
    end

    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

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
aspose_cells_cloud-1.0.10 lib/aspose_cells_cloud/models/base_response.rb
aspose_cells_cloud-1.0.9 lib/aspose_cells_cloud/models/base_response.rb
aspose_cells_cloud-1.0.8 lib/aspose_cells_cloud/models/base_response.rb
aspose_cells_cloud-1.0.7 lib/aspose_cells_cloud/models/base_response.rb
aspose_cells_cloud-1.0.6 lib/aspose_cells_cloud/models/base_response.rb
aspose_cells_cloud-1.0.5 lib/aspose_cells_cloud/models/base_response.rb
aspose_cells_cloud-1.0.3 lib/aspose_cells_cloud/models/base_response.rb
aspose_cells_cloud-1.0.2 lib/aspose_cells_cloud/models/base_response.rb
aspose_cells_cloud-1.0.1 lib/aspose_cells_cloud/models/base_response.rb
aspose_cells_cloud-1.0.0 lib/aspose_cells_cloud/models/base_response.rb