Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing MarketplaceOrdering operations to swagger #5279

Merged
4 commits merged into from
Mar 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -353,4 +503,4 @@
"x-ms-azure-resource": true
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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
}
}]
}
}
}
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
}