diff --git a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/Agreements.json b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/Agreements.json index 5cff9c5eb3d4..2566c843184b 100644 --- a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/Agreements.json +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/Agreements.json @@ -70,6 +70,13 @@ "$ref": "#/definitions/AgreementTerms" } }, + "415": { + "description": "Unsupported Media Type", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/UnsupportedMediaTypeErrorResponse" + } + }, "default": { "description": "Microsoft.MarketplaceOrdering error response describing why the operation failed.", "schema": { @@ -122,6 +129,13 @@ "$ref": "#/definitions/AgreementTerms" } }, + "415": { + "description": "Unsupported Media Type", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/UnsupportedMediaTypeErrorResponse" + } + }, "default": { "description": "Microsoft.MarketplaceOrdering error response describing why the operation failed.", "schema": { @@ -150,6 +164,13 @@ "$ref": "#/definitions/OperationListResult" } }, + "415": { + "description": "Unsupported Media Type", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/UnsupportedMediaTypeErrorResponse" + } + }, "default": { "description": "Microsoft.MarketplaceOrdering error response describing why the operation failed.", "schema": { @@ -195,6 +216,13 @@ "$ref": "#/definitions/OldAgreementTerms" } }, + "415": { + "description": "Unsupported Media Type", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/UnsupportedMediaTypeErrorResponse" + } + }, "default": { "description": "Microsoft.MarketplaceOrdering error response describing why the operation failed.", "schema": { @@ -237,6 +265,13 @@ "$ref": "#/definitions/OldAgreementTerms" } }, + "415": { + "description": "Unsupported Media Type", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/UnsupportedMediaTypeErrorResponse" + } + }, "default": { "description": "Microsoft.MarketplaceOrdering error response describing why the operation failed.", "schema": { @@ -279,6 +314,13 @@ "$ref": "#/definitions/OldAgreementTerms" } }, + "415": { + "description": "Unsupported Media Type", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/UnsupportedMediaTypeErrorResponse" + } + }, "default": { "description": "Microsoft.MarketplaceOrdering error response describing why the operation failed.", "schema": { @@ -312,6 +354,13 @@ "$ref": "#/definitions/AgreementTermsList" } }, + "415": { + "description": "Unsupported Media Type", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/UnsupportedMediaTypeErrorResponse" + } + }, "default": { "description": "Microsoft.MarketplaceOrdering error response describing why the operation failed.", "schema": { @@ -386,12 +435,13 @@ "description": "The value of the array.", "type": "array", "items": { - "$ref": "#/definitions/AgreementTerms" + "$ref": "#/definitions/OldAgreementTerms" } } } }, "AgreementTerms": { + "type": "object", "properties": { "properties": { "$ref": "#/definitions/AgreementProperties", @@ -407,6 +457,7 @@ "description": "Terms properties for provided Publisher/Offer/Plan tuple" }, "AgreementProperties": { + "type": "object", "properties": { "publisher": { "type": "string", @@ -500,20 +551,30 @@ }, "description": "Old Agreement Terms definition" }, + "UnsupportedMediaTypeErrorResponse": { + "description": "Error response that indicates the media type in the request is unsupported.", + "type": "object", + "properties": { + "Message": { + "type": "string", + "description": "The details of the error." + } + } + }, "ErrorResponse": { "description": "Error response indicates Microsoft.MarketplaceOrdering service is not able to process the incoming request. The reason is provided in the error message.", "type": "object", "properties": { - "Error": { + "error": { "type": "object", "description": "The details of the error.", "properties": { - "Code": { + "code": { "description": "Error code.", "type": "string", "readOnly": true }, - "Message": { + "message": { "description": "Error message indicating why the operation failed.", "type": "string", "readOnly": true @@ -532,6 +593,7 @@ }, "display": { "description": "The object that represents the operation.", + "type": "object", "properties": { "provider": { "description": "Service provider: Microsoft.MarketplaceOrdering", @@ -555,9 +617,11 @@ }, "OperationListResult": { "description": "Result of the request to list MarketplaceOrdering operations. It contains a list of operations and a URL link to get the next set of results.", + "type": "object", "properties": { "value": { "type": "array", + "uniqueItems": false, "items": { "$ref": "#/definitions/Operation" }, @@ -572,6 +636,7 @@ }, "Resource": { "description": "ARM resource.", + "type": "object", "properties": { "id": { "readOnly": true, diff --git a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/CancelMarketplaceTerms.json b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/CancelMarketplaceTerms.json index d6de9dfb7201..e45b6c83751b 100644 --- a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/CancelMarketplaceTerms.json +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/CancelMarketplaceTerms.json @@ -21,6 +21,11 @@ "state": "Canceled" } } + }, + "415": { + "body": { + "Message": "media type unsupported" + } } } } diff --git a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetAgreementMarketplaceTerms.json b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetAgreementMarketplaceTerms.json index d6de9dfb7201..e45b6c83751b 100644 --- a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetAgreementMarketplaceTerms.json +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetAgreementMarketplaceTerms.json @@ -21,6 +21,11 @@ "state": "Canceled" } } + }, + "415": { + "body": { + "Message": "media type unsupported" + } } } } diff --git a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetMarketplaceTerms.json b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetMarketplaceTerms.json index 1c8b01a0329a..95b51e760a59 100644 --- a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetMarketplaceTerms.json +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetMarketplaceTerms.json @@ -24,6 +24,11 @@ "accepted": true } } + }, + "415": { + "body": { + "Message": "media type unsupported" + } } } } diff --git a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/ListMarketplaceTerms.json b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/ListMarketplaceTerms.json index 8e51d7f75001..2e5c80bf94bc 100644 --- a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/ListMarketplaceTerms.json +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/ListMarketplaceTerms.json @@ -13,17 +13,19 @@ "type": "Microsoft.MarketplaceOrdering/offertypes", "properties": { "publisher": "pubid", - "product": "offid", - "plan": "planid", - "licenseTextLink": "test.licenseLink", - "privacyPolicyLink": "test.privacyPolicyLink", - "retrieveDatetime": "2017-08-15T11:33:07.12132Z", - "signature": "ASDFSDAFWEFASDGWERLWER", - "accepted": true + "offer": "offid", + "signDate": "2019-04-26T05:57:25.3013164Z", + "cancelDate": "2019-04-27T05:57:25.3013164Z", + "state": "Active" } } ] } + }, + "415": { + "body": { + "Message": "media type unsupported" + } } } } diff --git a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SetMarketplaceTerms.json b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SetMarketplaceTerms.json index cc1cbbdbb02e..2a12ce8d3143 100644 --- a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SetMarketplaceTerms.json +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SetMarketplaceTerms.json @@ -37,6 +37,11 @@ "accepted": true } } + }, + "415": { + "body": { + "Message": "media type unsupported" + } } } } diff --git a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SignMarketplaceTerms.json b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SignMarketplaceTerms.json index d6de9dfb7201..e45b6c83751b 100644 --- a/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SignMarketplaceTerms.json +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SignMarketplaceTerms.json @@ -21,6 +21,11 @@ "state": "Canceled" } } + }, + "415": { + "body": { + "Message": "media type unsupported" + } } } } diff --git a/specification/marketplaceordering/resource-manager/readme.md b/specification/marketplaceordering/resource-manager/readme.md index 97a75484d98f..1ec1afdcc45e 100644 --- a/specification/marketplaceordering/resource-manager/readme.md +++ b/specification/marketplaceordering/resource-manager/readme.md @@ -67,6 +67,11 @@ These settings apply only when `--tag=package-2015-06-01` is specified on the co ``` yaml $(tag) == 'package-2015-06-01' input-file: - Microsoft.MarketplaceOrdering/stable/2015-06-01/Agreements.json +directive: + # suppress each RPC 3016 error +- where: $.definitions.UnsupportedMediaTypeErrorResponse.properties.Message + suppress: R3016 + reason: This requires a change in code thats in production for several years ```