Skip to content

Commit

Permalink
submit attestation REST API swagger .json file for review (#6233)
Browse files Browse the repository at this point in the history
* 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
shleiAmy authored and amarzavery committed Jun 17, 2019
1 parent 61b83f6 commit 237aa47
Show file tree
Hide file tree
Showing 8 changed files with 754 additions and 0 deletions.

Large diffs are not rendered by default.

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"
}
}
}
}
}
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"
}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
]
}
}
}
60 changes: 60 additions & 0 deletions specification/attestation/resource-manager/readme.md
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
```


0 comments on commit 237aa47

Please sign in to comment.