-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial submission of TimeSeriesInsights public preview swagger spec …
…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
1 parent
da46240
commit 5199804
Showing
23 changed files
with
2,667 additions
and
0 deletions.
There are no files selected for viewing
1,911 changes: 1,911 additions & 0 deletions
1,911
arm-timeseriesinsights/2017-02-28-preview/Swagger/timeseriesinsights.json
Large diffs are not rendered by default.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
arm-timeseriesinsights/2017-02-28-preview/examples/AccessPoliciesCreate.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,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" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
arm-timeseriesinsights/2017-02-28-preview/examples/AccessPoliciesDelete.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,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"environmentName": "env1", | ||
"accessPolicyName": "ap1", | ||
"api-version": "2017-02-28-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
arm-timeseriesinsights/2017-02-28-preview/examples/AccessPoliciesGet.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,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" | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
arm-timeseriesinsights/2017-02-28-preview/examples/AccessPoliciesListByEnvironment.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,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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
arm-timeseriesinsights/2017-02-28-preview/examples/AccessPoliciesPatchRoles.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,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" | ||
} | ||
} | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
arm-timeseriesinsights/2017-02-28-preview/examples/EnvironmentsCreate.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": { | ||
"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": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
arm-timeseriesinsights/2017-02-28-preview/examples/EnvironmentsDelete.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,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"environmentName": "env1", | ||
"api-version": "2017-02-28-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
arm-timeseriesinsights/2017-02-28-preview/examples/EnvironmentsGet.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,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 | ||
} | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
arm-timeseriesinsights/2017-02-28-preview/examples/EnvironmentsListByResourceGroup.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": { | ||
"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 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
arm-timeseriesinsights/2017-02-28-preview/examples/EnvironmentsListBySubscription.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": "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 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
arm-timeseriesinsights/2017-02-28-preview/examples/EnvironmentsPatchSkuCapacity.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": { | ||
"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 | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.