-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Partner APIs for ordering service #13576
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0e01ea2
Adding initial files for edge order parther APIs
f17e587
Fixes for spec and example validations.
dcb19b7
Fixes for example and spec validations.
0cea428
Fixed autorest validation issues.
6aca29a
Changes for order to order otem and actiontype removal for operations…
9035a60
Some fixes from pull request errors
973ade0
Fixed tag issue
fd5d5d0
Removing swagger file temporarily to fix filename issue
7ab0584
Adding swagger file with changed name
509df5f
Added multiple examples in swagger json for search inventories.
49d2616
Fixed some descriptions.
b1ac478
Changes in the specs and examples as per discussion with Chris.
aecf320
fixing secret validation error
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
905 changes: 905 additions & 0 deletions
905
...ource-manager/Microsoft.EdgeOrderPartner/preview/2020-12-01-preview/edgeorderpartner.json
Large diffs are not rendered by default.
Oops, something went wrong.
57 changes: 57 additions & 0 deletions
57
...Microsoft.EdgeOrderPartner/preview/2020-12-01-preview/examples/ListOperationsPartner.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-12-01-preview", | ||
"User-Agent": [ | ||
"vscode-restclient" | ||
], | ||
"Referer": [ | ||
"https://localhost/providers/Microsoft.EdgeOrderPartner/operations?api-version=2020-12-01-preview" | ||
] | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.EdgeOrderPartner/operations/read", | ||
"display": { | ||
"provider": "Edge Ordering", | ||
"resource": "Operations", | ||
"operation": "List or Get Operations", | ||
"description": "List or get the Operations" | ||
}, | ||
"origin": "user", | ||
"isDataAction": false | ||
}, | ||
{ | ||
"name": "Microsoft.EdgeOrderPartner/searchInventories/action", | ||
"display": { | ||
"provider": "Edge Ordering", | ||
"resource": "ArmApiRes_Microsoft.EdgeOrderPartner" | ||
}, | ||
"origin": "user", | ||
"isDataAction": true | ||
}, | ||
{ | ||
"name": "Microsoft.EdgeOrderPartner/locations/productFamilies/inventories/manageLink/action", | ||
"display": { | ||
"provider": "Edge Ordering", | ||
"resource": "ArmApiRes_inventories" | ||
}, | ||
"origin": "user", | ||
"isDataAction": true | ||
}, | ||
{ | ||
"name": "Microsoft.EdgeOrderPartner/locations/productFamilies/inventories/manageInventoryMetadata/action", | ||
"display": { | ||
"provider": "Edge Ordering", | ||
"resource": "ArmApiRes_inventories" | ||
}, | ||
"origin": "user", | ||
"isDataAction": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...crosoft.EdgeOrderPartner/preview/2020-12-01-preview/examples/ManageInventoryMetadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "b783ea86-c85c-4175-b76d-3992656af50d", | ||
"location": "westus", | ||
"serialNumber": "SerialNumber1", | ||
"familyIdentifier": "AzureStackEdge", | ||
"api-version": "2020-12-01-preview", | ||
"User-Agent": [ | ||
"vscode-restclient" | ||
], | ||
"Referer": [ | ||
"https://localhost/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/providers/Microsoft.EdgeOrderPartner/locations/westus/productFamilies/AzureStackEdge/inventories/SerialNumber1/manageInventoryMetadata?api-version=2020-12-01-preview" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"181" | ||
], | ||
"manageInventoryMetadataRequest": { | ||
"inventoryMetadata": "InventoryMetadata", | ||
"configurationOnDevice": { | ||
"configurationIdentifier": "EdgeP_High" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...ce-manager/Microsoft.EdgeOrderPartner/preview/2020-12-01-preview/examples/ManageLink.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "b783ea86-c85c-4175-b76d-3992656af50d", | ||
"location": "westus", | ||
"serialNumber": "SerialNumber1", | ||
"familyIdentifier": "AzureStackEdge", | ||
"api-version": "2020-12-01-preview", | ||
"User-Agent": [ | ||
"vscode-restclient" | ||
], | ||
"Referer": [ | ||
"https://localhost/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/providers/Microsoft.EdgeOrderPartner/locations/westus/productFamilies/AzureStackEdge/inventories/SerialNumber1/manageLink?api-version=2020-12-01-preview" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"144" | ||
], | ||
"manageLinkRequest": { | ||
"managementResourceArmId": "/subscriptions/c783ea86-c85c-4175-b76d-3992656af50d/resourceGroups/EdgeTestRG/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/TestEdgeDeviceName1", | ||
"operation": "Link", | ||
"tenantId": "a783ea86-c85c-4175-b76d-3992656af50d" | ||
} | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
...ger/Microsoft.EdgeOrderPartner/preview/2020-12-01-preview/examples/SearchInventories.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "b783ea86-c85c-4175-b76d-3992656af50d", | ||
"api-version": "2020-12-01-preview", | ||
"User-Agent": [ | ||
"vscode-restclient" | ||
], | ||
"Referer": [ | ||
"https://localhost/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/providers/Microsoft.EdgeOrderPartner/searchInventories?api-version=2020-12-01-preview" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"75" | ||
], | ||
"searchInventoriesRequest": { | ||
"serialNumber": "SerialNumber1", | ||
"familyIdentifier": "AzureStackEdge" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"serialNumber": "SerialNumber1", | ||
"location": "westus", | ||
"orderItem": { | ||
"armId": "/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/resourceGroups/TestRG/providers/Microsoft.EdgeOrder/orders/TestOrderName1", | ||
"orderItemType": "Rental" | ||
}, | ||
"configuration": { | ||
"familyIdentifier": "AzureStackEdge", | ||
"productLineIdentifier": "AzureStackEdgePL", | ||
"productIdentifier": "AzureStackEdgeProGPU", | ||
"configurationIdentifier": "EdgeP_Base", | ||
"configurationIdentifierOnDevice": "EdgeP_High" | ||
}, | ||
"managementResource": { | ||
"armId": "/subscriptions/c783ea86-c85c-4175-b76d-3992656af50d/resourceGroups/EdgeTestRG/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/TestEdgeDeviceName1", | ||
"tenantId": "a783ea86-c85c-4175-b76d-3992656af50d" | ||
}, | ||
"inventory": { | ||
"status": "Healthy", | ||
"location": "Rack", | ||
"registrationAllowed": true | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
102 changes: 102 additions & 0 deletions
102
...rosoft.EdgeOrderPartner/preview/2020-12-01-preview/examples/SearchInventoriesDetails.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "b783ea86-c85c-4175-b76d-3992656af50d", | ||
"api-version": "2020-12-01-preview", | ||
"$expand": "details", | ||
"User-Agent": [ | ||
"vscode-restclient" | ||
], | ||
"Referer": [ | ||
"https://localhost/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/providers/Microsoft.EdgeOrderPartner/searchInventories?api-version=2020-12-01-preview&$expand=details" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"75" | ||
], | ||
"searchInventoriesRequest": { | ||
"serialNumber": "SerialNumber1", | ||
"familyIdentifier": "AzureStackEdge" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"serialNumber": "SerialNumber1", | ||
"location": "westus", | ||
"orderItem": { | ||
"armId": "/subscriptions/b783ea86-c85c-4175-b76d-3992656af50d/resourceGroups/TestRG/providers/Microsoft.EdgeOrder/orders/TestOrderName1", | ||
"orderItemType": "Rental" | ||
}, | ||
"configuration": { | ||
"familyIdentifier": "AzureStackEdge", | ||
"productLineIdentifier": "AzureStackEdgePL", | ||
"productIdentifier": "AzureStackEdgeProGPU", | ||
"configurationIdentifier": "EdgeP_Base", | ||
"configurationIdentifierOnDevice": "EdgeP_High" | ||
}, | ||
"managementResource": { | ||
"armId": "/subscriptions/c783ea86-c85c-4175-b76d-3992656af50d/resourceGroups/EdgeTestRG/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/TestEdgeDeviceName1", | ||
"tenantId": "a783ea86-c85c-4175-b76d-3992656af50d" | ||
}, | ||
"inventory": { | ||
"status": "Healthy", | ||
"location": "Rack", | ||
"registrationAllowed": true | ||
}, | ||
"details": { | ||
"orderItem": { | ||
"status": { | ||
"stageStatus": "Succeeded", | ||
"stageName": "Delivered", | ||
"displayName": "Delivered - Succeeded", | ||
"startTime": "2020-08-07T10:50:36.3341513+05:30" | ||
}, | ||
"subscription": { | ||
"id": "b783ea86-c85c-4175-b76d-3992656af50d", | ||
"state": "Registered", | ||
"quotaId": "Internal_2014-09-01" | ||
} | ||
}, | ||
"inventoryMetadata": "This is currently in Japan", | ||
"configuration": { | ||
"specifications": [ | ||
{ | ||
"name": "Cores", | ||
"value": "24" | ||
}, | ||
{ | ||
"name": "Memory", | ||
"value": "128 GB" | ||
}, | ||
{ | ||
"name": "Storage", | ||
"value": "~8 TB" | ||
} | ||
] | ||
}, | ||
"inventory": { | ||
"additionalData": { | ||
"SourceCountry": "USA", | ||
"ManuacturingYear": "2020" | ||
} | ||
}, | ||
"billing": { | ||
"billingType": "Pav2", | ||
"status": "InProgress" | ||
}, | ||
"inventorySecrets": { | ||
"PublicCert": "<PublicCert>" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
specification/edgeorderpartner/resource-manager/readme.azureresourceschema.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## AzureResourceSchema | ||
|
||
These settings apply only when `--azureresourceschema` is specified on the command line. | ||
|
||
### AzureResourceSchema multi-api | ||
|
||
``` yaml $(azureresourceschema) && $(multiapi) | ||
batch: | ||
- tag: schema-edgeorderpartner-2020-12-01-preview | ||
|
||
``` | ||
|
||
Please also specify `--azureresourceschema-folder=<path to the root directory of your azure-resource-manager-schemas clone>`. | ||
|
||
### Tag: schema-edgeorderpartner-2020-12-01-preview and azureresourceschema | ||
|
||
``` yaml $(tag) == 'schema-edgeorderpartner-2020-12-01-preview' && $(azureresourceschema) | ||
output-folder: $(azureresourceschema-folder)/schemas | ||
|
||
# all the input files in this apiVersion | ||
input-file: | ||
- Microsoft.EdgeOrderPartner/preview/2020-12-01-preview/edgeorderpartner.json | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# EdgeOrderPartner | ||
|
||
> see https://aka.ms/autorest | ||
|
||
This is the AutoRest configuration file for EdgeOrderPartner. | ||
|
||
|
||
|
||
--- | ||
## Getting Started | ||
To build the SDK for EdgeOrderPartner, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: | ||
|
||
> `autorest` | ||
|
||
To see additional help and options, run: | ||
|
||
> `autorest --help` | ||
--- | ||
|
||
## Configuration | ||
|
||
|
||
|
||
### Basic Information | ||
These are the global settings for the EdgeOrderPartner API. | ||
|
||
``` yaml | ||
title: Edge Order Partner API's | ||
openapi-type: arm | ||
tag: package-2020-12-preview | ||
``` | ||
|
||
### Tag: package-2020-12-preview | ||
|
||
These settings apply only when `--tag=package-2020-12-preview` is specified on the command line. | ||
|
||
``` yaml $(tag) == 'package-2020-12-preview' | ||
input-file: | ||
- Microsoft.EdgeOrderPartner/preview/2020-12-01-preview/edgeorderpartner.json | ||
``` | ||
--- |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is recommended to take a SDK friendly
title
. It is usually used as entry point of the SDK. Generally SDK class cannot display space or quote.E.g. compute https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md#basic-information
results in SDK class https://docs.microsoft.com/en-us/python/api/azure-mgmt-compute/azure.mgmt.compute.computemanagementclient?view=azure-python
You can put the detail in
description
.