forked from Azure/autorest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Schulte
committed
May 6, 2016
1 parent
df8fb81
commit 5e54326
Showing
6 changed files
with
2,691 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
180 changes: 180 additions & 0 deletions
180
.../Generators/AzureResourceSchema/AzureResourceSchema.Tests/Expected/CDN/Microsoft.Cdn.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
{ | ||
"id": "http://schema.management.azure.com/schemas/2016-04-02/Microsoft.Cdn.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Cdn", | ||
"description": "Microsoft Cdn Resource Types", | ||
"resourceDefinitions": { | ||
"profiles": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"enum": [ | ||
"Microsoft.Cdn/profiles" | ||
] | ||
}, | ||
"apiVersion": { | ||
"enum": [ | ||
"2016-04-02" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "Profile location" | ||
}, | ||
"tags": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Profile tags" | ||
}, | ||
"sku": { | ||
"$ref": "#/definitions/Sku", | ||
"description": "Profile SKU" | ||
} | ||
}, | ||
"required": [ | ||
"location", | ||
"sku" | ||
], | ||
"description": "Profile properties required for profile creation." | ||
}, | ||
"endpoints": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"enum": [ | ||
"Microsoft.Cdn/profiles/endpoints" | ||
] | ||
}, | ||
"apiVersion": { | ||
"enum": [ | ||
"2015-06-01" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "Endpoint location" | ||
}, | ||
"tags": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Endpoint tags" | ||
}, | ||
"properties": { | ||
"originHostHeader": { | ||
"type": "string", | ||
"description": "The host header CDN provider will send along with content requests to origins. The default value is the host name of the origin." | ||
}, | ||
"originPath": { | ||
"type": "string", | ||
"description": "The path used for origin requests." | ||
}, | ||
"contentTypesToCompress": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"description": "List of content types on which compression will be applied. The value for the elements should be a valid MIME type." | ||
}, | ||
"isCompressionEnabled": { | ||
"type": "boolean", | ||
"description": "Indicates whether content compression is enabled. Default value is false. If compression is enabled, the content transferred from the CDN endpoint to the end user will be compressed. The requested content must be larger than 1 byte and smaller than 1 MB." | ||
}, | ||
"isHttpAllowed": { | ||
"type": "boolean", | ||
"description": "Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed." | ||
}, | ||
"isHttpsAllowed": { | ||
"type": "boolean", | ||
"description": "Indicates whether https traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed." | ||
}, | ||
"queryStringCachingBehavior": { | ||
"$ref": "#/definitions/QueryStringCachingBehavior", | ||
"description": "Defines the query string caching behavior." | ||
}, | ||
"origins": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/DeepCreatedOrigin" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"origins" | ||
] | ||
}, | ||
"required": [ | ||
"location" | ||
], | ||
"description": "Endpoint properties required for new endpoint creation." | ||
}, | ||
"origins": { | ||
"type": "object", | ||
"properties": { | ||
|
||
}, | ||
"required": [ | ||
], | ||
"description": "Origin properties needed for origin creation or update." | ||
}, | ||
"customDomains": { | ||
} | ||
}, | ||
"definitions": { | ||
"DeepCreatedOrigin": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Origin name" | ||
}, | ||
"hostName": { | ||
"type": "string", | ||
"description": "The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported." | ||
}, | ||
"httpPort": { | ||
"type": "integer", | ||
"description": "The value of the HTTP port. Must be between 1 and 65535" | ||
}, | ||
"httpsPort": { | ||
"type": "integer", | ||
"description": "The value of the HTTPS port. Must be between 1 and 65535" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"hostName" | ||
], | ||
"description": "Deep created origins within a CDN endpoint." | ||
}, | ||
"Sku": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"enum": [ | ||
"Standard_Verizon", | ||
"Premium_Verizon", | ||
"Custom_Verizon", | ||
"Standard_Akamai" | ||
], | ||
"description": "Name of the pricing tier" | ||
} | ||
}, | ||
"description": "The SKU (pricing tier) of the CDN profile." | ||
}, | ||
"QueryStringCachingBehavior": { | ||
"type": "string", | ||
"enum": [ | ||
"IgnoreQueryString", | ||
"BypassCaching", | ||
"UseQueryString", | ||
"NotSet" | ||
], | ||
"description": "Defines the query string caching behavior." | ||
} | ||
} | ||
} |
Oops, something went wrong.