-
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.
Add a new preview api-version for Time Series Insights (#4599)
* Fix or suppress spec violations Fix R2016 by making PATCH body properties optional. Suppress the remaining 4 violations that are confirmed as false positives. * Try removing 2nd top-level heading, which _may_ have been causing a linter warning. * Fix extra indention which prevented linter from running. * Added dataStringComparisonBehavior parameter to reference data put/update spec. * Fixed grammar. * adding partitionkeyProperty to environmentInfo * changing property name * changing modelAsString * Initial checkin of spec. Unchanged from GA release other than version. * Remove .orig files * Fix validation error by removing IoTHub ES from List ES example response * Add extra example that was missing from preview spec. * Add long-term environment to resource hierarchy, and update examples. * Switch to model-as-string for enums. Restore EnvironmentResource's inheritance from TrackedResource. * Upsate sku description * Add new TSI preview api-version to readme.md. * Add suppressions for false-positive linter failures. * Test suppression failures * Adding preview package tag to several other places in readme.md * Add preview package to the readme.go.md file * Remove invalid required property from EnvironmentCreateOrUpdateParameters
- Loading branch information
1 parent
dd2a88f
commit a2fb5b7
Showing
31 changed files
with
3,495 additions
and
2 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...icrosoft.TimeSeriesInsights/preview/2018-08-15-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": "2018-08-15-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
...icrosoft.TimeSeriesInsights/preview/2018-08-15-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": "2018-08-15-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...r/Microsoft.TimeSeriesInsights/preview/2018-08-15-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": "2018-08-15-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
...meSeriesInsights/preview/2018-08-15-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": "2018-08-15-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
...soft.TimeSeriesInsights/preview/2018-08-15-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": "2018-08-15-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" | ||
} | ||
} | ||
} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
.../Microsoft.TimeSeriesInsights/preview/2018-08-15-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,66 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"environmentName": "env1", | ||
"parameters": { | ||
"location": "West US", | ||
"kind": "Standard", | ||
"sku": { | ||
"name": "S1", | ||
"capacity": 1 | ||
}, | ||
"properties": { | ||
"dataRetentionTime": "P31D", | ||
"partitionKeyProperties": [ | ||
{ | ||
"name": "DeviceId1", | ||
"type": "String" | ||
} | ||
] | ||
} | ||
}, | ||
"api-version": "2018-08-15-preview" | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", | ||
"location": "West US", | ||
"name": "env1", | ||
"type": "Microsoft.TimeSeriesInsights/Environments", | ||
"kind": "Standard", | ||
"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", | ||
"kind": "Standard", | ||
"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
.../Microsoft.TimeSeriesInsights/preview/2018-08-15-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": "2018-08-15-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...ger/Microsoft.TimeSeriesInsights/preview/2018-08-15-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,35 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"environmentName": "env1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-08-15-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", | ||
"location": "West US", | ||
"name": "env1", | ||
"type": "Microsoft.TimeSeriesInsights/Environments", | ||
"kind": "Standard", | ||
"tags": {}, | ||
"properties": { | ||
"dataRetentionTime": "P31D", | ||
"provisioningState": "Succeeded", | ||
"creationTime": "2017-04-18T19:20:33.2288820Z", | ||
"partitionKeyProperties": [ | ||
{ | ||
"name": "DeviceId1", | ||
"type": "String" | ||
} | ||
] | ||
}, | ||
"sku": { | ||
"name": "S1", | ||
"capacity": 1 | ||
} | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...t.TimeSeriesInsights/preview/2018-08-15-preview/examples/EnvironmentsGetExpandStatus.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,44 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"environmentName": "env1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-08-15-preview5", | ||
"$expand": "status" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", | ||
"location": "West US", | ||
"name": "env1", | ||
"type": "Microsoft.TimeSeriesInsights/Environments", | ||
"kind": "Standard", | ||
"tags": {}, | ||
"properties": { | ||
"dataRetentionTime": "P31D", | ||
"provisioningState": "Succeeded", | ||
"creationTime": "2017-04-18T19:20:33.2288820Z", | ||
"storageLimitExceededBehavior": "PurgeOldData", | ||
"partitionKeyProperties": [ | ||
{ | ||
"name": "DeviceId1", | ||
"type": "String" | ||
} | ||
], | ||
"dataAccessId": "<dataAccessId>", | ||
"dataAccessFqdn": "<dataAccessIdFqdn>", | ||
"status": { | ||
"ingress": { | ||
"state": "Running" | ||
} | ||
} | ||
}, | ||
"sku": { | ||
"name": "S1", | ||
"capacity": 1 | ||
} | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...meSeriesInsights/preview/2018-08-15-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,32 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2018-08-15-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", | ||
"location": "West US", | ||
"name": "env1", | ||
"type": "Microsoft.TimeSeriesInsights/Environments", | ||
"kind": "Standard", | ||
"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
...imeSeriesInsights/preview/2018-08-15-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,31 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"api-version": "2018-08-15-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1", | ||
"location": "West US", | ||
"name": "env1", | ||
"type": "Microsoft.TimeSeriesInsights/Environments", | ||
"kind": "Standard", | ||
"tags": {}, | ||
"properties": { | ||
"dataRetentionTime": "P31D", | ||
"provisioningState": "Succeeded", | ||
"creationTime": "2017-04-18T19:20:33.2288820Z" | ||
}, | ||
"sku": { | ||
"name": "S1", | ||
"capacity": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.