{
	"$schema" : "http://json-schema.org/draft-04/schema#",
	"title" : "ChangeSetStatusResponse",
	"type" : "object",
	"additionalProperties" : false,
	"description" : "Version v2, the status response ,success or failed",
	"properties" : {
		"change_set_token" : {
			"type" : "string",
			"description" : "the token assgined to this upload process.  This token should be valid at the time of request, and the request should be placed within the expiry time provided with the token",
			"minLength" : 24
		},

		"status" : {
			"$ref" : "/resources/schema/services/v2/ServiceStatus.json",
			"description" : "Status Returned by the service"
		},

		"space_id" : {
			"type" : "string",
			"description" : "Space Id as defined and owned by the layer",
			"minLength" : 3
		},

		"layer" : {
			"$ref" : "/resources/schema/data/api/v2/ChangeSetLayer.json",
			"description" : "ChangeSet Layer "
		},

		"change_set_status" : {
			"$ref" : "/resources/schema/data/api/v2/ChangeSetStatus.json",
			"description" : "Current Status of given ChangeSet"
		},

		"start_utc_timestamp" : {
			"type" : "integer",
			"description" : "Start timestamp of changeSet.  This timestamp is inclusive in the interval",
			"minimum" : 1388534400000
		},

		"end_utc_timestamp" : {
			"type" : "integer",
			"description" : "End timestamp of changeSet.  This timestamp is inclusive in the interval",
			"minimum" : 1388534401000
		},

		"num_of_files" : {
			"type" : "integer",
			"description" : "Number of files attached to this changeSet"
		},

		"upload_files" : {
			"type" : "array",
			"description" : "This array represents the URI list of all the partitions of all files uploaded to storage location URI.",
			"items" : {
				"$ref" : "/resources/schema/data/api/v2/ChangeSetFileInfo.json",
				"description" : "Every element of this array represents a ChangeSetFileInfo Object"
			},

			"minItems" : 1,
			"maxItems" : 20,
			"uniqueItems" : true
		},

		"download_files" : {
			"type" : "array",
			"items" : {
				"$ref" : "/resources/schema/data/api/v2/ChangeSetFileInfo.json",
				"description" : "Every element of the array is of type FileInfo"
			},

			"description" : "This array represents the URI list of all the partitions of all files that can be downloaded."
		},

		"created_utc_timestamp" : {
			"type" : "integer",
			"description" : "UTC timestamp of creation of this record",
			"minimum" : 1388534401000
		},

		"last_modified_timestamp" : {
			"type" : "integer",
			"description" : "UTC timestamp of last time this record was modified/updated",
			"minimum" : 1388534401000
		},

		"free_space_estimate_in_mb" : {
			"type" : "integer",
			"description" : "Estimate of free space required on the client side to process this changeSet.  This parameter is optional and may not exist for every changeSet.",
			"minimum" : 1
		},

		"token_expires_in_secs" : {
			"type" : "integer",
			"description" : "Timeframe in seconds, after which the token will be expired.  Starting from start_utc_timestamp",
			"minimum" : 300
		}
	},

	"required" : 
	[
		"status"
	]
}