diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/checkDnsAvailability.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/checkDnsAvailability.json index bae218fe307a..90fa3c6326df 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/checkDnsAvailability.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/checkDnsAvailability.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/expressRouteCircuit.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/expressRouteCircuit.json index 221cf836ffaf..f2d2a9480e9e 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/expressRouteCircuit.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/expressRouteCircuit.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { @@ -1670,11 +1668,11 @@ "age": { "type": "integer", "format": "int32", - "description": "Age" + "description": "Entry age in minutes" }, "interface": { "type": "string", - "description": "Interface" + "description": "Interface address" }, "ipAddress": { "type": "string", @@ -1707,24 +1705,24 @@ "properties": { "network": { "type": "string", - "description": "network" + "description": "IP address of a network entity" }, "nextHop": { "type": "string", - "description": "nextHop" + "description": "NextHop address" }, "locPrf": { "type": "string", - "description": "locPrf" + "description": "Local preference value as set with the set local-preference route-map configuration command" }, "weight": { "type": "integer", "format": "int32", - "description": "weight." + "description": "Route Weight." }, "path": { "type": "string", - "description": "path" + "description": "Autonomous system paths to the destination network." } }, "description": "The routes table associated with the ExpressRouteCircuit" @@ -1749,7 +1747,7 @@ "properties": { "neighbor": { "type": "string", - "description": "Neighbor" + "description": "IP address of the neighbor." }, "v": { "type": "integer", diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/expressRouteCrossConnection.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/expressRouteCrossConnection.json index 0f8a9327e184..86cebb4bce5a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/expressRouteCrossConnection.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/expressRouteCrossConnection.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/loadBalancer.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/loadBalancer.json index d9c59926573c..253caf157f1f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/loadBalancer.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/loadBalancer.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/network.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/network.json index 01991fd91e45..c8b0a516f0db 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/network.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/network.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkInterface.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkInterface.json index 4eb38d45cc19..5d14c7a4ceff 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkInterface.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkInterface.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkSecurityGroup.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkSecurityGroup.json index c0419208eb19..ef5266341b35 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkSecurityGroup.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkSecurityGroup.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkWatcher.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkWatcher.json index b84a54236cb1..e34b3440d143 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkWatcher.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/networkWatcher.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/publicIpAddress.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/publicIpAddress.json index 376c03b49356..7b0a126fd9f8 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/publicIpAddress.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/publicIpAddress.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/routeTable.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/routeTable.json index 0c8c4651f5f2..19d4352c95dc 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/routeTable.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/routeTable.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/usage.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/usage.json index 784bd6481af8..ee77427646d9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/usage.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/usage.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/virtualNetwork.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/virtualNetwork.json index bf754b527ff8..98a46f3d4796 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/virtualNetwork.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/virtualNetwork.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/virtualNetworkGateway.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/virtualNetworkGateway.json index 8a1896cdaa7a..78738db0f338 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/virtualNetworkGateway.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/virtualNetworkGateway.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/vmssNetworkInterface.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/vmssNetworkInterface.json index 7c2102267ab4..274762b6147f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/vmssNetworkInterface.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/vmssNetworkInterface.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { @@ -395,6 +393,13 @@ "required": true, "type": "string", "description": "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version." } } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/vmssPublicIpAddress.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/vmssPublicIpAddress.json index 2b352004b7ea..c28e7e415513 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/vmssPublicIpAddress.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-05-01/vmssPublicIpAddress.json @@ -10,12 +10,10 @@ "https" ], "consumes": [ - "application/json", - "text/json" + "application/json" ], "produces": [ - "application/json", - "text/json" + "application/json" ], "security": [ { @@ -256,6 +254,13 @@ "required": true, "type": "string", "description": "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version." } } } diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 03991c60f5e7..edbd19be5a0f 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -409,6 +409,96 @@ input-file: - Microsoft.Network/preview/2015-05-01-preview/network.json ``` +## Suppression +``` yaml +directive: + - suppress: RequiredPropertiesMissingInResourceModel + from: applicationGateway.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: applicationSecurityGroup.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: checkDnsAvailability.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: ddosProtectionPlan.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: endpointService.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: expressRouteCircuit.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: expressRouteCrossConnection.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: loadBalancer.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: networkInterface.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: networkSecurityGroup.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: networkWatcher.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: operation.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: publicIpAddress.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: routeFilter.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: routeTable.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: serviceCommunity.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: usage.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: virtualNetwork.json + reason: name, id and type properties are inherited from the upper level + - suppress: RequiredPropertiesMissingInResourceModel + from: virtualNetworkGateway.json + reason: name, id and type properties are inherited from the upper level + - suppress: TrackedResourceListByImmediateParent + reason: Another list APIs naming approach is used over the specs + - suppress: EnumInsteadOfBoolean + reason: Booleans are used by networking APIs + - suppress: GetInOperationName + where: $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability"].get.operationId + reason: Customized verb is used for API + - suppress: GetInOperationName + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability"].get.operationId + reason: Customized verb is used for API + - suppress: PutInOperationName + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey"].put.operationId + reason: Customized verb is used for API + - suppress: PostOperationIdContainsUrlVerb + from: networkWatcher.json + reason: Customized verbs are used for API + - suppress: PostOperationIdContainsUrlVerb + from: expressRouteCircuit.json + reason: Customized verbs are used for API + - suppress: PostOperationIdContainsUrlVerb + from: expressRouteCrossConnection.json + reason: Customized verbs are used for API + - suppress: OperationIdNounVerb + from: vmssPublicIpAddress.json + reason: VMSS specs have custom naming + - suppress: OperationIdNounVerb + from: vmssNetworkInterface.json + reason: VMSS specs have custom naming +``` + --- # Code Generation