Skip to content

Commit 489378b

Browse files
saviesacovKayla Ames
authored andcommitted
Marketplace version 2023-01-01 (Azure#22527)
* init version 2023-01-01 * GetPrivateStoreOffersWithSubscriptions * readme package-2023-01-01 * add flatten * renaming * add x-ms-pageable * CollectionOffersByContext returns OfferProperties * minor fix * mapOffersToContexts
1 parent 74eb8f8 commit 489378b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+5454
-1
lines changed

specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/Marketplace.json

Lines changed: 3743 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
4+
"offerId": "marketplacetestthirdparty.md-test-third-party-2",
5+
"api-version": "2023-01-01",
6+
"payload": {
7+
"properties": {
8+
"removePlans": [
9+
"testPlanA"
10+
],
11+
"addPlans": null,
12+
"acknowledge": false,
13+
"dismiss": false,
14+
"removeOffer": false
15+
}
16+
}
17+
},
18+
"responses": {
19+
"200": {}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"parameters": {
3+
"privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
4+
"api-version": "2023-01-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"systemData": {
12+
"createdBy": "[email protected]",
13+
"createdByType": "User",
14+
"createdAt": "2021-02-01T10:23:17.6571572+02:00",
15+
"lastModifiedBy": "[email protected]",
16+
"lastModifiedByType": "User",
17+
"lastModifiedAt": "2021-02-01T10:23:17.6571572+02:00"
18+
},
19+
"id": "/providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/adminRequestApprovals/marketplacetestthirdparty.md-test-third-party-2",
20+
"name": "marketplacetestthirdparty.md-test-third-party-2",
21+
"type": "/providers/Microsoft.Marketplace/privateStores/adminRequestApprovals",
22+
"properties": {
23+
"publisherId": "marketplacetestthirdparty",
24+
"offerId": "marketplacetestthirdparty.md-test-third-party-2",
25+
"displayName": "Offer display name",
26+
"plans": [
27+
{
28+
"planId": "testA",
29+
"planDisplayName": "Plan display name A",
30+
"requesters": [
31+
{
32+
"user": "testUser3",
33+
"date": "2021-02-01T11:42:12.9526511+02:00",
34+
"justification": "Because I want to....",
35+
"subscriptionId": "404a1952-706a-453a-989b-647cc4ca5f9c",
36+
"subscriptionName": "Test subscription"
37+
}
38+
]
39+
},
40+
{
41+
"planId": "*",
42+
"planDisplayName": "* (this means the user requested any plan, here you will get only *)",
43+
"requesters": [
44+
{
45+
"user": "testUser3",
46+
"date": "2021-02-01T11:42:12.9526511+02:00",
47+
"justification": "try me :)",
48+
"subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2",
49+
"subscriptionName": "Test subscription 2"
50+
}
51+
]
52+
}
53+
],
54+
"adminAction": "Pending",
55+
"collectionIds": [],
56+
"approvedPlans": null,
57+
"comment": null,
58+
"administrator": null,
59+
"icon": "https://some-images.someDomail.com/image/apps.12345678-4321"
60+
}
61+
}
62+
]
63+
}
64+
}
65+
}
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
4+
"api-version": "2023-01-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": true
10+
}
11+
}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
4+
"collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d",
5+
"api-version": "2023-01-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/56a1a02d-8cf8-45df-bf37-d5f7120fcb3d",
11+
"name": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d",
12+
"type": "Microsoft.Marketplace/privateStores/collections",
13+
"systemData": {
14+
"createdBy": "[email protected]",
15+
"createdByType": "User",
16+
"createdAt": "2022-03-07T14:00:05.566Z",
17+
"lastModifiedBy": "[email protected]",
18+
"lastModifiedByType": "User",
19+
"lastModifiedAt": "2022-03-07T14:30:58.566Z"
20+
},
21+
"properties": {
22+
"collectionId": "56a1a02d-8cf8-45df-bf37-d5f7120fcb3d",
23+
"collectionName": "Global",
24+
"claim": "",
25+
"allSubscriptions": false,
26+
"approveAllItems": true,
27+
"approveAllItemsModifiedAt": "2022-03-07T14:30:58.566Z",
28+
"subscriptionsList": [
29+
"57a5024d-2b80-4434-a37a-445e74a032bb",
30+
"c4b603f7-4449-4b98-8077-571e17a661c1"
31+
],
32+
"enabled": true,
33+
"numberOfOffers": 1
34+
}
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
4+
"api-version": "2023-01-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"billingAccounts": [
10+
"Billing Account 1",
11+
"Billing Account 2"
12+
]
13+
}
14+
}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
4+
"api-version": "2023-01-01",
5+
"payload": {
6+
"properties": {
7+
"collectionIds": [
8+
"c752f021-1c37-4af5-b82f-74c51c27b44a",
9+
"f47ef1c7-e908-4f39-ae29-db181634ad8d"
10+
],
11+
"action": "EnableCollections"
12+
}
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"body": {
18+
"succeeded": [
19+
{
20+
"collectionId": "c752f021-1c37-4af5-b82f-74c51c27b44a",
21+
"collectionName": "Test collection"
22+
}
23+
],
24+
"failed": [
25+
{
26+
"collectionId": "f47ef1c7-e908-4f39-ae29-db181634ad8d",
27+
"collectionName": "Test collection 2"
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
4+
"api-version": "2023-01-01",
5+
"payload": {
6+
"properties": {
7+
"subscriptionIds": [
8+
"b340914e-353d-453a-85fb-8f9b65b51f91",
9+
"f2baa04d-5bfc-461b-b6d8-61b403c9ec48"
10+
]
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"details": {
18+
"4eb49758-f591-486f-bd58-dff00fb7a8d8": {
19+
"collectionName": "Test Collection",
20+
"subscriptions": [
21+
"b340914e-353d-453a-85fb-8f9b65b51f91",
22+
"f2baa04d-5bfc-461b-b6d8-61b403c9ec48"
23+
]
24+
},
25+
"74c02e27-2524-436c-831d-d64565f31153": {
26+
"collectionName": "Test Collection 2",
27+
"subscriptions": null
28+
}
29+
}
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"parameters": {
3+
"privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
4+
"requestApprovalId": "marketplacetestthirdparty.md-test-third-party-2",
5+
"api-version": "2023-01-01",
6+
"RequestApprovalResource": {
7+
"parameters": {
8+
"properties": {
9+
"publisherId": "marketplacetestthirdparty",
10+
"plansDetails": [
11+
{
12+
"planId": "testPlanA",
13+
"justification": "Because I want to....",
14+
"subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2",
15+
"subscriptionName": "Test subscription 2"
16+
},
17+
{
18+
"planId": "*",
19+
"justification": "try me :)",
20+
"subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2",
21+
"subscriptionName": "Test subscription 2"
22+
}
23+
]
24+
}
25+
}
26+
}
27+
},
28+
"responses": {
29+
"200": {
30+
"body": {
31+
"systemData": {
32+
"createdBy": "[email protected]",
33+
"createdByType": "User",
34+
"lastModifiedBy": "[email protected]",
35+
"lastModifiedByType": "User",
36+
"createdAt": "2021-02-01T10:23:17.6571572+02:00",
37+
"lastModifiedAt": "2021-02-01T10:23:17.6571572+02:00"
38+
},
39+
"id": "/providers/Microsoft.Marketplace/privateStores/9afd3c45-5230-4d58-9469-2cacc00bba68/requestApprovals/marketplacetestthirdparty.md-test-third-party-2",
40+
"name": "marketplacetestthirdparty.md-test-third-party-2",
41+
"type": "Microsoft.Marketplace/privateStores/requestApprovals",
42+
"properties": {
43+
"offerId": "marketplacetestthirdparty.md-test-third-party-2",
44+
"publisherId": "marketplacetestthirdparty",
45+
"offerDisplayName": "Offer Display name",
46+
"plansDetails": [
47+
{
48+
"planId": "testPlanA",
49+
"requestDate": "2021-02-01T10:23:17.6571572+02:00",
50+
"justification": "Because I want to....",
51+
"status": "Pending",
52+
"subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2",
53+
"subscriptionName": "Test subscription 2"
54+
},
55+
{
56+
"planId": "*",
57+
"requestDate": "2021-02-01T10:23:17.6571572+02:00",
58+
"justification": "try me :)",
59+
"status": "Pending",
60+
"subscriptionId": "4ca4753c-5a1e-4913-b849-2c68880e03c2",
61+
"subscriptionName": "Test subscription 2"
62+
}
63+
],
64+
"isClosed": false,
65+
"messageCode": 0
66+
}
67+
}
68+
}
69+
}
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"privateStoreId": "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
4+
"collectionId": "d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1",
5+
"api-version": "2023-01-01",
6+
"payload": {
7+
"properties": {
8+
"collectionName": "Test Collection",
9+
"claim": "",
10+
"allSubscriptions": false,
11+
"subscriptionsList": [
12+
"b340914e-353d-453a-85fb-8f9b65b51f91",
13+
"f2baa04d-5bfc-461b-b6d8-61b403c9ec48"
14+
]
15+
}
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": {
21+
"id": "providers/Microsoft.Marketplace/privateStores/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1",
22+
"type": "Microsoft.Marketplace/privateStores/collections",
23+
"name": "d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1",
24+
"properties": {
25+
"collectionName": "Test Collection",
26+
"claim": "",
27+
"allSubscriptions": false,
28+
"approveAllItems": false,
29+
"approveAllItemsModifiedAt": null,
30+
"subscriptionsList": [
31+
"b340914e-353d-453a-85fb-8f9b65b51f91",
32+
"f2baa04d-5bfc-461b-b6d8-61b403c9ec48"
33+
],
34+
"enabled": true,
35+
"numberOfOffers": 0
36+
},
37+
"systemData": {
38+
"createdBy": "[email protected]",
39+
"createdByType": "User",
40+
"createdAt": "2021-04-01T10:23:17.6571572+02:00",
41+
"lastModifiedBy": "[email protected]",
42+
"lastModifiedByType": "User",
43+
"lastModifiedAt": "2021-04-01T10:23:17.6571572+02:00"
44+
}
45+
}
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)