Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ GC'd
GCMAES
gdpr
genderless
generatelivetoken
generateverificationcode
generatevpnclientpackage
generatevpnprofile
Expand Down Expand Up @@ -1167,6 +1168,7 @@ qloguniform
qnamaker
qnas
qnormal
Qssw
querylogs
querypool
querystring
Expand Down Expand Up @@ -1753,6 +1755,7 @@ XBing
Xeon
Xero
XSMB
XVCJ
Yucatec
Ywhk
YYMMDD
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/FabrikamFiberApp/providers/microsoft.insights/components/CustomAvailabilityTest/providers/microsoft.insights/generatelivetoken",
"api-version": "2020-06-02-preview"
},
"responses": {
"200": {
"body": {
"liveToken":
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"api-version": "2020-06-02-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "microsoft.insights/generatelivetoken",
"display": {
"provider": "Microsoft Container Instance",
"resource": "generatelivetoken",
"operation": "Gets an access token for live metrics stream data",
"description": "Gets an access token for live metrics stream data"
},
"origin": "User"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
{
"swagger": "2.0",
"info": {
"title": "ApplicationInsightsManagementClient",
"x-ms-code-generation-settings": {
"name": "ApplicationInsightsManagementClient"
},
"version": "2020-06-02-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/providers/microsoft.insights/operations": {
"get": {
"tags": [
"Operations"
],
"summary": "List available operations.",
"description": "List the available operations supported by the Microsoft.EventGrid resource provider.",
"operationId": "Operations_List",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationsListResult"
}
},
"default": {
"description": "*** Error Responses: ***\n\n * 400 Bad Request.\n\n * 500 Internal Server Error."
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"Operations_List": {
"$ref": "./examples/Operations_List.json"
}
}
}
},
"/{resourceUri}/providers/microsoft.insights/generatelivetoken": {
"post": {
"tags": [
"LiveToken"
],
"operationId": "LiveToken_Get",
"description": "**Gets an access token for live metrics stream data.**",
"parameters": [
{
"$ref": "#/parameters/ResourceUriParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"200": {
"description": "Successful response containing the live metrics stream token.",
"schema": {
"$ref": "#/definitions/LiveTokenResponse"
},
"examples": {
"application/json": {
"liveToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
}
}
},
"x-ms-examples": {
"Get live token for resource": {
"$ref": "./examples/LiveTokenGet.json"
}
}
}
}
},
"definitions": {
"ErrorResponse": {
"description": "Describes the format of an error response.",
"type": "object",
"properties": {
"code": {
"description": "Error code",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
}
}
},
"LiveTokenResponse": {
"type": "object",
"properties": {
"liveToken": {
"type": "string",
"description": "JWT token for accessing live metrics stream data.",
"readOnly": true
}
},
"description": "The response to a live token query."
},
"OperationsListResult": {
"description": "Result of the List Operations operation",
"type": "object",
"properties": {
"value": {
"description": "A collection of operations",
"type": "array",
"items": {
"$ref": "#/definitions/Operation"
}
},
"nextLink": {
"type": "string",
"description": "URL to get the next set of operation list results if there are any."
}
}
},
"Operation": {
"description": "Represents an operation returned by the GetOperations request",
"type": "object",
"properties": {
"name": {
"description": "Name of the operation",
"type": "string"
},
"display": {
"$ref": "#/definitions/OperationInfo",
"description": "Display name of the operation"
},
"origin": {
"description": "Origin of the operation",
"type": "string"
},
"properties": {
"description": "Properties of the operation",
"type": "object",
"x-ms-client-flatten": true
}
}
},
"OperationInfo": {
"description": "Information about an operation",
"type": "object",
"properties": {
"provider": {
"description": "Name of the provider",
"type": "string"
},
"resource": {
"description": "Name of the resource type",
"type": "string"
},
"operation": {
"description": "Name of the operation",
"type": "string"
},
"description": {
"description": "Description of the operation",
"type": "string"
}
}
}
},
"parameters": {
"ResourceUriParameter": {
"name": "resourceUri",
"in": "path",
"required": true,
"type": "string",
"description": "The identifier of the resource.",
"x-ms-parameter-location": "method",
"x-ms-skip-url-encoding": true
}
}
}
35 changes: 33 additions & 2 deletions specification/applicationinsights/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ These are the global settings for the ApplicationInsights API.
title: ApplicationInsightsManagementClient
description: Composite Swagger for Application Insights Management Client
openapi-type: arm
tag: package-preview-2020-02
tag: package-preview-2020-06
```

## Suppression
Expand Down Expand Up @@ -238,6 +238,37 @@ directive:
reason: There are a bug in this rule. "ExportConfigurations_Create" is a valid operation id.
```

### Tag: package-preview-2020-06-only

These settings apply only when `--tag=package-preview-2020-06-only` is specified on the command line.

```yaml $(tag) == 'package-preview-2020-06-only'
input-file:
- Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json
```

### Tag: package-preview-2020-06

These settings apply only when `--tag=package-preview-2020-06` is specified on the command line.

```yaml $(tag) == 'package-preview-2020-06'
input-file:
- Microsoft.Insights/stable/2015-05-01/aiOperations_API.json
- Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json
- Microsoft.Insights/stable/2015-05-01/componentApiKeys_API.json
- Microsoft.Insights/stable/2015-05-01/componentContinuousExport_API.json
- Microsoft.Insights/stable/2015-05-01/componentFeaturesAndPricing_API.json
- Microsoft.Insights/stable/2015-05-01/componentProactiveDetection_API.json
- Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json
- Microsoft.Insights/stable/2015-05-01/favorites_API.json
- Microsoft.Insights/stable/2015-05-01/webTestLocations_API.json
- Microsoft.Insights/stable/2015-05-01/webTests_API.json
- Microsoft.Insights/stable/2015-05-01/analyticsItems_API.json
- Microsoft.Insights/stable/2015-05-01/workbooks_API.json
- Microsoft.Insights/preview/2018-05-01-preview/components_API.json
- Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json
- Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json
```

### Tag: package-preview-2020-02

Expand Down Expand Up @@ -479,7 +510,7 @@ input-file:
- $(this-folder)/Microsoft.Insights/preview/2019-09-01-preview/QueryPacks_API.json
- $(this-folder)/Microsoft.Insights/preview/2020-02-02-preview/components_API.json
- $(this-folder)/Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json

- $(this-folder)/Microsoft.Insights/preview/2020-06-02-preview/livetoken_API.json
```

If there are files that should not be in the `all-api-versions` set,
Expand Down