Skip to content

Commit

Permalink
Add a new preview api-version for Time Series Insights (#4599)
Browse files Browse the repository at this point in the history
* 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
sandshadow authored and sarangan12 committed Nov 29, 2018
1 parent dd2a88f commit a2fb5b7
Show file tree
Hide file tree
Showing 31 changed files with 3,495 additions and 2 deletions.
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"
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
}
}
}
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": {}
}
}
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": {}
}
}
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
}
}
}
}
}
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
}
}
}
}
}
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
}
}
]
}
}
}
}
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
}
}
]
}
}
}
}
Loading

0 comments on commit a2fb5b7

Please sign in to comment.