-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
submit attestation REST API swagger .json file for review (#6233)
* submit attestation REST API swagger .json file for review * resolve the comments from nschonni * movethe original files to folder 2018-09-01-preview * resolve the comments from KrisBash * add attesUri to status result * upload readme file * resolve model validation error * resolve modle validate errors * add the required parameter back
- Loading branch information
1 parent
61b83f6
commit 237aa47
Showing
8 changed files
with
754 additions
and
0 deletions.
There are no files selected for viewing
520 changes: 520 additions & 0 deletions
520
...on/attestation/resource-manager/Microsoft.Attestation/2018-09-01-preview/attestation.json
Large diffs are not rendered by default.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
...manager/Microsoft.Attestation/2018-09-01-preview/examples/Create_AttestationProvider.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,34 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "sample-resource-group", | ||
"serviceName": "sampleservicename", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2018-09-01-preview", | ||
"providerName": "providerName1", | ||
"creationParams": "test" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "subscriptions/subscriptionID/resourceGroups/resourceGroupID/providers/Microsoft.Attestation/attestationProviders/codes1", | ||
"name": "codes1", | ||
"type": "Microsoft.Attestation/attestationProviders", | ||
"properties": { | ||
"status": "Ready", | ||
"attestUri": "https://sample-attestation.attestation.azure.net" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "subscriptions/subscriptionID/resourceGroups/resourceGroupID/providers/Microsoft.Attestation/attestationProviders/codes1", | ||
"name": "codes1", | ||
"type": "Microsoft.Attestation/attestationProviders", | ||
"properties": { | ||
"status": "Ready", | ||
"attestUri": "https://sample-attestation.attestation.azure.net" | ||
} | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...manager/Microsoft.Attestation/2018-09-01-preview/examples/Delete_AttestationProvider.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,20 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "sample-resource-group", | ||
"serviceName": "sampleservicename", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2018-09-01-preview", | ||
"providerName": "providerName1" | ||
}, | ||
"responses": { | ||
"202": { | ||
"description": "Request accepted for deletion of attestation service" | ||
}, | ||
"200": { | ||
"description": "Resource exists and was deleted successfully" | ||
}, | ||
"204": { | ||
"description": "Resource does not exist" | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ce-manager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvider.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,21 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "sample-resource-group", | ||
"serviceName": "sampleservicename", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2018-09-01-preview", | ||
"providerName": "providerName1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "subscriptions/subscriptionID/resourceGroups/resourceGroupID/providers/Microsoft.Attestation/attestationProviders/codes1", | ||
"name": "codes1", | ||
"type": "Microsoft.Attestation/attestationProviders", | ||
"properties": { | ||
"status": "Ready" | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...nager/Microsoft.Attestation/2018-09-01-preview/examples/Get_AttestationProvidersList.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": "00000000-0000-0000-0000-000000000000", | ||
"api-version": "2018-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "subscriptions/6c96b33e-f5b8-40a6-9011-5cb1c58b0915/resourceGroups/testrg1/providers/Microsoft.Attestation/attestationProviders/codes1", | ||
"name": "codes1", | ||
"type": "Microsoft.Attestation/attestationProviders", | ||
"properties": { | ||
"status": "Ready" | ||
} | ||
}, | ||
{ | ||
"id": "subscriptions/6c96b33e-f5b8-40a6-9011-5cb1c58b0915/resourceGroups/testrg2/providers/Microsoft.Attestation/attestationProviders/codes2", | ||
"name": "codes2", | ||
"type": "Microsoft.Attestation/attestationProviders", | ||
"properties": { | ||
"status": "Ready" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
....Attestation/2018-09-01-preview/examples/Get_AttestationProvidersListByResourceGroup.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,31 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "testrg1", | ||
"subscriptionId": "6c96b33e-f5b8-40a6-9011-5cb1c58b0915", | ||
"api-version": "2018-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "subscriptions/6c96b33e-f5b8-40a6-9011-5cb1c58b0915/resourceGroups/testrg1/providers/Microsoft.Attestation/attestationProviders/codes1", | ||
"name": "codes1", | ||
"type": "Microsoft.Attestation/attestationProviders", | ||
"properties": { | ||
"status": "Ready" | ||
} | ||
}, | ||
{ | ||
"id": "subscriptions/6c96b33e-f5b8-40a6-9011-5cb1c58b0915/resourceGroups/testrg1/providers/Microsoft.Attestation/attestationProviders/codes2", | ||
"name": "codes2", | ||
"type": "Microsoft.Attestation/attestationProviders", | ||
"properties": { | ||
"status": "Ready" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...n/resource-manager/Microsoft.Attestation/2018-09-01-preview/examples/Operations_List.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,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": [ | ||
{ | ||
"name": "Microsoft.Attestation/attestationProviders/attestation/read", | ||
"display": { | ||
"provider": "Microsoft Azure Attestation", | ||
"resource": "Attestation", | ||
"operation": "Get status of attestation service", | ||
"description": "Get status of attestation service." | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.Attestation/attestationProviders/attestation/write", | ||
"display": { | ||
"provider": "Microsoft Azure Attestation", | ||
"resource": "Attestation", | ||
"operation": "Adds attestation service.", | ||
"description": "Adds attestation service." | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.Attestation/attestationProviders/attestation/delete", | ||
"display": { | ||
"provider": "Microsoft Azure Attestation", | ||
"resource": "Attestation", | ||
"operation": "Removes attestation service", | ||
"description": "Removes attestation service" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
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,60 @@ | ||
# Attestation | ||
|
||
> see https://aka.ms/autorest | ||
This is the AutoRest configuration file for Attestation. | ||
|
||
|
||
|
||
--- | ||
## Getting Started | ||
To build the SDK for Attestation, 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 Attestation API. | ||
|
||
``` yaml | ||
openapi-type: arm | ||
tag: package-2018-09 | ||
``` | ||
### Tag: package-2018-09 | ||
These settings apply only when `--tag=package-2018-09` is specified on the command line. | ||
|
||
``` yaml $(tag) == 'package-2018-09' | ||
input-file: | ||
- Microsoft.Attestation/2018-09-01-preview/attestation.json | ||
``` | ||
|
||
--- | ||
# Code Generation | ||
|
||
|
||
--- | ||
## C# | ||
|
||
These settings apply only when `--csharp` is specified on the command line. | ||
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`. | ||
|
||
``` yaml $(csharp) | ||
csharp: | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
namespace: Microsoft.Azure.Management.Attestation | ||
output-folder: $(csharp-sdks-folder)/attestation/Microsoft.Azure.Management.Attestation/src/Generated | ||
clear-output-folder: true | ||
``` | ||
|
||
|