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 a2644211529e..6d432857774d 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 @@ -155,6 +155,156 @@ "nextLinkName": "nextLink" } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/sign": { + "put": { + "operationId": "MarketplaceAgreements_Sign", + "description": "Sign marketplace terms.", + "x-ms-examples": { + "SetMarketplaceTerms": { + "$ref": "./examples/SignMarketplaceTerms.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PublishersParameter" + }, + { + "$ref": "#/parameters/OffersParameter" + }, + { + "$ref": "#/parameters/PlansParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request was successfully processed and the terms were accepted.", + "schema": { + "$ref": "#/definitions/AgreementTerms" + } + }, + "default": { + "description": "Microsoft.MarketplaceOrdering error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}/cancel": { + "put": { + "operationId": "MarketplaceAgreements_Cancel", + "description": "Cancel marketplace terms.", + "x-ms-examples": { + "SetMarketplaceTerms": { + "$ref": "./examples/CancelMarketplaceTerms.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PublishersParameter" + }, + { + "$ref": "#/parameters/OffersParameter" + }, + { + "$ref": "#/parameters/PlansParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request was successfully processed and the terms were rejected.", + "schema": { + "$ref": "#/definitions/AgreementTerms" + } + }, + "default": { + "description": "Microsoft.MarketplaceOrdering error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements/{publisherId}/offers/{offerId}/plans/{planId}": { + "get": { + "operationId": "MarketplaceAgreements_GetAgreement", + "description": "Get marketplace agreement.", + "x-ms-examples": { + "SetMarketplaceTerms": { + "$ref": "./examples/GetAgreementMarketplaceTerms.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/PublishersParameter" + }, + { + "$ref": "#/parameters/OffersParameter" + }, + { + "$ref": "#/parameters/PlansParameter" + } + ], + "responses": { + "200": { + "description": "Terms returned successfully", + "schema": { + "$ref": "#/definitions/AgreementTerms" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.MarketplaceOrdering/agreements": { + "get": { + "operationId": "MarketplaceAgreements_List", + "description": "List marketplace agreements in the subscription.", + "x-ms-examples": { + "SetMarketplaceTerms": { + "$ref": "./examples/ListMarketplaceTerms.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Terms returned successfully", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/AgreementTerms" + } + } + } + } + } } }, "parameters": { @@ -353,4 +503,4 @@ "x-ms-azure-resource": true } } -} \ No newline at end of file +} 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 new file mode 100644 index 000000000000..ac515ee654e9 --- /dev/null +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/CancelMarketplaceTerms.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2016-04-01", + "subscriptionId": "subid", + "publisherId": "pubid", + "offerId": "offid", + "planId": "planid" + }, + "responses": { + "200": { + "body": { + "id": "id", + "name": "planid", + "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": false + } + } + } + } +} \ No newline at end of file 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 new file mode 100644 index 000000000000..792ac83dec9d --- /dev/null +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/GetAgreementMarketplaceTerms.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2016-04-01", + "subscriptionId": "subid", + "publisherId": "pubid", + "offerId": "offid", + "planId": "planid" + }, + "responses": { + "200": { + "body": { + "id": "id", + "name": "planid", + "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 + } + } + } + } +} \ No newline at end of file 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 new file mode 100644 index 000000000000..c6ce18a57e3a --- /dev/null +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/ListMarketplaceTerms.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2016-04-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": [{ + "id": "id", + "name": "planid", + "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 + } + }] + } + } +} \ No newline at end of file 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 new file mode 100644 index 000000000000..792ac83dec9d --- /dev/null +++ b/specification/marketplaceordering/resource-manager/Microsoft.MarketplaceOrdering/stable/2015-06-01/examples/SignMarketplaceTerms.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2016-04-01", + "subscriptionId": "subid", + "publisherId": "pubid", + "offerId": "offid", + "planId": "planid" + }, + "responses": { + "200": { + "body": { + "id": "id", + "name": "planid", + "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 + } + } + } + } +} \ No newline at end of file