Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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 @@ -33,6 +33,88 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements": {
"get": {
"tags": [
"Agreements"
],
"summary": "List Confluent marketplace agreements in the subscription.",
"operationId": "MarketplaceAgreements_List",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/ConfluentAgreementResourceListResponse"
}
},
"default": {
"description": "Default error response.",
"schema": {
"$ref": "#/definitions/ResourceProviderDefaultErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"MarketplaceAgreements_List": {
"$ref": "./examples/MarketplaceAgreements_List.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default": {
"post": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we agreed to use PUT for these?

"tags": [
"Agreements"
],
"summary": "Create Confluent Marketplace agreement in the subscription.",
"operationId": "MarketplaceAgreements_Create",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/ConfluentAgreementResource"
}
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/ConfluentAgreementResource"
}
},
"default": {
"description": "Default error response.",
"schema": {
"$ref": "#/definitions/ResourceProviderDefaultErrorResponse"
}
}
},
"x-ms-examples": {
"MarketplaceAgreements_Create": {
"$ref": "./examples/MarketplaceAgreements_Create.json"
}
}
}
},
"/providers/Microsoft.Confluent/operations": {
"get": {
"tags": [
Expand Down Expand Up @@ -351,7 +433,7 @@
"202": {
"description": "Accepted"
},
"204": {
"204": {
"description": "The specified confluent resource does not exist in the subscription."
},
"default": {
Expand All @@ -374,6 +456,88 @@
}
},
"definitions": {
"ConfluentAgreementProperties": {
"description": "Terms properties for Marketplace and Confluent.",
"type": "object",
"properties": {
"publisher": {
"description": "Publisher identifier string.",
"type": "string"
},
"product": {
"description": "Product identifier string.",
"type": "string"
},
"plan": {
"description": "Plan identifier string.",
"type": "string"
},
"licenseTextLink": {
"description": "Link to HTML with Microsoft and Publisher terms.",
"type": "string"
},
"privacyPolicyLink": {
"description": "Link to the privacy policy of the publisher.",
"type": "string"
},
"retrieveDatetime": {
"format": "date-time",
"description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false.",
"type": "string"
},
"signature": {
"description": "Terms signature.",
"type": "string"
},
"accepted": {
"description": "If any version of the terms have been accepted, otherwise false.",
"type": "boolean"
}
}
},
"ConfluentAgreementResource": {
"description": "Agreement Terms definition",
"type": "object",
"x-ms-azure-resource": true,
"properties": {
"id": {
"description": "The ARM id of the resource.",
"type": "string",
"readOnly": true
},
"name": {
"description": "The name of the agreement.",
"type": "string",
"readOnly": true
},
"type": {
"description": "The type of the agreement.",
"type": "string",
"readOnly": true
},
"properties": {
"$ref": "#/definitions/ConfluentAgreementProperties",
"description": "Represents the properties of the resource."
}
}
},
"ConfluentAgreementResourceListResponse": {
"description": "Response of a agreements operation.",
"type": "object",
"properties": {
"value": {
"description": "Results of a list operation.",
"type": "array",
"items": {
"$ref": "#/definitions/ConfluentAgreementResource"
}
},
"nextLink": {
"description": "Link to the next set of results, if any.",
"type": "string"
}
}
},
"OperationDisplay": {
"description": "The object that represents the operation.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2020-03-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"requestBody": {
"properties": {
"accepted": true
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Confluent/agreements/default",
"name": "default",
"type": "Microsoft.Confluent/agreements",
"properties": {
"publisher": "pubid1",
"product": "offid1",
"plan": "planid1",
"licenseTextLink": "test.licenseLink1",
"privacyPolicyLink": "test.privacyPolicyLink1",
"retrieveDatetime": "2020-11-05T17:33:07.12132Z",
"signature": "YKWOQOKH2BCKZ46O7SCKHANWEENRFRU5WB4LXDFUYWCBWTS4AG4SGQXCOZYIR5ZJCZTXRMZKYZMO2BJSL5YKPLAR4LBFRUNS6CRYE7A",
"accepted": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"api-version": "2020-02-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "id1",
"name": "planid1",
"type": "Microsoft.MarketplaceOrdering/offertypes",
"properties": {
"publisher": "pubid1",
"product": "offid1",
"plan": "planid1",
"licenseTextLink": "test.licenseLink1",
"privacyPolicyLink": "test.privacyPolicyLink1",
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
"signature": "ASDFSDAFWEFASDGWERLWER",
"accepted": true
}
},
{
"id": "id2",
"name": "planid2",
"type": "Microsoft.MarketplaceOrdering/offertypes",
"properties": {
"publisher": "pubid2",
"product": "offid2",
"plan": "planid2",
"licenseTextLink": "test.licenseLin2k",
"privacyPolicyLink": "test.privacyPolicyLink2",
"retrieveDatetime": "2017-08-14T11:33:07.12132Z",
"signature": "ASDFSDAFWEFASDGWERLWER",
"accepted": true
}
}
],
"nextLink": null
}
}
}
}