diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/Microsoft.ApiManagement.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement.json
similarity index 89%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/Microsoft.ApiManagement.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement.json
index b0c77a3ac6..aa01936876 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/Microsoft.ApiManagement.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement.json
@@ -7,6 +7,18 @@
"service": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "The name of the Api Management service."
+ },
"type": {
"type": "string",
"enum": [
@@ -98,6 +110,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -109,6 +122,18 @@
"service_apis": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "API identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -144,6 +169,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"ApiContract"
@@ -153,6 +179,9 @@
"service_apis_operations": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -178,6 +207,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"OperationContract"
@@ -187,6 +217,9 @@
"service_authorizationServers": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -212,6 +245,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"OAuth2AuthorizationServerContract"
@@ -221,6 +255,9 @@
"service_certificates": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -243,6 +280,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -251,6 +289,18 @@
"service_groups": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "Group identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -263,12 +313,6 @@
"2016-07-07"
]
},
- "name": {
- "type": "string",
- "minLength": 1,
- "maxLength": 300,
- "description": "Group name."
- },
"description": {
"type": "string",
"description": "Group description."
@@ -289,15 +333,27 @@
}
},
"required": [
+ "name",
"type",
- "apiVersion",
- "name"
+ "apiVersion"
],
"description": "Microsoft.ApiManagement/service/groups"
},
"service_groups_users": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "User identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -312,6 +368,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -320,6 +377,9 @@
"service_loggers": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -363,6 +423,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"credentials"
@@ -372,6 +433,9 @@
"service_openidConnectProviders": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -384,11 +448,6 @@
"2016-07-07"
]
},
- "name": {
- "type": "string",
- "maxLength": 50,
- "description": "User-friendly OpenID Connect Provider name."
- },
"description": {
"type": "string",
"description": "User-friendly description of OpenID Connect Provider."
@@ -407,9 +466,9 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
- "name",
"metadataEndpoint",
"clientId"
],
@@ -418,6 +477,18 @@
"service_products": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "Product identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -455,6 +526,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"ProductContract"
@@ -464,6 +536,18 @@
"service_products_apis": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "API identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -478,6 +562,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -486,6 +571,18 @@
"service_products_groups": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "Group identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -500,6 +597,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -508,6 +606,9 @@
"service_properties": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -520,12 +621,6 @@
"2016-07-07"
]
},
- "name": {
- "type": "string",
- "minLength": 1,
- "maxLength": 256,
- "description": "Unique name of Property."
- },
"value": {
"type": "string",
"minLength": 1,
@@ -559,9 +654,9 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
- "name",
"value"
],
"description": "Microsoft.ApiManagement/service/properties"
@@ -569,6 +664,9 @@
"service_subscriptions": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -589,10 +687,6 @@
"type": "string",
"description": "Product (product id path) for which subscription is being created in form /products/{productid}"
},
- "name": {
- "type": "string",
- "description": "Subscription name."
- },
"primaryKey": {
"type": "string",
"minLength": 1,
@@ -626,17 +720,29 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"userId",
- "productId",
- "name"
+ "productId"
],
"description": "Microsoft.ApiManagement/service/subscriptions"
},
"service_users": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "User identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -690,6 +796,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"email",
@@ -1559,6 +1666,18 @@
"service_apis_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "API identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -1594,6 +1713,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"ApiContract"
@@ -1603,6 +1723,9 @@
"service_apis_operations_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1628,6 +1751,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"OperationContract"
@@ -1637,6 +1761,9 @@
"service_authorizationServers_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1662,6 +1789,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"OAuth2AuthorizationServerContract"
@@ -1671,6 +1799,9 @@
"service_certificates_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1693,6 +1824,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -1701,6 +1833,18 @@
"service_groups_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "Group identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -1713,10 +1857,6 @@
"2016-07-07"
]
},
- "name": {
- "type": "string",
- "description": "Group name."
- },
"description": {
"type": "string",
"description": "Group description."
@@ -1737,15 +1877,27 @@
}
},
"required": [
+ "name",
"type",
- "apiVersion",
- "name"
+ "apiVersion"
],
"description": "Microsoft.ApiManagement/service/groups"
},
"service_groups_users_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "User identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -1760,6 +1912,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -1768,6 +1921,9 @@
"service_loggers_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1811,6 +1967,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"credentials"
@@ -1820,6 +1977,9 @@
"service_openidConnectProviders_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1832,10 +1992,6 @@
"2016-07-07"
]
},
- "name": {
- "type": "string",
- "description": "User-friendly OpenID Connect Provider name."
- },
"description": {
"type": "string",
"description": "User-friendly description of OpenID Connect Provider."
@@ -1854,9 +2010,9 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
- "name",
"metadataEndpoint",
"clientId"
],
@@ -1865,6 +2021,18 @@
"service_products_apis_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "API identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -1879,6 +2047,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -1887,6 +2056,18 @@
"service_products_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "Product identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -1924,6 +2105,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"ProductContract"
@@ -1933,6 +2115,18 @@
"service_products_groups_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "Group identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -1947,6 +2141,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -1955,6 +2150,9 @@
"service_properties_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1967,10 +2165,6 @@
"2016-07-07"
]
},
- "name": {
- "type": "string",
- "description": "Unique name of Property."
- },
"value": {
"type": "string",
"description": "The Value of the Property."
@@ -2002,9 +2196,9 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
- "name",
"value"
],
"description": "Microsoft.ApiManagement/service/properties"
@@ -2012,6 +2206,9 @@
"service_subscriptions_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -2032,10 +2229,6 @@
"type": "string",
"description": "Product (product id path) for which subscription is being created in form /products/{productid}"
},
- "name": {
- "type": "string",
- "description": "Subscription name."
- },
"primaryKey": {
"type": "string",
"description": "Primary subscription key. If not specified during request key will be generated automatically."
@@ -2065,17 +2258,29 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"userId",
- "productId",
- "name"
+ "productId"
],
"description": "Microsoft.ApiManagement/service/subscriptions"
},
"service_users_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[^*#&+:<>?]+$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "User identifier. Must be unique in the current API Management service instance."
+ },
"type": {
"type": "string",
"enum": [
@@ -2125,6 +2330,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"email",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service.md
index 32c2ffe9f5..919da75b89 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service",
"apiVersion": "2016-07-07",
"location": "string",
@@ -73,6 +74,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | The name of the Api Management service. |
| type | enum | Yes | Microsoft.ApiManagement/service |
| apiVersion | enum | Yes | 2016-07-07 |
| location | string | Yes | Api Management service data center location. |
@@ -117,9 +119,9 @@ The following tables describe the values you need to set in the schema.
### service_openidConnectProviders_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | openidConnectProviders |
| apiVersion | enum | Yes | 2016-07-07 |
-| name | string | Yes | User-friendly OpenID Connect Provider name. |
| description | string | No | User-friendly description of OpenID Connect Provider. |
| metadataEndpoint | string | Yes | Metadata endpoint URI. |
| clientId | string | Yes | Client ID of developer console which is the client application. |
@@ -130,9 +132,9 @@ The following tables describe the values you need to set in the schema.
### service_properties_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | properties |
| apiVersion | enum | Yes | 2016-07-07 |
-| name | string | Yes | Unique name of Property. |
| value | string | Yes | The Value of the Property. |
| tags | array | No | Collection of tags associated with a property. - string |
| secret | boolean | No | The value which determines the value should be encrypted or not. Default value is false. |
@@ -142,6 +144,7 @@ The following tables describe the values you need to set in the schema.
### service_loggers_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | loggers |
| apiVersion | enum | Yes | 2016-07-07 |
| description | string | No | Logger description. |
@@ -153,6 +156,7 @@ The following tables describe the values you need to set in the schema.
### service_authorizationServers_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | authorizationServers |
| apiVersion | enum | Yes | 2016-07-07 |
| OAuth2AuthorizationServerContract | object | Yes | OAuth2 Authorization Server details. - [OAuth2AuthorizationServerContract object](#OAuth2AuthorizationServerContract) |
@@ -162,6 +166,7 @@ The following tables describe the values you need to set in the schema.
### service_users_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | User identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | users |
| apiVersion | enum | Yes | 2016-07-07 |
| email | string | Yes | Email address. |
@@ -176,6 +181,7 @@ The following tables describe the values you need to set in the schema.
### service_certificates_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | certificates |
| apiVersion | enum | Yes | 2016-07-07 |
| data | string | No | Base 64 encoded Certificate |
@@ -186,9 +192,9 @@ The following tables describe the values you need to set in the schema.
### service_groups_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | Group identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | groups |
| apiVersion | enum | Yes | 2016-07-07 |
-| name | string | Yes | Group name. |
| description | string | No | Group description. |
| externalId | string | No | Identifier for an external group. |
| resources | array | No | [service_groups_users_childResource object](#service_groups_users_childResource) |
@@ -198,6 +204,7 @@ The following tables describe the values you need to set in the schema.
### service_products_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | Product identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | products |
| apiVersion | enum | Yes | 2016-07-07 |
| ProductContract | object | Yes | [ProductContract object](#ProductContract) |
@@ -208,11 +215,11 @@ The following tables describe the values you need to set in the schema.
### service_subscriptions_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | subscriptions |
| apiVersion | enum | Yes | 2016-07-07 |
| userId | string | Yes | User (user id path) for whom subscription is being created in form /users/{uid} |
| productId | string | Yes | Product (product id path) for which subscription is being created in form /products/{productid} |
-| name | string | Yes | Subscription name. |
| primaryKey | string | No | Primary subscription key. If not specified during request key will be generated automatically. |
| secondaryKey | string | No | Secondary subscription key. If not specified during request key will be generated automatically. |
| state | enum | No | Initial subscription state. - Suspended, Active, Expired, Submitted, Rejected, Cancelled |
@@ -222,6 +229,7 @@ The following tables describe the values you need to set in the schema.
### service_apis_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | API identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | apis |
| apiVersion | enum | Yes | 2016-07-07 |
| ApiContract | object | Yes | ApiContract. - [ApiContract object](#ApiContract) |
@@ -282,6 +290,7 @@ The following tables describe the values you need to set in the schema.
### service_groups_users_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | User identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | users |
| apiVersion | enum | Yes | 2016-07-07 |
@@ -304,6 +313,7 @@ The following tables describe the values you need to set in the schema.
### service_products_groups_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | Group identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | groups |
| apiVersion | enum | Yes | 2016-07-07 |
@@ -312,6 +322,7 @@ The following tables describe the values you need to set in the schema.
### service_products_apis_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | API identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | apis |
| apiVersion | enum | Yes | 2016-07-07 |
@@ -334,6 +345,7 @@ The following tables describe the values you need to set in the schema.
### service_apis_operations_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | operations |
| apiVersion | enum | Yes | 2016-07-07 |
| OperationContract | object | Yes | operation details. - [OperationContract object](#OperationContract) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_apis.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_apis.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_apis.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_apis.md
index cf9cdabd42..1b8a5c75f3 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_apis.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_apis.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service/apis resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/apis",
"apiVersion": "2016-07-07",
"ApiContract": {
@@ -41,6 +42,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/apis object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | API identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | Microsoft.ApiManagement/service/apis |
| apiVersion | enum | Yes | 2016-07-07 |
| ApiContract | object | Yes | ApiContract. - [ApiContract object](#ApiContract) |
@@ -65,6 +67,7 @@ The following tables describe the values you need to set in the schema.
### service_apis_operations_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | operations |
| apiVersion | enum | Yes | 2016-07-07 |
| OperationContract | object | Yes | operation details. - [OperationContract object](#OperationContract) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_apis_operations.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_apis_operations.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_apis_operations.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_apis_operations.md
index 6879bd7b56..a4ffe084ab 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_apis_operations.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_apis_operations.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service/apis/operations resource, add the fo
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/apis/operations",
"apiVersion": "2016-07-07",
"OperationContract": {
@@ -82,6 +83,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/apis/operations object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ApiManagement/service/apis/operations |
| apiVersion | enum | Yes | 2016-07-07 |
| OperationContract | object | Yes | operation details. - [OperationContract object](#OperationContract) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_authorizationServers.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_authorizationServers.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_authorizationServers.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_authorizationServers.md
index b758237684..420a1808c2 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_authorizationServers.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_authorizationServers.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service/authorizationServers resource, add t
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/authorizationServers",
"apiVersion": "2016-07-07",
"OAuth2AuthorizationServerContract": {
@@ -49,6 +50,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/authorizationServers object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ApiManagement/service/authorizationServers |
| apiVersion | enum | Yes | 2016-07-07 |
| OAuth2AuthorizationServerContract | object | Yes | OAuth2 Authorization Server details. - [OAuth2AuthorizationServerContract object](#OAuth2AuthorizationServerContract) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_certificates.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_certificates.md
similarity index 94%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_certificates.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_certificates.md
index e63d712fe6..cbf94ff504 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_certificates.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_certificates.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service/certificates resource, add the follo
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/certificates",
"apiVersion": "2016-07-07",
"data": "string",
@@ -20,6 +21,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/certificates object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ApiManagement/service/certificates |
| apiVersion | enum | Yes | 2016-07-07 |
| data | string | No | Base 64 encoded Certificate |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_groups.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_groups.md
similarity index 85%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_groups.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_groups.md
index fc6b71446b..772838dc85 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_groups.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_groups.md
@@ -6,9 +6,9 @@ To create a Microsoft.ApiManagement/service/groups resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/groups",
"apiVersion": "2016-07-07",
- "name": "string",
"description": "string",
"externalId": "string",
"resources": [
@@ -24,9 +24,9 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/groups object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | Group identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | Microsoft.ApiManagement/service/groups |
| apiVersion | enum | Yes | 2016-07-07 |
-| name | string | Yes | Group name. |
| description | string | No | Group description. |
| externalId | string | No | Identifier for an external group. |
| resources | array | No | [service_groups_users_childResource object](#service_groups_users_childResource) |
@@ -36,6 +36,7 @@ The following tables describe the values you need to set in the schema.
### service_groups_users_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | User identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | users |
| apiVersion | enum | Yes | 2016-07-07 |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_groups_users.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_groups_users.md
similarity index 85%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_groups_users.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_groups_users.md
index 6bf8f2f86f..a66df426cb 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_groups_users.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_groups_users.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service/groups/users resource, add the follo
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/groups/users",
"apiVersion": "2016-07-07"
}
@@ -18,6 +19,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/groups/users object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | User identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | Microsoft.ApiManagement/service/groups/users |
| apiVersion | enum | Yes | 2016-07-07 |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_loggers.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_loggers.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_loggers.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_loggers.md
index ea76ae680f..26ae9da710 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_loggers.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_loggers.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service/loggers resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/loggers",
"apiVersion": "2016-07-07",
"description": "string",
@@ -21,6 +22,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/loggers object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ApiManagement/service/loggers |
| apiVersion | enum | Yes | 2016-07-07 |
| description | string | No | Logger description. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_openidConnectProviders.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_openidConnectProviders.md
similarity index 94%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_openidConnectProviders.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_openidConnectProviders.md
index 60f5c73f9f..a511969047 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_openidConnectProviders.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_openidConnectProviders.md
@@ -6,9 +6,9 @@ To create a Microsoft.ApiManagement/service/openidConnectProviders resource, add
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/openidConnectProviders",
"apiVersion": "2016-07-07",
- "name": "string",
"description": "string",
"metadataEndpoint": "string",
"clientId": "string",
@@ -23,9 +23,9 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/openidConnectProviders object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ApiManagement/service/openidConnectProviders |
| apiVersion | enum | Yes | 2016-07-07 |
-| name | string | Yes | User-friendly OpenID Connect Provider name. |
| description | string | No | User-friendly description of OpenID Connect Provider. |
| metadataEndpoint | string | Yes | Metadata endpoint URI. |
| clientId | string | Yes | Client ID of developer console which is the client application. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_products.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_products.md
similarity index 91%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_products.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_products.md
index fb1be0ebad..ac146c67a3 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_products.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_products.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service/products resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/products",
"apiVersion": "2016-07-07",
"ProductContract": {
@@ -31,6 +32,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/products object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | Product identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | Microsoft.ApiManagement/service/products |
| apiVersion | enum | Yes | 2016-07-07 |
| ProductContract | object | Yes | [ProductContract object](#ProductContract) |
@@ -55,6 +57,7 @@ The following tables describe the values you need to set in the schema.
### service_products_groups_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | Group identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | groups |
| apiVersion | enum | Yes | 2016-07-07 |
@@ -63,6 +66,7 @@ The following tables describe the values you need to set in the schema.
### service_products_apis_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | API identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | apis |
| apiVersion | enum | Yes | 2016-07-07 |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_products_apis.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_products_apis.md
similarity index 85%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_products_apis.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_products_apis.md
index c66d009d5f..9fd8ed3240 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_products_apis.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_products_apis.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service/products/apis resource, add the foll
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/products/apis",
"apiVersion": "2016-07-07"
}
@@ -18,6 +19,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/products/apis object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | API identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | Microsoft.ApiManagement/service/products/apis |
| apiVersion | enum | Yes | 2016-07-07 |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_products_groups.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_products_groups.md
similarity index 85%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_products_groups.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_products_groups.md
index 00acfa1548..d210443583 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_products_groups.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_products_groups.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service/products/groups resource, add the fo
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/products/groups",
"apiVersion": "2016-07-07"
}
@@ -18,6 +19,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/products/groups object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | Group identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | Microsoft.ApiManagement/service/products/groups |
| apiVersion | enum | Yes | 2016-07-07 |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_properties.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_properties.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_properties.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_properties.md
index 042b753a8e..c839083798 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_properties.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_properties.md
@@ -6,9 +6,9 @@ To create a Microsoft.ApiManagement/service/properties resource, add the followi
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/properties",
"apiVersion": "2016-07-07",
- "name": "string",
"value": "string",
"tags": [
"string"
@@ -24,9 +24,9 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/properties object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ApiManagement/service/properties |
| apiVersion | enum | Yes | 2016-07-07 |
-| name | string | Yes | Unique name of Property. |
| value | string | Yes | The Value of the Property. |
| tags | array | No | Collection of tags associated with a property. - string |
| secret | boolean | No | The value which determines the value should be encrypted or not. Default value is false. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_subscriptions.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_subscriptions.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_subscriptions.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_subscriptions.md
index 2c3047abf1..29593d64c0 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_subscriptions.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_subscriptions.md
@@ -6,11 +6,11 @@ To create a Microsoft.ApiManagement/service/subscriptions resource, add the foll
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/subscriptions",
"apiVersion": "2016-07-07",
"userId": "string",
"productId": "string",
- "name": "string",
"primaryKey": "string",
"secondaryKey": "string",
"state": "string"
@@ -24,11 +24,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/subscriptions object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ApiManagement/service/subscriptions |
| apiVersion | enum | Yes | 2016-07-07 |
| userId | string | Yes | User (user id path) for whom subscription is being created in form /users/{uid} |
| productId | string | Yes | Product (product id path) for which subscription is being created in form /products/{productid} |
-| name | string | Yes | Subscription name. |
| primaryKey | string | No | Primary subscription key. If not specified during request key will be generated automatically. |
| secondaryKey | string | No | Secondary subscription key. If not specified during request key will be generated automatically. |
| state | enum | No | Initial subscription state. - Suspended, Active, Expired, Submitted, Rejected, Cancelled |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_users.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_users.md
similarity index 89%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_users.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_users.md
index 33075af3eb..e826f94b58 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/Microsoft.ApiManagement/service_users.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07/service_users.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service/users resource, add the following JS
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service/users",
"apiVersion": "2016-07-07",
"email": "string",
@@ -24,6 +25,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service/users object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | User identifier. Must be unique in the current API Management service instance. |
| type | enum | Yes | Microsoft.ApiManagement/service/users |
| apiVersion | enum | Yes | 2016-07-07 |
| email | string | Yes | Email address. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/Microsoft.ApiManagement/Microsoft.ApiManagement.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/Microsoft.ApiManagement.json
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/Microsoft.ApiManagement/Microsoft.ApiManagement.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/Microsoft.ApiManagement.json
index 3ad405bc9e..8656790fce 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/Microsoft.ApiManagement/Microsoft.ApiManagement.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/Microsoft.ApiManagement.json
@@ -7,6 +7,18 @@
"service": {
"type": "object",
"properties": {
+ "name": {
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"
+ },
+ {
+ "$ref": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#/definitions/expression"
+ }
+ ],
+ "description": "The name of the Api Management service."
+ },
"type": {
"type": "string",
"enum": [
@@ -61,6 +73,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/Microsoft.ApiManagement/service.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/service.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/Microsoft.ApiManagement/service.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/service.md
index 98a58dee68..0f0bffa1c5 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/Microsoft.ApiManagement/service.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ApiManagement/2016-07-07b/service.md
@@ -6,6 +6,7 @@ To create a Microsoft.ApiManagement/service resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.ApiManagement/service",
"apiVersion": "2016-07-07",
"location": "string",
@@ -70,6 +71,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ApiManagement/service object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | The name of the Api Management service. |
| type | enum | Yes | Microsoft.ApiManagement/service |
| apiVersion | enum | Yes | 2016-07-07 |
| location | string | Yes | Api Management service data center location. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/Microsoft.Batch.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch.json
similarity index 94%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/Microsoft.Batch.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch.json
index 919093e851..9e7c76e130 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/Microsoft.Batch.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch.json
@@ -7,6 +7,9 @@
"batchAccounts": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -60,6 +63,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -69,6 +73,9 @@
"batchAccounts_applications": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -108,6 +115,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -116,6 +124,9 @@
"batchAccounts_applications_versions": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -130,6 +141,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -170,6 +182,9 @@
"batchAccounts_applications_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -209,6 +224,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -217,6 +233,9 @@
"batchAccounts_applications_versions_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -231,6 +250,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/batchAccounts.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/batchAccounts.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/batchAccounts.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/batchAccounts.md
index 89096d0e8d..35282053e7 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/batchAccounts.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/batchAccounts.md
@@ -6,6 +6,7 @@ To create a Microsoft.Batch/batchAccounts resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Batch/batchAccounts",
"apiVersion": "2015-12-01",
"location": "string",
@@ -28,6 +29,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Batch/batchAccounts object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Batch/batchAccounts |
| apiVersion | enum | Yes | 2015-12-01 |
| location | string | No | The region in which the account is created. |
@@ -47,6 +49,7 @@ The following tables describe the values you need to set in the schema.
### batchAccounts_applications_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | applications |
| apiVersion | enum | Yes | 2015-12-01 |
| allowUpdates | boolean | No | A value indicating whether packages within the application may be overwritten using the same version string. |
@@ -65,6 +68,7 @@ The following tables describe the values you need to set in the schema.
### batchAccounts_applications_versions_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | versions |
| apiVersion | enum | Yes | 2015-12-01 |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/batchAccounts_applications.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/batchAccounts_applications.md
similarity index 94%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/batchAccounts_applications.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/batchAccounts_applications.md
index cd60d919f4..8a9e8a0a66 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/batchAccounts_applications.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/batchAccounts_applications.md
@@ -6,6 +6,7 @@ To create a Microsoft.Batch/batchAccounts/applications resource, add the followi
```json
{
+ "name": "string",
"type": "Microsoft.Batch/batchAccounts/applications",
"apiVersion": "2015-12-01",
"allowUpdates": boolean,
@@ -23,6 +24,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Batch/batchAccounts/applications object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Batch/batchAccounts/applications |
| apiVersion | enum | Yes | 2015-12-01 |
| allowUpdates | boolean | No | A value indicating whether packages within the application may be overwritten using the same version string. |
@@ -34,6 +36,7 @@ The following tables describe the values you need to set in the schema.
### batchAccounts_applications_versions_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | versions |
| apiVersion | enum | Yes | 2015-12-01 |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/batchAccounts_applications_versions.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/batchAccounts_applications_versions.md
similarity index 94%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/batchAccounts_applications_versions.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/batchAccounts_applications_versions.md
index 278cee6e9e..34372aa079 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/Microsoft.Batch/batchAccounts_applications_versions.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Batch/2015-12-01/batchAccounts_applications_versions.md
@@ -6,6 +6,7 @@ To create a Microsoft.Batch/batchAccounts/applications/versions resource, add th
```json
{
+ "name": "string",
"type": "Microsoft.Batch/batchAccounts/applications/versions",
"apiVersion": "2015-12-01"
}
@@ -18,6 +19,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Batch/batchAccounts/applications/versions object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Batch/batchAccounts/applications/versions |
| apiVersion | enum | Yes | 2015-12-01 |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/Microsoft.Cdn.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn.json
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/Microsoft.Cdn.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn.json
index 8f5ba0b846..c820d7d05c 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/Microsoft.Cdn.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn.json
@@ -7,6 +7,9 @@
"profiles": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -59,6 +62,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -69,6 +73,9 @@
"profiles_endpoints": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -124,6 +131,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -134,6 +142,9 @@
"profiles_endpoints_customDomains": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -158,6 +169,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -167,6 +179,9 @@
"profiles_endpoints_origins": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -191,6 +206,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -419,6 +435,9 @@
"profiles_endpoints_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -474,6 +493,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -484,6 +504,9 @@
"profiles_endpoints_customDomains_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -508,6 +531,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -517,6 +541,9 @@
"profiles_endpoints_origins_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -541,6 +568,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles.md
index 497c772c46..c0d8425828 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles.md
@@ -6,6 +6,7 @@ To create a Microsoft.Cdn/profiles resource, add the following JSON to the resou
```json
{
+ "name": "string",
"type": "Microsoft.Cdn/profiles",
"apiVersion": "2015-06-01",
"location": "string",
@@ -28,6 +29,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Cdn/profiles object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Cdn/profiles |
| apiVersion | enum | Yes | 2015-06-01 |
| location | string | Yes | Profile location |
@@ -47,6 +49,7 @@ The following tables describe the values you need to set in the schema.
### profiles_endpoints_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | endpoints |
| apiVersion | enum | Yes | 2015-06-01 |
| location | string | Yes | Endpoint location |
@@ -80,6 +83,7 @@ The following tables describe the values you need to set in the schema.
### profiles_endpoints_customDomains_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | customDomains |
| apiVersion | enum | Yes | 2015-06-01 |
| properties | object | Yes | [CustomDomainPropertiesParameters object](#CustomDomainPropertiesParameters) |
@@ -89,6 +93,7 @@ The following tables describe the values you need to set in the schema.
### profiles_endpoints_origins_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | origins |
| apiVersion | enum | Yes | 2015-06-01 |
| properties | object | Yes | [OriginPropertiesParameters object](#OriginPropertiesParameters) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles_endpoints.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles_endpoints.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles_endpoints.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles_endpoints.md
index 05c96ff510..d44632c638 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles_endpoints.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles_endpoints.md
@@ -6,6 +6,7 @@ To create a Microsoft.Cdn/profiles/endpoints resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Cdn/profiles/endpoints",
"apiVersion": "2015-06-01",
"location": "string",
@@ -44,6 +45,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Cdn/profiles/endpoints object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Cdn/profiles/endpoints |
| apiVersion | enum | Yes | 2015-06-01 |
| location | string | Yes | Endpoint location |
@@ -70,6 +72,7 @@ The following tables describe the values you need to set in the schema.
### profiles_endpoints_customDomains_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | customDomains |
| apiVersion | enum | Yes | 2015-06-01 |
| properties | object | Yes | [CustomDomainPropertiesParameters object](#CustomDomainPropertiesParameters) |
@@ -79,6 +82,7 @@ The following tables describe the values you need to set in the schema.
### profiles_endpoints_origins_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | origins |
| apiVersion | enum | Yes | 2015-06-01 |
| properties | object | Yes | [OriginPropertiesParameters object](#OriginPropertiesParameters) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles_endpoints_customDomains.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles_endpoints_customDomains.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles_endpoints_customDomains.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles_endpoints_customDomains.md
index 3bb055e9fd..57d0bbe17e 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles_endpoints_customDomains.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles_endpoints_customDomains.md
@@ -6,6 +6,7 @@ To create a Microsoft.Cdn/profiles/endpoints/customDomains resource, add the fol
```json
{
+ "name": "string",
"type": "Microsoft.Cdn/profiles/endpoints/customDomains",
"apiVersion": "2015-06-01",
"properties": {
@@ -21,6 +22,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Cdn/profiles/endpoints/customDomains object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Cdn/profiles/endpoints/customDomains |
| apiVersion | enum | Yes | 2015-06-01 |
| properties | object | Yes | [CustomDomainPropertiesParameters object](#CustomDomainPropertiesParameters) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles_endpoints_origins.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles_endpoints_origins.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles_endpoints_origins.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles_endpoints_origins.md
index d07336aa8a..9b72874f23 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/Microsoft.Cdn/profiles_endpoints_origins.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2015-06-01/profiles_endpoints_origins.md
@@ -6,6 +6,7 @@ To create a Microsoft.Cdn/profiles/endpoints/origins resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"apiVersion": "2015-06-01",
"properties": {
@@ -23,6 +24,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Cdn/profiles/endpoints/origins object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Cdn/profiles/endpoints/origins |
| apiVersion | enum | Yes | 2015-06-01 |
| properties | object | Yes | [OriginPropertiesParameters object](#OriginPropertiesParameters) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/Microsoft.Cdn.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn.json
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/Microsoft.Cdn.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn.json
index 5c9d5c86e3..36db2f53a4 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/Microsoft.Cdn.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn.json
@@ -7,6 +7,9 @@
"profiles": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -60,6 +63,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -70,6 +74,9 @@
"profiles_endpoints": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -125,6 +132,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -135,6 +143,9 @@
"profiles_endpoints_customDomains": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -159,6 +170,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -168,6 +180,9 @@
"profiles_endpoints_origins": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -192,6 +207,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -401,6 +417,9 @@
"profiles_endpoints_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -456,6 +475,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -466,6 +486,9 @@
"profiles_endpoints_customDomains_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -490,6 +513,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -499,6 +523,9 @@
"profiles_endpoints_origins_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -523,6 +550,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles.md
index 36bb902266..1996e52f7f 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles.md
@@ -6,6 +6,7 @@ To create a Microsoft.Cdn/profiles resource, add the following JSON to the resou
```json
{
+ "name": "string",
"type": "Microsoft.Cdn/profiles",
"apiVersion": "2016-04-02",
"location": "string",
@@ -26,6 +27,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Cdn/profiles object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Cdn/profiles |
| apiVersion | enum | Yes | 2016-04-02 |
| location | string | Yes | Profile location |
@@ -45,6 +47,7 @@ The following tables describe the values you need to set in the schema.
### profiles_endpoints_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | endpoints |
| apiVersion | enum | Yes | 2016-04-02 |
| location | string | Yes | Endpoint location |
@@ -71,6 +74,7 @@ The following tables describe the values you need to set in the schema.
### profiles_endpoints_customDomains_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | customDomains |
| apiVersion | enum | Yes | 2016-04-02 |
| properties | object | Yes | [CustomDomainPropertiesParameters object](#CustomDomainPropertiesParameters) |
@@ -80,6 +84,7 @@ The following tables describe the values you need to set in the schema.
### profiles_endpoints_origins_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | origins |
| apiVersion | enum | Yes | 2016-04-02 |
| properties | object | Yes | [OriginPropertiesParameters object](#OriginPropertiesParameters) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles_endpoints.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles_endpoints.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles_endpoints.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles_endpoints.md
index ed4a1105a7..c4da8e96a1 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles_endpoints.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles_endpoints.md
@@ -6,6 +6,7 @@ To create a Microsoft.Cdn/profiles/endpoints resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Cdn/profiles/endpoints",
"apiVersion": "2016-04-02",
"location": "string",
@@ -44,6 +45,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Cdn/profiles/endpoints object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Cdn/profiles/endpoints |
| apiVersion | enum | Yes | 2016-04-02 |
| location | string | Yes | Endpoint location |
@@ -70,6 +72,7 @@ The following tables describe the values you need to set in the schema.
### profiles_endpoints_customDomains_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | customDomains |
| apiVersion | enum | Yes | 2016-04-02 |
| properties | object | Yes | [CustomDomainPropertiesParameters object](#CustomDomainPropertiesParameters) |
@@ -79,6 +82,7 @@ The following tables describe the values you need to set in the schema.
### profiles_endpoints_origins_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | origins |
| apiVersion | enum | Yes | 2016-04-02 |
| properties | object | Yes | [OriginPropertiesParameters object](#OriginPropertiesParameters) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles_endpoints_customDomains.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles_endpoints_customDomains.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles_endpoints_customDomains.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles_endpoints_customDomains.md
index 8bb7274ed5..39dec30ca2 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles_endpoints_customDomains.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles_endpoints_customDomains.md
@@ -6,6 +6,7 @@ To create a Microsoft.Cdn/profiles/endpoints/customDomains resource, add the fol
```json
{
+ "name": "string",
"type": "Microsoft.Cdn/profiles/endpoints/customDomains",
"apiVersion": "2016-04-02",
"properties": {
@@ -21,6 +22,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Cdn/profiles/endpoints/customDomains object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Cdn/profiles/endpoints/customDomains |
| apiVersion | enum | Yes | 2016-04-02 |
| properties | object | Yes | [CustomDomainPropertiesParameters object](#CustomDomainPropertiesParameters) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles_endpoints_origins.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles_endpoints_origins.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles_endpoints_origins.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles_endpoints_origins.md
index c9af914255..a3a3e1af1c 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/Microsoft.Cdn/profiles_endpoints_origins.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CDN/2016-04-02/profiles_endpoints_origins.md
@@ -6,6 +6,7 @@ To create a Microsoft.Cdn/profiles/endpoints/origins resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"apiVersion": "2016-04-02",
"properties": {
@@ -23,6 +24,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Cdn/profiles/endpoints/origins object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Cdn/profiles/endpoints/origins |
| apiVersion | enum | Yes | 2016-04-02 |
| properties | object | Yes | [OriginPropertiesParameters object](#OriginPropertiesParameters) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/Microsoft.CognitiveServices/Microsoft.CognitiveServices.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/Microsoft.CognitiveServices.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/Microsoft.CognitiveServices/Microsoft.CognitiveServices.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/Microsoft.CognitiveServices.json
index d3ba02ab94..8219dc3fa2 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/Microsoft.CognitiveServices/Microsoft.CognitiveServices.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/Microsoft.CognitiveServices.json
@@ -7,6 +7,9 @@
"accounts": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -73,6 +76,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"sku",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/Microsoft.CognitiveServices/accounts.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/accounts.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/Microsoft.CognitiveServices/accounts.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/accounts.md
index 5fd96f4ec3..8dd5497d98 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/Microsoft.CognitiveServices/accounts.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CognitiveServices/2016-02-01-preview/accounts.md
@@ -6,6 +6,7 @@ To create a Microsoft.CognitiveServices/accounts resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.CognitiveServices/accounts",
"apiVersion": "2016-02-01-preview",
"sku": {
@@ -25,6 +26,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.CognitiveServices/accounts object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.CognitiveServices/accounts |
| apiVersion | enum | Yes | 2016-02-01-preview |
| sku | object | Yes | [Sku object](#Sku) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/Microsoft.MachineLearning/Microsoft.MachineLearning.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/Microsoft.MachineLearning.json
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/Microsoft.MachineLearning/Microsoft.MachineLearning.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/Microsoft.MachineLearning.json
index c324247dac..ff1b1348ff 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/Microsoft.MachineLearning/Microsoft.MachineLearning.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/Microsoft.MachineLearning.json
@@ -7,6 +7,10 @@
"commitmentPlans": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string",
+ "description": "The Azure ML commitment plan name."
+ },
"type": {
"type": "string",
"enum": [
@@ -54,6 +58,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/Microsoft.MachineLearning/commitmentPlans.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/commitmentPlans.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/Microsoft.MachineLearning/commitmentPlans.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/commitmentPlans.md
index ed7216dc6c..cad9049682 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/Microsoft.MachineLearning/commitmentPlans.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/CommitmentPlans/2016-05-01-preview/commitmentPlans.md
@@ -6,6 +6,7 @@ To create a Microsoft.MachineLearning/commitmentPlans resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.MachineLearning/commitmentPlans",
"apiVersion": "2016-05-01-preview",
"location": "string",
@@ -26,6 +27,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.MachineLearning/commitmentPlans object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | The Azure ML commitment plan name. |
| type | enum | Yes | Microsoft.MachineLearning/commitmentPlans |
| apiVersion | enum | Yes | 2016-05-01-preview |
| location | string | Yes | Resource location. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/Microsoft.Compute.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/Microsoft.Compute.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute.json
index 97982c3d66..1ee3427eb0 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/Microsoft.Compute.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute.json
@@ -7,6 +7,9 @@
"availabilitySets": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -49,6 +52,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -59,6 +63,9 @@
"virtualMachines": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -122,6 +129,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -132,6 +140,9 @@
"virtualMachines_extensions": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -174,6 +185,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -184,6 +196,9 @@
"virtualMachineScaleSets": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -237,6 +252,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1369,6 +1385,9 @@
"virtualMachines_extensions_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1411,6 +1430,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/availabilitySets.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/availabilitySets.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/availabilitySets.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/availabilitySets.md
index ea3f964b61..43603c3cb4 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/availabilitySets.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/availabilitySets.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/availabilitySets resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Compute/availabilitySets",
"apiVersion": "2015-06-15",
"location": "string",
@@ -38,6 +39,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/availabilitySets object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/availabilitySets |
| apiVersion | enum | Yes | 2015-06-15 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/virtualMachineScaleSets.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/virtualMachineScaleSets.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/virtualMachineScaleSets.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/virtualMachineScaleSets.md
index 34111f607a..96e8684cd6 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/virtualMachineScaleSets.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/virtualMachineScaleSets.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/virtualMachineScaleSets resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.Compute/virtualMachineScaleSets",
"apiVersion": "2015-06-15",
"location": "string",
@@ -153,6 +154,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/virtualMachineScaleSets object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/virtualMachineScaleSets |
| apiVersion | enum | Yes | 2015-06-15 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/virtualMachines.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/virtualMachines.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/virtualMachines.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/virtualMachines.md
index 8315167122..b123db8796 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/virtualMachines.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/virtualMachines.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/virtualMachines resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2015-06-15",
"location": "string",
@@ -157,6 +158,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/virtualMachines object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/virtualMachines |
| apiVersion | enum | Yes | 2015-06-15 |
| location | string | Yes | Resource location |
@@ -194,6 +196,7 @@ The following tables describe the values you need to set in the schema.
### virtualMachines_extensions_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | extensions |
| apiVersion | enum | Yes | 2015-06-15 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/virtualMachines_extensions.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/virtualMachines_extensions.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/virtualMachines_extensions.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/virtualMachines_extensions.md
index 3d0d350ed1..754c6bc8ce 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/Microsoft.Compute/virtualMachines_extensions.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2015-06-15/virtualMachines_extensions.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/virtualMachines/extensions resource, add the follo
```json
{
+ "name": "string",
"type": "Microsoft.Compute/virtualMachines/extensions",
"apiVersion": "2015-06-15",
"location": "string",
@@ -53,6 +54,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/virtualMachines/extensions object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/virtualMachines/extensions |
| apiVersion | enum | Yes | 2015-06-15 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/Microsoft.Compute.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/Microsoft.Compute.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute.json
index 40c54cabed..f48c882e04 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/Microsoft.Compute.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute.json
@@ -7,6 +7,9 @@
"availabilitySets": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -49,6 +52,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -59,6 +63,9 @@
"virtualMachines": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -122,6 +129,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -132,6 +140,9 @@
"virtualMachines_extensions": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -174,6 +185,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -184,6 +196,9 @@
"virtualMachineScaleSets": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -237,6 +252,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1359,6 +1375,9 @@
"virtualMachines_extensions_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1401,6 +1420,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/availabilitySets.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/availabilitySets.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/availabilitySets.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/availabilitySets.md
index bddfb92851..970e18bfe9 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/availabilitySets.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/availabilitySets.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/availabilitySets resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Compute/availabilitySets",
"apiVersion": "2016-03-30",
"location": "string",
@@ -38,6 +39,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/availabilitySets object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/availabilitySets |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/virtualMachineScaleSets.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/virtualMachineScaleSets.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/virtualMachineScaleSets.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/virtualMachineScaleSets.md
index 6ce00a7f7a..bb82be3364 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/virtualMachineScaleSets.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/virtualMachineScaleSets.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/virtualMachineScaleSets resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.Compute/virtualMachineScaleSets",
"apiVersion": "2016-03-30",
"location": "string",
@@ -157,6 +158,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/virtualMachineScaleSets object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/virtualMachineScaleSets |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/virtualMachines.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/virtualMachines.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/virtualMachines.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/virtualMachines.md
index d968047341..8eb4757569 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/virtualMachines.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/virtualMachines.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/virtualMachines resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2016-03-30",
"location": "string",
@@ -156,6 +157,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/virtualMachines object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/virtualMachines |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
@@ -192,6 +194,7 @@ The following tables describe the values you need to set in the schema.
### virtualMachines_extensions_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | extensions |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/virtualMachines_extensions.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/virtualMachines_extensions.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/virtualMachines_extensions.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/virtualMachines_extensions.md
index 9023bbb4d6..1bcd4e6580 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/virtualMachines_extensions.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/virtualMachines_extensions.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/virtualMachines/extensions resource, add the follo
```json
{
+ "name": "string",
"type": "Microsoft.Compute/virtualMachines/extensions",
"apiVersion": "2016-03-30",
"location": "string",
@@ -52,6 +53,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/virtualMachines/extensions object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/virtualMachines/extensions |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/Microsoft.Compute.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/Microsoft.Compute.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute.json
index 6092077714..8e73d0fb14 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/Microsoft.Compute.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute.json
@@ -7,6 +7,9 @@
"availabilitySets": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -49,6 +52,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -59,6 +63,9 @@
"virtualMachines": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -122,6 +129,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -132,6 +140,9 @@
"virtualMachines_extensions": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -174,6 +185,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -184,6 +196,9 @@
"virtualMachineScaleSets": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -237,6 +252,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1626,6 +1642,9 @@
"virtualMachines_extensions_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1668,6 +1687,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/availabilitySets.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/availabilitySets.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/availabilitySets.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/availabilitySets.md
index bddfb92851..970e18bfe9 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30/Microsoft.Compute/availabilitySets.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/availabilitySets.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/availabilitySets resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Compute/availabilitySets",
"apiVersion": "2016-03-30",
"location": "string",
@@ -38,6 +39,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/availabilitySets object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/availabilitySets |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/virtualMachineScaleSets.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/virtualMachineScaleSets.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/virtualMachineScaleSets.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/virtualMachineScaleSets.md
index b76f6072a6..b63a920660 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/virtualMachineScaleSets.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/virtualMachineScaleSets.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/virtualMachineScaleSets resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.Compute/virtualMachineScaleSets",
"apiVersion": "2016-03-30",
"location": "string",
@@ -157,6 +158,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/virtualMachineScaleSets object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/virtualMachineScaleSets |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/virtualMachines.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/virtualMachines.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/virtualMachines.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/virtualMachines.md
index 8754c25012..01232ff687 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/virtualMachines.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/virtualMachines.md
@@ -6,6 +6,7 @@ To create a Microsoft.Compute/virtualMachines resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2016-03-30",
"location": "string",
@@ -156,6 +157,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/virtualMachines object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/virtualMachines |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
@@ -192,6 +194,7 @@ The following tables describe the values you need to set in the schema.
### virtualMachines_extensions_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | extensions |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
@@ -249,6 +252,13 @@ The following tables describe the values you need to set in the schema.
| id | string | No | Resource Id |
+
+### VirtualMachineExtensionProperties object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| extensionType | enum | No | Generic, IaasDiagnostics, IaasAntimalware, CustomScript |
+
+
### ImageReference object
| Name | Type | Required | Value |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/virtualMachines_extensions.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/virtualMachines_extensions.md
similarity index 73%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/virtualMachines_extensions.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/virtualMachines_extensions.md
index e8ed04f6ab..90eb63668d 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/Microsoft.Compute/virtualMachines_extensions.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Compute/2016-03-30b/virtualMachines_extensions.md
@@ -6,11 +6,14 @@ To create a Microsoft.Compute/virtualMachines/extensions resource, add the follo
```json
{
+ "name": "string",
"type": "Microsoft.Compute/virtualMachines/extensions",
"apiVersion": "2016-03-30",
"location": "string",
"tags": {},
- "properties": {}
+ "properties": {
+ "extensionType": "string"
+ }
}
```
## Property values
@@ -21,9 +24,17 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Compute/virtualMachines/extensions object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Compute/virtualMachines/extensions |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
| tags | object | No | Resource tags |
| properties | object | Yes | [VirtualMachineExtensionProperties object](#VirtualMachineExtensionProperties) |
+
+
+### VirtualMachineExtensionProperties object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| extensionType | enum | No | Generic, IaasDiagnostics, IaasAntimalware, CustomScript |
+
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/Microsoft.ContainerService/Microsoft.ContainerService.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/Microsoft.ContainerService.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/Microsoft.ContainerService/Microsoft.ContainerService.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/Microsoft.ContainerService.json
index 04a814cdfb..5bf0475152 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/Microsoft.ContainerService/Microsoft.ContainerService.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/Microsoft.ContainerService.json
@@ -7,6 +7,9 @@
"containerServices": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -49,6 +52,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/Microsoft.ContainerService/containerServices.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/containerServices.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/Microsoft.ContainerService/containerServices.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/containerServices.md
index 43239178c2..601aa9c1e9 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/Microsoft.ContainerService/containerServices.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ContainerService/2016-03-30/containerServices.md
@@ -6,6 +6,7 @@ To create a Microsoft.ContainerService/containerServices resource, add the follo
```json
{
+ "name": "string",
"type": "Microsoft.ContainerService/containerServices",
"apiVersion": "2016-03-30",
"location": "string",
@@ -56,6 +57,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ContainerService/containerServices object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ContainerService/containerServices |
| apiVersion | enum | Yes | 2016-03-30 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/Microsoft.Network.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network.json
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/Microsoft.Network.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network.json
index c06f5906a6..445cd2b1cf 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/Microsoft.Network.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network.json
@@ -7,6 +7,9 @@
"dnszones": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -88,6 +91,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -98,6 +102,9 @@
"dnszones_A": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -145,6 +152,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -155,6 +163,9 @@
"dnszones_AAAA": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -202,6 +213,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -212,6 +224,9 @@
"dnszones_CNAME": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -259,6 +274,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -269,6 +285,9 @@
"dnszones_MX": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -316,6 +335,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -326,6 +346,9 @@
"dnszones_NS": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -373,6 +396,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -383,6 +407,9 @@
"dnszones_PTR": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -430,6 +457,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -440,6 +468,9 @@
"dnszones_SOA": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -487,6 +518,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -497,6 +529,9 @@
"dnszones_SRV": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -544,6 +579,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -554,6 +590,9 @@
"dnszones_TXT": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -601,6 +640,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -643,6 +683,9 @@
"dnszones_A_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -690,6 +733,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -700,6 +744,9 @@
"dnszones_AAAA_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -747,6 +794,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -757,6 +805,9 @@
"dnszones_CNAME_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -804,6 +855,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -814,6 +866,9 @@
"dnszones_MX_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -861,6 +916,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -871,6 +927,9 @@
"dnszones_NS_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -918,6 +977,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -928,6 +988,9 @@
"dnszones_PTR_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -975,6 +1038,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -985,6 +1049,9 @@
"dnszones_SOA_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1032,6 +1099,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1042,6 +1110,9 @@
"dnszones_SRV_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1089,6 +1160,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1099,6 +1171,9 @@
"dnszones_TXT_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1146,6 +1221,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones.md
index 3d42109f31..7d6222866a 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones resource, add the following JSON to the r
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones",
"apiVersion": "2015-05-04-preview",
"location": "string",
@@ -28,6 +29,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
@@ -49,6 +51,7 @@ The following tables describe the values you need to set in the schema.
### dnszones_TXT_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | TXT |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
@@ -61,6 +64,7 @@ The following tables describe the values you need to set in the schema.
### dnszones_SRV_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | SRV |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
@@ -73,6 +77,7 @@ The following tables describe the values you need to set in the schema.
### dnszones_SOA_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | SOA |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
@@ -85,6 +90,7 @@ The following tables describe the values you need to set in the schema.
### dnszones_PTR_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | PTR |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
@@ -97,6 +103,7 @@ The following tables describe the values you need to set in the schema.
### dnszones_NS_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | NS |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
@@ -109,6 +116,7 @@ The following tables describe the values you need to set in the schema.
### dnszones_MX_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | MX |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
@@ -121,6 +129,7 @@ The following tables describe the values you need to set in the schema.
### dnszones_CNAME_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | CNAME |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
@@ -133,6 +142,7 @@ The following tables describe the values you need to set in the schema.
### dnszones_AAAA_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | AAAA |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
@@ -145,6 +155,7 @@ The following tables describe the values you need to set in the schema.
### dnszones_A_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | A |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_A.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_A.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_A.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_A.md
index 94faf37441..9b9f9adfc4 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_A.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_A.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones/A resource, add the following JSON to the
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/A",
"apiVersion": "2015-05-04-preview",
"location": "string",
@@ -77,6 +78,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/A object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/A |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_AAAA.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_AAAA.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_AAAA.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_AAAA.md
index 1735e3cd7c..278c593edc 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_AAAA.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_AAAA.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones/AAAA resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/AAAA",
"apiVersion": "2015-05-04-preview",
"location": "string",
@@ -77,6 +78,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/AAAA object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/AAAA |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_CNAME.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_CNAME.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_CNAME.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_CNAME.md
index c7f2426e32..be2e083014 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_CNAME.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_CNAME.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones/CNAME resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/CNAME",
"apiVersion": "2015-05-04-preview",
"location": "string",
@@ -77,6 +78,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/CNAME object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/CNAME |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_MX.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_MX.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_MX.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_MX.md
index 42ee4694ff..1eeb092a19 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_MX.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_MX.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones/MX resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/MX",
"apiVersion": "2015-05-04-preview",
"location": "string",
@@ -77,6 +78,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/MX object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/MX |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_NS.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_NS.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_NS.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_NS.md
index dcf5801ea9..d72df18371 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_NS.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_NS.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones/NS resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/NS",
"apiVersion": "2015-05-04-preview",
"location": "string",
@@ -77,6 +78,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/NS object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/NS |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_PTR.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_PTR.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_PTR.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_PTR.md
index 346869f5f1..dfc3e9c8ca 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_PTR.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_PTR.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones/PTR resource, add the following JSON to t
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/PTR",
"apiVersion": "2015-05-04-preview",
"location": "string",
@@ -77,6 +78,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/PTR object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/PTR |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_SOA.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_SOA.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_SOA.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_SOA.md
index 2465ccbfc8..43c2901487 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_SOA.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_SOA.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones/SOA resource, add the following JSON to t
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/SOA",
"apiVersion": "2015-05-04-preview",
"location": "string",
@@ -77,6 +78,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/SOA object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/SOA |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_SRV.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_SRV.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_SRV.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_SRV.md
index c75d14e38e..fc150911ff 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_SRV.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_SRV.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones/SRV resource, add the following JSON to t
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/SRV",
"apiVersion": "2015-05-04-preview",
"location": "string",
@@ -77,6 +78,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/SRV object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/SRV |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_TXT.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_TXT.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_TXT.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_TXT.md
index c207970e8e..9f12c288be 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/Microsoft.Network/dnszones_TXT.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2015-05-04-preview/dnszones_TXT.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones/TXT resource, add the following JSON to t
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/TXT",
"apiVersion": "2015-05-04-preview",
"location": "string",
@@ -77,6 +78,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/TXT object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/TXT |
| apiVersion | enum | Yes | 2015-05-04-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/Microsoft.Network.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network.json
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/Microsoft.Network.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network.json
index d4147174b7..3ee92f83ca 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/Microsoft.Network.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network.json
@@ -7,6 +7,9 @@
"dnszones": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -88,6 +91,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -98,6 +102,9 @@
"dnszones_A": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -114,10 +121,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -139,6 +142,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -148,6 +152,9 @@
"dnszones_AAAA": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -164,10 +171,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -189,6 +192,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -198,6 +202,9 @@
"dnszones_CNAME": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -214,10 +221,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -239,6 +242,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -248,6 +252,9 @@
"dnszones_MX": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -264,10 +271,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -289,6 +292,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -298,6 +302,9 @@
"dnszones_NS": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -314,10 +321,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -339,6 +342,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -348,6 +352,9 @@
"dnszones_PTR": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -364,10 +371,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -389,6 +392,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -398,6 +402,9 @@
"dnszones_SOA": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -414,10 +421,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -439,6 +442,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -448,6 +452,9 @@
"dnszones_SRV": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -464,10 +471,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -489,6 +492,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -498,6 +502,9 @@
"dnszones_TXT": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -514,10 +521,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -539,6 +542,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -580,6 +584,9 @@
"dnszones_A_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -596,10 +603,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -621,6 +624,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -630,6 +634,9 @@
"dnszones_AAAA_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -646,10 +653,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -671,6 +674,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -680,6 +684,9 @@
"dnszones_CNAME_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -696,10 +703,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -721,6 +724,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -730,6 +734,9 @@
"dnszones_MX_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -746,10 +753,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -771,6 +774,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -780,6 +784,9 @@
"dnszones_NS_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -796,10 +803,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -821,6 +824,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -830,6 +834,9 @@
"dnszones_PTR_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -846,10 +853,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -871,6 +874,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -880,6 +884,9 @@
"dnszones_SOA_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -896,10 +903,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -921,6 +924,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -930,6 +934,9 @@
"dnszones_SRV_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -946,10 +953,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -971,6 +974,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -980,6 +984,9 @@
"dnszones_TXT_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -996,10 +1003,6 @@
"type": "string",
"description": "Gets or sets the ID of the resource."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource."
- },
"etag": {
"type": "string",
"description": "Gets or sets the ETag of the RecordSet."
@@ -1021,6 +1024,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones.md
similarity index 94%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones.md
index 6ccb008016..19d0c14a25 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/dnszones resource, add the following JSON to the r
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones",
"apiVersion": "2016-04-01",
"location": "string",
@@ -28,6 +29,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones |
| apiVersion | enum | Yes | 2016-04-01 |
| location | string | Yes | Resource location |
@@ -49,10 +51,10 @@ The following tables describe the values you need to set in the schema.
### dnszones_TXT_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | TXT |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
@@ -62,10 +64,10 @@ The following tables describe the values you need to set in the schema.
### dnszones_SRV_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | SRV |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
@@ -75,10 +77,10 @@ The following tables describe the values you need to set in the schema.
### dnszones_SOA_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | SOA |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
@@ -88,10 +90,10 @@ The following tables describe the values you need to set in the schema.
### dnszones_PTR_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | PTR |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
@@ -101,10 +103,10 @@ The following tables describe the values you need to set in the schema.
### dnszones_NS_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | NS |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
@@ -114,10 +116,10 @@ The following tables describe the values you need to set in the schema.
### dnszones_MX_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | MX |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
@@ -127,10 +129,10 @@ The following tables describe the values you need to set in the schema.
### dnszones_CNAME_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | CNAME |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
@@ -140,10 +142,10 @@ The following tables describe the values you need to set in the schema.
### dnszones_AAAA_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | AAAA |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
@@ -153,10 +155,10 @@ The following tables describe the values you need to set in the schema.
### dnszones_A_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | A |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_A.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_A.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_A.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_A.md
index fd2e5ec9f7..5c3c7cad7c 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_A.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_A.md
@@ -6,10 +6,10 @@ To create a Microsoft.Network/dnszones/A resource, add the following JSON to the
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/A",
"apiVersion": "2016-04-01",
"id": "string",
- "name": "string",
"etag": "string",
"location": "string",
"properties": {
@@ -79,10 +79,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/A object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/A |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_AAAA.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_AAAA.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_AAAA.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_AAAA.md
index 475bf3374f..1b3e3142b7 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_AAAA.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_AAAA.md
@@ -6,10 +6,10 @@ To create a Microsoft.Network/dnszones/AAAA resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/AAAA",
"apiVersion": "2016-04-01",
"id": "string",
- "name": "string",
"etag": "string",
"location": "string",
"properties": {
@@ -79,10 +79,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/AAAA object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/AAAA |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_CNAME.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_CNAME.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_CNAME.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_CNAME.md
index d982ca5ff1..7bc105fa60 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_CNAME.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_CNAME.md
@@ -6,10 +6,10 @@ To create a Microsoft.Network/dnszones/CNAME resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/CNAME",
"apiVersion": "2016-04-01",
"id": "string",
- "name": "string",
"etag": "string",
"location": "string",
"properties": {
@@ -79,10 +79,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/CNAME object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/CNAME |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_MX.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_MX.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_MX.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_MX.md
index b8162cd105..b8734819e4 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_MX.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_MX.md
@@ -6,10 +6,10 @@ To create a Microsoft.Network/dnszones/MX resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/MX",
"apiVersion": "2016-04-01",
"id": "string",
- "name": "string",
"etag": "string",
"location": "string",
"properties": {
@@ -79,10 +79,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/MX object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/MX |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_NS.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_NS.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_NS.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_NS.md
index 4847247b1b..0ac8871fb1 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_NS.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_NS.md
@@ -6,10 +6,10 @@ To create a Microsoft.Network/dnszones/NS resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/NS",
"apiVersion": "2016-04-01",
"id": "string",
- "name": "string",
"etag": "string",
"location": "string",
"properties": {
@@ -79,10 +79,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/NS object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/NS |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_PTR.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_PTR.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_PTR.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_PTR.md
index 2a30a6f184..22b595b93c 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_PTR.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_PTR.md
@@ -6,10 +6,10 @@ To create a Microsoft.Network/dnszones/PTR resource, add the following JSON to t
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/PTR",
"apiVersion": "2016-04-01",
"id": "string",
- "name": "string",
"etag": "string",
"location": "string",
"properties": {
@@ -79,10 +79,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/PTR object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/PTR |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_SOA.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_SOA.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_SOA.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_SOA.md
index 44e90a1e50..1a4017dc7f 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_SOA.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_SOA.md
@@ -6,10 +6,10 @@ To create a Microsoft.Network/dnszones/SOA resource, add the following JSON to t
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/SOA",
"apiVersion": "2016-04-01",
"id": "string",
- "name": "string",
"etag": "string",
"location": "string",
"properties": {
@@ -79,10 +79,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/SOA object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/SOA |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_SRV.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_SRV.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_SRV.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_SRV.md
index 7f241d596a..4f075e049e 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_SRV.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_SRV.md
@@ -6,10 +6,10 @@ To create a Microsoft.Network/dnszones/SRV resource, add the following JSON to t
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/SRV",
"apiVersion": "2016-04-01",
"id": "string",
- "name": "string",
"etag": "string",
"location": "string",
"properties": {
@@ -79,10 +79,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/SRV object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/SRV |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_TXT.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_TXT.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_TXT.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_TXT.md
index debc3bebfc..0114d2d6f9 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/Microsoft.Network/dnszones_TXT.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DNS/2016-04-01/dnszones_TXT.md
@@ -6,10 +6,10 @@ To create a Microsoft.Network/dnszones/TXT resource, add the following JSON to t
```json
{
+ "name": "string",
"type": "Microsoft.Network/dnszones/TXT",
"apiVersion": "2016-04-01",
"id": "string",
- "name": "string",
"etag": "string",
"location": "string",
"properties": {
@@ -79,10 +79,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/dnszones/TXT object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/dnszones/TXT |
| apiVersion | enum | Yes | 2016-04-01 |
| id | string | No | Gets or sets the ID of the resource. |
-| name | string | No | Gets or sets the name of the resource. |
| etag | string | No | Gets or sets the ETag of the RecordSet. |
| location | string | No | Gets or sets the location of the resource. |
| properties | object | Yes | Gets or sets the properties of the RecordSet. - [RecordSetProperties object](#RecordSetProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/Microsoft.DataLakeAnalytics.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics.json
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/Microsoft.DataLakeAnalytics.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics.json
index c6fc02151e..77226cb638 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/Microsoft.DataLakeAnalytics.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics.json
@@ -7,6 +7,9 @@
"accounts": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -23,10 +26,6 @@
"type": "string",
"description": "Gets or sets the account regional location."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the account name."
- },
"tags": {
"oneOf": [
{
@@ -67,6 +66,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -76,6 +76,9 @@
"accounts_DataLakeStoreAccounts": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -101,6 +104,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -110,6 +114,9 @@
"accounts_StorageAccounts": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -135,6 +142,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -146,6 +154,9 @@
"accounts_DataLakeStoreAccounts_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -171,6 +182,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -180,6 +192,9 @@
"accounts_StorageAccounts_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -205,6 +220,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/accounts.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/accounts.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/accounts.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/accounts.md
index d914929956..4ca0146358 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/accounts.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/accounts.md
@@ -6,10 +6,10 @@ To create a Microsoft.DataLakeAnalytics/accounts resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.DataLakeAnalytics/accounts",
"apiVersion": "2015-10-01-preview",
"location": "string",
- "name": "string",
"tags": {},
"properties": {
"defaultDataLakeStoreAccount": "string",
@@ -46,10 +46,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DataLakeAnalytics/accounts object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DataLakeAnalytics/accounts |
| apiVersion | enum | Yes | 2015-10-01-preview |
| location | string | No | Gets or sets the account regional location. |
-| name | string | No | Gets or sets the account name. |
| tags | object | No | Gets or sets the value of custom properties. |
| properties | object | Yes | Gets or sets the properties defined by Data Lake Analytics all properties are specific to each resource provider. - [DataLakeAnalyticsAccountProperties object](#DataLakeAnalyticsAccountProperties) |
| resources | array | No | [accounts_DataLakeStoreAccounts_childResource object](#accounts_DataLakeStoreAccounts_childResource) [accounts_StorageAccounts_childResource object](#accounts_StorageAccounts_childResource) |
@@ -70,6 +70,7 @@ The following tables describe the values you need to set in the schema.
### accounts_DataLakeStoreAccounts_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | DataLakeStoreAccounts |
| apiVersion | enum | Yes | 2015-10-01-preview |
| properties | object | Yes | Gets or sets the properties for the Data Lake Store account being added. - [DataLakeStoreAccountInfoProperties object](#DataLakeStoreAccountInfoProperties) |
@@ -79,6 +80,7 @@ The following tables describe the values you need to set in the schema.
### accounts_StorageAccounts_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | StorageAccounts |
| apiVersion | enum | Yes | 2015-10-01-preview |
| properties | object | Yes | Gets or sets the properties for the Azure Storage account being added. - [StorageAccountProperties object](#StorageAccountProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/accounts_DataLakeStoreAccounts.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/accounts_DataLakeStoreAccounts.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/accounts_DataLakeStoreAccounts.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/accounts_DataLakeStoreAccounts.md
index ee19c73564..d28630a9a5 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/accounts_DataLakeStoreAccounts.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/accounts_DataLakeStoreAccounts.md
@@ -6,6 +6,7 @@ To create a Microsoft.DataLakeAnalytics/accounts/DataLakeStoreAccounts resource,
```json
{
+ "name": "string",
"type": "Microsoft.DataLakeAnalytics/accounts/DataLakeStoreAccounts",
"apiVersion": "2015-10-01-preview",
"properties": {
@@ -21,6 +22,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DataLakeAnalytics/accounts/DataLakeStoreAccounts object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DataLakeAnalytics/accounts/DataLakeStoreAccounts |
| apiVersion | enum | Yes | 2015-10-01-preview |
| properties | object | Yes | Gets or sets the properties for the Data Lake Store account being added. - [DataLakeStoreAccountInfoProperties object](#DataLakeStoreAccountInfoProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/accounts_StorageAccounts.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/accounts_StorageAccounts.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/accounts_StorageAccounts.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/accounts_StorageAccounts.md
index 26b2e71be2..4658e1cc4e 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/Microsoft.DataLakeAnalytics/accounts_StorageAccounts.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeAnalytics/2015-10-01-preview/accounts_StorageAccounts.md
@@ -6,6 +6,7 @@ To create a Microsoft.DataLakeAnalytics/accounts/StorageAccounts resource, add t
```json
{
+ "name": "string",
"type": "Microsoft.DataLakeAnalytics/accounts/StorageAccounts",
"apiVersion": "2015-10-01-preview",
"properties": {
@@ -22,6 +23,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DataLakeAnalytics/accounts/StorageAccounts object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DataLakeAnalytics/accounts/StorageAccounts |
| apiVersion | enum | Yes | 2015-10-01-preview |
| properties | object | Yes | Gets or sets the properties for the Azure Storage account being added. - [StorageAccountProperties object](#StorageAccountProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore/Microsoft.DataLakeStore.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore.json
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore/Microsoft.DataLakeStore.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore.json
index 41f0734ae9..886ef1fb66 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore/Microsoft.DataLakeStore.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore.json
@@ -7,6 +7,9 @@
"accounts": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -23,10 +26,6 @@
"type": "string",
"description": "Gets or sets the account regional location."
},
- "name": {
- "type": "string",
- "description": "Gets or sets the account name."
- },
"tags": {
"oneOf": [
{
@@ -64,6 +63,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -73,6 +73,9 @@
"accounts_firewallRules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -85,10 +88,6 @@
"2015-10-01-preview"
]
},
- "name": {
- "type": "string",
- "description": "Gets or sets the firewall rule's name."
- },
"id": {
"type": "string",
"description": "Gets or sets the firewall rule's subscription ID."
@@ -110,6 +109,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -121,6 +121,9 @@
"accounts_firewallRules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -133,10 +136,6 @@
"2015-10-01-preview"
]
},
- "name": {
- "type": "string",
- "description": "Gets or sets the firewall rule's name."
- },
"id": {
"type": "string",
"description": "Gets or sets the firewall rule's subscription ID."
@@ -158,6 +157,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore/accounts.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/accounts.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore/accounts.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/accounts.md
index b9a68cb3bf..efa3887833 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore/accounts.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/accounts.md
@@ -6,10 +6,10 @@ To create a Microsoft.DataLakeStore/accounts resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.DataLakeStore/accounts",
"apiVersion": "2015-10-01-preview",
"location": "string",
- "name": "string",
"tags": {},
"properties": {
"endpoint": "string",
@@ -28,10 +28,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DataLakeStore/accounts object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DataLakeStore/accounts |
| apiVersion | enum | Yes | 2015-10-01-preview |
| location | string | No | Gets or sets the account regional location. |
-| name | string | No | Gets or sets the account name. |
| tags | object | No | Gets or sets the value of custom properties. |
| properties | object | Yes | Gets or sets the Data Lake Store account properties. - [DataLakeStoreAccountProperties object](#DataLakeStoreAccountProperties) |
| resources | array | No | [accounts_firewallRules_childResource object](#accounts_firewallRules_childResource) |
@@ -49,9 +49,9 @@ The following tables describe the values you need to set in the schema.
### accounts_firewallRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | firewallRules |
| apiVersion | enum | Yes | 2015-10-01-preview |
-| name | string | No | Gets or sets the firewall rule's name. |
| id | string | No | Gets or sets the firewall rule's subscription ID. |
| location | string | No | Gets or sets the firewall rule's regional location. |
| properties | object | Yes | Gets or sets the properties of the firewall rule. - [FirewallRuleProperties object](#FirewallRuleProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore/accounts_firewallRules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/accounts_firewallRules.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore/accounts_firewallRules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/accounts_firewallRules.md
index 1eb0bdeb0c..d92d88ee99 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/Microsoft.DataLakeStore/accounts_firewallRules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DataLakeStore/2015-10-01-preview/accounts_firewallRules.md
@@ -6,9 +6,9 @@ To create a Microsoft.DataLakeStore/accounts/firewallRules resource, add the fol
```json
{
+ "name": "string",
"type": "Microsoft.DataLakeStore/accounts/firewallRules",
"apiVersion": "2015-10-01-preview",
- "name": "string",
"id": "string",
"location": "string",
"properties": {
@@ -25,9 +25,9 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DataLakeStore/accounts/firewallRules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DataLakeStore/accounts/firewallRules |
| apiVersion | enum | Yes | 2015-10-01-preview |
-| name | string | No | Gets or sets the firewall rule's name. |
| id | string | No | Gets or sets the firewall rule's subscription ID. |
| location | string | No | Gets or sets the firewall rule's regional location. |
| properties | object | Yes | Gets or sets the properties of the firewall rule. - [FirewallRuleProperties object](#FirewallRuleProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/Microsoft.DevTestLab.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab.json
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/Microsoft.DevTestLab.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab.json
index 018b510577..bff29adff3 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/Microsoft.DevTestLab.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab.json
@@ -7,6 +7,9 @@
"labs": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -34,10 +37,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -83,6 +82,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -92,6 +92,9 @@
"labs_artifactsources": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -119,10 +122,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -143,6 +142,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -152,6 +152,9 @@
"labs_customimages": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -179,10 +182,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -203,6 +202,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -212,6 +212,9 @@
"labs_formulas": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -239,10 +242,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -263,6 +262,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -272,6 +272,9 @@
"labs_policysets_policies": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -299,10 +302,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -323,6 +322,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -332,6 +332,9 @@
"labs_schedules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -359,10 +362,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -383,6 +382,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -392,6 +392,9 @@
"labs_virtualmachines": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -419,10 +422,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -443,6 +442,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -452,6 +452,9 @@
"labs_virtualnetworks": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -479,10 +482,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -503,6 +502,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -939,6 +939,9 @@
"labs_artifactsources_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -966,10 +969,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -990,6 +989,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -999,6 +999,9 @@
"labs_customimages_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1026,10 +1029,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -1050,6 +1049,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -1059,6 +1059,9 @@
"labs_formulas_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1086,10 +1089,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -1110,6 +1109,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -1119,6 +1119,9 @@
"labs_schedules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1146,10 +1149,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -1170,6 +1169,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -1179,6 +1179,9 @@
"labs_virtualmachines_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1206,10 +1209,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -1230,6 +1229,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -1239,6 +1239,9 @@
"labs_virtualnetworks_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1266,10 +1269,6 @@
"type": "string",
"description": "The identifier of the resource."
},
- "name": {
- "type": "string",
- "description": "The name of the resource."
- },
"location": {
"type": "string",
"description": "The location of the resource."
@@ -1290,6 +1289,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs.md
index 017fb6b88c..bc38b8cf85 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs.md
@@ -6,6 +6,7 @@ To create a Microsoft.DevTestLab/labs resource, add the following JSON to the re
```json
{
+ "name": "string",
"type": "Microsoft.DevTestLab/labs",
"apiVersion": "2015-05-21-preview",
"properties": {
@@ -21,7 +22,6 @@ To create a Microsoft.DevTestLab/labs resource, add the following JSON to the re
"provisioningState": "string"
},
"id": "string",
- "name": "string",
"location": "string",
"tags": {},
"resources": [
@@ -37,11 +37,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DevTestLab/labs object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DevTestLab/labs |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [LabProperties object](#LabProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
| resources | array | No | [labs_virtualnetworks_childResource object](#labs_virtualnetworks_childResource) [labs_virtualmachines_childResource object](#labs_virtualmachines_childResource) [labs_schedules_childResource object](#labs_schedules_childResource) [labs_formulas_childResource object](#labs_formulas_childResource) [labs_customimages_childResource object](#labs_customimages_childResource) [labs_artifactsources_childResource object](#labs_artifactsources_childResource) |
@@ -65,11 +65,11 @@ The following tables describe the values you need to set in the schema.
### labs_virtualnetworks_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | virtualnetworks |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [VirtualNetworkProperties object](#VirtualNetworkProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
@@ -78,11 +78,11 @@ The following tables describe the values you need to set in the schema.
### labs_virtualmachines_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | virtualmachines |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [LabVirtualMachineProperties object](#LabVirtualMachineProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
@@ -91,11 +91,11 @@ The following tables describe the values you need to set in the schema.
### labs_schedules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | schedules |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [ScheduleProperties object](#ScheduleProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
@@ -104,11 +104,11 @@ The following tables describe the values you need to set in the schema.
### labs_formulas_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | formulas |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [FormulaProperties object](#FormulaProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
@@ -117,11 +117,11 @@ The following tables describe the values you need to set in the schema.
### labs_customimages_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | customimages |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [CustomImageProperties object](#CustomImageProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
@@ -130,11 +130,11 @@ The following tables describe the values you need to set in the schema.
### labs_artifactsources_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | artifactsources |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [ArtifactSourceProperties object](#ArtifactSourceProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_artifactsources.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_artifactsources.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_artifactsources.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_artifactsources.md
index 727da4632f..f1bc178e53 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_artifactsources.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_artifactsources.md
@@ -6,6 +6,7 @@ To create a Microsoft.DevTestLab/labs/artifactsources resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.DevTestLab/labs/artifactsources",
"apiVersion": "2015-05-21-preview",
"properties": {
@@ -19,7 +20,6 @@ To create a Microsoft.DevTestLab/labs/artifactsources resource, add the followin
"provisioningState": "string"
},
"id": "string",
- "name": "string",
"location": "string",
"tags": {}
}
@@ -32,11 +32,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DevTestLab/labs/artifactsources object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DevTestLab/labs/artifactsources |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [ArtifactSourceProperties object](#ArtifactSourceProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_customimages.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_customimages.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_customimages.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_customimages.md
index 92e17c3748..c4e07aca24 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_customimages.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_customimages.md
@@ -6,6 +6,7 @@ To create a Microsoft.DevTestLab/labs/customimages resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.DevTestLab/labs/customimages",
"apiVersion": "2015-05-21-preview",
"properties": {
@@ -30,7 +31,6 @@ To create a Microsoft.DevTestLab/labs/customimages resource, add the following J
"provisioningState": "string"
},
"id": "string",
- "name": "string",
"location": "string",
"tags": {}
}
@@ -43,11 +43,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DevTestLab/labs/customimages object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DevTestLab/labs/customimages |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [CustomImageProperties object](#CustomImageProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_formulas.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_formulas.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_formulas.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_formulas.md
index 77eedc863d..3b5b9df71d 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_formulas.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_formulas.md
@@ -6,6 +6,7 @@ To create a Microsoft.DevTestLab/labs/formulas resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.DevTestLab/labs/formulas",
"apiVersion": "2015-05-21-preview",
"properties": {
@@ -68,7 +69,6 @@ To create a Microsoft.DevTestLab/labs/formulas resource, add the following JSON
"provisioningState": "string"
},
"id": "string",
- "name": "string",
"location": "string",
"tags": {}
}
@@ -81,11 +81,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DevTestLab/labs/formulas object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DevTestLab/labs/formulas |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [FormulaProperties object](#FormulaProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_policysets_policies.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_policysets_policies.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_policysets_policies.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_policysets_policies.md
index 5d7a4fd7d2..706b1d0a7f 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_policysets_policies.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_policysets_policies.md
@@ -6,6 +6,7 @@ To create a Microsoft.DevTestLab/labs/policysets/policies resource, add the foll
```json
{
+ "name": "string",
"type": "Microsoft.DevTestLab/labs/policysets/policies",
"apiVersion": "2015-05-21-preview",
"properties": {
@@ -18,7 +19,6 @@ To create a Microsoft.DevTestLab/labs/policysets/policies resource, add the foll
"provisioningState": "string"
},
"id": "string",
- "name": "string",
"location": "string",
"tags": {}
}
@@ -31,11 +31,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DevTestLab/labs/policysets/policies object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DevTestLab/labs/policysets/policies |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [PolicyProperties object](#PolicyProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_schedules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_schedules.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_schedules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_schedules.md
index 4eb5f2925b..af3f51d402 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_schedules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_schedules.md
@@ -6,6 +6,7 @@ To create a Microsoft.DevTestLab/labs/schedules resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.DevTestLab/labs/schedules",
"apiVersion": "2015-05-21-preview",
"properties": {
@@ -27,7 +28,6 @@ To create a Microsoft.DevTestLab/labs/schedules resource, add the following JSON
"provisioningState": "string"
},
"id": "string",
- "name": "string",
"location": "string",
"tags": {}
}
@@ -40,11 +40,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DevTestLab/labs/schedules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DevTestLab/labs/schedules |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [ScheduleProperties object](#ScheduleProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_virtualmachines.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_virtualmachines.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_virtualmachines.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_virtualmachines.md
index 33d5f4b0fd..d5ca8836f8 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_virtualmachines.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_virtualmachines.md
@@ -6,6 +6,7 @@ To create a Microsoft.DevTestLab/labs/virtualmachines resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.DevTestLab/labs/virtualmachines",
"apiVersion": "2015-05-21-preview",
"properties": {
@@ -51,7 +52,6 @@ To create a Microsoft.DevTestLab/labs/virtualmachines resource, add the followin
"provisioningState": "string"
},
"id": "string",
- "name": "string",
"location": "string",
"tags": {}
}
@@ -64,11 +64,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DevTestLab/labs/virtualmachines object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DevTestLab/labs/virtualmachines |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [LabVirtualMachineProperties object](#LabVirtualMachineProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_virtualnetworks.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_virtualnetworks.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_virtualnetworks.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_virtualnetworks.md
index 28e074726b..bca7ccd314 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/Microsoft.DevTestLab/labs_virtualnetworks.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/DevTestLabs/2015-05-21-preview/labs_virtualnetworks.md
@@ -6,6 +6,7 @@ To create a Microsoft.DevTestLab/labs/virtualnetworks resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.DevTestLab/labs/virtualnetworks",
"apiVersion": "2015-05-21-preview",
"properties": {
@@ -29,7 +30,6 @@ To create a Microsoft.DevTestLab/labs/virtualnetworks resource, add the followin
"provisioningState": "string"
},
"id": "string",
- "name": "string",
"location": "string",
"tags": {}
}
@@ -42,11 +42,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DevTestLab/labs/virtualnetworks object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DevTestLab/labs/virtualnetworks |
| apiVersion | enum | Yes | 2015-05-21-preview |
| properties | object | Yes | The properties of the resource. - [VirtualNetworkProperties object](#VirtualNetworkProperties) |
| id | string | No | The identifier of the resource. |
-| name | string | No | The name of the resource. |
| location | string | No | The location of the resource. |
| tags | object | No | The tags of the resource. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/microsoft.insights/alertrules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/alertrules.md
similarity index 67%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/microsoft.insights/alertrules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/alertrules.md
index 86642c2ee2..45aaea9df8 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/microsoft.insights/alertrules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/alertrules.md
@@ -6,18 +6,22 @@ To create a microsoft.insights/alertrules resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "microsoft.insights/alertrules",
"apiVersion": "2016-03-01",
- "name": "string",
"location": "string",
"tags": {},
"properties": {
"name": "string",
"description": "string",
"isEnabled": boolean,
- "condition": {},
+ "condition": {
+ "odata.type": "string"
+ },
"actions": [
- {}
+ {
+ "odata.type": "string"
+ }
]
}
}
@@ -30,9 +34,9 @@ The following tables describe the values you need to set in the schema.
### microsoft.insights/alertrules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | The name of the rule. |
| type | enum | Yes | microsoft.insights/alertrules |
| apiVersion | enum | Yes | 2016-03-01 |
-| name | string | No | Azure resource name |
| location | string | Yes | Resource location |
| tags | object | No | Resource tags |
| properties | object | Yes | [AlertRule object](#AlertRule) |
@@ -48,3 +52,17 @@ The following tables describe the values you need to set in the schema.
| condition | object | No | the condition that results in the alert rule being activated. - [RuleCondition object](#RuleCondition) |
| actions | array | No | the actions that are performed when the alert rule becomes active, and when an alert condition is resolved. - [RuleAction object](#RuleAction) |
+
+
+### RuleCondition object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| odata.type | enum | No | Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition, Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition, Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition |
+
+
+
+### RuleAction object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| odata.type | enum | No | Microsoft.Azure.Management.Insights.Models.RuleEmailAction or Microsoft.Azure.Management.Insights.Models.RuleWebhookAction |
+
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/microsoft.insights/microsoft.insights.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/microsoft.insights.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/microsoft.insights/microsoft.insights.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/microsoft.insights.json
index fcc5f83e47..402481d9b9 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/microsoft.insights/microsoft.insights.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Insights/2016-03-01/microsoft.insights.json
@@ -7,6 +7,10 @@
"alertrules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the rule."
+ },
"type": {
"type": "string",
"enum": [
@@ -19,10 +23,6 @@
"2016-03-01"
]
},
- "name": {
- "type": "string",
- "description": "Azure resource name"
- },
"location": {
"type": "string",
"description": "Resource location"
@@ -53,6 +53,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic/Microsoft.Logic.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic/Microsoft.Logic.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic.json
index 86abb4e1c6..edd3ac0cfb 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic/Microsoft.Logic.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic.json
@@ -7,6 +7,9 @@
"workflows": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -23,10 +26,6 @@
"type": "string",
"description": "Gets or sets the resource id."
},
- "name": {
- "type": "string",
- "description": "Gets the resource name."
- },
"location": {
"type": "string",
"description": "Gets or sets the resource location."
@@ -68,6 +67,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -77,6 +77,9 @@
"workflows_accessKeys": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -106,6 +109,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -326,6 +330,9 @@
"workflows_accessKeys_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -355,6 +362,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic/workflows.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/workflows.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic/workflows.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/workflows.md
index 8e2c856076..b34ccd5a09 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic/workflows.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/workflows.md
@@ -6,10 +6,10 @@ To create a Microsoft.Logic/workflows resource, add the following JSON to the re
```json
{
+ "name": "string",
"type": "Microsoft.Logic/workflows",
"apiVersion": "2015-02-01-preview",
"id": "string",
- "name": "string",
"location": "string",
"tags": {},
"properties": {
@@ -56,10 +56,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Logic/workflows object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Logic/workflows |
| apiVersion | enum | Yes | 2015-02-01-preview |
| id | string | No | Gets or sets the resource id. |
-| name | string | No | Gets the resource name. |
| location | string | No | Gets or sets the resource location. |
| tags | object | No | Gets or sets the resource tags. |
| properties | object | Yes | Gets or sets the workflow properties. - [WorkflowProperties object](#WorkflowProperties) |
@@ -82,6 +82,7 @@ The following tables describe the values you need to set in the schema.
### workflows_accessKeys_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | accessKeys |
| apiVersion | enum | Yes | 2015-02-01-preview |
| id | string | No | Gets or sets the resource id. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic/workflows_accessKeys.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/workflows_accessKeys.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic/workflows_accessKeys.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/workflows_accessKeys.md
index 5f22920998..c89b6460fa 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/Microsoft.Logic/workflows_accessKeys.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2015-02-01-preview/workflows_accessKeys.md
@@ -6,6 +6,7 @@ To create a Microsoft.Logic/workflows/accessKeys resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.Logic/workflows/accessKeys",
"apiVersion": "2015-02-01-preview",
"id": "string",
@@ -23,6 +24,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Logic/workflows/accessKeys object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Logic/workflows/accessKeys |
| apiVersion | enum | Yes | 2015-02-01-preview |
| id | string | No | Gets or sets the resource id. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/Microsoft.Logic/Microsoft.Logic.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/Microsoft.Logic.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/Microsoft.Logic/Microsoft.Logic.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/Microsoft.Logic.json
index 5664191e5d..11e738b633 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/Microsoft.Logic/Microsoft.Logic.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/Microsoft.Logic.json
@@ -7,6 +7,9 @@
"workflows": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -23,10 +26,6 @@
"type": "string",
"description": "The resource id."
},
- "name": {
- "type": "string",
- "description": "Gets the resource name."
- },
"location": {
"type": "string",
"description": "The resource location."
@@ -58,6 +57,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/Microsoft.Logic/workflows.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/workflows.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/Microsoft.Logic/workflows.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/workflows.md
index df5447cc95..fac274c2e3 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/Microsoft.Logic/workflows.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Logic/2016-06-01/workflows.md
@@ -6,10 +6,10 @@ To create a Microsoft.Logic/workflows resource, add the following JSON to the re
```json
{
+ "name": "string",
"type": "Microsoft.Logic/workflows",
"apiVersion": "2016-06-01",
"id": "string",
- "name": "string",
"location": "string",
"tags": {},
"properties": {
@@ -36,10 +36,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Logic/workflows object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Logic/workflows |
| apiVersion | enum | Yes | 2016-06-01 |
| id | string | No | The resource id. |
-| name | string | No | Gets the resource name. |
| location | string | No | The resource location. |
| tags | object | No | The resource tags. |
| properties | object | Yes | The workflow properties. - [WorkflowProperties object](#WorkflowProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/Microsoft.MachineLearning/Microsoft.MachineLearning.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/Microsoft.MachineLearning.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/Microsoft.MachineLearning/Microsoft.MachineLearning.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/Microsoft.MachineLearning.json
index 9a72427f2b..7d61f27adb 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/Microsoft.MachineLearning/Microsoft.MachineLearning.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/Microsoft.MachineLearning.json
@@ -7,6 +7,9 @@
"webServices": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -19,10 +22,6 @@
"2016-05-01-preview"
]
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"location": {
"type": "string",
"description": "Resource Location"
@@ -54,6 +53,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/Microsoft.MachineLearning/webServices.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/Microsoft.MachineLearning/webServices.md
deleted file mode 100644
index bf78ff52f9..0000000000
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/Microsoft.MachineLearning/webServices.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Microsoft.MachineLearning/webServices template reference
-API Version: 2016-05-01-preview
-## Template format
-
-To create a Microsoft.MachineLearning/webServices resource, add the following JSON to the resources section of your template.
-
-```json
-{
- "type": "Microsoft.MachineLearning/webServices",
- "apiVersion": "2016-05-01-preview",
- "name": "string",
- "location": "string",
- "tags": {},
- "properties": {}
-}
-```
-## Property values
-
-The following tables describe the values you need to set in the schema.
-
-
-### Microsoft.MachineLearning/webServices object
-| Name | Type | Required | Value |
-| ---- | ---- | ---- | ---- |
-| type | enum | Yes | Microsoft.MachineLearning/webServices |
-| apiVersion | enum | Yes | 2016-05-01-preview |
-| name | string | No | Resource Name |
-| location | string | Yes | Resource Location |
-| tags | object | No | Resource tags |
-| properties | object | Yes | Web service resource properties. - [WebServiceProperties object](#WebServiceProperties) |
-
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/webServices.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/webServices.md
new file mode 100644
index 0000000000..6d597addb2
--- /dev/null
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MachineLearning/2016-05-01-preview/webServices.md
@@ -0,0 +1,161 @@
+# Microsoft.MachineLearning/webServices template reference
+API Version: 2016-05-01-preview
+## Template format
+
+To create a Microsoft.MachineLearning/webServices resource, add the following JSON to the resources section of your template.
+
+```json
+{
+ "name": "string",
+ "type": "Microsoft.MachineLearning/webServices",
+ "apiVersion": "2016-05-01-preview",
+ "location": "string",
+ "tags": {},
+ "properties": {
+ "packageType": "Graph",
+ "title": "string",
+ "description": "string",
+ "keys": {
+ "primary": "string",
+ "secondary": "string"
+ },
+ "readOnly": boolean,
+ "exposeSampleData": boolean,
+ "realtimeConfiguration": {
+ "maxConcurrentCalls": "integer"
+ },
+ "diagnostics": {
+ "level": "string",
+ "expiry": "string"
+ },
+ "storageAccount": {
+ "name": "string",
+ "key": "string"
+ },
+ "machineLearningWorkspace": {
+ "id": "string"
+ },
+ "commitmentPlan": {
+ "id": "string"
+ },
+ "input": {
+ "title": "string",
+ "description": "string",
+ "type": "object",
+ "properties": {}
+ },
+ "output": {
+ "title": "string",
+ "description": "string",
+ "type": "object",
+ "properties": {}
+ },
+ "exampleRequest": {
+ "inputs": {},
+ "globalParameters": {}
+ },
+ "assets": {},
+ "parameters": {}
+ }
+}
+```
+## Property values
+
+The following tables describe the values you need to set in the schema.
+
+
+### Microsoft.MachineLearning/webServices object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
+| type | enum | Yes | Microsoft.MachineLearning/webServices |
+| apiVersion | enum | Yes | 2016-05-01-preview |
+| location | string | Yes | Resource Location |
+| tags | object | No | Resource tags |
+| properties | object | Yes | Web service resource properties. - [WebServiceProperties object](#WebServiceProperties) |
+
+
+
+### WebServiceProperties object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| packageType | enum | No | Graph |
+| title | string | No | The title of the Azure ML web service. |
+| description | string | No | The description of the Azure ML web service. |
+| keys | object | No | The set of access keys for the web service. If not specified at creation time (PUT), they will be generated automatically by the resource provider. - [WebServiceKeys object](#WebServiceKeys) |
+| readOnly | boolean | No | If true, the web service can no longer be updated / patched, only removed. Otherwise, the service resource supports changes. |
+| exposeSampleData | boolean | No | Flag that controls whether to expose sample data or not in the web service's swagger definition. |
+| realtimeConfiguration | object | No | Configuration for the service's realtime endpoint. - [RealtimeConfiguration object](#RealtimeConfiguration) |
+| diagnostics | object | No | Settings controlling the diagnostics traces collection for the web service. - [DiagnosticsConfiguration object](#DiagnosticsConfiguration) |
+| storageAccount | object | No | The storage account associated with the service. This is used to store both datasets and diagnostic traces. This information is required at creation time (PUT) and only the key is updateable after that. The account credentials are hidden on a GET web service call. - [StorageAccount object](#StorageAccount) |
+| machineLearningWorkspace | object | No | This is only populated at creation time (PUT) for web services originating from an AzureML Studio experiment. - [MachineLearningWorkspace object](#MachineLearningWorkspace) |
+| commitmentPlan | object | No | The commitment plan associated with this web service. This is required to be specified at creation time (PUT) and is not updateable afterwards. - [CommitmentPlan object](#CommitmentPlan) |
+| input | object | No | Swagger schema for the service's input(s), as applicable. - [ServiceInputOutputSpecification object](#ServiceInputOutputSpecification) |
+| output | object | No | Swagger schema for the service's output(s), as applicable. - [ServiceInputOutputSpecification object](#ServiceInputOutputSpecification) |
+| exampleRequest | object | No | Sample request data for each of the service's inputs, as applicable. - [ExampleRequest object](#ExampleRequest) |
+| assets | object | No | Set of assets associated with the web service. |
+| parameters | object | No | The set of global parameters values defined for the web service, given as a global parameter name to default value map. If no default value is specified, the parameter is considered to be required. |
+
+
+
+### WebServiceKeys object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| primary | string | No | The primary access key. |
+| secondary | string | No | The secondary access key. |
+
+
+
+### RealtimeConfiguration object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| maxConcurrentCalls | integer | No | Maximum number of concurrent calls allowed on the realtime endpoint. |
+
+
+
+### DiagnosticsConfiguration object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| level | enum | Yes | Level of tracing to be used: None - disables tracing; Error - collects only error (stderr) traces; All - collects all traces (stdout and stderr). - None, Error, All |
+| expiry | string | No | Moment of time after which diagnostics are no longer collected. If null, diagnostic collection is not time limited. |
+
+
+
+### StorageAccount object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| name | string | No | The storage account's name. |
+| key | string | No | The storage account's active key. |
+
+
+
+### MachineLearningWorkspace object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| id | string | Yes | The workspace ARM resource id. |
+
+
+
+### CommitmentPlan object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| id | string | Yes | The commitment plan ARM resource id. |
+
+
+
+### ServiceInputOutputSpecification object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| title | string | No | Swagger schema title. |
+| description | string | No | Swagger schema description. |
+| type | enum | Yes | The type of the entity described in swagger. Always 'object'. - object |
+| properties | object | Yes | Map of name to swagger schema for each input or output of the web service. |
+
+
+
+### ExampleRequest object
+| Name | Type | Required | Value |
+| ---- | ---- | ---- | ---- |
+| inputs | object | No | Sample input data for the web service's input(s) given as an input name to sample input values matrix map. |
+| globalParameters | object | No | Sample input data for the web service's global parameters |
+
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MobileEngagement/2014-12-01/Microsoft.MobileEngagement/Microsoft.MobileEngagement.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MobileEngagement/2014-12-01/Microsoft.MobileEngagement.json
similarity index 100%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MobileEngagement/2014-12-01/Microsoft.MobileEngagement/Microsoft.MobileEngagement.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/MobileEngagement/2014-12-01/Microsoft.MobileEngagement.json
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/Microsoft.Network.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/Microsoft.Network.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network.json
index 44f1d48cad..68b3daa4c3 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/Microsoft.Network.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network.json
@@ -7,6 +7,9 @@
"applicationGateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -53,6 +56,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -63,6 +67,9 @@
"connections": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -109,6 +116,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -119,6 +127,9 @@
"expressRouteCircuits_authorizations": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -145,16 +156,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -164,6 +172,9 @@
"expressRouteCircuits_peerings": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -190,16 +201,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -209,6 +217,9 @@
"loadBalancers": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -255,6 +266,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -265,6 +277,9 @@
"localNetworkGateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -311,6 +326,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -321,6 +337,9 @@
"networkInterfaces": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -367,6 +386,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -377,6 +397,9 @@
"networkSecurityGroups": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -433,6 +456,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -443,6 +467,9 @@
"networkSecurityGroups_securityRules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -469,16 +496,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -488,6 +512,9 @@
"routeTables": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -544,6 +571,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -554,6 +582,9 @@
"routeTables_routes": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -580,16 +611,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -599,6 +627,9 @@
"virtualnetworkgateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -645,6 +676,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -655,6 +687,9 @@
"virtualnetworks": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -711,6 +746,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -721,6 +757,9 @@
"virtualnetworks_subnets": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -747,16 +786,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -2851,6 +2887,9 @@
"networkSecurityGroups_securityRules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -2877,16 +2916,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -3186,6 +3222,9 @@
"routeTables_routes_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3212,16 +3251,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -3816,6 +3852,9 @@
"virtualnetworks_subnets_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3842,16 +3881,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/applicationGateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/applicationGateways.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/applicationGateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/applicationGateways.md
index 5806f43aa0..4b9cd140c6 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/applicationGateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/applicationGateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/applicationGateways resource, add the following JS
```json
{
+ "name": "string",
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2015-05-01-preview",
"location": "string",
@@ -159,6 +160,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/applicationGateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/applicationGateways |
| apiVersion | enum | Yes | 2015-05-01-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/connections.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/connections.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/connections.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/connections.md
index 2d58674878..7cccb2883d 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/connections.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/connections.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/connections resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/connections",
"apiVersion": "2015-05-01-preview",
"location": "string",
@@ -115,6 +116,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/connections object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/connections |
| apiVersion | enum | Yes | 2015-05-01-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/expressRouteCircuits_authorizations.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/expressRouteCircuits_authorizations.md
similarity index 92%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/expressRouteCircuits_authorizations.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/expressRouteCircuits_authorizations.md
index 072d06eabb..dce7f3ee79 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/expressRouteCircuits_authorizations.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/expressRouteCircuits_authorizations.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/expressRouteCircuits/authorizations resource, add
```json
{
+ "name": "string",
"type": "Microsoft.Network/expressRouteCircuits/authorizations",
"apiVersion": "2015-05-01-preview",
"id": "string",
@@ -14,7 +15,6 @@ To create a Microsoft.Network/expressRouteCircuits/authorizations resource, add
"authorizationUseStatus": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -26,11 +26,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/expressRouteCircuits/authorizations object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/expressRouteCircuits/authorizations |
| apiVersion | enum | Yes | 2015-05-01-preview |
| id | string | No | Resource Id |
| properties | object | Yes | [AuthorizationPropertiesFormat object](#AuthorizationPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/expressRouteCircuits_peerings.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/expressRouteCircuits_peerings.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/expressRouteCircuits_peerings.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/expressRouteCircuits_peerings.md
index 902dc03c4f..2725c8e12c 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/expressRouteCircuits_peerings.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/expressRouteCircuits_peerings.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/expressRouteCircuits/peerings resource, add the fo
```json
{
+ "name": "string",
"type": "Microsoft.Network/expressRouteCircuits/peerings",
"apiVersion": "2015-05-01-preview",
"id": "string",
@@ -34,7 +35,6 @@ To create a Microsoft.Network/expressRouteCircuits/peerings resource, add the fo
},
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -46,11 +46,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/expressRouteCircuits/peerings object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/expressRouteCircuits/peerings |
| apiVersion | enum | Yes | 2015-05-01-preview |
| id | string | No | Resource Id |
| properties | object | Yes | [ExpressRouteCircuitPeeringPropertiesFormat object](#ExpressRouteCircuitPeeringPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/loadBalancers.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/loadBalancers.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/loadBalancers.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/loadBalancers.md
index 4e6a3d9fc0..aa03ae1330 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/loadBalancers.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/loadBalancers.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/loadBalancers resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Network/loadBalancers",
"apiVersion": "2015-05-01-preview",
"location": "string",
@@ -188,6 +189,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/loadBalancers object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/loadBalancers |
| apiVersion | enum | Yes | 2015-05-01-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/localNetworkGateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/localNetworkGateways.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/localNetworkGateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/localNetworkGateways.md
index acd54ff2aa..c777f43c46 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/localNetworkGateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/localNetworkGateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/localNetworkGateways resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.Network/localNetworkGateways",
"apiVersion": "2015-05-01-preview",
"location": "string",
@@ -31,6 +32,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/localNetworkGateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/localNetworkGateways |
| apiVersion | enum | Yes | 2015-05-01-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/networkInterfaces.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/networkInterfaces.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/networkInterfaces.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/networkInterfaces.md
index 33a38f40d7..c5703fe2ac 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/networkInterfaces.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/networkInterfaces.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkInterfaces resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "2015-05-01-preview",
"location": "string",
@@ -72,6 +73,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkInterfaces object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkInterfaces |
| apiVersion | enum | Yes | 2015-05-01-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/networkSecurityGroups.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/networkSecurityGroups.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/networkSecurityGroups.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/networkSecurityGroups.md
index 529fe7d2e1..dd8cea3467 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/networkSecurityGroups.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/networkSecurityGroups.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkSecurityGroups resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2015-05-01-preview",
"location": "string",
@@ -76,6 +77,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkSecurityGroups object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkSecurityGroups |
| apiVersion | enum | Yes | 2015-05-01-preview |
| location | string | Yes | Resource location |
@@ -101,11 +103,11 @@ The following tables describe the values you need to set in the schema.
### networkSecurityGroups_securityRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | securityRules |
| apiVersion | enum | Yes | 2015-05-01-preview |
| id | string | No | Resource Id |
| properties | object | Yes | [SecurityRulePropertiesFormat object](#SecurityRulePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/networkSecurityGroups_securityRules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/networkSecurityGroups_securityRules.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/networkSecurityGroups_securityRules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/networkSecurityGroups_securityRules.md
index 9a9648e1d3..cee02512ae 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/networkSecurityGroups_securityRules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/networkSecurityGroups_securityRules.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkSecurityGroups/securityRules resource, add
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkSecurityGroups/securityRules",
"apiVersion": "2015-05-01-preview",
"id": "string",
@@ -21,7 +22,6 @@ To create a Microsoft.Network/networkSecurityGroups/securityRules resource, add
"direction": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -33,11 +33,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkSecurityGroups/securityRules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkSecurityGroups/securityRules |
| apiVersion | enum | Yes | 2015-05-01-preview |
| id | string | No | Resource Id |
| properties | object | Yes | [SecurityRulePropertiesFormat object](#SecurityRulePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/routeTables.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/routeTables.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/routeTables.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/routeTables.md
index bd9af30c1b..4ab9484beb 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/routeTables.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/routeTables.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/routeTables resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/routeTables",
"apiVersion": "2015-05-01-preview",
"location": "string",
@@ -45,6 +46,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/routeTables object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/routeTables |
| apiVersion | enum | Yes | 2015-05-01-preview |
| location | string | Yes | Resource location |
@@ -67,11 +69,11 @@ The following tables describe the values you need to set in the schema.
### routeTables_routes_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | routes |
| apiVersion | enum | Yes | 2015-05-01-preview |
| id | string | No | Resource Id |
| properties | object | Yes | [RoutePropertiesFormat object](#RoutePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/routeTables_routes.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/routeTables_routes.md
similarity index 93%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/routeTables_routes.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/routeTables_routes.md
index 56fe4c6f2a..9bc8405e5b 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/routeTables_routes.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/routeTables_routes.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/routeTables/routes resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.Network/routeTables/routes",
"apiVersion": "2015-05-01-preview",
"id": "string",
@@ -15,7 +16,6 @@ To create a Microsoft.Network/routeTables/routes resource, add the following JSO
"nextHopIpAddress": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -27,11 +27,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/routeTables/routes object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/routeTables/routes |
| apiVersion | enum | Yes | 2015-05-01-preview |
| id | string | No | Resource Id |
| properties | object | Yes | [RoutePropertiesFormat object](#RoutePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/virtualnetworkgateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/virtualnetworkgateways.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/virtualnetworkgateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/virtualnetworkgateways.md
index 065e40d653..bd20dd734a 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/virtualnetworkgateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/virtualnetworkgateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualnetworkgateways resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualnetworkgateways",
"apiVersion": "2015-05-01-preview",
"location": "string",
@@ -49,6 +50,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualnetworkgateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualnetworkgateways |
| apiVersion | enum | Yes | 2015-05-01-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/virtualnetworks.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/virtualnetworks.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/virtualnetworks.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/virtualnetworks.md
index d0d017c87c..752dbe6ddf 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/virtualnetworks.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/virtualnetworks.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualnetworks resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualnetworks",
"apiVersion": "2015-05-01-preview",
"location": "string",
@@ -60,6 +61,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualnetworks object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualnetworks |
| apiVersion | enum | Yes | 2015-05-01-preview |
| location | string | Yes | Resource location |
@@ -84,11 +86,11 @@ The following tables describe the values you need to set in the schema.
### virtualnetworks_subnets_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | subnets |
| apiVersion | enum | Yes | 2015-05-01-preview |
| id | string | No | Resource Id |
| properties | object | Yes | [SubnetPropertiesFormat object](#SubnetPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/virtualnetworks_subnets.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/virtualnetworks_subnets.md
similarity index 94%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/virtualnetworks_subnets.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/virtualnetworks_subnets.md
index dbb8b3e916..6a1fd1d4c4 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/Microsoft.Network/virtualnetworks_subnets.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-05-01-preview/virtualnetworks_subnets.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualnetworks/subnets resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualnetworks/subnets",
"apiVersion": "2015-05-01-preview",
"id": "string",
@@ -24,7 +25,6 @@ To create a Microsoft.Network/virtualnetworks/subnets resource, add the followin
],
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -36,11 +36,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualnetworks/subnets object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualnetworks/subnets |
| apiVersion | enum | Yes | 2015-05-01-preview |
| id | string | No | Resource Id |
| properties | object | Yes | [SubnetPropertiesFormat object](#SubnetPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/Microsoft.Network.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/Microsoft.Network.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network.json
index 7d75d533c4..de29eff6ad 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/Microsoft.Network.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network.json
@@ -7,6 +7,9 @@
"applicationGateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -57,6 +60,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -66,6 +70,9 @@
"connections": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -116,6 +123,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -125,6 +133,9 @@
"expressRouteCircuits_authorizations": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -151,16 +162,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -170,6 +178,9 @@
"expressRouteCircuits_peerings": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -196,16 +207,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -215,6 +223,9 @@
"loadBalancers": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -265,6 +276,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -274,6 +286,9 @@
"localNetworkGateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -324,6 +339,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -333,6 +349,9 @@
"networkInterfaces": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -383,6 +402,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -392,6 +412,9 @@
"networkSecurityGroups": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -452,6 +475,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -461,6 +485,9 @@
"networkSecurityGroups_securityRules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -487,16 +514,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -506,6 +530,9 @@
"publicIPAddresses": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -556,6 +583,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -565,6 +593,9 @@
"routeTables": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -625,6 +656,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -634,6 +666,9 @@
"routeTables_routes": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -660,16 +695,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -679,6 +711,9 @@
"virtualnetworkgateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -729,6 +764,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -738,6 +774,9 @@
"virtualnetworks": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -798,6 +837,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -807,6 +847,9 @@
"virtualnetworks_subnets": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -833,16 +876,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -3451,6 +3491,9 @@
"networkSecurityGroups_securityRules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3477,16 +3520,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -3951,6 +3991,9 @@
"routeTables_routes_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3977,16 +4020,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -4676,6 +4716,9 @@
"virtualnetworks_subnets_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -4702,16 +4745,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/applicationGateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/applicationGateways.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/applicationGateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/applicationGateways.md
index 808163ef56..fcc760623d 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/applicationGateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/applicationGateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/applicationGateways resource, add the following JS
```json
{
+ "name": "string",
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2015-06-15",
"id": "string",
@@ -220,6 +221,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/applicationGateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/applicationGateways |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/connections.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/connections.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/connections.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/connections.md
index 70acffe068..c97cf3ff9a 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/connections.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/connections.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/connections resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/connections",
"apiVersion": "2015-06-15",
"id": "string",
@@ -204,6 +205,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/connections object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/connections |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/expressRouteCircuits_authorizations.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/expressRouteCircuits_authorizations.md
similarity index 92%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/expressRouteCircuits_authorizations.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/expressRouteCircuits_authorizations.md
index 66551d1bee..27141c3924 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/expressRouteCircuits_authorizations.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/expressRouteCircuits_authorizations.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/expressRouteCircuits/authorizations resource, add
```json
{
+ "name": "string",
"type": "Microsoft.Network/expressRouteCircuits/authorizations",
"apiVersion": "2015-06-15",
"id": "string",
@@ -14,7 +15,6 @@ To create a Microsoft.Network/expressRouteCircuits/authorizations resource, add
"authorizationUseStatus": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -26,11 +26,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/expressRouteCircuits/authorizations object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/expressRouteCircuits/authorizations |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
| properties | object | Yes | [AuthorizationPropertiesFormat object](#AuthorizationPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/expressRouteCircuits_peerings.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/expressRouteCircuits_peerings.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/expressRouteCircuits_peerings.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/expressRouteCircuits_peerings.md
index 1a440eb548..b64cdc5ede 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/expressRouteCircuits_peerings.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/expressRouteCircuits_peerings.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/expressRouteCircuits/peerings resource, add the fo
```json
{
+ "name": "string",
"type": "Microsoft.Network/expressRouteCircuits/peerings",
"apiVersion": "2015-06-15",
"id": "string",
@@ -34,7 +35,6 @@ To create a Microsoft.Network/expressRouteCircuits/peerings resource, add the fo
},
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -46,11 +46,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/expressRouteCircuits/peerings object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/expressRouteCircuits/peerings |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
| properties | object | Yes | [ExpressRouteCircuitPeeringPropertiesFormat object](#ExpressRouteCircuitPeeringPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/loadBalancers.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/loadBalancers.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/loadBalancers.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/loadBalancers.md
index 22673cc4cb..46dc6bb66e 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/loadBalancers.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/loadBalancers.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/loadBalancers resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Network/loadBalancers",
"apiVersion": "2015-06-15",
"id": "string",
@@ -1268,6 +1269,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/loadBalancers object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/loadBalancers |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/localNetworkGateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/localNetworkGateways.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/localNetworkGateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/localNetworkGateways.md
index 53f50166e1..da57829e4c 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/localNetworkGateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/localNetworkGateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/localNetworkGateways resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.Network/localNetworkGateways",
"apiVersion": "2015-06-15",
"id": "string",
@@ -37,6 +38,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/localNetworkGateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/localNetworkGateways |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/networkInterfaces.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/networkInterfaces.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/networkInterfaces.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/networkInterfaces.md
index f7363f0e0b..f7d1718574 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/networkInterfaces.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/networkInterfaces.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkInterfaces resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "2015-06-15",
"id": "string",
@@ -472,6 +473,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkInterfaces object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkInterfaces |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/networkSecurityGroups.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/networkSecurityGroups.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/networkSecurityGroups.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/networkSecurityGroups.md
index 943f8a41b5..8b98fa7f44 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/networkSecurityGroups.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/networkSecurityGroups.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkSecurityGroups resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2015-06-15",
"id": "string",
@@ -375,6 +376,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkSecurityGroups object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkSecurityGroups |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
@@ -401,11 +403,11 @@ The following tables describe the values you need to set in the schema.
### networkSecurityGroups_securityRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | securityRules |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
| properties | object | Yes | [SecurityRulePropertiesFormat object](#SecurityRulePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/networkSecurityGroups_securityRules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/networkSecurityGroups_securityRules.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/networkSecurityGroups_securityRules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/networkSecurityGroups_securityRules.md
index 85cd14d158..991f99c09d 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/networkSecurityGroups_securityRules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/networkSecurityGroups_securityRules.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkSecurityGroups/securityRules resource, add
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkSecurityGroups/securityRules",
"apiVersion": "2015-06-15",
"id": "string",
@@ -21,7 +22,6 @@ To create a Microsoft.Network/networkSecurityGroups/securityRules resource, add
"direction": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -33,11 +33,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkSecurityGroups/securityRules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkSecurityGroups/securityRules |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
| properties | object | Yes | [SecurityRulePropertiesFormat object](#SecurityRulePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/publicIPAddresses.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/publicIPAddresses.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/publicIPAddresses.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/publicIPAddresses.md
index f1242876ed..2341bb67a4 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/publicIPAddresses.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/publicIPAddresses.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/publicIPAddresses resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2015-06-15",
"id": "string",
@@ -228,6 +229,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/publicIPAddresses object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/publicIPAddresses |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/routeTables.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/routeTables.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/routeTables.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/routeTables.md
index ea0367e3fe..2235f3830d 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/routeTables.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/routeTables.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/routeTables resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/routeTables",
"apiVersion": "2015-06-15",
"id": "string",
@@ -254,6 +255,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/routeTables object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/routeTables |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
@@ -277,11 +279,11 @@ The following tables describe the values you need to set in the schema.
### routeTables_routes_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | routes |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
| properties | object | Yes | [RoutePropertiesFormat object](#RoutePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/routeTables_routes.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/routeTables_routes.md
similarity index 92%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/routeTables_routes.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/routeTables_routes.md
index 930eb82116..2393b80e54 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/routeTables_routes.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/routeTables_routes.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/routeTables/routes resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.Network/routeTables/routes",
"apiVersion": "2015-06-15",
"id": "string",
@@ -15,7 +16,6 @@ To create a Microsoft.Network/routeTables/routes resource, add the following JSO
"nextHopIpAddress": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -27,11 +27,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/routeTables/routes object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/routeTables/routes |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
| properties | object | Yes | [RoutePropertiesFormat object](#RoutePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/virtualnetworkgateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/virtualnetworkgateways.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/virtualnetworkgateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/virtualnetworkgateways.md
index b412f9c670..f040623d83 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/virtualnetworkgateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/virtualnetworkgateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualnetworkgateways resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualnetworkgateways",
"apiVersion": "2015-06-15",
"id": "string",
@@ -89,6 +90,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualnetworkgateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualnetworkgateways |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/virtualnetworks.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/virtualnetworks.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/virtualnetworks.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/virtualnetworks.md
index d9f6908848..b47f7f0ea1 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/virtualnetworks.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/virtualnetworks.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualnetworks resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualnetworks",
"apiVersion": "2015-06-15",
"id": "string",
@@ -270,6 +271,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualnetworks object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualnetworks |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
@@ -295,11 +297,11 @@ The following tables describe the values you need to set in the schema.
### virtualnetworks_subnets_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | subnets |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
| properties | object | Yes | [SubnetPropertiesFormat object](#SubnetPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/virtualnetworks_subnets.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/virtualnetworks_subnets.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/virtualnetworks_subnets.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/virtualnetworks_subnets.md
index fa5d99f67e..45fbb20b0d 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/Microsoft.Network/virtualnetworks_subnets.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2015-06-15/virtualnetworks_subnets.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualnetworks/subnets resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualnetworks/subnets",
"apiVersion": "2015-06-15",
"id": "string",
@@ -258,7 +259,6 @@ To create a Microsoft.Network/virtualnetworks/subnets resource, add the followin
],
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -270,11 +270,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualnetworks/subnets object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualnetworks/subnets |
| apiVersion | enum | Yes | 2015-06-15 |
| id | string | No | Resource Id |
| properties | object | Yes | [SubnetPropertiesFormat object](#SubnetPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/Microsoft.Network.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/Microsoft.Network.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network.json
index 1998db8083..6742a2a723 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/Microsoft.Network.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network.json
@@ -7,6 +7,9 @@
"applicationGateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -57,6 +60,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -66,6 +70,9 @@
"connections": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -116,6 +123,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -125,6 +133,9 @@
"expressRouteCircuits": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -199,6 +210,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -208,6 +220,9 @@
"expressRouteCircuits_authorizations": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -234,16 +249,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -253,6 +265,9 @@
"expressRouteCircuits_peerings": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -279,16 +294,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -298,6 +310,9 @@
"loadBalancers": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -348,6 +363,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -357,6 +373,9 @@
"localNetworkGateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -407,6 +426,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -416,6 +436,9 @@
"networkInterfaces": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -466,6 +489,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -475,6 +499,9 @@
"networkSecurityGroups": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -535,6 +562,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -544,6 +572,9 @@
"networkSecurityGroups_securityRules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -570,16 +601,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -589,6 +617,9 @@
"publicIPAddresses": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -639,6 +670,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -648,6 +680,9 @@
"routeTables": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -708,6 +743,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -717,6 +753,9 @@
"routeTables_routes": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -743,16 +782,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -762,6 +798,9 @@
"virtualnetworkgateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -812,6 +851,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -821,6 +861,9 @@
"virtualnetworks": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -881,6 +924,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -890,6 +934,9 @@
"virtualnetworks_subnets": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -916,16 +963,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -2485,6 +2529,9 @@
"expressRouteCircuits_authorizations_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -2511,16 +2558,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -2530,6 +2574,9 @@
"expressRouteCircuits_peerings_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -2556,16 +2603,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -3889,6 +3933,9 @@
"networkSecurityGroups_securityRules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3915,16 +3962,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -4404,6 +4448,9 @@
"routeTables_routes_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -4430,16 +4477,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -5129,6 +5173,9 @@
"virtualnetworks_subnets_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -5155,16 +5202,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/applicationGateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/applicationGateways.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/applicationGateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/applicationGateways.md
index 2ad3744a0d..63bced641b 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/applicationGateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/applicationGateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/applicationGateways resource, add the following JS
```json
{
+ "name": "string",
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2016-03-30",
"id": "string",
@@ -573,6 +574,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/applicationGateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/applicationGateways |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/connections.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/connections.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/connections.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/connections.md
index ee2d6014b1..4f30f67c60 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/connections.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/connections.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/connections resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/connections",
"apiVersion": "2016-03-30",
"id": "string",
@@ -204,6 +205,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/connections object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/connections |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/expressRouteCircuits.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/expressRouteCircuits.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/expressRouteCircuits.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/expressRouteCircuits.md
index 188540fbbf..ada6783349 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/expressRouteCircuits.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/expressRouteCircuits.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/expressRouteCircuits resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.Network/expressRouteCircuits",
"apiVersion": "2016-03-30",
"id": "string",
@@ -89,6 +90,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/expressRouteCircuits object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/expressRouteCircuits |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
@@ -128,11 +130,11 @@ The following tables describe the values you need to set in the schema.
### expressRouteCircuits_peerings_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | peerings |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
| properties | object | Yes | [ExpressRouteCircuitPeeringPropertiesFormat object](#ExpressRouteCircuitPeeringPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
@@ -140,11 +142,11 @@ The following tables describe the values you need to set in the schema.
### expressRouteCircuits_authorizations_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | authorizations |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
| properties | object | Yes | [AuthorizationPropertiesFormat object](#AuthorizationPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/expressRouteCircuits_authorizations.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/expressRouteCircuits_authorizations.md
similarity index 92%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/expressRouteCircuits_authorizations.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/expressRouteCircuits_authorizations.md
index c810127236..386daab1ce 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/expressRouteCircuits_authorizations.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/expressRouteCircuits_authorizations.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/expressRouteCircuits/authorizations resource, add
```json
{
+ "name": "string",
"type": "Microsoft.Network/expressRouteCircuits/authorizations",
"apiVersion": "2016-03-30",
"id": "string",
@@ -14,7 +15,6 @@ To create a Microsoft.Network/expressRouteCircuits/authorizations resource, add
"authorizationUseStatus": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -26,11 +26,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/expressRouteCircuits/authorizations object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/expressRouteCircuits/authorizations |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
| properties | object | Yes | [AuthorizationPropertiesFormat object](#AuthorizationPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/expressRouteCircuits_peerings.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/expressRouteCircuits_peerings.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/expressRouteCircuits_peerings.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/expressRouteCircuits_peerings.md
index 3d3a9b7a58..d9d228f2bf 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/expressRouteCircuits_peerings.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/expressRouteCircuits_peerings.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/expressRouteCircuits/peerings resource, add the fo
```json
{
+ "name": "string",
"type": "Microsoft.Network/expressRouteCircuits/peerings",
"apiVersion": "2016-03-30",
"id": "string",
@@ -36,7 +37,6 @@ To create a Microsoft.Network/expressRouteCircuits/peerings resource, add the fo
},
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -48,11 +48,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/expressRouteCircuits/peerings object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/expressRouteCircuits/peerings |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
| properties | object | Yes | [ExpressRouteCircuitPeeringPropertiesFormat object](#ExpressRouteCircuitPeeringPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/loadBalancers.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/loadBalancers.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/loadBalancers.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/loadBalancers.md
index 4f65873e22..3f1dfc12e8 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/loadBalancers.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/loadBalancers.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/loadBalancers resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Network/loadBalancers",
"apiVersion": "2016-03-30",
"id": "string",
@@ -1361,6 +1362,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/loadBalancers object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/loadBalancers |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/localNetworkGateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/localNetworkGateways.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/localNetworkGateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/localNetworkGateways.md
index 8b61912fb9..075cba24b8 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/localNetworkGateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/localNetworkGateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/localNetworkGateways resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.Network/localNetworkGateways",
"apiVersion": "2016-03-30",
"id": "string",
@@ -37,6 +38,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/localNetworkGateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/localNetworkGateways |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/networkInterfaces.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/networkInterfaces.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/networkInterfaces.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/networkInterfaces.md
index 0eb73d1141..95c508997b 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/networkInterfaces.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/networkInterfaces.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkInterfaces resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "2016-03-30",
"id": "string",
@@ -496,6 +497,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkInterfaces object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkInterfaces |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/networkSecurityGroups.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/networkSecurityGroups.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/networkSecurityGroups.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/networkSecurityGroups.md
index c7b067c73b..5ed0be0d95 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/networkSecurityGroups.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/networkSecurityGroups.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkSecurityGroups resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2016-03-30",
"id": "string",
@@ -399,6 +400,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkSecurityGroups object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkSecurityGroups |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
@@ -425,11 +427,11 @@ The following tables describe the values you need to set in the schema.
### networkSecurityGroups_securityRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | securityRules |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
| properties | object | Yes | [SecurityRulePropertiesFormat object](#SecurityRulePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/networkSecurityGroups_securityRules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/networkSecurityGroups_securityRules.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/networkSecurityGroups_securityRules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/networkSecurityGroups_securityRules.md
index b6b17a211f..394091902c 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/networkSecurityGroups_securityRules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/networkSecurityGroups_securityRules.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkSecurityGroups/securityRules resource, add
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkSecurityGroups/securityRules",
"apiVersion": "2016-03-30",
"id": "string",
@@ -21,7 +22,6 @@ To create a Microsoft.Network/networkSecurityGroups/securityRules resource, add
"direction": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -33,11 +33,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkSecurityGroups/securityRules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkSecurityGroups/securityRules |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
| properties | object | Yes | [SecurityRulePropertiesFormat object](#SecurityRulePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/publicIPAddresses.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/publicIPAddresses.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/publicIPAddresses.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/publicIPAddresses.md
index b56a064263..59dbe8fcd7 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/publicIPAddresses.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/publicIPAddresses.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/publicIPAddresses resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2016-03-30",
"id": "string",
@@ -250,6 +251,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/publicIPAddresses object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/publicIPAddresses |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/routeTables.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/routeTables.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/routeTables.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/routeTables.md
index 6e9fe20f92..a669bb5e91 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/routeTables.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/routeTables.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/routeTables resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/routeTables",
"apiVersion": "2016-03-30",
"id": "string",
@@ -277,6 +278,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/routeTables object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/routeTables |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
@@ -300,11 +302,11 @@ The following tables describe the values you need to set in the schema.
### routeTables_routes_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | routes |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
| properties | object | Yes | [RoutePropertiesFormat object](#RoutePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/routeTables_routes.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/routeTables_routes.md
similarity index 92%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/routeTables_routes.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/routeTables_routes.md
index 7c3e8d89a3..34e3986cd6 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/routeTables_routes.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/routeTables_routes.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/routeTables/routes resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.Network/routeTables/routes",
"apiVersion": "2016-03-30",
"id": "string",
@@ -15,7 +16,6 @@ To create a Microsoft.Network/routeTables/routes resource, add the following JSO
"nextHopIpAddress": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -27,11 +27,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/routeTables/routes object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/routeTables/routes |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
| properties | object | Yes | [RoutePropertiesFormat object](#RoutePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/virtualnetworkgateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/virtualnetworkgateways.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/virtualnetworkgateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/virtualnetworkgateways.md
index b6042c7d43..152a858970 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/virtualnetworkgateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/virtualnetworkgateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualnetworkgateways resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualnetworkgateways",
"apiVersion": "2016-03-30",
"id": "string",
@@ -89,6 +90,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualnetworkgateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualnetworkgateways |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/virtualnetworks.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/virtualnetworks.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/virtualnetworks.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/virtualnetworks.md
index 25d2ab5aa3..23ac05ecb3 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/virtualnetworks.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/virtualnetworks.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualnetworks resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualnetworks",
"apiVersion": "2016-03-30",
"id": "string",
@@ -293,6 +294,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualnetworks object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualnetworks |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
@@ -318,11 +320,11 @@ The following tables describe the values you need to set in the schema.
### virtualnetworks_subnets_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | subnets |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
| properties | object | Yes | [SubnetPropertiesFormat object](#SubnetPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/virtualnetworks_subnets.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/virtualnetworks_subnets.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/virtualnetworks_subnets.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/virtualnetworks_subnets.md
index 7f59767824..837db9aa61 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/Microsoft.Network/virtualnetworks_subnets.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-03-30/virtualnetworks_subnets.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualnetworks/subnets resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualnetworks/subnets",
"apiVersion": "2016-03-30",
"id": "string",
@@ -281,7 +282,6 @@ To create a Microsoft.Network/virtualnetworks/subnets resource, add the followin
],
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -293,11 +293,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualnetworks/subnets object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualnetworks/subnets |
| apiVersion | enum | Yes | 2016-03-30 |
| id | string | No | Resource Id |
| properties | object | Yes | [SubnetPropertiesFormat object](#SubnetPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/Microsoft.Network.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/Microsoft.Network.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network.json
index 9e159b6249..2bca7c858b 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/Microsoft.Network.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network.json
@@ -7,6 +7,9 @@
"applicationGateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -57,6 +60,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -66,6 +70,9 @@
"connections": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -116,6 +123,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -125,6 +133,9 @@
"expressRouteCircuits": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -199,6 +210,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -208,6 +220,9 @@
"expressRouteCircuits_authorizations": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -234,16 +249,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -253,6 +265,9 @@
"expressRouteCircuits_peerings": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -279,16 +294,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -298,6 +310,9 @@
"loadBalancers": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -348,6 +363,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -357,6 +373,9 @@
"localNetworkGateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -407,6 +426,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -416,6 +436,9 @@
"networkInterfaces": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -466,6 +489,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -475,6 +499,9 @@
"networkSecurityGroups": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -535,6 +562,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -544,6 +572,9 @@
"networkSecurityGroups_securityRules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -570,16 +601,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -589,6 +617,9 @@
"publicIPAddresses": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -639,6 +670,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -648,6 +680,9 @@
"routeTables": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -708,6 +743,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -717,6 +753,9 @@
"routeTables_routes": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -743,16 +782,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -762,6 +798,9 @@
"virtualNetworkGateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -812,6 +851,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -821,6 +861,9 @@
"virtualNetworks": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -884,6 +927,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -893,6 +937,9 @@
"virtualNetworks_subnets": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -919,16 +966,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -938,6 +982,9 @@
"virtualNetworks_virtualNetworkPeerings": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -964,16 +1011,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -2661,6 +2705,9 @@
"expressRouteCircuits_authorizations_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -2687,16 +2734,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -2706,6 +2750,9 @@
"expressRouteCircuits_peerings_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -2732,16 +2779,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -3871,6 +3915,9 @@
"networkSecurityGroups_securityRules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3897,16 +3944,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -4386,6 +4430,9 @@
"routeTables_routes_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -4412,16 +4459,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -5242,6 +5286,9 @@
"virtualNetworks_subnets_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -5268,16 +5315,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -5287,6 +5331,9 @@
"virtualNetworks_virtualNetworkPeerings_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -5313,16 +5360,13 @@
}
]
},
- "name": {
- "type": "string",
- "description": "Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource"
- },
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/applicationGateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/applicationGateways.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/applicationGateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/applicationGateways.md
index 9c24ea2cf7..c893633e2e 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/applicationGateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/applicationGateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/applicationGateways resource, add the following JS
```json
{
+ "name": "string",
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2016-09-01",
"id": "string",
@@ -393,6 +394,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/applicationGateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/applicationGateways |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/connections.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/connections.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/connections.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/connections.md
index 0f1d452563..e217a2b900 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/connections.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/connections.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/connections resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/connections",
"apiVersion": "2016-09-01",
"id": "string",
@@ -204,6 +205,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/connections object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/connections |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/expressRouteCircuits.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/expressRouteCircuits.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/expressRouteCircuits.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/expressRouteCircuits.md
index 72efe465f5..feeb0f319b 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/expressRouteCircuits.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/expressRouteCircuits.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/expressRouteCircuits resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.Network/expressRouteCircuits",
"apiVersion": "2016-09-01",
"id": "string",
@@ -92,6 +93,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/expressRouteCircuits object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/expressRouteCircuits |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
@@ -132,11 +134,11 @@ The following tables describe the values you need to set in the schema.
### expressRouteCircuits_peerings_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | peerings |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [ExpressRouteCircuitPeeringPropertiesFormat object](#ExpressRouteCircuitPeeringPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
@@ -144,11 +146,11 @@ The following tables describe the values you need to set in the schema.
### expressRouteCircuits_authorizations_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | authorizations |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [AuthorizationPropertiesFormat object](#AuthorizationPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/expressRouteCircuits_authorizations.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/expressRouteCircuits_authorizations.md
similarity index 92%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/expressRouteCircuits_authorizations.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/expressRouteCircuits_authorizations.md
index ed6ecabcc9..80f333eda3 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/expressRouteCircuits_authorizations.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/expressRouteCircuits_authorizations.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/expressRouteCircuits/authorizations resource, add
```json
{
+ "name": "string",
"type": "Microsoft.Network/expressRouteCircuits/authorizations",
"apiVersion": "2016-09-01",
"id": "string",
@@ -14,7 +15,6 @@ To create a Microsoft.Network/expressRouteCircuits/authorizations resource, add
"authorizationUseStatus": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -26,11 +26,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/expressRouteCircuits/authorizations object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/expressRouteCircuits/authorizations |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [AuthorizationPropertiesFormat object](#AuthorizationPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/expressRouteCircuits_peerings.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/expressRouteCircuits_peerings.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/expressRouteCircuits_peerings.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/expressRouteCircuits_peerings.md
index 86cc43a2cc..a5fcd1edc5 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/expressRouteCircuits_peerings.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/expressRouteCircuits_peerings.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/expressRouteCircuits/peerings resource, add the fo
```json
{
+ "name": "string",
"type": "Microsoft.Network/expressRouteCircuits/peerings",
"apiVersion": "2016-09-01",
"id": "string",
@@ -38,7 +39,6 @@ To create a Microsoft.Network/expressRouteCircuits/peerings resource, add the fo
"gatewayManagerEtag": "string",
"lastModifiedBy": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -50,11 +50,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/expressRouteCircuits/peerings object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/expressRouteCircuits/peerings |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [ExpressRouteCircuitPeeringPropertiesFormat object](#ExpressRouteCircuitPeeringPropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/loadBalancers.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/loadBalancers.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/loadBalancers.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/loadBalancers.md
index 9bc48cbb41..8cb63ee2d6 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/loadBalancers.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/loadBalancers.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/loadBalancers resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Network/loadBalancers",
"apiVersion": "2016-09-01",
"id": "string",
@@ -250,6 +251,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/loadBalancers object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/loadBalancers |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/localNetworkGateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/localNetworkGateways.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/localNetworkGateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/localNetworkGateways.md
index ee477ac4aa..a391fa37c8 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/localNetworkGateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/localNetworkGateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/localNetworkGateways resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.Network/localNetworkGateways",
"apiVersion": "2016-09-01",
"id": "string",
@@ -37,6 +38,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/localNetworkGateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/localNetworkGateways |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/networkInterfaces.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/networkInterfaces.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/networkInterfaces.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/networkInterfaces.md
index 81de4d3d90..5f38680a14 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/networkInterfaces.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/networkInterfaces.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkInterfaces resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "2016-09-01",
"id": "string",
@@ -261,6 +262,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkInterfaces object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkInterfaces |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/networkSecurityGroups.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/networkSecurityGroups.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/networkSecurityGroups.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/networkSecurityGroups.md
index a158fbb656..b34ba06c74 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/networkSecurityGroups.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/networkSecurityGroups.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkSecurityGroups resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2016-09-01",
"id": "string",
@@ -67,6 +68,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkSecurityGroups object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkSecurityGroups |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
@@ -91,11 +93,11 @@ The following tables describe the values you need to set in the schema.
### networkSecurityGroups_securityRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | securityRules |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [SecurityRulePropertiesFormat object](#SecurityRulePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/networkSecurityGroups_securityRules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/networkSecurityGroups_securityRules.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/networkSecurityGroups_securityRules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/networkSecurityGroups_securityRules.md
index a8aab44b86..4f7c2cd653 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/networkSecurityGroups_securityRules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/networkSecurityGroups_securityRules.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/networkSecurityGroups/securityRules resource, add
```json
{
+ "name": "string",
"type": "Microsoft.Network/networkSecurityGroups/securityRules",
"apiVersion": "2016-09-01",
"id": "string",
@@ -21,7 +22,6 @@ To create a Microsoft.Network/networkSecurityGroups/securityRules resource, add
"direction": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -33,11 +33,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/networkSecurityGroups/securityRules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/networkSecurityGroups/securityRules |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [SecurityRulePropertiesFormat object](#SecurityRulePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/publicIPAddresses.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/publicIPAddresses.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/publicIPAddresses.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/publicIPAddresses.md
index fce7b0263a..c0de8d9a70 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/publicIPAddresses.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/publicIPAddresses.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/publicIPAddresses resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2016-09-01",
"id": "string",
@@ -35,6 +36,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/publicIPAddresses object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/publicIPAddresses |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/routeTables.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/routeTables.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/routeTables.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/routeTables.md
index d0d83f2d83..80e23d0b80 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/routeTables.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/routeTables.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/routeTables resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Network/routeTables",
"apiVersion": "2016-09-01",
"id": "string",
@@ -41,6 +42,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/routeTables object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/routeTables |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
@@ -63,11 +65,11 @@ The following tables describe the values you need to set in the schema.
### routeTables_routes_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | routes |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [RoutePropertiesFormat object](#RoutePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/routeTables_routes.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/routeTables_routes.md
similarity index 92%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/routeTables_routes.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/routeTables_routes.md
index 7d21762936..9a03abe769 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/routeTables_routes.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/routeTables_routes.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/routeTables/routes resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.Network/routeTables/routes",
"apiVersion": "2016-09-01",
"id": "string",
@@ -15,7 +16,6 @@ To create a Microsoft.Network/routeTables/routes resource, add the following JSO
"nextHopIpAddress": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -27,11 +27,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/routeTables/routes object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/routeTables/routes |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [RoutePropertiesFormat object](#RoutePropertiesFormat) |
-| name | string | No | Gets name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworkGateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworkGateways.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworkGateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworkGateways.md
index 0f35f0d29d..3ee38a09ea 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworkGateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworkGateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualNetworkGateways resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualNetworkGateways",
"apiVersion": "2016-09-01",
"id": "string",
@@ -89,6 +90,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualNetworkGateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualNetworkGateways |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworks.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworks.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworks.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworks.md
index 7328bfd20b..0fb4c2bf5c 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworks.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworks.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualNetworks resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2016-09-01",
"id": "string",
@@ -148,6 +149,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualNetworks object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualNetworks |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
@@ -174,11 +176,11 @@ The following tables describe the values you need to set in the schema.
### virtualNetworks_virtualNetworkPeerings_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | virtualNetworkPeerings |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [VirtualNetworkPeeringPropertiesFormat object](#VirtualNetworkPeeringPropertiesFormat) |
-| name | string | No | Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
@@ -186,11 +188,11 @@ The following tables describe the values you need to set in the schema.
### virtualNetworks_subnets_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | subnets |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [SubnetPropertiesFormat object](#SubnetPropertiesFormat) |
-| name | string | No | Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworks_subnets.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworks_subnets.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworks_subnets.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworks_subnets.md
index e69084b737..ba0ab5cae7 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworks_subnets.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworks_subnets.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualNetworks/subnets resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualNetworks/subnets",
"apiVersion": "2016-09-01",
"id": "string",
@@ -93,7 +94,6 @@ To create a Microsoft.Network/virtualNetworks/subnets resource, add the followin
],
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -105,11 +105,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualNetworks/subnets object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualNetworks/subnets |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [SubnetPropertiesFormat object](#SubnetPropertiesFormat) |
-| name | string | No | Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworks_virtualNetworkPeerings.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworks_virtualNetworkPeerings.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworks_virtualNetworkPeerings.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworks_virtualNetworkPeerings.md
index 9ce258bbea..52fa902fa1 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/Microsoft.Network/virtualNetworks_virtualNetworkPeerings.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Network/2016-09-01/virtualNetworks_virtualNetworkPeerings.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/virtualNetworks/virtualNetworkPeerings resource, a
```json
{
+ "name": "string",
"type": "Microsoft.Network/virtualNetworks/virtualNetworkPeerings",
"apiVersion": "2016-09-01",
"id": "string",
@@ -20,7 +21,6 @@ To create a Microsoft.Network/virtualNetworks/virtualNetworkPeerings resource, a
"peeringState": "string",
"provisioningState": "string"
},
- "name": "string",
"etag": "string"
}
```
@@ -32,11 +32,11 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/virtualNetworks/virtualNetworkPeerings object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/virtualNetworks/virtualNetworkPeerings |
| apiVersion | enum | Yes | 2016-09-01 |
| id | string | No | Resource Id |
| properties | object | Yes | [VirtualNetworkPeeringPropertiesFormat object](#VirtualNetworkPeeringPropertiesFormat) |
-| name | string | No | Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource |
| etag | string | No | A unique read-only string that changes whenever the resource is updated |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/Microsoft.NotificationHubs.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/Microsoft.NotificationHubs.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs.json
index be93d27a1e..6742c9985e 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/Microsoft.NotificationHubs.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs.json
@@ -7,6 +7,9 @@
"namespaces": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -74,6 +77,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -84,6 +88,9 @@
"namespaces_AuthorizationRules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -138,6 +145,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -148,6 +156,9 @@
"namespaces_notificationHubs": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -212,6 +223,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -222,6 +234,9 @@
"namespaces_notificationHubs_AuthorizationRules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -276,6 +291,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -539,6 +555,9 @@
"namespaces_AuthorizationRules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -593,6 +612,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -603,6 +623,9 @@
"namespaces_notificationHubs_AuthorizationRules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -657,6 +680,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -667,6 +691,9 @@
"namespaces_notificationHubs_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -731,6 +758,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces.md
index 610aa2fdbe..a6f7954ab9 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces.md
@@ -6,6 +6,7 @@ To create a Microsoft.NotificationHubs/namespaces resource, add the following JS
```json
{
+ "name": "string",
"type": "Microsoft.NotificationHubs/namespaces",
"apiVersion": "2016-03-01",
"location": "string",
@@ -43,6 +44,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.NotificationHubs/namespaces object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.NotificationHubs/namespaces |
| apiVersion | enum | Yes | 2016-03-01 |
| location | string | Yes | Resource location |
@@ -84,6 +86,7 @@ The following tables describe the values you need to set in the schema.
### namespaces_notificationHubs_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | notificationHubs |
| apiVersion | enum | Yes | 2016-03-01 |
| location | string | Yes | Resource location |
@@ -97,6 +100,7 @@ The following tables describe the values you need to set in the schema.
### namespaces_AuthorizationRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | AuthorizationRules |
| apiVersion | enum | Yes | 2016-03-01 |
| location | string | Yes | Resource location |
@@ -124,6 +128,7 @@ The following tables describe the values you need to set in the schema.
### namespaces_notificationHubs_AuthorizationRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | AuthorizationRules |
| apiVersion | enum | Yes | 2016-03-01 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces_AuthorizationRules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces_AuthorizationRules.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces_AuthorizationRules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces_AuthorizationRules.md
index 423070aa39..25f4a7e939 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces_AuthorizationRules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces_AuthorizationRules.md
@@ -6,6 +6,7 @@ To create a Microsoft.NotificationHubs/namespaces/AuthorizationRules resource, a
```json
{
+ "name": "string",
"type": "Microsoft.NotificationHubs/namespaces/AuthorizationRules",
"apiVersion": "2016-03-01",
"location": "string",
@@ -32,6 +33,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.NotificationHubs/namespaces/AuthorizationRules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.NotificationHubs/namespaces/AuthorizationRules |
| apiVersion | enum | Yes | 2016-03-01 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces_notificationHubs.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces_notificationHubs.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces_notificationHubs.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces_notificationHubs.md
index 4b1f0bab57..a77a1446a0 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces_notificationHubs.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces_notificationHubs.md
@@ -6,6 +6,7 @@ To create a Microsoft.NotificationHubs/namespaces/notificationHubs resource, add
```json
{
+ "name": "string",
"type": "Microsoft.NotificationHubs/namespaces/notificationHubs",
"apiVersion": "2016-03-01",
"location": "string",
@@ -83,6 +84,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.NotificationHubs/namespaces/notificationHubs object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.NotificationHubs/namespaces/notificationHubs |
| apiVersion | enum | Yes | 2016-03-01 |
| location | string | Yes | Resource location |
@@ -122,6 +124,7 @@ The following tables describe the values you need to set in the schema.
### namespaces_notificationHubs_AuthorizationRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | AuthorizationRules |
| apiVersion | enum | Yes | 2016-03-01 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces_notificationHubs_AuthorizationRules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces_notificationHubs_AuthorizationRules.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces_notificationHubs_AuthorizationRules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces_notificationHubs_AuthorizationRules.md
index 7c46d4709f..3954b41940 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/Microsoft.NotificationHubs/namespaces_notificationHubs_AuthorizationRules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/NotificationHubs/2016-03-01/namespaces_notificationHubs_AuthorizationRules.md
@@ -6,6 +6,7 @@ To create a Microsoft.NotificationHubs/namespaces/notificationHubs/Authorization
```json
{
+ "name": "string",
"type": "Microsoft.NotificationHubs/namespaces/notificationHubs/AuthorizationRules",
"apiVersion": "2016-03-01",
"location": "string",
@@ -32,6 +33,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.NotificationHubs/namespaces/notificationHubs/AuthorizationRules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.NotificationHubs/namespaces/notificationHubs/AuthorizationRules |
| apiVersion | enum | Yes | 2016-03-01 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/Microsoft.PowerBI/Microsoft.PowerBI.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/Microsoft.PowerBI.json
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/Microsoft.PowerBI/Microsoft.PowerBI.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/Microsoft.PowerBI.json
index b7b4c9e0c3..0952f82d2f 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/Microsoft.PowerBI/Microsoft.PowerBI.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/Microsoft.PowerBI.json
@@ -7,6 +7,9 @@
"workspaceCollections": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -48,6 +51,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/Microsoft.PowerBI/workspaceCollections.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/workspaceCollections.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/Microsoft.PowerBI/workspaceCollections.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/workspaceCollections.md
index 77bec8f0de..c55a9c1075 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/Microsoft.PowerBI/workspaceCollections.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/PowerBIEmbedded/2016-01-29/workspaceCollections.md
@@ -6,6 +6,7 @@ To create a Microsoft.PowerBI/workspaceCollections resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.PowerBI/workspaceCollections",
"apiVersion": "2016-01-29",
"location": "string",
@@ -24,6 +25,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.PowerBI/workspaceCollections object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.PowerBI/workspaceCollections |
| apiVersion | enum | Yes | 2016-01-29 |
| location | string | No | Azure location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/Microsoft.RecoveryServices/Microsoft.RecoveryServices.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/Microsoft.RecoveryServices.json
similarity index 94%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/Microsoft.RecoveryServices/Microsoft.RecoveryServices.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/Microsoft.RecoveryServices.json
index e8e436eb52..5c865a9b5f 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/Microsoft.RecoveryServices/Microsoft.RecoveryServices.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/Microsoft.RecoveryServices.json
@@ -7,6 +7,10 @@
"vaults": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string",
+ "description": "The name of the recovery services vault."
+ },
"type": {
"type": "string",
"enum": [
@@ -59,6 +63,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/Microsoft.RecoveryServices/vaults.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/vaults.md
similarity index 92%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/Microsoft.RecoveryServices/vaults.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/vaults.md
index 941b9f1e8e..388f014e5d 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/Microsoft.RecoveryServices/vaults.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/RecoveryServices/2016-06-01/vaults.md
@@ -6,6 +6,7 @@ To create a Microsoft.RecoveryServices/vaults resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.RecoveryServices/vaults",
"apiVersion": "2016-06-01",
"location": "string",
@@ -24,6 +25,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.RecoveryServices/vaults object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | The name of the recovery services vault. |
| type | enum | Yes | Microsoft.RecoveryServices/vaults |
| apiVersion | enum | Yes | 2016-06-01 |
| location | string | No | Resource Location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Microsoft.Cache/Microsoft.Cache.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Microsoft.Cache.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Microsoft.Cache/Microsoft.Cache.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Microsoft.Cache.json
index f74a7f3f77..74a59b8713 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Microsoft.Cache/Microsoft.Cache.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Microsoft.Cache.json
@@ -7,6 +7,9 @@
"Redis": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -50,6 +53,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Microsoft.Cache/Redis.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Redis.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Microsoft.Cache/Redis.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Redis.md
index 8292da441f..2edb1b8a37 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Microsoft.Cache/Redis.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Redis/2016-04-01/Redis.md
@@ -6,6 +6,7 @@ To create a Microsoft.Cache/Redis resource, add the following JSON to the resour
```json
{
+ "name": "string",
"type": "Microsoft.Cache/Redis",
"apiVersion": "2016-04-01",
"location": "string",
@@ -34,6 +35,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Cache/Redis object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Cache/Redis |
| apiVersion | enum | Yes | 2016-04-01 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/Microsoft.Authorization/Microsoft.Authorization.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/Microsoft.Authorization.json
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/Microsoft.Authorization/Microsoft.Authorization.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/Microsoft.Authorization.json
index 1efb549abc..6542f564dd 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/Microsoft.Authorization/Microsoft.Authorization.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/Microsoft.Authorization.json
@@ -7,6 +7,9 @@
"locks": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -29,13 +32,10 @@
}
],
"description": "The properties of the lock."
- },
- "name": {
- "type": "string",
- "description": "The name of the lock."
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/Microsoft.Authorization/locks.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/locks.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/Microsoft.Authorization/locks.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/locks.md
index 2485d943f6..2546001dfc 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/Microsoft.Authorization/locks.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Locks/2016-09-01/locks.md
@@ -6,6 +6,7 @@ To create a Microsoft.Authorization/locks resource, add the following JSON to th
```json
{
+ "name": "string",
"type": "Microsoft.Authorization/locks",
"apiVersion": "2016-09-01",
"properties": {
@@ -16,8 +17,7 @@ To create a Microsoft.Authorization/locks resource, add the following JSON to th
"applicationId": "string"
}
]
- },
- "name": "string"
+ }
}
```
## Property values
@@ -28,10 +28,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Authorization/locks object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Authorization/locks |
| apiVersion | enum | Yes | 2016-09-01 |
| properties | object | Yes | The properties of the lock. - [ManagementLockProperties object](#ManagementLockProperties) |
-| name | string | No | The name of the lock. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/Microsoft.Resources/Microsoft.Resources.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/Microsoft.Resources.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/Microsoft.Resources/Microsoft.Resources.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/Microsoft.Resources.json
index 2c380582da..db29f51fbf 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/Microsoft.Resources/Microsoft.Resources.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/Microsoft.Resources.json
@@ -7,6 +7,9 @@
"deployments": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -32,6 +35,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/Microsoft.Resources/deployments.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/deployments.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/Microsoft.Resources/deployments.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/deployments.md
index af268615bf..3c5a56fbf7 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/Microsoft.Resources/deployments.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Resources/Resources/2016-09-01/deployments.md
@@ -6,6 +6,7 @@ To create a Microsoft.Resources/deployments resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2016-09-01",
"properties": {
@@ -34,6 +35,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Resources/deployments object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Resources/deployments |
| apiVersion | enum | Yes | 2016-09-01 |
| properties | object | Yes | The deployment properties. - [DeploymentProperties object](#DeploymentProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler/Microsoft.Scheduler.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler/Microsoft.Scheduler.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler.json
index 7b4a0ca54d..b9277dfd1b 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler/Microsoft.Scheduler.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler.json
@@ -7,6 +7,9 @@
"jobCollections": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -19,10 +22,6 @@
"2016-03-01"
]
},
- "name": {
- "type": "string",
- "description": "Gets or sets the job collection resource name."
- },
"location": {
"type": "string",
"description": "Gets or sets the storage account location."
@@ -64,6 +63,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -73,6 +73,9 @@
"jobCollections_jobs": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -98,6 +101,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -330,6 +334,9 @@
"jobCollections_jobs_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -355,6 +362,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler/jobCollections.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/jobCollections.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler/jobCollections.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/jobCollections.md
index b5675310e5..e757e27d9d 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler/jobCollections.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/jobCollections.md
@@ -6,9 +6,9 @@ To create a Microsoft.Scheduler/jobCollections resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.Scheduler/jobCollections",
"apiVersion": "2016-03-01",
- "name": "string",
"location": "string",
"tags": {},
"properties": {
@@ -38,9 +38,9 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Scheduler/jobCollections object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Scheduler/jobCollections |
| apiVersion | enum | Yes | 2016-03-01 |
-| name | string | No | Gets or sets the job collection resource name. |
| location | string | No | Gets or sets the storage account location. |
| tags | object | No | Gets or sets the tags. |
| properties | object | Yes | Gets or sets the job collection properties. - [JobCollectionProperties object](#JobCollectionProperties) |
@@ -60,6 +60,7 @@ The following tables describe the values you need to set in the schema.
### jobCollections_jobs_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | jobs |
| apiVersion | enum | Yes | 2016-03-01 |
| properties | object | Yes | Gets or sets the job properties. - [JobProperties object](#JobProperties) |
@@ -104,7 +105,7 @@ The following tables describe the values you need to set in the schema.
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
| type | enum | No | Gets or sets the job action type. - Http, Https, StorageQueue, ServiceBusQueue, ServiceBusTopic |
-| request | object | No | Gets or sets the http requests. - [HttpRequest object](HttpRequest) |
+| request | object | No | Gets or sets the http requests. - [HttpRequest object](#HttpRequest) |
| queueMessage | object | No | Gets or sets the storage queue message. - [StorageQueueMessage object](#StorageQueueMessage) |
| serviceBusQueueMessage | object | No | Gets or sets the service bus queue message. - [ServiceBusQueueMessage object](#ServiceBusQueueMessage) |
| serviceBusTopicMessage | object | No | Gets or sets the service bus topic message. - [ServiceBusTopicMessage object](#ServiceBusTopicMessage) |
@@ -127,7 +128,7 @@ The following tables describe the values you need to set in the schema.
### HttpRequest object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
-| authentication | object | No | Gets or sets the http authentication. - [HttpAuthentication object](HttpAuthentication) |
+| authentication | object | No | Gets or sets the http authentication. - [HttpAuthentication object](#HttpAuthentication) |
| uri | string | No | Gets or sets the Uri. |
| method | string | No | Gets or sets the method of the request. |
| body | string | No | Gets or sets the request body. |
@@ -184,7 +185,7 @@ The following tables describe the values you need to set in the schema.
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
| type | enum | No | Gets or sets the job error action type. - Http, Https, StorageQueue, ServiceBusQueue, ServiceBusTopic |
-| request | object | No | Gets or sets the http requests. - [HttpRequest object](HttpRequest) |
+| request | object | No | Gets or sets the http requests. - [HttpRequest object](#HttpRequest) |
| queueMessage | object | No | Gets or sets the storage queue message. - [StorageQueueMessage object](#StorageQueueMessage) |
| serviceBusQueueMessage | object | No | Gets or sets the service bus queue message. - [ServiceBusQueueMessage object](#ServiceBusQueueMessage) |
| serviceBusTopicMessage | object | No | Gets or sets the service bus topic message. - [ServiceBusTopicMessage object](#ServiceBusTopicMessage) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler/jobCollections_jobs.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/jobCollections_jobs.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler/jobCollections_jobs.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/jobCollections_jobs.md
index 98a1a8ec4f..e21d41a984 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/Microsoft.Scheduler/jobCollections_jobs.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Scheduler/2016-03-01/jobCollections_jobs.md
@@ -6,6 +6,7 @@ To create a Microsoft.Scheduler/jobCollections/jobs resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Scheduler/jobCollections/jobs",
"apiVersion": "2016-03-01",
"properties": {
@@ -202,6 +203,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Scheduler/jobCollections/jobs object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Scheduler/jobCollections/jobs |
| apiVersion | enum | Yes | 2016-03-01 |
| properties | object | Yes | Gets or sets the job properties. - [JobProperties object](#JobProperties) |
@@ -222,7 +224,7 @@ The following tables describe the values you need to set in the schema.
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
| type | enum | No | Gets or sets the job action type. - Http, Https, StorageQueue, ServiceBusQueue, ServiceBusTopic |
-| request | object | No | Gets or sets the http requests. - [HttpRequest object](HttpRequest) |
+| request | object | No | Gets or sets the http requests. - [HttpRequest object](#HttpRequest) |
| queueMessage | object | No | Gets or sets the storage queue message. - [StorageQueueMessage object](#StorageQueueMessage) |
| serviceBusQueueMessage | object | No | Gets or sets the service bus queue message. - [ServiceBusQueueMessage object](#ServiceBusQueueMessage) |
| serviceBusTopicMessage | object | No | Gets or sets the service bus topic message. - [ServiceBusTopicMessage object](#ServiceBusTopicMessage) |
@@ -245,7 +247,7 @@ The following tables describe the values you need to set in the schema.
### HttpRequest object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
-| authentication | object | No | Gets or sets the http authentication. - [HttpAuthentication object](HttpAuthentication) |
+| authentication | object | No | Gets or sets the http authentication. - [HttpAuthentication object](#HttpAuthentication) |
| uri | string | No | Gets or sets the Uri. |
| method | string | No | Gets or sets the method of the request. |
| body | string | No | Gets or sets the request body. |
@@ -302,7 +304,7 @@ The following tables describe the values you need to set in the schema.
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
| type | enum | No | Gets or sets the job error action type. - Http, Https, StorageQueue, ServiceBusQueue, ServiceBusTopic |
-| request | object | No | Gets or sets the http requests. - [HttpRequest object](HttpRequest) |
+| request | object | No | Gets or sets the http requests. - [HttpRequest object](#HttpRequest) |
| queueMessage | object | No | Gets or sets the storage queue message. - [StorageQueueMessage object](#StorageQueueMessage) |
| serviceBusQueueMessage | object | No | Gets or sets the service bus queue message. - [ServiceBusQueueMessage object](#ServiceBusQueueMessage) |
| serviceBusTopicMessage | object | No | Gets or sets the service bus topic message. - [ServiceBusTopicMessage object](#ServiceBusTopicMessage) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/Microsoft.Search/Microsoft.Search.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/Microsoft.Search.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/Microsoft.Search/Microsoft.Search.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/Microsoft.Search.json
index d8d58857f0..a827357790 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/Microsoft.Search/Microsoft.Search.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/Microsoft.Search.json
@@ -7,6 +7,9 @@
"searchServices": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -50,6 +53,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/Microsoft.Search/searchServices.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/searchServices.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/Microsoft.Search/searchServices.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/searchServices.md
index 46abf9a094..1aa4f652e8 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/Microsoft.Search/searchServices.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Search/2015-02-28/searchServices.md
@@ -6,6 +6,7 @@ To create a Microsoft.Search/searchServices resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Search/searchServices",
"apiVersion": "2015-02-28",
"location": "string",
@@ -27,6 +28,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Search/searchServices object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Search/searchServices |
| apiVersion | enum | Yes | 2015-02-28 |
| location | string | No | The geographic location of the Search service. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/Microsoft.ServerManagement.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement.json
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/Microsoft.ServerManagement.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement.json
index 9a3100e6fd..038a510bcf 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/Microsoft.ServerManagement.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement.json
@@ -7,6 +7,9 @@
"gateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -39,6 +42,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -48,6 +52,9 @@
"nodes": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -90,6 +97,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -99,6 +107,9 @@
"nodes_sessions": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -124,6 +135,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -133,6 +145,9 @@
"nodes_sessions_features_pssessions": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -147,6 +162,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion"
],
@@ -201,6 +217,9 @@
"nodes_sessions_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -226,6 +245,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/gateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/gateways.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/gateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/gateways.md
index db80e27f77..e511cd4c09 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/gateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/gateways.md
@@ -6,6 +6,7 @@ To create a Microsoft.ServerManagement/gateways resource, add the following JSON
```json
{
+ "name": "string",
"type": "Microsoft.ServerManagement/gateways",
"apiVersion": "2016-07-01-preview",
"location": "string",
@@ -23,6 +24,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServerManagement/gateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServerManagement/gateways |
| apiVersion | enum | Yes | 2016-07-01-preview |
| location | string | No | location of the resource |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/nodes.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/nodes.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/nodes.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/nodes.md
index 0ffa16b26e..5166997b13 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/nodes.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/nodes.md
@@ -6,6 +6,7 @@ To create a Microsoft.ServerManagement/nodes resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.ServerManagement/nodes",
"apiVersion": "2016-07-01-preview",
"location": "string",
@@ -29,6 +30,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServerManagement/nodes object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServerManagement/nodes |
| apiVersion | enum | Yes | 2016-07-01-preview |
| location | string | No | location of the resource? |
@@ -51,6 +53,7 @@ The following tables describe the values you need to set in the schema.
### nodes_sessions_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | sessions |
| apiVersion | enum | Yes | 2016-07-01-preview |
| properties | object | Yes | collection of properties - [SessionParameters_properties object](#SessionParameters_properties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/nodes_sessions.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/nodes_sessions.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/nodes_sessions.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/nodes_sessions.md
index b55f11cbc0..98f9366a93 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/nodes_sessions.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/nodes_sessions.md
@@ -6,6 +6,7 @@ To create a Microsoft.ServerManagement/nodes/sessions resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.ServerManagement/nodes/sessions",
"apiVersion": "2016-07-01-preview",
"properties": {
@@ -25,6 +26,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServerManagement/nodes/sessions object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServerManagement/nodes/sessions |
| apiVersion | enum | Yes | 2016-07-01-preview |
| properties | object | Yes | collection of properties - [SessionParameters_properties object](#SessionParameters_properties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/nodes_sessions_features_pssessions.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/nodes_sessions_features_pssessions.md
similarity index 94%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/nodes_sessions_features_pssessions.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/nodes_sessions_features_pssessions.md
index 033cc2d68b..af54388636 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/Microsoft.ServerManagement/nodes_sessions_features_pssessions.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServerManagement/2016-07-01-preview/nodes_sessions_features_pssessions.md
@@ -6,6 +6,7 @@ To create a Microsoft.ServerManagement/nodes/sessions/features/pssessions resour
```json
{
+ "name": "string",
"type": "Microsoft.ServerManagement/nodes/sessions/features/pssessions",
"apiVersion": "2016-07-01-preview"
}
@@ -18,6 +19,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServerManagement/nodes/sessions/features/pssessions object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServerManagement/nodes/sessions/features/pssessions |
| apiVersion | enum | Yes | 2016-07-01-preview |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/Microsoft.ServiceBus.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/Microsoft.ServiceBus.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus.json
index 36be307546..35c2b673dd 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/Microsoft.ServiceBus.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus.json
@@ -7,6 +7,9 @@
"namespaces": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -75,6 +78,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -85,6 +89,9 @@
"namespaces_AuthorizationRules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -101,10 +108,6 @@
"type": "string",
"description": "data center location."
},
- "name": {
- "type": "string",
- "description": "Name of the AuthorizationRule."
- },
"properties": {
"oneOf": [
{
@@ -117,6 +120,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -126,6 +130,9 @@
"namespaces_queues": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -138,10 +145,6 @@
"2015-08-01"
]
},
- "name": {
- "type": "string",
- "description": "Queue name."
- },
"location": {
"type": "string",
"description": "location of the resource."
@@ -168,6 +171,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -178,6 +182,9 @@
"namespaces_queues_authorizationRules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -194,10 +201,6 @@
"type": "string",
"description": "data center location."
},
- "name": {
- "type": "string",
- "description": "Name of the AuthorizationRule."
- },
"properties": {
"oneOf": [
{
@@ -210,6 +213,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -219,6 +223,9 @@
"namespaces_topics": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -231,10 +238,6 @@
"2015-08-01"
]
},
- "name": {
- "type": "string",
- "description": "Topic name."
- },
"location": {
"type": "string",
"description": "Location of the resource."
@@ -264,6 +267,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -274,6 +278,9 @@
"namespaces_topics_authorizationRules": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -290,10 +297,6 @@
"type": "string",
"description": "data center location."
},
- "name": {
- "type": "string",
- "description": "Name of the AuthorizationRule."
- },
"properties": {
"oneOf": [
{
@@ -306,6 +309,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -315,6 +319,9 @@
"namespaces_topics_subscriptions": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -343,6 +350,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -488,6 +496,9 @@
"namespaces_AuthorizationRules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -504,10 +515,6 @@
"type": "string",
"description": "data center location."
},
- "name": {
- "type": "string",
- "description": "Name of the AuthorizationRule."
- },
"properties": {
"oneOf": [
{
@@ -520,6 +527,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -529,6 +537,9 @@
"namespaces_queues_authorizationRules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -545,10 +556,6 @@
"type": "string",
"description": "data center location."
},
- "name": {
- "type": "string",
- "description": "Name of the AuthorizationRule."
- },
"properties": {
"oneOf": [
{
@@ -561,6 +568,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -570,6 +578,9 @@
"namespaces_queues_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -582,10 +593,6 @@
"2015-08-01"
]
},
- "name": {
- "type": "string",
- "description": "Queue name."
- },
"location": {
"type": "string",
"description": "location of the resource."
@@ -612,6 +619,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -622,6 +630,9 @@
"namespaces_topics_authorizationRules_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -638,10 +649,6 @@
"type": "string",
"description": "data center location."
},
- "name": {
- "type": "string",
- "description": "Name of the AuthorizationRule."
- },
"properties": {
"oneOf": [
{
@@ -654,6 +661,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -663,6 +671,9 @@
"namespaces_topics_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -675,10 +686,6 @@
"2015-08-01"
]
},
- "name": {
- "type": "string",
- "description": "Topic name."
- },
"location": {
"type": "string",
"description": "Location of the resource."
@@ -708,6 +715,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -718,6 +726,9 @@
"namespaces_topics_subscriptions_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -746,6 +757,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces.md
index bea1ec6e51..2cfcb46ebc 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces.md
@@ -6,6 +6,7 @@ To create a Microsoft.ServiceBus/namespaces resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.ServiceBus/namespaces",
"apiVersion": "2015-08-01",
"location": "string",
@@ -37,6 +38,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServiceBus/namespaces object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServiceBus/namespaces |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | Yes | Namespace location. |
@@ -72,9 +74,9 @@ The following tables describe the values you need to set in the schema.
### namespaces_topics_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | topics |
| apiVersion | enum | Yes | 2015-08-01 |
-| name | string | No | Topic name. |
| location | string | Yes | Location of the resource. |
| properties | object | Yes | [TopicProperties object](#TopicProperties) |
| resources | array | No | [namespaces_topics_subscriptions_childResource object](#namespaces_topics_subscriptions_childResource) [namespaces_topics_authorizationRules_childResource object](#namespaces_topics_authorizationRules_childResource) |
@@ -84,9 +86,9 @@ The following tables describe the values you need to set in the schema.
### namespaces_queues_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | queues |
| apiVersion | enum | Yes | 2015-08-01 |
-| name | string | No | Queue name. |
| location | string | Yes | location of the resource. |
| properties | object | Yes | [QueueProperties object](#QueueProperties) |
| resources | array | No | [namespaces_queues_authorizationRules_childResource object](#namespaces_queues_authorizationRules_childResource) |
@@ -96,10 +98,10 @@ The following tables describe the values you need to set in the schema.
### namespaces_AuthorizationRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | AuthorizationRules |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | data center location. |
-| name | string | No | Name of the AuthorizationRule. |
| properties | object | Yes | [SharedAccessAuthorizationRuleProperties object](#SharedAccessAuthorizationRuleProperties) |
@@ -134,6 +136,7 @@ The following tables describe the values you need to set in the schema.
### namespaces_topics_subscriptions_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | subscriptions |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | Yes | Subscription data center location. |
@@ -144,10 +147,10 @@ The following tables describe the values you need to set in the schema.
### namespaces_topics_authorizationRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | authorizationRules |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | data center location. |
-| name | string | No | Name of the AuthorizationRule. |
| properties | object | Yes | [SharedAccessAuthorizationRuleProperties object](#SharedAccessAuthorizationRuleProperties) |
@@ -183,10 +186,10 @@ The following tables describe the values you need to set in the schema.
### namespaces_queues_authorizationRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | authorizationRules |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | data center location. |
-| name | string | No | Name of the AuthorizationRule. |
| properties | object | Yes | [SharedAccessAuthorizationRuleProperties object](#SharedAccessAuthorizationRuleProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_AuthorizationRules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_AuthorizationRules.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_AuthorizationRules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_AuthorizationRules.md
index 44f634a6f5..c3813e23c3 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_AuthorizationRules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_AuthorizationRules.md
@@ -6,10 +6,10 @@ To create a Microsoft.ServiceBus/namespaces/AuthorizationRules resource, add the
```json
{
+ "name": "string",
"type": "Microsoft.ServiceBus/namespaces/AuthorizationRules",
"apiVersion": "2015-08-01",
"location": "string",
- "name": "string",
"properties": {
"rights": [
"string"
@@ -25,10 +25,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServiceBus/namespaces/AuthorizationRules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServiceBus/namespaces/AuthorizationRules |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | data center location. |
-| name | string | No | Name of the AuthorizationRule. |
| properties | object | Yes | [SharedAccessAuthorizationRuleProperties object](#SharedAccessAuthorizationRuleProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_queues.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_queues.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_queues.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_queues.md
index 5f0939fef3..937a386469 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_queues.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_queues.md
@@ -6,9 +6,9 @@ To create a Microsoft.ServiceBus/namespaces/queues resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.ServiceBus/namespaces/queues",
"apiVersion": "2015-08-01",
- "name": "string",
"location": "string",
"properties": {
"lockDuration ": "string",
@@ -53,9 +53,9 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServiceBus/namespaces/queues object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServiceBus/namespaces/queues |
| apiVersion | enum | Yes | 2015-08-01 |
-| name | string | No | Queue name. |
| location | string | Yes | location of the resource. |
| properties | object | Yes | [QueueProperties object](#QueueProperties) |
| resources | array | No | [namespaces_queues_authorizationRules_childResource object](#namespaces_queues_authorizationRules_childResource) |
@@ -93,10 +93,10 @@ The following tables describe the values you need to set in the schema.
### namespaces_queues_authorizationRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | authorizationRules |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | data center location. |
-| name | string | No | Name of the AuthorizationRule. |
| properties | object | Yes | [SharedAccessAuthorizationRuleProperties object](#SharedAccessAuthorizationRuleProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_queues_authorizationRules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_queues_authorizationRules.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_queues_authorizationRules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_queues_authorizationRules.md
index 2630bf5407..1d3c9aa537 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_queues_authorizationRules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_queues_authorizationRules.md
@@ -6,10 +6,10 @@ To create a Microsoft.ServiceBus/namespaces/queues/authorizationRules resource,
```json
{
+ "name": "string",
"type": "Microsoft.ServiceBus/namespaces/queues/authorizationRules",
"apiVersion": "2015-08-01",
"location": "string",
- "name": "string",
"properties": {
"rights": [
"string"
@@ -25,10 +25,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServiceBus/namespaces/queues/authorizationRules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServiceBus/namespaces/queues/authorizationRules |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | data center location. |
-| name | string | No | Name of the AuthorizationRule. |
| properties | object | Yes | [SharedAccessAuthorizationRuleProperties object](#SharedAccessAuthorizationRuleProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_topics.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_topics.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_topics.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_topics.md
index 7acf9c0055..1082206bf2 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_topics.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_topics.md
@@ -6,9 +6,9 @@ To create a Microsoft.ServiceBus/namespaces/topics resource, add the following J
```json
{
+ "name": "string",
"type": "Microsoft.ServiceBus/namespaces/topics",
"apiVersion": "2015-08-01",
- "name": "string",
"location": "string",
"properties": {
"accessedAt": "string",
@@ -52,9 +52,9 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServiceBus/namespaces/topics object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServiceBus/namespaces/topics |
| apiVersion | enum | Yes | 2015-08-01 |
-| name | string | No | Topic name. |
| location | string | Yes | Location of the resource. |
| properties | object | Yes | [TopicProperties object](#TopicProperties) |
| resources | array | No | [namespaces_topics_subscriptions_childResource object](#namespaces_topics_subscriptions_childResource) [namespaces_topics_authorizationRules_childResource object](#namespaces_topics_authorizationRules_childResource) |
@@ -91,6 +91,7 @@ The following tables describe the values you need to set in the schema.
### namespaces_topics_subscriptions_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | subscriptions |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | Yes | Subscription data center location. |
@@ -101,10 +102,10 @@ The following tables describe the values you need to set in the schema.
### namespaces_topics_authorizationRules_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | authorizationRules |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | data center location. |
-| name | string | No | Name of the AuthorizationRule. |
| properties | object | Yes | [SharedAccessAuthorizationRuleProperties object](#SharedAccessAuthorizationRuleProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_topics_authorizationRules.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_topics_authorizationRules.md
similarity index 95%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_topics_authorizationRules.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_topics_authorizationRules.md
index 14f6ec2895..4ddf151150 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_topics_authorizationRules.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_topics_authorizationRules.md
@@ -6,10 +6,10 @@ To create a Microsoft.ServiceBus/namespaces/topics/authorizationRules resource,
```json
{
+ "name": "string",
"type": "Microsoft.ServiceBus/namespaces/topics/authorizationRules",
"apiVersion": "2015-08-01",
"location": "string",
- "name": "string",
"properties": {
"rights": [
"string"
@@ -25,10 +25,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServiceBus/namespaces/topics/authorizationRules object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServiceBus/namespaces/topics/authorizationRules |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | data center location. |
-| name | string | No | Name of the AuthorizationRule. |
| properties | object | Yes | [SharedAccessAuthorizationRuleProperties object](#SharedAccessAuthorizationRuleProperties) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_topics_subscriptions.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_topics_subscriptions.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_topics_subscriptions.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_topics_subscriptions.md
index 149d9b173a..dda8f4b735 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/Microsoft.ServiceBus/namespaces_topics_subscriptions.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/ServiceBus/2015-08-01/namespaces_topics_subscriptions.md
@@ -6,6 +6,7 @@ To create a Microsoft.ServiceBus/namespaces/topics/subscriptions resource, add t
```json
{
+ "name": "string",
"type": "Microsoft.ServiceBus/namespaces/topics/subscriptions",
"apiVersion": "2015-08-01",
"location": "string",
@@ -43,6 +44,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.ServiceBus/namespaces/topics/subscriptions object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.ServiceBus/namespaces/topics/subscriptions |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | Yes | Subscription data center location. |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/Microsoft.Storage/Microsoft.Storage.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/Microsoft.Storage.json
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/Microsoft.Storage/Microsoft.Storage.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/Microsoft.Storage.json
index 317190ea7a..ce30c81517 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/Microsoft.Storage/Microsoft.Storage.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/Microsoft.Storage.json
@@ -7,6 +7,9 @@
"storageAccounts": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -49,6 +52,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/Microsoft.Storage/storageAccounts.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/storageAccounts.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/Microsoft.Storage/storageAccounts.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/storageAccounts.md
index 5f723f01a9..16eb05cd99 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/Microsoft.Storage/storageAccounts.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-05-01-preview/storageAccounts.md
@@ -6,6 +6,7 @@ To create a Microsoft.Storage/storageAccounts resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2015-05-01-preview",
"location": "string",
@@ -23,6 +24,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Storage/storageAccounts object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Storage/storageAccounts |
| apiVersion | enum | Yes | 2015-05-01-preview |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/Microsoft.Storage/Microsoft.Storage.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/Microsoft.Storage.json
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/Microsoft.Storage/Microsoft.Storage.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/Microsoft.Storage.json
index cac87b99d6..90663709a6 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/Microsoft.Storage/Microsoft.Storage.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/Microsoft.Storage.json
@@ -7,6 +7,9 @@
"storageAccounts": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -49,6 +52,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/Microsoft.Storage/storageAccounts.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/storageAccounts.md
similarity index 96%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/Microsoft.Storage/storageAccounts.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/storageAccounts.md
index 51232ac30c..9fb9b677d0 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/Microsoft.Storage/storageAccounts.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2015-06-15/storageAccounts.md
@@ -6,6 +6,7 @@ To create a Microsoft.Storage/storageAccounts resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2015-06-15",
"location": "string",
@@ -23,6 +24,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Storage/storageAccounts object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Storage/storageAccounts |
| apiVersion | enum | Yes | 2015-06-15 |
| location | string | Yes | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/Microsoft.Storage/Microsoft.Storage.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/Microsoft.Storage.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/Microsoft.Storage/Microsoft.Storage.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/Microsoft.Storage.json
index 9c330986a3..cf597c93d1 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/Microsoft.Storage/Microsoft.Storage.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/Microsoft.Storage.json
@@ -7,6 +7,9 @@
"storageAccounts": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -75,6 +78,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"sku",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/Microsoft.Storage/storageAccounts.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/storageAccounts.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/Microsoft.Storage/storageAccounts.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/storageAccounts.md
index b119038fde..3f9c57e81b 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/Microsoft.Storage/storageAccounts.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Storage/2016-01-01/storageAccounts.md
@@ -6,6 +6,7 @@ To create a Microsoft.Storage/storageAccounts resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2016-01-01",
"sku": {
@@ -39,6 +40,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Storage/storageAccounts object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Storage/storageAccounts |
| apiVersion | enum | Yes | 2016-01-01 |
| sku | object | Yes | Required. Gets or sets the sku type. - [Sku object](#Sku) |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/Microsoft.Network/Microsoft.Network.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/Microsoft.Network.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/Microsoft.Network/Microsoft.Network.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/Microsoft.Network.json
index e4ccd105ae..21d0954fdd 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/Microsoft.Network/Microsoft.Network.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/Microsoft.Network.json
@@ -7,6 +7,9 @@
"trafficmanagerprofiles": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -49,6 +52,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/Microsoft.Network/trafficmanagerprofiles.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/trafficmanagerprofiles.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/Microsoft.Network/trafficmanagerprofiles.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/trafficmanagerprofiles.md
index a7ee3f3820..17e0ba192d 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/Microsoft.Network/trafficmanagerprofiles.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/TrafficManager/2015-11-01/trafficmanagerprofiles.md
@@ -6,6 +6,7 @@ To create a Microsoft.Network/trafficmanagerprofiles resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Network/trafficmanagerprofiles",
"apiVersion": "2015-11-01",
"location": "string",
@@ -52,6 +53,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Network/trafficmanagerprofiles object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Network/trafficmanagerprofiles |
| apiVersion | enum | Yes | 2015-11-01 |
| location | string | No | Resource location |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration/Microsoft.CertificateRegistration.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration/Microsoft.CertificateRegistration.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration.json
index 3225e61305..73532497cc 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration/Microsoft.CertificateRegistration.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration.json
@@ -7,6 +7,9 @@
"certificateOrders": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -23,10 +26,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -71,6 +70,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -81,6 +81,9 @@
"certificateOrders_certificates": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -97,10 +100,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -135,6 +134,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -506,6 +506,9 @@
"certificateOrders_certificates_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -522,10 +525,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -560,6 +559,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.DomainRegistration/Microsoft.DomainRegistration.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.DomainRegistration.json
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.DomainRegistration/Microsoft.DomainRegistration.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.DomainRegistration.json
index 9b3959f559..82c44f158a 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.DomainRegistration/Microsoft.DomainRegistration.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.DomainRegistration.json
@@ -7,6 +7,9 @@
"domains": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -23,10 +26,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -61,6 +60,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/Microsoft.Web.json b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web.json
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/Microsoft.Web.json
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web.json
index a64defa228..f8292f4c40 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/Microsoft.Web.json
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web.json
@@ -7,6 +7,9 @@
"certificates": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -23,10 +26,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -61,6 +60,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -71,6 +71,9 @@
"csrs": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -87,10 +90,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -125,6 +124,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -135,6 +135,9 @@
"hostingEnvironments": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -151,10 +154,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -199,6 +198,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -209,6 +209,9 @@
"hostingEnvironments_workerPools": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -225,10 +228,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -273,6 +272,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -283,6 +283,9 @@
"managedHostingEnvironments": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -299,10 +302,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -337,6 +336,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -347,6 +347,9 @@
"serverfarms": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -363,10 +366,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -411,6 +410,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -421,6 +421,9 @@
"serverfarms_virtualNetworkConnections_gateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -437,10 +440,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -475,6 +474,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -485,6 +485,9 @@
"serverfarms_virtualNetworkConnections_routes": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -501,10 +504,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -539,6 +538,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -549,6 +549,9 @@
"sites": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -565,10 +568,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -628,6 +627,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -638,6 +638,9 @@
"sites_deployments": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -654,10 +657,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -692,6 +691,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -702,6 +702,9 @@
"sites_hostNameBindings": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -718,10 +721,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -756,6 +755,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -766,6 +766,9 @@
"sites_hybridconnection": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -782,10 +785,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -820,6 +819,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -830,6 +830,9 @@
"sites_instances_deployments": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -846,10 +849,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -884,6 +883,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -894,6 +894,9 @@
"sites_premieraddons": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -951,6 +954,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -960,6 +964,9 @@
"sites_slots": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -976,10 +983,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -1036,6 +1039,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1046,6 +1050,9 @@
"sites_slots_deployments": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1062,10 +1069,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -1100,6 +1103,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1110,6 +1114,9 @@
"sites_slots_hostNameBindings": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1126,10 +1133,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -1164,6 +1167,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1174,6 +1178,9 @@
"sites_slots_hybridconnection": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1190,10 +1197,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -1228,6 +1231,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1238,6 +1242,9 @@
"sites_slots_instances_deployments": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1254,10 +1261,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -1292,6 +1295,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1302,6 +1306,9 @@
"sites_slots_premieraddons": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1359,6 +1366,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -1368,6 +1376,9 @@
"sites_slots_virtualNetworkConnections": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1384,10 +1395,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -1432,6 +1439,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1442,6 +1450,9 @@
"sites_slots_virtualNetworkConnections_gateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1458,10 +1469,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -1496,6 +1503,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1506,6 +1514,9 @@
"sites_virtualNetworkConnections": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1522,10 +1533,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -1570,6 +1577,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -1580,6 +1588,9 @@
"sites_virtualNetworkConnections_gateways": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -1596,10 +1607,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -1634,6 +1641,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -2460,6 +2468,9 @@
"hostingEnvironments_workerPools_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -2476,10 +2487,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -2524,6 +2531,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -3496,6 +3504,9 @@
"sites_deployments_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3512,10 +3523,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -3550,6 +3557,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -3560,6 +3568,9 @@
"sites_hostNameBindings_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3576,10 +3587,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -3614,6 +3621,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -3624,6 +3632,9 @@
"sites_hybridconnection_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3640,10 +3651,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -3678,6 +3685,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -3688,6 +3696,9 @@
"sites_premieraddons_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3745,6 +3756,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -3754,6 +3766,9 @@
"sites_slots_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3770,10 +3785,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -3827,6 +3838,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -3837,6 +3849,9 @@
"sites_slots_deployments_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3853,10 +3868,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -3891,6 +3902,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -3901,6 +3913,9 @@
"sites_slots_hostNameBindings_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3917,10 +3932,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -3955,6 +3966,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -3965,6 +3977,9 @@
"sites_slots_hybridconnection_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -3981,10 +3996,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -4019,6 +4030,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -4029,6 +4041,9 @@
"sites_slots_premieraddons_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -4086,6 +4101,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"properties"
@@ -4095,6 +4111,9 @@
"sites_slots_virtualNetworkConnections_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -4111,10 +4130,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -4159,6 +4174,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -4169,6 +4185,9 @@
"sites_slots_virtualNetworkConnections_gateways_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -4185,10 +4204,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -4223,6 +4238,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -4233,6 +4249,9 @@
"sites_virtualNetworkConnections_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -4249,10 +4268,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -4297,6 +4312,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
@@ -4307,6 +4323,9 @@
"sites_virtualNetworkConnections_gateways_childResource": {
"type": "object",
"properties": {
+ "name": {
+ "type": "string"
+ },
"type": {
"type": "string",
"enum": [
@@ -4323,10 +4342,6 @@
"type": "string",
"description": "Resource Id"
},
- "name": {
- "type": "string",
- "description": "Resource Name"
- },
"kind": {
"type": "string",
"description": "Kind of resource"
@@ -4361,6 +4376,7 @@
}
},
"required": [
+ "name",
"type",
"apiVersion",
"location",
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration/certificateOrders.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/certificateOrders.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration/certificateOrders.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/certificateOrders.md
index e18f8eb715..0cf7089e55 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration/certificateOrders.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/certificateOrders.md
@@ -6,10 +6,10 @@ To create a Microsoft.CertificateRegistration/certificateOrders resource, add th
```json
{
+ "name": "string",
"type": "Microsoft.CertificateRegistration/certificateOrders",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -98,10 +98,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.CertificateRegistration/certificateOrders object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.CertificateRegistration/certificateOrders |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -135,10 +135,10 @@ The following tables describe the values you need to set in the schema.
### certificateOrders_certificates_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | certificates |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration/certificateOrders_certificates.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/certificateOrders_certificates.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration/certificateOrders_certificates.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/certificateOrders_certificates.md
index 13d84fa2a8..c09c305c42 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.CertificateRegistration/certificateOrders_certificates.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/certificateOrders_certificates.md
@@ -6,10 +6,10 @@ To create a Microsoft.CertificateRegistration/certificateOrders/certificates res
```json
{
+ "name": "string",
"type": "Microsoft.CertificateRegistration/certificateOrders/certificates",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -28,10 +28,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.CertificateRegistration/certificateOrders/certificates object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.CertificateRegistration/certificateOrders/certificates |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/certificates.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/certificates.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/certificates.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/certificates.md
index e354ff7449..73d1248ff7 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/certificates.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/certificates.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/certificates resource, add the following JSON to the r
```json
{
+ "name": "string",
"type": "Microsoft.Web/certificates",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -46,10 +46,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/certificates object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/certificates |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/csrs.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/csrs.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/csrs.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/csrs.md
index 98f6089199..a43c3568c4 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/csrs.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/csrs.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/csrs resource, add the following JSON to the resources
```json
{
+ "name": "string",
"type": "Microsoft.Web/csrs",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -32,10 +32,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/csrs object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/csrs |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.DomainRegistration/domains.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/domains.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.DomainRegistration/domains.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/domains.md
index d3204dc0de..687e0b0191 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.DomainRegistration/domains.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/domains.md
@@ -6,10 +6,10 @@ To create a Microsoft.DomainRegistration/domains resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.DomainRegistration/domains",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -130,10 +130,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.DomainRegistration/domains object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.DomainRegistration/domains |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/hostingEnvironments.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/hostingEnvironments.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/hostingEnvironments.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/hostingEnvironments.md
index febddd27fc..72ccbb5f01 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/hostingEnvironments.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/hostingEnvironments.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/hostingEnvironments resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Web/hostingEnvironments",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -122,10 +122,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/hostingEnvironments object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/hostingEnvironments |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -176,10 +176,10 @@ The following tables describe the values you need to set in the schema.
### hostingEnvironments_workerPools_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | workerPools |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/hostingEnvironments_workerPools.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/hostingEnvironments_workerPools.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/hostingEnvironments_workerPools.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/hostingEnvironments_workerPools.md
index 8f9d075af7..62fd596fa4 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/hostingEnvironments_workerPools.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/hostingEnvironments_workerPools.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/hostingEnvironments/workerPools resource, add the foll
```json
{
+ "name": "string",
"type": "Microsoft.Web/hostingEnvironments/workerPools",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -39,10 +39,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/hostingEnvironments/workerPools object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/hostingEnvironments/workerPools |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/managedHostingEnvironments.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/managedHostingEnvironments.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/managedHostingEnvironments.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/managedHostingEnvironments.md
index 1dfeddf33e..393e1af2ff 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/managedHostingEnvironments.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/managedHostingEnvironments.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/managedHostingEnvironments resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Web/managedHostingEnvironments",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -119,10 +119,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/managedHostingEnvironments object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/managedHostingEnvironments |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/serverfarms.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/serverfarms.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/serverfarms.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/serverfarms.md
index d7a1cb4b2d..a6209c4d09 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/serverfarms.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/serverfarms.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/serverfarms resource, add the following JSON to the re
```json
{
+ "name": "string",
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -42,10 +42,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/serverfarms object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/serverfarms |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/serverfarms_virtualNetworkConnections_gateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/serverfarms_virtualNetworkConnections_gateways.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/serverfarms_virtualNetworkConnections_gateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/serverfarms_virtualNetworkConnections_gateways.md
index 6fa13a4001..2046e24aab 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/serverfarms_virtualNetworkConnections_gateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/serverfarms_virtualNetworkConnections_gateways.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/serverfarms/virtualNetworkConnections/gateways resourc
```json
{
+ "name": "string",
"type": "Microsoft.Web/serverfarms/virtualNetworkConnections/gateways",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -27,10 +27,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/serverfarms/virtualNetworkConnections/gateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/serverfarms/virtualNetworkConnections/gateways |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/serverfarms_virtualNetworkConnections_routes.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/serverfarms_virtualNetworkConnections_routes.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/serverfarms_virtualNetworkConnections_routes.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/serverfarms_virtualNetworkConnections_routes.md
index 2032dd6796..a883897f91 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/serverfarms_virtualNetworkConnections_routes.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/serverfarms_virtualNetworkConnections_routes.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/serverfarms/virtualNetworkConnections/routes resource,
```json
{
+ "name": "string",
"type": "Microsoft.Web/serverfarms/virtualNetworkConnections/routes",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -29,10 +29,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/serverfarms/virtualNetworkConnections/routes object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/serverfarms/virtualNetworkConnections/routes |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites.md
index ba0772659d..a2572b96bc 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites resource, add the following JSON to the resource
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -209,10 +209,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -248,10 +248,10 @@ The following tables describe the values you need to set in the schema.
### sites_hybridconnection_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | hybridconnection |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -262,6 +262,7 @@ The following tables describe the values you need to set in the schema.
### sites_premieraddons_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | premieraddons |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | Geo region resource belongs to e.g. SouthCentralUS, SouthEastAsia |
@@ -275,10 +276,10 @@ The following tables describe the values you need to set in the schema.
### sites_hostNameBindings_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | hostNameBindings |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -289,10 +290,10 @@ The following tables describe the values you need to set in the schema.
### sites_deployments_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | deployments |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -303,10 +304,10 @@ The following tables describe the values you need to set in the schema.
### sites_slots_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | slots |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -318,10 +319,10 @@ The following tables describe the values you need to set in the schema.
### sites_virtualNetworkConnections_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | virtualNetworkConnections |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -451,10 +452,10 @@ The following tables describe the values you need to set in the schema.
### sites_slots_hybridconnection_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | hybridconnection |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -465,6 +466,7 @@ The following tables describe the values you need to set in the schema.
### sites_slots_premieraddons_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | premieraddons |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | Geo region resource belongs to e.g. SouthCentralUS, SouthEastAsia |
@@ -478,10 +480,10 @@ The following tables describe the values you need to set in the schema.
### sites_slots_hostNameBindings_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | hostNameBindings |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -492,10 +494,10 @@ The following tables describe the values you need to set in the schema.
### sites_slots_deployments_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | deployments |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -519,10 +521,10 @@ The following tables describe the values you need to set in the schema.
### sites_virtualNetworkConnections_gateways_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | gateways |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_deployments.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_deployments.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_deployments.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_deployments.md
index 9894b161da..e80585de07 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_deployments.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_deployments.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/deployments resource, add the following JSON to
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/deployments",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -35,10 +35,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/deployments object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/deployments |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_hostNameBindings.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_hostNameBindings.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_hostNameBindings.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_hostNameBindings.md
index 389c3d4005..6b9e0a6417 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_hostNameBindings.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_hostNameBindings.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/hostNameBindings resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/hostNameBindings",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -32,10 +32,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/hostNameBindings object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/hostNameBindings |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_hybridconnection.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_hybridconnection.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_hybridconnection.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_hybridconnection.md
index 6dc8c576ea..9a4d54b432 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_hybridconnection.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_hybridconnection.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/hybridconnection resource, add the following JSO
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/hybridconnection",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -32,10 +32,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/hybridconnection object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/hybridconnection |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_instances_deployments.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_instances_deployments.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_instances_deployments.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_instances_deployments.md
index abbf746981..c69a6c0b75 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_instances_deployments.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_instances_deployments.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/instances/deployments resource, add the followin
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/instances/deployments",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -35,10 +35,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/instances/deployments object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/instances/deployments |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_premieraddons.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_premieraddons.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_premieraddons.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_premieraddons.md
index dfa87f9813..8fa33103fa 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_premieraddons.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_premieraddons.md
@@ -6,6 +6,7 @@ To create a Microsoft.Web/sites/premieraddons resource, add the following JSON t
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/premieraddons",
"apiVersion": "2015-08-01",
"location": "string",
@@ -35,6 +36,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/premieraddons object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/premieraddons |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | Geo region resource belongs to e.g. SouthCentralUS, SouthEastAsia |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots.md
similarity index 99%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots.md
index bd5bacec6f..779f258c41 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/slots resource, add the following JSON to the re
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/slots",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -209,10 +209,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/slots object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/slots |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -248,10 +248,10 @@ The following tables describe the values you need to set in the schema.
### sites_slots_hybridconnection_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | hybridconnection |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -262,6 +262,7 @@ The following tables describe the values you need to set in the schema.
### sites_slots_premieraddons_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | premieraddons |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | Geo region resource belongs to e.g. SouthCentralUS, SouthEastAsia |
@@ -275,10 +276,10 @@ The following tables describe the values you need to set in the schema.
### sites_slots_hostNameBindings_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | hostNameBindings |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -289,10 +290,10 @@ The following tables describe the values you need to set in the schema.
### sites_slots_deployments_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | deployments |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -303,10 +304,10 @@ The following tables describe the values you need to set in the schema.
### sites_slots_virtualNetworkConnections_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | virtualNetworkConnections |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -449,10 +450,10 @@ The following tables describe the values you need to set in the schema.
### sites_slots_virtualNetworkConnections_gateways_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | gateways |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_deployments.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_deployments.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_deployments.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_deployments.md
index c21196db8d..82dc3523a9 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_deployments.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_deployments.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/slots/deployments resource, add the following JS
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/slots/deployments",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -35,10 +35,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/slots/deployments object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/slots/deployments |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_hostNameBindings.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_hostNameBindings.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_hostNameBindings.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_hostNameBindings.md
index 173d02cac2..3ba64563d2 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_hostNameBindings.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_hostNameBindings.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/slots/hostNameBindings resource, add the followi
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/slots/hostNameBindings",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -32,10 +32,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/slots/hostNameBindings object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/slots/hostNameBindings |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_hybridconnection.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_hybridconnection.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_hybridconnection.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_hybridconnection.md
index 95c19da42d..93e7181935 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_hybridconnection.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_hybridconnection.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/slots/hybridconnection resource, add the followi
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/slots/hybridconnection",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -32,10 +32,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/slots/hybridconnection object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/slots/hybridconnection |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_instances_deployments.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_instances_deployments.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_instances_deployments.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_instances_deployments.md
index f5f007089a..727e2fa82c 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_instances_deployments.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_instances_deployments.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/slots/instances/deployments resource, add the fo
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/slots/instances/deployments",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -35,10 +35,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/slots/instances/deployments object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/slots/instances/deployments |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_premieraddons.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_premieraddons.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_premieraddons.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_premieraddons.md
index dc99bf7f67..3688b1780b 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_premieraddons.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_premieraddons.md
@@ -6,6 +6,7 @@ To create a Microsoft.Web/sites/slots/premieraddons resource, add the following
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/slots/premieraddons",
"apiVersion": "2015-08-01",
"location": "string",
@@ -35,6 +36,7 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/slots/premieraddons object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/slots/premieraddons |
| apiVersion | enum | Yes | 2015-08-01 |
| location | string | No | Geo region resource belongs to e.g. SouthCentralUS, SouthEastAsia |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_virtualNetworkConnections.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_virtualNetworkConnections.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_virtualNetworkConnections.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_virtualNetworkConnections.md
index 457b2117cc..b3fa6a2ac3 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_virtualNetworkConnections.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_virtualNetworkConnections.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/slots/virtualNetworkConnections resource, add th
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/slots/virtualNetworkConnections",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -49,10 +49,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/slots/virtualNetworkConnections object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/slots/virtualNetworkConnections |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -77,10 +77,10 @@ The following tables describe the values you need to set in the schema.
### sites_slots_virtualNetworkConnections_gateways_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | gateways |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_virtualNetworkConnections_gateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_virtualNetworkConnections_gateways.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_virtualNetworkConnections_gateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_virtualNetworkConnections_gateways.md
index 00655bb19d..3640079d82 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_slots_virtualNetworkConnections_gateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_slots_virtualNetworkConnections_gateways.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/slots/virtualNetworkConnections/gateways resourc
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/slots/virtualNetworkConnections/gateways",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -27,10 +27,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/slots/virtualNetworkConnections/gateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/slots/virtualNetworkConnections/gateways |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_virtualNetworkConnections.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_virtualNetworkConnections.md
similarity index 98%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_virtualNetworkConnections.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_virtualNetworkConnections.md
index e96113ac7c..3b105297b6 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_virtualNetworkConnections.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_virtualNetworkConnections.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/virtualNetworkConnections resource, add the foll
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/virtualNetworkConnections",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -49,10 +49,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/virtualNetworkConnections object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/virtualNetworkConnections |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
@@ -77,10 +77,10 @@ The following tables describe the values you need to set in the schema.
### sites_virtualNetworkConnections_gateways_childResource object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | gateways |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_virtualNetworkConnections_gateways.md b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_virtualNetworkConnections_gateways.md
similarity index 97%
rename from src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_virtualNetworkConnections_gateways.md
rename to src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_virtualNetworkConnections_gateways.md
index 9683196b1a..d3a46f2d4b 100644
--- a/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/Microsoft.Web/sites_virtualNetworkConnections_gateways.md
+++ b/src/generator/AutoRest.AzureResourceSchema.Tests/Expected/Web/2015-08-01/sites_virtualNetworkConnections_gateways.md
@@ -6,10 +6,10 @@ To create a Microsoft.Web/sites/virtualNetworkConnections/gateways resource, add
```json
{
+ "name": "string",
"type": "Microsoft.Web/sites/virtualNetworkConnections/gateways",
"apiVersion": "2015-08-01",
"id": "string",
- "name": "string",
"kind": "string",
"location": "string",
"tags": {},
@@ -27,10 +27,10 @@ The following tables describe the values you need to set in the schema.
### Microsoft.Web/sites/virtualNetworkConnections/gateways object
| Name | Type | Required | Value |
| ---- | ---- | ---- | ---- |
+| name | string | Yes | |
| type | enum | Yes | Microsoft.Web/sites/virtualNetworkConnections/gateways |
| apiVersion | enum | Yes | 2015-08-01 |
| id | string | No | Resource Id |
-| name | string | No | Resource Name |
| kind | string | No | Kind of resource |
| location | string | Yes | Resource Location |
| tags | object | No | Resource tags |
diff --git a/src/generator/AutoRest.AzureResourceSchema/CodeGeneratorArs.cs b/src/generator/AutoRest.AzureResourceSchema/CodeGeneratorArs.cs
index 9f8ad6f265..e8065c926a 100644
--- a/src/generator/AutoRest.AzureResourceSchema/CodeGeneratorArs.cs
+++ b/src/generator/AutoRest.AzureResourceSchema/CodeGeneratorArs.cs
@@ -29,7 +29,7 @@ public override async Task Generate(CodeModel serviceClient)
{
StringWriter stringWriter = new StringWriter();
ResourceSchemaWriter.Write(stringWriter, resourceSchemas[resourceProvider]);
- await Write(stringWriter.ToString(), resourceProvider + Path.DirectorySeparatorChar + resourceProvider + ".json", true);
+ await Write(stringWriter.ToString(), resourceProvider + ".json", true);
stringWriter = new StringWriter();
var md = ResourceMarkdownGenerator.Generate(resourceSchemas[resourceProvider]);
@@ -37,27 +37,9 @@ public override async Task Generate(CodeModel serviceClient)
foreach (var m in md)
{
var content = m.Content.Replace("\"boolean\"", "boolean");
- await Write(content, EnsureUniqueFileName(resourceProvider, m.Type + ".md"), false);
+ await Write(content, m.Type + ".md", false);
}
}
}
-
- private string EnsureUniqueFileName(string subdir, string fileName)
- {
- int i = 0;
- var filePath = Path.Combine(Settings.Instance.OutputDirectory, subdir, fileName);
- while (File.Exists(filePath))
- {
- var name = Path.GetFileNameWithoutExtension(fileName);
- var ext = Path.GetExtension(fileName);
-
- fileName = string.Format("{0}{1}{2}{3}{4}", subdir, Path.DirectorySeparatorChar, name, i, ext);
- filePath = Path.Combine(Settings.Instance.OutputDirectory, subdir, fileName);
-
- ++i;
- }
-
- return string.Format("{0}{1}{2}", subdir, Path.DirectorySeparatorChar, fileName);
- }
}
}
diff --git a/src/generator/AutoRest.AzureResourceSchema/Markdown/InlineLink.cs b/src/generator/AutoRest.AzureResourceSchema/Markdown/InlineLink.cs
index 14430a3c15..9a455e640a 100644
--- a/src/generator/AutoRest.AzureResourceSchema/Markdown/InlineLink.cs
+++ b/src/generator/AutoRest.AzureResourceSchema/Markdown/InlineLink.cs
@@ -27,7 +27,7 @@ public override string ToMarkdown()
if (!_dest.StartsWith("http", StringComparison.OrdinalIgnoreCase))
return $"[{_s}](#{_dest})";
else
- return $"[{_s}]({_dest})";
+ return $"[{_s}](#{_dest})";
}
}
}
diff --git a/src/generator/AutoRest.AzureResourceSchema/ResourceMarkdownGenerator.cs b/src/generator/AutoRest.AzureResourceSchema/ResourceMarkdownGenerator.cs
index b2dc683c83..605eea6163 100644
--- a/src/generator/AutoRest.AzureResourceSchema/ResourceMarkdownGenerator.cs
+++ b/src/generator/AutoRest.AzureResourceSchema/ResourceMarkdownGenerator.cs
@@ -162,7 +162,8 @@ private IReadOnlyList CreateTables(string header, JsonSchema js
var table = new Table(new[] { "Name", "Type", "Required", "Value" });
// add a table row for each property in the schema
- foreach (var prop in schema.Item2.Properties)
+ var props = FlattenProperties(schema.Item2);
+ foreach (var prop in props)
{
// type name
var typeName = GetValueTypeName(prop.Value);
@@ -213,7 +214,7 @@ private IReadOnlyList CreateTables(string header, JsonSchema js
// there are a handful of objects with null properties because the properties
// are all read-only. for now just skip them to avoid a crash during table creation.
- if (refSchema.Properties != null && !visited.Contains(values[i]))
+ if (HasAdditionalProps(refSchema) && !visited.Contains(values[i]))
{
// add type to the queue so a table for the type is generated
schemas.Enqueue(new TableQueueEntry(values[i], refSchema));
@@ -234,6 +235,19 @@ private IReadOnlyList CreateTables(string header, JsonSchema js
return tables;
}
+ ///
+ /// Returns true if a schema contains properties.
+ ///
+ /// The JSON schema.
+ /// True if the schema contains properties.
+ private bool HasAdditionalProps(JsonSchema jsonSchema)
+ {
+ return
+ jsonSchema.AllOf != null ||
+ jsonSchema.AnyOf != null ||
+ jsonSchema.Properties != null;
+ }
+
///
/// Returns the name of the specified JSON type.
///
@@ -403,10 +417,10 @@ private JToken JsonSchemaToJTokenImpl(string propName, JsonSchema jsonSchema, St
else if (jsonSchema.JsonType == "object")
{
var jobj = new JObject();
- if (jsonSchema.Properties != null)
+ var props = FlattenProperties(jsonSchema);
+ foreach (var prop in props)
{
- foreach (var prop in jsonSchema.Properties)
- jobj.Add(JsonSchemaToJTokenImpl(prop.Key, prop.Value, stack));
+ jobj.Add(JsonSchemaToJTokenImpl(prop.Key, prop.Value, stack));
}
if (propName != null)
@@ -436,5 +450,46 @@ private JToken JsonSchemaToJTokenImpl(string propName, JsonSchema jsonSchema, St
return new JValue(val);
}
}
+
+ ///
+ /// Flattens properties in the AllOf and Properties sections into one list.
+ ///
+ /// The JSON schema.
+ /// A dictionary of all possible properties.
+ private IDictionary FlattenProperties(JsonSchema jsonSchema)
+ {
+ var merged = new Dictionary();
+ FlattenPropertiesImpl(merged, new[] { jsonSchema });
+
+ return merged;
+ }
+
+ ///
+ /// Recursively flattens properties in the AllOf and Properties sections into one list (don't call this one call FlattenProperties).
+ ///
+ /// The dictionary to contain the merged content.
+ /// The items to merge into the dictionary.
+ private void FlattenPropertiesImpl(Dictionary merged, IEnumerable items)
+ {
+ foreach (var item in items)
+ {
+ if (item.AllOf != null)
+ {
+ FlattenPropertiesImpl(merged, item.AllOf);
+ }
+ else if (item.Properties != null)
+ {
+ foreach (var prop in item.Properties)
+ {
+ merged.Add(prop.Key, prop.Value);
+ }
+ }
+ else if (item.Ref != null)
+ {
+ var schema = ResolveDefinitionRef(item.Ref);
+ FlattenPropertiesImpl(merged, new[] { schema });
+ }
+ }
+ }
}
}
diff --git a/src/generator/AutoRest.AzureResourceSchema/ResourceSchemaParser.cs b/src/generator/AutoRest.AzureResourceSchema/ResourceSchemaParser.cs
index bc252bd50f..56d89dccf2 100644
--- a/src/generator/AutoRest.AzureResourceSchema/ResourceSchemaParser.cs
+++ b/src/generator/AutoRest.AzureResourceSchema/ResourceSchemaParser.cs
@@ -81,8 +81,28 @@ public static IDictionary Parse(CodeModel serviceClient)
{
JsonSchema resourceDefinition = new JsonSchema();
resourceDefinition.JsonType = "object";
-
resourceDefinition.ResourceType = resourceType;
+
+ // get the resource name parameter, e.g. {fooName}
+ var resNameParam = methodUrlPathAfterProvider.Substring(methodUrlPathAfterProvider.LastIndexOf('/') + 1);
+ if (IsPathVariable(resNameParam))
+ {
+ // strip the enclosing braces
+ resNameParam = resNameParam.Trim(new[] { '{', '}' });
+
+ // look up the type
+ var param = method.Parameters.Where(p => p.Name == resNameParam).FirstOrDefault();
+ if (param != null)
+ {
+ // create a schema for it
+ var nameParamSchema = ParseType(param.ClientProperty, param.ModelType, resourceSchema.Definitions, serviceClient.ModelTypes);
+ nameParamSchema.ResourceType = resNameParam;
+
+ // add it as the name property
+ resourceDefinition.AddProperty("name", nameParamSchema, true);
+ }
+ }
+
resourceDefinition.AddProperty("type", JsonSchema.CreateStringEnum(resourceType), true);
resourceDefinition.AddProperty("apiVersion", JsonSchema.CreateStringEnum(apiVersion), true);