{
	"$schema" : "http://json-schema.org/draft-04/schema#",
	"title" : "OTASubregionResult",
	"type" : "object",
	"additionalProperties" : true,
	"description" : "Version v2 - This Object represent the subregion",
	"properties" : {
		"update_type" : {
			"$ref" : "/resources/schema/adm/v1/UpdateType.json",
			"description" : "Type of Update"
		},
		
		"layer_type" : {
			"type" : "string",
			"description" : "Type of the layer"
		},

		"version" : {
			"$ref" : "/resources/schema/adm/v1/Version.json",
			"description" : "data Version this Update belongs to"
		},
				
		"total_update_size_in_bytes": {
			"type": "integer",
			"description": "Total Update Size to download"
		},
		
		"free_space_needed_in_mb": {
			"type": "integer",
			"description": "Free space needed to install this update"
		},
						
		"data_packages" : {
			"type" : "array",
			"items" : {
				"$ref" : "/resources/schema/adm/v1/DataPackage.json",
				"description" : "Every element of the array is of type DataPackage"
			},
			
			"description" : "Array of DataPackage if available. This is not filled for Check Update call. Only Get Updates will include this information "
		},

		"sub_region_id": {
			"type": "string",
			"description": "sub_region_id."
		},
				
		"metadata": {
			"$ref" : "/resources/schema/adm/v1/Metadata.json",
			"description" : "Metadata returned from the service to help with get update request"						
		}
		
	},

	"required" : 
	[
		"update_type",
		"layer_type",
		"sub_region_id"
	]
}
