Skip to content

Commit

Permalink
Storage and Batch passing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Schulte committed May 6, 2016
1 parent df8fb81 commit 5e54326
Show file tree
Hide file tree
Showing 6 changed files with 2,691 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
<Content Include="Expected\Batch\Microsoft.Batch.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="Expected\CDN\Microsoft.Cdn.json" />
<None Include="packages.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand All @@ -91,6 +92,7 @@
<Content Include="Swagger\BatchManagement.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="Swagger\cdn.json" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Modelers\Swagger.Tests\AutoRest.Modeler.Swagger.Tests.csproj">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"properties": {
"autoStorage": {
"$ref": "#/definitions/AutoStorageBaseProperties",
"description": "The properties related to auto storage."
"description": "The properties related to auto storage account."
}
}
},
Expand All @@ -49,13 +49,13 @@
"properties": {
"storageAccountId": {
"type": "string",
"description": "The resource id of the storage account to be used for auto storage."
"description": "The resource id of the storage account to be used for auto storage account."
}
},
"required": [
"storageAccountId"
],
"description": "The properties related to auto storage."
"description": "The properties related to auto storage account."
}
}
}
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."
}
}
}
Loading

0 comments on commit 5e54326

Please sign in to comment.