Skip to content
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 @@ -197,7 +197,7 @@
"200": {
"description": "OK. The request was successfully processed and the terms were accepted.",
"schema": {
"$ref": "#/definitions/AgreementTerms"
"$ref": "#/definitions/OldAgreementTerms"
}
},
"default": {
Expand Down Expand Up @@ -239,7 +239,7 @@
"200": {
"description": "OK. The request was successfully processed and the terms were rejected.",
"schema": {
"$ref": "#/definitions/AgreementTerms"
"$ref": "#/definitions/OldAgreementTerms"
}
},
"default": {
Expand Down Expand Up @@ -281,7 +281,7 @@
"200": {
"description": "Terms returned successfully",
"schema": {
"$ref": "#/definitions/AgreementTerms"
"$ref": "#/definitions/OldAgreementTerms"
}
},
"default": {
Expand Down Expand Up @@ -314,10 +314,7 @@
"200": {
"description": "Terms returned successfully",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/AgreementTerms"
}
"$ref": "#/definitions/OldAgreementTermsList"
}
},
"default": {
Expand Down Expand Up @@ -448,6 +445,74 @@
},
"description": "Agreement Terms definition"
},
"OldAgreementTermsList": {
"description": "Agreement Terms definition list",
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/OldAgreementTerms"
}
}
}
},
"OldAgreementTerms": {
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/OldAgreementProperties",
"description": "Represents the properties of the resource.",
"x-ms-client-flatten": true
}
},
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "Terms properties for provided Publisher/Offer/Plan tuple"
},
"OldAgreementProperties": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "A unique identifier of the agreement."
},
"publisher": {
"type": "string",
"description": "Publisher identifier string of image being deployed."
},
"offer": {
"type": "string",
"description": "Offer identifier string of image being deployed."
},
"signDate": {
"type": "string",
"format": "date-time",
"description": "Date and time in UTC of when the terms were accepted. This is empty if state is cancelled."
},
"cancelDate": {
"type": "string",
"format": "date-time",
"description": "Date and time in UTC of when the terms were cancelled. This is empty if state is active."
},
"state": {
"type": "string",
"enum": [
"Active",
"Canceled"
],
"description": "Whether the agreement is active or cancelled",
"x-ms-enum": {
"name": "state",
"modelAsString": true
}
}
},
"description": "Old Agreement Terms definition"
},
"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",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2021-01-01",
"subscriptionId": "subid",
"publisherId": "pubid",
"offerId": "offid",
Expand All @@ -11,17 +11,12 @@
"body": {
"id": "id",
"name": "planid",
"type": "Microsoft.MarketplaceOrdering/offertypes",
"type": "Microsoft.MarketplaceOrdering/agreements",
"properties": {
"publisher": "pubid",
"product": "offid",
"plan": "planid",
"licenseTextLink": "test.licenseLink",
"privacyPolicyLink": "test.privacyPolicyLink",
"marketplaceTermsLink": "test.marketplaceTermsLink",
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
"signature": "ASDFSDAFWEFASDGWERLWER",
"accepted": false
"offer": "offid",
"cancelDate": "2021-11-14T16:21:43.6945196Z",
"state": "Canceled"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2021-01-01",
"subscriptionId": "subid",
"publisherId": "pubid",
"offerId": "offid",
Expand All @@ -11,17 +11,12 @@
"body": {
"id": "id",
"name": "planid",
"type": "Microsoft.MarketplaceOrdering/offertypes",
"type": "Microsoft.MarketplaceOrdering/agreements",
"properties": {
"publisher": "pubid",
"product": "offid",
"plan": "planid",
"licenseTextLink": "test.licenseLink",
"privacyPolicyLink": "test.privacyPolicyLink",
"marketplaceTermsLink": "test.marketplaceTermsLink",
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
"signature": "ASDFSDAFWEFASDGWERLWER",
"accepted": true
"offer": "offid",
"signDate": "2022-12-07T13:30:23.0665141Z",
"state": "Active"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2021-01-01",
"subscriptionId": "subid",
"offerType": "virtualmachine",
"publisherId": "pubid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2021-01-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",
"marketplaceTermsLink": "test.marketplaceTermsLink",
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
"signature": "ASDFSDAFWEFASDGWERLWER",
"accepted": true
"body": {
"value": [
{
"id": "id1",
"name": "planid1",
"type": "Microsoft.MarketplaceOrdering/agreements",
"properties": {
"publisher": "publisher1",
"offer": "offer1",
"signDate": "2021-05-01T08:05:53.8374396Z",
"state": "Active"
}
},
{
"id": "id2",
"name": "planid2",
"type": "Microsoft.MarketplaceOrdering/agreements",
"properties": {
"publisher": "publisher2",
"offer": "offer2",
"cancelDate": "2021-11-14T16:21:43.6945196Z",
"state": "Canceled"
}
}
}
]
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2021-01-01",
"subscriptionId": "subid",
"offerType": "virtualmachine",
"publisherId": "pubid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2021-01-01",
"subscriptionId": "subid",
"publisherId": "pubid",
"offerId": "offid",
Expand All @@ -11,17 +11,12 @@
"body": {
"id": "id",
"name": "planid",
"type": "Microsoft.MarketplaceOrdering/offertypes",
"type": "Microsoft.MarketplaceOrdering/agreements",
"properties": {
"publisher": "pubid",
"product": "offid",
"plan": "planid",
"licenseTextLink": "test.licenseLink",
"privacyPolicyLink": "test.privacyPolicyLink",
"marketplaceTermsLink": "test.marketplaceTermsLink",
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
"signature": "ASDFSDAFWEFASDGWERLWER",
"accepted": true
"offer": "offid",
"signDate": "2021-08-15T11:33:07.12132Z",
"state": "Active"
}
}
}
Expand Down