Skip to content

Commit 467bc83

Browse files
Pramila-dhakaPramila Dhaka
andauthored
New Partner APIs for ordering service (Azure#13576)
* Adding initial files for edge order parther APIs * Fixes for spec and example validations. * Fixes for example and spec validations. * Fixed autorest validation issues. * Changes for order to order otem and actiontype removal for operationsList API. * Some fixes from pull request errors * Fixed tag issue * Removing swagger file temporarily to fix filename issue * Adding swagger file with changed name * Added multiple examples in swagger json for search inventories. * Fixed some descriptions. * Changes in the specs and examples as per discussion with Chris. * fixing secret validation error Co-authored-by: Pramila Dhaka <[email protected]>
1 parent cd3b05d commit 467bc83

File tree

8 files changed

+1247
-0
lines changed

8 files changed

+1247
-0
lines changed

specification/edgeorderpartner/resource-manager/Microsoft.EdgeOrderPartner/preview/2020-12-01-preview/edgeorderpartner.json

Lines changed: 905 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-12-01-preview",
4+
"User-Agent": [
5+
"vscode-restclient"
6+
],
7+
"Referer": [
8+
"https://localhost/providers/Microsoft.EdgeOrderPartner/operations?api-version=2020-12-01-preview"
9+
]
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"value": [
15+
{
16+
"name": "Microsoft.EdgeOrderPartner/operations/read",
17+
"display": {
18+
"provider": "Edge Ordering",
19+
"resource": "Operations",
20+
"operation": "List or Get Operations",
21+
"description": "List or get the Operations"
22+
},
23+
"origin": "user",
24+
"isDataAction": false
25+
},
26+
{
27+
"name": "Microsoft.EdgeOrderPartner/searchInventories/action",
28+
"display": {
29+
"provider": "Edge Ordering",
30+
"resource": "ArmApiRes_Microsoft.EdgeOrderPartner"
31+
},
32+
"origin": "user",
33+
"isDataAction": true
34+
},
35+
{
36+
"name": "Microsoft.EdgeOrderPartner/locations/productFamilies/inventories/manageLink/action",
37+
"display": {
38+
"provider": "Edge Ordering",
39+
"resource": "ArmApiRes_inventories"
40+
},
41+
"origin": "user",
42+
"isDataAction": true
43+
},
44+
{
45+
"name": "Microsoft.EdgeOrderPartner/locations/productFamilies/inventories/manageInventoryMetadata/action",
46+
"display": {
47+
"provider": "Edge Ordering",
48+
"resource": "ArmApiRes_inventories"
49+
},
50+
"origin": "user",
51+
"isDataAction": true
52+
}
53+
]
54+
}
55+
}
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "b783ea86-c85c-4175-b76d-3992656af50d",
4+
"location": "westus",
5+
"serialNumber": "SerialNumber1",
6+
"familyIdentifier": "AzureStackEdge",
7+
"api-version": "2020-12-01-preview",
8+
"User-Agent": [
9+
"vscode-restclient"
10+
],
11+
"Referer": [
12+
"https://localhost/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/providers/Microsoft.EdgeOrderPartner/locations/westus/productFamilies/AzureStackEdge/inventories/SerialNumber1/manageInventoryMetadata?api-version=2020-12-01-preview"
13+
],
14+
"Content-Type": [
15+
"application/json; charset=utf-8"
16+
],
17+
"Content-Length": [
18+
"181"
19+
],
20+
"manageInventoryMetadataRequest": {
21+
"inventoryMetadata": "InventoryMetadata",
22+
"configurationOnDevice": {
23+
"configurationIdentifier": "EdgeP_High"
24+
}
25+
}
26+
},
27+
"responses": {
28+
"200": {},
29+
"202": {},
30+
"204": {}
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "b783ea86-c85c-4175-b76d-3992656af50d",
4+
"location": "westus",
5+
"serialNumber": "SerialNumber1",
6+
"familyIdentifier": "AzureStackEdge",
7+
"api-version": "2020-12-01-preview",
8+
"User-Agent": [
9+
"vscode-restclient"
10+
],
11+
"Referer": [
12+
"https://localhost/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/providers/Microsoft.EdgeOrderPartner/locations/westus/productFamilies/AzureStackEdge/inventories/SerialNumber1/manageLink?api-version=2020-12-01-preview"
13+
],
14+
"Content-Type": [
15+
"application/json; charset=utf-8"
16+
],
17+
"Content-Length": [
18+
"144"
19+
],
20+
"manageLinkRequest": {
21+
"managementResourceArmId": "/subscriptions/c783ea86-c85c-4175-b76d-3992656af50d/resourceGroups/EdgeTestRG/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/TestEdgeDeviceName1",
22+
"operation": "Link",
23+
"tenantId": "a783ea86-c85c-4175-b76d-3992656af50d"
24+
}
25+
},
26+
"responses": {
27+
"200": {},
28+
"204": {}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "b783ea86-c85c-4175-b76d-3992656af50d",
4+
"api-version": "2020-12-01-preview",
5+
"User-Agent": [
6+
"vscode-restclient"
7+
],
8+
"Referer": [
9+
"https://localhost/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/providers/Microsoft.EdgeOrderPartner/searchInventories?api-version=2020-12-01-preview"
10+
],
11+
"Content-Type": [
12+
"application/json; charset=utf-8"
13+
],
14+
"Content-Length": [
15+
"75"
16+
],
17+
"searchInventoriesRequest": {
18+
"serialNumber": "SerialNumber1",
19+
"familyIdentifier": "AzureStackEdge"
20+
}
21+
},
22+
"responses": {
23+
"200": {
24+
"body": {
25+
"value": [
26+
{
27+
"properties": {
28+
"serialNumber": "SerialNumber1",
29+
"location": "westus",
30+
"orderItem": {
31+
"armId": "/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/resourceGroups/TestRG/providers/Microsoft.EdgeOrder/orders/TestOrderName1",
32+
"orderItemType": "Rental"
33+
},
34+
"configuration": {
35+
"familyIdentifier": "AzureStackEdge",
36+
"productLineIdentifier": "AzureStackEdgePL",
37+
"productIdentifier": "AzureStackEdgeProGPU",
38+
"configurationIdentifier": "EdgeP_Base",
39+
"configurationIdentifierOnDevice": "EdgeP_High"
40+
},
41+
"managementResource": {
42+
"armId": "/subscriptions/c783ea86-c85c-4175-b76d-3992656af50d/resourceGroups/EdgeTestRG/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/TestEdgeDeviceName1",
43+
"tenantId": "a783ea86-c85c-4175-b76d-3992656af50d"
44+
},
45+
"inventory": {
46+
"status": "Healthy",
47+
"location": "Rack",
48+
"registrationAllowed": true
49+
}
50+
}
51+
}
52+
]
53+
}
54+
}
55+
}
56+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "b783ea86-c85c-4175-b76d-3992656af50d",
4+
"api-version": "2020-12-01-preview",
5+
"$expand": "details",
6+
"User-Agent": [
7+
"vscode-restclient"
8+
],
9+
"Referer": [
10+
"https://localhost/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/providers/Microsoft.EdgeOrderPartner/searchInventories?api-version=2020-12-01-preview&$expand=details"
11+
],
12+
"Content-Type": [
13+
"application/json; charset=utf-8"
14+
],
15+
"Content-Length": [
16+
"75"
17+
],
18+
"searchInventoriesRequest": {
19+
"serialNumber": "SerialNumber1",
20+
"familyIdentifier": "AzureStackEdge"
21+
}
22+
},
23+
"responses": {
24+
"200": {
25+
"body": {
26+
"value": [
27+
{
28+
"properties": {
29+
"serialNumber": "SerialNumber1",
30+
"location": "westus",
31+
"orderItem": {
32+
"armId": "/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/resourceGroups/TestRG/providers/Microsoft.EdgeOrder/orders/TestOrderName1",
33+
"orderItemType": "Rental"
34+
},
35+
"configuration": {
36+
"familyIdentifier": "AzureStackEdge",
37+
"productLineIdentifier": "AzureStackEdgePL",
38+
"productIdentifier": "AzureStackEdgeProGPU",
39+
"configurationIdentifier": "EdgeP_Base",
40+
"configurationIdentifierOnDevice": "EdgeP_High"
41+
},
42+
"managementResource": {
43+
"armId": "/subscriptions/c783ea86-c85c-4175-b76d-3992656af50d/resourceGroups/EdgeTestRG/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/TestEdgeDeviceName1",
44+
"tenantId": "a783ea86-c85c-4175-b76d-3992656af50d"
45+
},
46+
"inventory": {
47+
"status": "Healthy",
48+
"location": "Rack",
49+
"registrationAllowed": true
50+
},
51+
"details": {
52+
"orderItem": {
53+
"status": {
54+
"stageStatus": "Succeeded",
55+
"stageName": "Delivered",
56+
"displayName": "Delivered - Succeeded",
57+
"startTime": "2020-08-07T10:50:36.3341513+05:30"
58+
},
59+
"subscription": {
60+
"id": "b783ea86-c85c-4175-b76d-3992656af50d",
61+
"state": "Registered",
62+
"quotaId": "Internal_2014-09-01"
63+
}
64+
},
65+
"inventoryMetadata": "This is currently in Japan",
66+
"configuration": {
67+
"specifications": [
68+
{
69+
"name": "Cores",
70+
"value": "24"
71+
},
72+
{
73+
"name": "Memory",
74+
"value": "128 GB"
75+
},
76+
{
77+
"name": "Storage",
78+
"value": "~8 TB"
79+
}
80+
]
81+
},
82+
"inventory": {
83+
"additionalData": {
84+
"SourceCountry": "USA",
85+
"ManuacturingYear": "2020"
86+
}
87+
},
88+
"billing": {
89+
"billingType": "Pav2",
90+
"status": "InProgress"
91+
},
92+
"inventorySecrets": {
93+
"PublicCert": "<PublicCert>"
94+
}
95+
}
96+
}
97+
}
98+
]
99+
}
100+
}
101+
}
102+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## AzureResourceSchema
2+
3+
These settings apply only when `--azureresourceschema` is specified on the command line.
4+
5+
### AzureResourceSchema multi-api
6+
7+
``` yaml $(azureresourceschema) && $(multiapi)
8+
batch:
9+
- tag: schema-edgeorderpartner-2020-12-01-preview
10+
11+
```
12+
13+
Please also specify `--azureresourceschema-folder=<path to the root directory of your azure-resource-manager-schemas clone>`.
14+
15+
### Tag: schema-edgeorderpartner-2020-12-01-preview and azureresourceschema
16+
17+
``` yaml $(tag) == 'schema-edgeorderpartner-2020-12-01-preview' && $(azureresourceschema)
18+
output-folder: $(azureresourceschema-folder)/schemas
19+
20+
# all the input files in this apiVersion
21+
input-file:
22+
- Microsoft.EdgeOrderPartner/preview/2020-12-01-preview/edgeorderpartner.json
23+
24+
```
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# EdgeOrderPartner
2+
3+
> see https://aka.ms/autorest
4+
5+
This is the AutoRest configuration file for EdgeOrderPartner.
6+
7+
8+
9+
---
10+
## Getting Started
11+
To build the SDK for EdgeOrderPartner, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:
12+
13+
> `autorest`
14+
15+
To see additional help and options, run:
16+
17+
> `autorest --help`
18+
---
19+
20+
## Configuration
21+
22+
23+
24+
### Basic Information
25+
These are the global settings for the EdgeOrderPartner API.
26+
27+
``` yaml
28+
title: Edge Order Partner API's
29+
openapi-type: arm
30+
tag: package-2020-12-preview
31+
```
32+
33+
### Tag: package-2020-12-preview
34+
35+
These settings apply only when `--tag=package-2020-12-preview` is specified on the command line.
36+
37+
``` yaml $(tag) == 'package-2020-12-preview'
38+
input-file:
39+
- Microsoft.EdgeOrderPartner/preview/2020-12-01-preview/edgeorderpartner.json
40+
```
41+
---

0 commit comments

Comments
 (0)