Skip to content

Commit 745479d

Browse files
alluri02Srinivas Alluri
andauthored
[Hub Generated] Review request for Microsoft.Confluent to add version preview/2020-03-01-preview (#11426)
* added agreement terms api * fix validation issues * fix validation errors * renamed api to accept terms * Updated confluent swagger spec * Updated the response examples * lint * rename * Updated Post to Put Missed this change * updated version * prettier check fix Co-authored-by: Srinivas Alluri <[email protected]>
1 parent d657ad5 commit 745479d

File tree

3 files changed

+239
-0
lines changed

3 files changed

+239
-0
lines changed

specification/confluent/resource-manager/Microsoft.Confluent/preview/2020-03-01-preview/confluent.json

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,88 @@
3333
}
3434
},
3535
"paths": {
36+
"/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements": {
37+
"get": {
38+
"tags": [
39+
"Agreements"
40+
],
41+
"summary": "List Confluent marketplace agreements in the subscription.",
42+
"operationId": "MarketplaceAgreements_List",
43+
"produces": [
44+
"application/json"
45+
],
46+
"parameters": [
47+
{
48+
"$ref": "#/parameters/SubscriptionIdParameter"
49+
}
50+
],
51+
"responses": {
52+
"200": {
53+
"description": "Success",
54+
"schema": {
55+
"$ref": "#/definitions/ConfluentAgreementResourceListResponse"
56+
}
57+
},
58+
"default": {
59+
"description": "Default error response.",
60+
"schema": {
61+
"$ref": "#/definitions/ResourceProviderDefaultErrorResponse"
62+
}
63+
}
64+
},
65+
"x-ms-pageable": {
66+
"nextLinkName": "nextLink"
67+
},
68+
"x-ms-examples": {
69+
"MarketplaceAgreements_List": {
70+
"$ref": "./examples/MarketplaceAgreements_List.json"
71+
}
72+
}
73+
}
74+
},
75+
"/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default": {
76+
"put": {
77+
"tags": [
78+
"Agreements"
79+
],
80+
"summary": "Create Confluent Marketplace agreement in the subscription.",
81+
"operationId": "MarketplaceAgreements_Create",
82+
"produces": [
83+
"application/json"
84+
],
85+
"parameters": [
86+
{
87+
"$ref": "#/parameters/SubscriptionIdParameter"
88+
},
89+
{
90+
"in": "body",
91+
"name": "body",
92+
"schema": {
93+
"$ref": "#/definitions/ConfluentAgreementResource"
94+
}
95+
}
96+
],
97+
"responses": {
98+
"200": {
99+
"description": "Success",
100+
"schema": {
101+
"$ref": "#/definitions/ConfluentAgreementResource"
102+
}
103+
},
104+
"default": {
105+
"description": "Default error response.",
106+
"schema": {
107+
"$ref": "#/definitions/ResourceProviderDefaultErrorResponse"
108+
}
109+
}
110+
},
111+
"x-ms-examples": {
112+
"MarketplaceAgreements_Create": {
113+
"$ref": "./examples/MarketplaceAgreements_Create.json"
114+
}
115+
}
116+
}
117+
},
36118
"/providers/Microsoft.Confluent/operations": {
37119
"get": {
38120
"tags": [
@@ -374,6 +456,88 @@
374456
}
375457
},
376458
"definitions": {
459+
"ConfluentAgreementProperties": {
460+
"description": "Terms properties for Marketplace and Confluent.",
461+
"type": "object",
462+
"properties": {
463+
"publisher": {
464+
"description": "Publisher identifier string.",
465+
"type": "string"
466+
},
467+
"product": {
468+
"description": "Product identifier string.",
469+
"type": "string"
470+
},
471+
"plan": {
472+
"description": "Plan identifier string.",
473+
"type": "string"
474+
},
475+
"licenseTextLink": {
476+
"description": "Link to HTML with Microsoft and Publisher terms.",
477+
"type": "string"
478+
},
479+
"privacyPolicyLink": {
480+
"description": "Link to the privacy policy of the publisher.",
481+
"type": "string"
482+
},
483+
"retrieveDatetime": {
484+
"format": "date-time",
485+
"description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false.",
486+
"type": "string"
487+
},
488+
"signature": {
489+
"description": "Terms signature.",
490+
"type": "string"
491+
},
492+
"accepted": {
493+
"description": "If any version of the terms have been accepted, otherwise false.",
494+
"type": "boolean"
495+
}
496+
}
497+
},
498+
"ConfluentAgreementResource": {
499+
"description": "Agreement Terms definition",
500+
"type": "object",
501+
"x-ms-azure-resource": true,
502+
"properties": {
503+
"id": {
504+
"description": "The ARM id of the resource.",
505+
"type": "string",
506+
"readOnly": true
507+
},
508+
"name": {
509+
"description": "The name of the agreement.",
510+
"type": "string",
511+
"readOnly": true
512+
},
513+
"type": {
514+
"description": "The type of the agreement.",
515+
"type": "string",
516+
"readOnly": true
517+
},
518+
"properties": {
519+
"$ref": "#/definitions/ConfluentAgreementProperties",
520+
"description": "Represents the properties of the resource."
521+
}
522+
}
523+
},
524+
"ConfluentAgreementResourceListResponse": {
525+
"description": "Response of a agreements operation.",
526+
"type": "object",
527+
"properties": {
528+
"value": {
529+
"description": "Results of a list operation.",
530+
"type": "array",
531+
"items": {
532+
"$ref": "#/definitions/ConfluentAgreementResource"
533+
}
534+
},
535+
"nextLink": {
536+
"description": "Link to the next set of results, if any.",
537+
"type": "string"
538+
}
539+
}
540+
},
377541
"OperationDisplay": {
378542
"description": "The object that represents the operation.",
379543
"type": "object",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-03-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"requestBody": {
6+
"properties": {
7+
"accepted": true
8+
}
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Confluent/agreements/default",
15+
"name": "default",
16+
"type": "Microsoft.Confluent/agreements",
17+
"properties": {
18+
"publisher": "pubid1",
19+
"product": "offid1",
20+
"plan": "planid1",
21+
"licenseTextLink": "test.licenseLink1",
22+
"privacyPolicyLink": "test.privacyPolicyLink1",
23+
"retrieveDatetime": "2020-11-05T17:33:07.12132Z",
24+
"signature": "YKWOQOKH2BCKZ46O7SCKHANWEENRFRU5WB4LXDFUYWCBWTS4AG4SGQXCOZYIR5ZJCZTXRMZKYZMO2BJSL5YKPLAR4LBFRUNS6CRYE7A",
25+
"accepted": true
26+
}
27+
}
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-03-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "id1",
12+
"name": "planid1",
13+
"type": "Microsoft.MarketplaceOrdering/offertypes",
14+
"properties": {
15+
"publisher": "pubid1",
16+
"product": "offid1",
17+
"plan": "planid1",
18+
"licenseTextLink": "test.licenseLink1",
19+
"privacyPolicyLink": "test.privacyPolicyLink1",
20+
"retrieveDatetime": "2017-08-15T11:33:07.12132Z",
21+
"signature": "ASDFSDAFWEFASDGWERLWER",
22+
"accepted": true
23+
}
24+
},
25+
{
26+
"id": "id2",
27+
"name": "planid2",
28+
"type": "Microsoft.MarketplaceOrdering/offertypes",
29+
"properties": {
30+
"publisher": "pubid2",
31+
"product": "offid2",
32+
"plan": "planid2",
33+
"licenseTextLink": "test.licenseLin2k",
34+
"privacyPolicyLink": "test.privacyPolicyLink2",
35+
"retrieveDatetime": "2017-08-14T11:33:07.12132Z",
36+
"signature": "ASDFSDAFWEFASDGWERLWER",
37+
"accepted": true
38+
}
39+
}
40+
],
41+
"nextLink": null
42+
}
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)