Skip to content

Commit

Permalink
Initial submission of TimeSeriesInsights public preview swagger spec …
Browse files Browse the repository at this point in the history
…and examples (#1137)

* Initial commit of TimeSeriesInsights swagger spec for public preview.

* Add swagger examples for all Environmnet operations

* Add examples for all operations for all resource types.
The examples for EventSource are not linked into the spec because of validation failures, which I believe are caused by the tool not handling polymorphic resources correctly.

* Address PR feedback

* Remove responses from examples that matched the default response in the spec.
The only error now when running oav validate-example is EventSources_Get. I need to solve the problems with polymorphism and x-ms-client-flatten to fix this.

* Remove example for EventSources_Get to prevent errors when running "oav validate-example" until we solve the problems with polymorphic responses.
  • Loading branch information
sandshadow authored and vishrutshah committed Apr 28, 2017
1 parent da46240 commit 5199804
Show file tree
Hide file tree
Showing 23 changed files with 2,667 additions and 0 deletions.
1,911 changes: 1,911 additions & 0 deletions arm-timeseriesinsights/2017-02-28-preview/Swagger/timeseriesinsights.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"environmentName": "env1",
"accessPolicyName": "ap1",
"parameters": {
"properties": {
"principalObjectId": "aGuid",
"roles": [ "Reader" ],
"description": "some description"
}
},
"api-version": "2017-02-28-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/accessPolicies/ap1",
"name": "ap1",
"type": "Microsoft.TimeSeriesInsights/Environments/AccessPolicies",
"properties": {
"principalObjectId": "aGuid",
"roles": [ "Reader" ],
"description": "some description"
}
}
},
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/accessPolicies/ap1",
"name": "ap1",
"type": "Microsoft.TimeSeriesInsights/Environments/AccessPolicies",
"properties": {
"principalObjectId": "aGuid",
"roles": [ "Reader" ],
"description": "some description"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"environmentName": "env1",
"accessPolicyName": "ap1",
"api-version": "2017-02-28-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"environmentName": "env1",
"accessPolicyName": "ap1",
"api-version": "2017-02-28-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/accessPolicies/ap1",
"name": "ap1",
"type": "Microsoft.TimeSeriesInsights/Environments/AccessPolicies",
"properties": {
"principalObjectId": "aGuid",
"roles": [ "Reader" ],
"description": "some description"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"environmentName": "env1",
"api-version": "2017-02-28-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/accessPolicies/ap1",
"name": "ap1",
"type": "Microsoft.TimeSeriesInsights/Environments/AccessPolicies",
"properties": {
"principalObjectId": "aGuid",
"roles": [ "Reader" ],
"description": "some description"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"environmentName": "env1",
"accessPolicyName": "ap1",
"accessPolicyUpdateParameters": {
"properties": {
"roles": [ "Reader", "Contributor" ]
}
},
"api-version": "2017-02-28-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/accessPolicies/ap1",
"name": "ap1",
"type": "Microsoft.TimeSeriesInsights/Environments/AccessPolicies",
"properties": {
"principalObjectId": "aGuid",
"roles": [ "Reader" ],
"description": "some description"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"environmentName": "env1",
"parameters": {
"location": "West US",
"sku": {
"name": "S1",
"capacity": 1
},
"properties": {
"dataRetentionTime": "P31D"
}
},
"api-version": "2017-02-28-preview"
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1",
"location": "West US",
"name": "env1",
"type": "Microsoft.TimeSeriesInsights/Environments",
"tags": {},
"properties": {
"dataRetentionTime": "P31D",
"provisioningState": "Creating",
"creationTime": "2017-04-18T19:20:33.2288820Z"
},
"sku": {
"name": "S1",
"capacity": 1
}
}
},
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1",
"location": "West US",
"name": "env1",
"type": "Microsoft.TimeSeriesInsights/Environments",
"tags": {},
"properties": {
"dataRetentionTime": "P31D",
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z"
},
"sku": {
"name": "S1",
"capacity": 1
}
}
},
"404": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"environmentName": "env1",
"api-version": "2017-02-28-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "subid",
"environmentName": "env1",
"resourceGroupName": "rg1",
"api-version": "2017-02-28-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1",
"location": "West US",
"name": "env1",
"type": "Microsoft.TimeSeriesInsights/Environments",
"tags": {},
"properties": {
"dataRetentionTime": "P31D",
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z"
},
"sku": {
"name": "S1",
"capacity": 1
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"api-version": "2017-02-28-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1",
"location": "West US",
"name": "env1",
"type": "Microsoft.TimeSeriesInsights/Environments",
"tags": {},
"properties": {
"dataRetentionTime": "P31D",
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z"
},
"sku": {
"name": "S1",
"capacity": 1
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "subid",
"api-version": "2017-02-28-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1",
"location": "West US",
"name": "env1",
"type": "Microsoft.TimeSeriesInsights/Environments",
"tags": {},
"properties": {
"dataRetentionTime": "P31D",
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z"
},
"sku": {
"name": "S1",
"capacity": 1
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"environmentName": "env1",
"environmentUpdateParameters": {
"sku": {
"name": "S1",
"capacity": 10
}
},
"api-version": "2017-02-28-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1",
"location": "West US",
"name": "env1",
"type": "Microsoft.TimeSeriesInsights/Environments",
"tags": {},
"properties": {
"dataRetentionTime": "P31D",
"provisioningState": "Succeeded",
"creationTime": "2017-04-18T19:20:33.2288820Z"
},
"sku": {
"name": "S1",
"capacity": 10
}
}
}
}
}

0 comments on commit 5199804

Please sign in to comment.