From cb8deed519b964befcee0265ffd10b82fb55832e Mon Sep 17 00:00:00 2001 From: Renuka Raju Date: Wed, 2 Jun 2021 20:47:08 -0700 Subject: [PATCH 1/3] 2021-01-01 minor updates and swagger correctness --- .../stable/2021-01-01/peering.json | 109 +++++++++++++++++- 1 file changed, 105 insertions(+), 4 deletions(-) diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2021-01-01/peering.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2021-01-01/peering.json index 652e7b1eddf3..cdd69a9e4169 100644 --- a/specification/peering/resource-manager/Microsoft.Peering/stable/2021-01-01/peering.json +++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2021-01-01/peering.json @@ -62,7 +62,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/CheckServiceProviderAvailability": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/checkServiceProviderAvailability": { "post": { "tags": [ "CheckServiceProviderAvailability" @@ -422,7 +422,8 @@ "Cdn", "Internal", "Ix", - "IxRs" + "IxRs", + "Voice" ] }, { @@ -2166,6 +2167,7 @@ "Premium" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "tier", "modelAsString": true @@ -2178,6 +2180,7 @@ "Exchange" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "family", "modelAsString": true @@ -2191,6 +2194,7 @@ "Unlimited" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "size", "modelAsString": true @@ -2259,7 +2263,8 @@ "Cdn", "Internal", "Ix", - "IxRs" + "IxRs", + "Voice" ], "type": "string", "x-ms-enum": { @@ -2537,6 +2542,12 @@ "description": "The flag that indicates whether the operation applies to data plane.", "type": "boolean", "readOnly": true + }, + "properties": { + "$ref": "#/definitions/OperationProperties", + "description": "The properties of the operation.", + "readOnly": true, + "x-ms-client-flatten": true } } }, @@ -2566,6 +2577,94 @@ } } }, + "OperationProperties": { + "description": "The properties of the operation.", + "type": "object", + "properties": { + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification", + "description": "Service specification payload.", + "readOnly": true + } + } + }, + "ServiceSpecification": { + "description": "Service specification payload.", + "type": "object", + "properties": { + "metricSpecifications": { + "description": "Specifications of the Metrics for Azure Monitoring.", + "type": "array", + "items": { + "$ref": "#/definitions/MetricSpecification" + }, + "readOnly": true + } + } + }, + "MetricSpecification": { + "description": "Specifications of the Metrics for Azure Monitoring.", + "type": "object", + "properties": { + "name": { + "description": "Name of the metric.", + "type": "string", + "readOnly": true + }, + "displayName": { + "description": "Localized friendly display name of the metric.", + "type": "string", + "readOnly": true + }, + "displayDescription": { + "description": "Localized friendly description of the metric.", + "type": "string", + "readOnly": true + }, + "unit": { + "description": "Unit that makes sense for the metric.", + "type": "string", + "readOnly": true + }, + "aggregationType": { + "description": "Aggregation type will be set to one of the values: Average, Minimum, Maximum, Total, Count.", + "type": "string", + "readOnly": true + }, + "supportedTimeGrainTypes": { + "description": "Supported time grain types for the metric.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "dimensions": { + "description": "Dimensions of the metric.", + "type": "array", + "items": { + "$ref": "#/definitions/MetricDimension" + }, + "readOnly": true + } + } + }, + "MetricDimension": { + "description": "Dimensions of the metric.", + "type": "object", + "properties": { + "name": { + "description": "Name of the dimension.", + "type": "string", + "readOnly": true + }, + "displayName": { + "description": "Localized friendly display name of the dimension.", + "type": "string", + "readOnly": true + } + } + }, "PeerAsn": { "description": "The essential information related to the peer's ASN.", "type": "object", @@ -2611,6 +2710,7 @@ "Failed" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "validationState", "modelAsString": true @@ -2790,7 +2890,8 @@ "Cdn", "Internal", "Ix", - "IxRs" + "IxRs", + "Voice" ], "type": "string", "x-ms-enum": { From c82862971743916298c1f4aceed4f725ced61d61 Mon Sep 17 00:00:00 2001 From: Renuka Raju Date: Mon, 7 Jun 2021 12:25:23 -0700 Subject: [PATCH 2/3] Reverting swagger correctness changes --- .../stable/2021-01-01/peering.json | 100 +----------------- 1 file changed, 1 insertion(+), 99 deletions(-) diff --git a/specification/peering/resource-manager/Microsoft.Peering/stable/2021-01-01/peering.json b/specification/peering/resource-manager/Microsoft.Peering/stable/2021-01-01/peering.json index cdd69a9e4169..0d0f595e9d3f 100644 --- a/specification/peering/resource-manager/Microsoft.Peering/stable/2021-01-01/peering.json +++ b/specification/peering/resource-manager/Microsoft.Peering/stable/2021-01-01/peering.json @@ -62,7 +62,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/checkServiceProviderAvailability": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Peering/CheckServiceProviderAvailability": { "post": { "tags": [ "CheckServiceProviderAvailability" @@ -2167,7 +2167,6 @@ "Premium" ], "type": "string", - "readOnly": true, "x-ms-enum": { "name": "tier", "modelAsString": true @@ -2180,7 +2179,6 @@ "Exchange" ], "type": "string", - "readOnly": true, "x-ms-enum": { "name": "family", "modelAsString": true @@ -2194,7 +2192,6 @@ "Unlimited" ], "type": "string", - "readOnly": true, "x-ms-enum": { "name": "size", "modelAsString": true @@ -2542,12 +2539,6 @@ "description": "The flag that indicates whether the operation applies to data plane.", "type": "boolean", "readOnly": true - }, - "properties": { - "$ref": "#/definitions/OperationProperties", - "description": "The properties of the operation.", - "readOnly": true, - "x-ms-client-flatten": true } } }, @@ -2577,94 +2568,6 @@ } } }, - "OperationProperties": { - "description": "The properties of the operation.", - "type": "object", - "properties": { - "serviceSpecification": { - "$ref": "#/definitions/ServiceSpecification", - "description": "Service specification payload.", - "readOnly": true - } - } - }, - "ServiceSpecification": { - "description": "Service specification payload.", - "type": "object", - "properties": { - "metricSpecifications": { - "description": "Specifications of the Metrics for Azure Monitoring.", - "type": "array", - "items": { - "$ref": "#/definitions/MetricSpecification" - }, - "readOnly": true - } - } - }, - "MetricSpecification": { - "description": "Specifications of the Metrics for Azure Monitoring.", - "type": "object", - "properties": { - "name": { - "description": "Name of the metric.", - "type": "string", - "readOnly": true - }, - "displayName": { - "description": "Localized friendly display name of the metric.", - "type": "string", - "readOnly": true - }, - "displayDescription": { - "description": "Localized friendly description of the metric.", - "type": "string", - "readOnly": true - }, - "unit": { - "description": "Unit that makes sense for the metric.", - "type": "string", - "readOnly": true - }, - "aggregationType": { - "description": "Aggregation type will be set to one of the values: Average, Minimum, Maximum, Total, Count.", - "type": "string", - "readOnly": true - }, - "supportedTimeGrainTypes": { - "description": "Supported time grain types for the metric.", - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true - }, - "dimensions": { - "description": "Dimensions of the metric.", - "type": "array", - "items": { - "$ref": "#/definitions/MetricDimension" - }, - "readOnly": true - } - } - }, - "MetricDimension": { - "description": "Dimensions of the metric.", - "type": "object", - "properties": { - "name": { - "description": "Name of the dimension.", - "type": "string", - "readOnly": true - }, - "displayName": { - "description": "Localized friendly display name of the dimension.", - "type": "string", - "readOnly": true - } - } - }, "PeerAsn": { "description": "The essential information related to the peer's ASN.", "type": "object", @@ -2710,7 +2613,6 @@ "Failed" ], "type": "string", - "readOnly": true, "x-ms-enum": { "name": "validationState", "modelAsString": true From 1620e2766ecb1b58bec091aa5fa6ecbbd52a58e7 Mon Sep 17 00:00:00 2001 From: Renuka Raju Date: Mon, 7 Jun 2021 22:23:14 -0700 Subject: [PATCH 3/3] combining multiapi section in readmego --- .../peering/resource-manager/readme.go.md | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/specification/peering/resource-manager/readme.go.md b/specification/peering/resource-manager/readme.go.md index d5d686f9126e..649b1ce75ab3 100644 --- a/specification/peering/resource-manager/readme.go.md +++ b/specification/peering/resource-manager/readme.go.md @@ -14,30 +14,10 @@ go: ``` yaml $(go) && $(multiapi) batch: - tag: package-2021-01-01 -``` -or -``` yaml $(go) && $(multiapi) -batch: - tag: package-2020-10-01 -``` -or -``` yaml $(go) && $(multiapi) -batch: - tag: package-2020-04-01 -``` -or -``` yaml $(go) && $(multiapi) -batch: - tag: package-2020-01-01-preview -``` -or -``` yaml $(go) && $(multiapi) -batch: - tag: package-2019-09-01-preview -``` -or -``` yaml $(go) && $(multiapi) -batch: - tag: package-2019-08-01-preview ```