From 9a15d301ad237ec54d657fd1863250d65e45dd8b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 13 Dec 2024 22:18:14 +0000 Subject: [PATCH] CodeGen from PR 31830 in Azure/azure-rest-api-specs Merge 1564ec7211295f2d67addcfc49b9b471bb7ce559 into 495c99982b1231e229c9f6309602d0f10d35730d --- common/config/rush/pnpm-lock.yaml | 6 +- .../arm-appinsights/CHANGELOG.md | 16 +- .../arm-appinsights/LICENSE | 2 +- .../arm-appinsights/README.md | 1 - .../arm-appinsights/_meta.json | 8 +- .../arm-appinsights/package.json | 62 +- .../review/arm-appinsights.api.md | 310 +- .../arm-appinsights/sample.env | 5 +- .../applicationInsightsManagementClient.ts | 86 +- .../arm-appinsights/src/models/index.ts | 1312 +++-- .../arm-appinsights/src/models/mappers.ts | 5036 +++++++++-------- .../arm-appinsights/src/models/parameters.ts | 488 +- .../arm-appinsights/src/operations/aPIKeys.ts | 90 +- .../src/operations/analyticsItems.ts | 84 +- .../src/operations/annotations.ts | 104 +- .../operations/componentAvailableFeatures.ts | 24 +- .../componentCurrentBillingFeatures.ts | 43 +- .../componentFeatureCapabilities.ts | 24 +- ...omponentLinkedStorageAccountsOperations.ts | 91 +- .../src/operations/componentQuotaStatus.ts | 21 +- .../src/operations/components.ts | 218 +- .../src/operations/deletedWorkbooks.ts | 160 + .../src/operations/exportConfigurations.ts | 113 +- .../src/operations/favorites.ts | 107 +- .../arm-appinsights/src/operations/index.ts | 7 +- .../src/operations/liveToken.ts | 12 +- .../src/operations/myWorkbooks.ts | 535 -- .../src/operations/operations.ts | 149 + .../proactiveDetectionConfigurations.ts | 72 +- .../src/operations/webTestLocations.ts | 33 +- .../src/operations/webTests.ts | 223 +- .../src/operations/workItemConfigurations.ts | 130 +- .../src/operations/workbookTemplates.ts | 117 +- .../src/operations/workbooks.ts | 308 +- .../src/operationsInterfaces/aPIKeys.ts | 10 +- .../operationsInterfaces/analyticsItems.ts | 10 +- .../src/operationsInterfaces/annotations.ts | 10 +- .../componentAvailableFeatures.ts | 4 +- .../componentCurrentBillingFeatures.ts | 6 +- .../componentFeatureCapabilities.ts | 4 +- ...omponentLinkedStorageAccountsOperations.ts | 10 +- .../componentQuotaStatus.ts | 4 +- .../src/operationsInterfaces/components.ts | 22 +- .../operationsInterfaces/deletedWorkbooks.ts | 25 + .../exportConfigurations.ts | 12 +- .../src/operationsInterfaces/favorites.ts | 12 +- .../src/operationsInterfaces/index.ts | 7 +- .../src/operationsInterfaces/liveToken.ts | 2 +- .../src/operationsInterfaces/myWorkbooks.ts | 95 - .../src/operationsInterfaces/operations.ts | 22 + .../proactiveDetectionConfigurations.ts | 8 +- .../operationsInterfaces/webTestLocations.ts | 4 +- .../src/operationsInterfaces/webTests.ts | 32 +- .../workItemConfigurations.ts | 14 +- .../operationsInterfaces/workbookTemplates.ts | 12 +- .../src/operationsInterfaces/workbooks.ts | 30 +- .../arm-appinsights/src/pagingHelper.ts | 10 +- .../arm-appinsights/test/sampleTest.ts | 8 +- .../arm-appinsights/tsconfig.json | 12 +- 59 files changed, 5110 insertions(+), 5272 deletions(-) create mode 100644 sdk/applicationinsights/arm-appinsights/src/operations/deletedWorkbooks.ts delete mode 100644 sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts create mode 100644 sdk/applicationinsights/arm-appinsights/src/operations/operations.ts create mode 100644 sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/deletedWorkbooks.ts delete mode 100644 sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/myWorkbooks.ts create mode 100644 sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/operations.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 8945b48e0590..fab31edbe33b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2591,7 +2591,7 @@ packages: version: 0.0.0 '@rush-temp/arm-appinsights@file:projects/arm-appinsights.tgz': - resolution: {integrity: sha512-Qv78CyKrBKjLg4TmEzdrNcH5S+/LUwd3Tl+Qok0xxR9+JIueJ1KVI0lh41Dw96PyeuzhznIsbK9ZiQgfbvBiFg==, tarball: file:projects/arm-appinsights.tgz} + resolution: {integrity: sha512-WbfzrQjfqamdTB4VK+BWYyAED2jKkyldjz4Ut3GLBRiO35iw+1VxljqvWENNQB9gRVL+i7WjDaeJvfeqbNpA3w==, tarball: file:projects/arm-appinsights.tgz} version: 0.0.0 '@rush-temp/arm-appplatform@file:projects/arm-appplatform.tgz': @@ -11029,9 +11029,11 @@ snapshots: '@types/mocha': 10.0.10 '@types/node': 18.19.68 chai: 4.5.0 - mocha: 11.0.2 + dotenv: 16.4.7 + mocha: 10.8.2 ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.6.3) tslib: 2.8.1 + tsx: 4.19.2 typescript: 5.6.3 transitivePeerDependencies: - '@swc/core' diff --git a/sdk/applicationinsights/arm-appinsights/CHANGELOG.md b/sdk/applicationinsights/arm-appinsights/CHANGELOG.md index 659da3adcdf4..f5f7c3022323 100644 --- a/sdk/applicationinsights/arm-appinsights/CHANGELOG.md +++ b/sdk/applicationinsights/arm-appinsights/CHANGELOG.md @@ -1,21 +1,13 @@ # Release History - -## 5.0.0-beta.8 (Unreleased) + +## 5.0.0-beta.8 (2024-12-13) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 5.0.0-beta.7 (2022-11-15) - -The package of @azure/arm-appinsights is using our next generation design principles since version 5.0.0-beta.7, which contains breaking changes. +The package of @azure/arm-appinsights is using our next generation design principles since version 5.0.0-beta.8, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/applicationinsights/arm-appinsights/LICENSE b/sdk/applicationinsights/arm-appinsights/LICENSE index 5d1d36e0af80..7d5934740965 100644 --- a/sdk/applicationinsights/arm-appinsights/LICENSE +++ b/sdk/applicationinsights/arm-appinsights/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/applicationinsights/arm-appinsights/README.md b/sdk/applicationinsights/arm-appinsights/README.md index 3d99e3017bfb..78c01b99d34c 100644 --- a/sdk/applicationinsights/arm-appinsights/README.md +++ b/sdk/applicationinsights/arm-appinsights/README.md @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure ApplicationInsightsManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). diff --git a/sdk/applicationinsights/arm-appinsights/_meta.json b/sdk/applicationinsights/arm-appinsights/_meta.json index 37ce19e81c21..4047899913f1 100644 --- a/sdk/applicationinsights/arm-appinsights/_meta.json +++ b/sdk/applicationinsights/arm-appinsights/_meta.json @@ -1,8 +1,8 @@ { - "commit": "261f2cd5b009f319d44149da020c42e3d0832a7a", + "commit": "ab1f2d13e67656af5fdd3ed53845b53d24e9bd7c", "readme": "specification/applicationinsights/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\applicationinsights\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.16", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/applicationinsights/arm-appinsights/package.json b/sdk/applicationinsights/arm-appinsights/package.json index a276a871c46f..d777e8f9ee20 100644 --- a/sdk/applicationinsights/arm-appinsights/package.json +++ b/sdk/applicationinsights/arm-appinsights/package.json @@ -8,10 +8,10 @@ "node": ">=18.0.0" }, "dependencies": { - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.6.1", "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -26,19 +26,20 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-appinsights.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "typescript": "~5.6.2", + "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", + "@azure/identity": "^4.2.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.1.0", + "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", + "tsx": "^4.7.1", + "@types/chai": "^4.2.8", "chai": "^4.2.0", - "mocha": "^11.0.2", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/applicationinsights/arm-appinsights", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -65,28 +66,28 @@ ], "scripts": { "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", - "build:samples": "echo skipped.", + "build:browser": "echo skipped", "build:test": "echo skipped", + "build:samples": "echo skipped.", "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", "test": "npm run integration-test", - "test:browser": "echo skipped", "test:node": "echo skipped", + "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -99,12 +100,5 @@ ] }, "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appinsights?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/applicationinsights/arm-appinsights" +} \ No newline at end of file diff --git a/sdk/applicationinsights/arm-appinsights/review/arm-appinsights.api.md b/sdk/applicationinsights/arm-appinsights/review/arm-appinsights.api.md index dcba0d2cd1cd..a1b38accd733 100644 --- a/sdk/applicationinsights/arm-appinsights/review/arm-appinsights.api.md +++ b/sdk/applicationinsights/arm-appinsights/review/arm-appinsights.api.md @@ -35,7 +35,7 @@ export type AnalyticsItemsGetResponse = ApplicationInsightsComponentAnalyticsIte export interface AnalyticsItemsListOptionalParams extends coreClient.OperationOptions { includeContent?: boolean; scope?: ItemScope; - typeParam?: ItemTypeParameter; + type?: ItemTypeParameter; } // @public @@ -372,6 +372,7 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApplicationInsightsManagementClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: ApplicationInsightsManagementClientOptionalParams); // (undocumented) analyticsItems: AnalyticsItems; // (undocumented) @@ -391,17 +392,19 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien // (undocumented) components: Components; // (undocumented) + deletedWorkbooks: DeletedWorkbooks; + // (undocumented) exportConfigurations: ExportConfigurations; // (undocumented) favorites: Favorites; // (undocumented) liveToken: LiveToken; // (undocumented) - myWorkbooks: MyWorkbooks; + operations: Operations; // (undocumented) proactiveDetectionConfigurations: ProactiveDetectionConfigurations; // (undocumented) - subscriptionId: string; + subscriptionId?: string; // (undocumented) webTestLocations: WebTestLocations; // (undocumented) @@ -648,15 +651,82 @@ export type ComponentsUpdateTagsResponse = ApplicationInsightsComponent; export type CreatedByType = string; // @public -export interface ErrorDefinition { +export interface DeletedWorkbook extends DeletedWorkbookResource { + category?: string; + description?: string; + displayName?: string; + readonly revision?: string; + serializedData?: string; + sourceId?: string; + storageUri?: string; + tagsPropertiesTags?: string[]; + readonly timeModified?: Date; + readonly userId?: string; + version?: string; +} + +// @public +export interface DeletedWorkbookError { + error?: DeletedWorkbookErrorDefinition; +} + +// @public +export interface DeletedWorkbookErrorDefinition { readonly code?: string; - readonly innererror?: any; + readonly innererror?: DeletedWorkbookInnerErrorTrace; readonly message?: string; } +// @public +export interface DeletedWorkbookInnerErrorTrace { + readonly trace?: string[]; +} + +// @public +export interface DeletedWorkbookResource extends TrackedResourceAutoGenerated { + etag?: string; + kind?: WorkbookSharedTypeKind; +} + +// @public +export interface DeletedWorkbooks { + listBySubscription(options?: DeletedWorkbooksListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DeletedWorkbooksListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DeletedWorkbooksListBySubscriptionNextResponse = DeletedWorkbooksListResult; + +// @public +export interface DeletedWorkbooksListBySubscriptionOptionalParams extends coreClient.OperationOptions { + category?: CategoryType; + tags?: string[]; +} + +// @public +export type DeletedWorkbooksListBySubscriptionResponse = DeletedWorkbooksListResult; + +// @public +export interface DeletedWorkbooksListResult { + // (undocumented) + nextLink?: string; + readonly value?: DeletedWorkbook[]; +} + +// @public +export interface ErrorFieldContract { + code?: string; + message?: string; + target?: string; +} + // @public export interface ErrorResponse { code?: string; + details?: ErrorFieldContract[]; message?: string; } @@ -783,6 +853,12 @@ export type FlowType = string; // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export interface HeaderField { + headerFieldName?: string; + headerFieldValue?: string; +} + // @public export type IngestionMode = string; @@ -792,11 +868,6 @@ export interface InnerError { time?: Date; } -// @public -export interface InnerErrorTrace { - readonly trace?: string[]; -} - // @public export type ItemScope = string; @@ -809,9 +880,6 @@ export type ItemType = string; // @public export type ItemTypeParameter = string; -// @public -export type Kind = string; - // @public export enum KnownApplicationType { Other = "other", @@ -887,12 +955,6 @@ export enum KnownItemTypeParameter { Recent = "recent" } -// @public -export enum KnownKind { - Shared = "shared", - User = "user" -} - // @public export enum KnownManagedServiceIdentityType { None = "None", @@ -901,12 +963,6 @@ export enum KnownManagedServiceIdentityType { UserAssigned = "UserAssigned" } -// @public -export enum KnownMyWorkbookManagedIdentityType { - None = "None", - UserAssigned = "UserAssigned" -} - // @public export enum KnownPublicNetworkAccessType { Disabled = "Disabled", @@ -969,138 +1025,6 @@ export interface ManagedServiceIdentity { // @public export type ManagedServiceIdentityType = string; -// @public -export interface MyWorkbook extends MyWorkbookResource { - category?: string; - displayName?: string; - kind?: Kind; - serializedData?: string; - sourceId?: string; - storageUri?: string; - readonly systemData?: SystemData; - tagsPropertiesTags?: string[]; - readonly timeModified?: string; - readonly userId?: string; - version?: string; -} - -// @public -export interface MyWorkbookError { - error?: ErrorDefinition; -} - -// @public -export interface MyWorkbookManagedIdentity { - type?: MyWorkbookManagedIdentityType; - userAssignedIdentities?: MyWorkbookUserAssignedIdentities; -} - -// @public -export type MyWorkbookManagedIdentityType = string; - -// @public -export interface MyWorkbookResource { - etag?: { - [propertyName: string]: string; - }; - id?: string; - identity?: MyWorkbookManagedIdentity; - location?: string; - name?: string; - tags?: { - [propertyName: string]: string; - }; - type?: string; -} - -// @public -export interface MyWorkbooks { - createOrUpdate(resourceGroupName: string, resourceName: string, workbookProperties: MyWorkbook, options?: MyWorkbooksCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, resourceName: string, options?: MyWorkbooksDeleteOptionalParams): Promise; - get(resourceGroupName: string, resourceName: string, options?: MyWorkbooksGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, category: CategoryType, options?: MyWorkbooksListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(category: CategoryType, options?: MyWorkbooksListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, resourceName: string, workbookProperties: MyWorkbook, options?: MyWorkbooksUpdateOptionalParams): Promise; -} - -// @public -export interface MyWorkbooksCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - sourceId?: string; -} - -// @public -export type MyWorkbooksCreateOrUpdateResponse = MyWorkbook; - -// @public -export interface MyWorkbooksDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface MyWorkbooksGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type MyWorkbooksGetResponse = MyWorkbook; - -// @public -export interface MyWorkbooksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - canFetchContent?: boolean; - sourceId?: string; - tags?: string[]; -} - -// @public -export type MyWorkbooksListByResourceGroupNextResponse = MyWorkbooksListResult; - -// @public -export interface MyWorkbooksListByResourceGroupOptionalParams extends coreClient.OperationOptions { - canFetchContent?: boolean; - sourceId?: string; - tags?: string[]; -} - -// @public -export type MyWorkbooksListByResourceGroupResponse = MyWorkbooksListResult; - -// @public -export interface MyWorkbooksListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { - canFetchContent?: boolean; - tags?: string[]; -} - -// @public -export type MyWorkbooksListBySubscriptionNextResponse = MyWorkbooksListResult; - -// @public -export interface MyWorkbooksListBySubscriptionOptionalParams extends coreClient.OperationOptions { - canFetchContent?: boolean; - tags?: string[]; -} - -// @public -export type MyWorkbooksListBySubscriptionResponse = MyWorkbooksListResult; - -// @public -export interface MyWorkbooksListResult { - // (undocumented) - nextLink?: string; - readonly value?: MyWorkbook[]; -} - -// @public -export interface MyWorkbooksUpdateOptionalParams extends coreClient.OperationOptions { - sourceId?: string; -} - -// @public -export type MyWorkbooksUpdateResponse = MyWorkbook; - -// @public -export interface MyWorkbookUserAssignedIdentities { - readonly principalId?: string; - readonly tenantId?: string; -} - // @public export interface Operation { display?: OperationDisplay; @@ -1137,6 +1061,25 @@ export interface OperationLive { properties?: Record; } +// @public +export interface Operations { + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListNextResponse = OperationListResult; + +// @public +export interface OperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListResponse = OperationListResult; + // @public export interface OperationsListResult { nextLink?: string; @@ -1197,6 +1140,14 @@ export interface Resource { readonly type?: string; } +// @public +export interface ResourceAutoGenerated { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + // @public export type StorageType = string; @@ -1225,6 +1176,14 @@ export interface TrackedResource extends Resource { }; } +// @public +export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated { + location: string; + tags?: { + [propertyName: string]: string; + }; +} + // @public export interface UserAssignedIdentity { readonly clientId?: string; @@ -1240,9 +1199,11 @@ export interface WebTest extends WebtestsResource { kind?: WebTestKind; locations?: WebTestGeolocation[]; readonly provisioningState?: string; + request?: WebTestPropertiesRequest; retryEnabled?: boolean; syntheticMonitorId?: string; timeout?: number; + validationRules?: WebTestPropertiesValidationRules; webTestKind?: WebTestKind; webTestName?: string; } @@ -1253,7 +1214,7 @@ export interface WebTestGeolocation { } // @public -export type WebTestKind = "ping" | "multistep"; +export type WebTestKind = "ping" | "multistep" | "standard"; // @public export interface WebTestListResult { @@ -1278,6 +1239,32 @@ export interface WebTestPropertiesConfiguration { webTest?: string; } +// @public +export interface WebTestPropertiesRequest { + followRedirects?: boolean; + headers?: HeaderField[]; + httpVerb?: string; + parseDependentRequests?: boolean; + requestBody?: string; + requestUrl?: string; +} + +// @public +export interface WebTestPropertiesValidationRules { + contentValidation?: WebTestPropertiesValidationRulesContentValidation; + expectedHttpStatusCode?: number; + ignoreHttpStatusCode?: boolean; + sSLCertRemainingLifetimeCheck?: number; + sSLCheck?: boolean; +} + +// @public +export interface WebTestPropertiesValidationRulesContentValidation { + contentMatch?: string; + ignoreCase?: boolean; + passIfTextFound?: boolean; +} + // @public export interface WebTests { createOrUpdate(resourceGroupName: string, webTestName: string, webTestDefinition: WebTest, options?: WebTestsCreateOrUpdateOptionalParams): Promise; @@ -1391,7 +1378,7 @@ export interface WorkbookError { // @public export interface WorkbookErrorDefinition { readonly code?: string; - readonly innerError?: any; + readonly innererror?: WorkbookInnerErrorTrace; readonly message?: string; } @@ -1448,9 +1435,6 @@ export type WorkbookSharedTypeKind = string; // @public export interface WorkbooksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - canFetchContent?: boolean; - sourceId?: string; - tags?: string[]; } // @public @@ -1468,8 +1452,6 @@ export type WorkbooksListByResourceGroupResponse = WorkbooksListResult; // @public export interface WorkbooksListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { - canFetchContent?: boolean; - tags?: string[]; } // @public diff --git a/sdk/applicationinsights/arm-appinsights/sample.env b/sdk/applicationinsights/arm-appinsights/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/applicationinsights/arm-appinsights/sample.env +++ b/sdk/applicationinsights/arm-appinsights/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts index b8d18849a886..d70303833e17 100644 --- a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts +++ b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts @@ -10,6 +10,7 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { + ComponentsImpl, AnnotationsImpl, APIKeysImpl, ExportConfigurationsImpl, @@ -23,14 +24,15 @@ import { WebTestLocationsImpl, WebTestsImpl, AnalyticsItemsImpl, + OperationsImpl, WorkbookTemplatesImpl, - MyWorkbooksImpl, WorkbooksImpl, - ComponentsImpl, + LiveTokenImpl, ComponentLinkedStorageAccountsOperationsImpl, - LiveTokenImpl + DeletedWorkbooksImpl, } from "./operations"; import { + Components, Annotations, APIKeys, ExportConfigurations, @@ -44,18 +46,18 @@ import { WebTestLocations, WebTests, AnalyticsItems, + Operations, WorkbookTemplates, - MyWorkbooks, Workbooks, - Components, + LiveToken, ComponentLinkedStorageAccountsOperations, - LiveToken + DeletedWorkbooks, } from "./operationsInterfaces"; import { ApplicationInsightsManagementClientOptionalParams } from "./models"; export class ApplicationInsightsManagementClient extends coreClient.ServiceClient { $host: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the ApplicationInsightsManagementClient class. @@ -66,13 +68,29 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ApplicationInsightsManagementClientOptionalParams + options?: ApplicationInsightsManagementClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: ApplicationInsightsManagementClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: + | ApplicationInsightsManagementClientOptionalParams + | string, + options?: ApplicationInsightsManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -81,7 +99,7 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien } const defaults: ApplicationInsightsManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; const packageDetails = `azsdk-js-arm-appinsights/5.0.0-beta.8`; @@ -94,20 +112,21 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -117,7 +136,7 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -127,9 +146,9 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -137,35 +156,34 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.components = new ComponentsImpl(this); this.annotations = new AnnotationsImpl(this); this.aPIKeys = new APIKeysImpl(this); this.exportConfigurations = new ExportConfigurationsImpl(this); - this.componentCurrentBillingFeatures = new ComponentCurrentBillingFeaturesImpl( - this - ); + this.componentCurrentBillingFeatures = + new ComponentCurrentBillingFeaturesImpl(this); this.componentQuotaStatus = new ComponentQuotaStatusImpl(this); this.componentFeatureCapabilities = new ComponentFeatureCapabilitiesImpl( - this + this, ); this.componentAvailableFeatures = new ComponentAvailableFeaturesImpl(this); - this.proactiveDetectionConfigurations = new ProactiveDetectionConfigurationsImpl( - this - ); + this.proactiveDetectionConfigurations = + new ProactiveDetectionConfigurationsImpl(this); this.workItemConfigurations = new WorkItemConfigurationsImpl(this); this.favorites = new FavoritesImpl(this); this.webTestLocations = new WebTestLocationsImpl(this); this.webTests = new WebTestsImpl(this); this.analyticsItems = new AnalyticsItemsImpl(this); + this.operations = new OperationsImpl(this); this.workbookTemplates = new WorkbookTemplatesImpl(this); - this.myWorkbooks = new MyWorkbooksImpl(this); this.workbooks = new WorkbooksImpl(this); - this.components = new ComponentsImpl(this); - this.componentLinkedStorageAccountsOperations = new ComponentLinkedStorageAccountsOperationsImpl( - this - ); this.liveToken = new LiveTokenImpl(this); + this.componentLinkedStorageAccountsOperations = + new ComponentLinkedStorageAccountsOperationsImpl(this); + this.deletedWorkbooks = new DeletedWorkbooksImpl(this); } + components: Components; annotations: Annotations; aPIKeys: APIKeys; exportConfigurations: ExportConfigurations; @@ -179,10 +197,10 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien webTestLocations: WebTestLocations; webTests: WebTests; analyticsItems: AnalyticsItems; + operations: Operations; workbookTemplates: WorkbookTemplates; - myWorkbooks: MyWorkbooks; workbooks: Workbooks; - components: Components; - componentLinkedStorageAccountsOperations: ComponentLinkedStorageAccountsOperations; liveToken: LiveToken; + componentLinkedStorageAccountsOperations: ComponentLinkedStorageAccountsOperations; + deletedWorkbooks: DeletedWorkbooks; } diff --git a/sdk/applicationinsights/arm-appinsights/src/models/index.ts b/sdk/applicationinsights/arm-appinsights/src/models/index.ts index 94b54288e67f..cc5ffcd49f7d 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/index.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/index.ts @@ -8,6 +8,102 @@ import * as coreClient from "@azure/core-client"; +/** Describes the list of Application Insights Resources. */ +export interface ApplicationInsightsComponentListResult { + /** List of Application Insights component definitions. */ + value: ApplicationInsightsComponent[]; + /** The URI to get the next set of Application Insights component definitions if too many components where returned in the result set. */ + nextLink?: string; +} + +/** The private link scope resource reference. */ +export interface PrivateLinkScopedResource { + /** The full resource Id of the private link scope resource. */ + resourceId?: string; + /** The private link scope unique Identifier. */ + scopeId?: string; +} + +/** An azure resource object */ +export interface ComponentsResource { + /** + * Azure resource Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Azure resource name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Azure resource type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Resource location */ + location: string; + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +export interface ErrorResponseComponents { + /** Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message. */ + error?: ErrorResponseComponentsError; +} + +/** Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message. */ +export interface ErrorResponseComponentsError { + /** + * Error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * Error message indicating why the operation failed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; +} + +/** A container holding only the Tags for a resource, allowing the user to update the tags on a WebTest instance. */ +export interface TagsResource { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +/** Describes the body of a purge request for an App Insights component */ +export interface ComponentPurgeBody { + /** Table from which to purge data. */ + table: string; + /** The set of columns and filters (queries) to run over them to purge the resulting data. */ + filters: ComponentPurgeBodyFilters[]; +} + +/** User-defined filters to return data which will be purged from the table. */ +export interface ComponentPurgeBodyFilters { + /** The column of the table over which the given query should run */ + column?: string; + /** A query operator to evaluate over the provided column and value(s). Supported operators are ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL query. */ + operator?: string; + /** the value for the operator to function over. This can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of values. */ + value?: any; + /** When filtering over custom dimensions, this key will be used as the name of the custom dimension. */ + key?: string; +} + +/** Response containing operationId for a specific purge action. */ +export interface ComponentPurgeResponse { + /** Id to use when querying for status for a particular purge operation. */ + operationId: string; +} + +/** Response containing status for a specific purge operation. */ +export interface ComponentPurgeStatusResponse { + /** Status of the operation represented by the requested Id. */ + status: PurgeState; +} + /** Annotations list result. */ export interface AnnotationsListResult { /** @@ -565,17 +661,17 @@ export interface ApplicationInsightsComponentWebTestLocation { readonly tag?: string; } -/** A list of 0 or more Application Insights web test definitions. */ +/** A list of 0 or more Application Insights WebTest definitions. */ export interface WebTestListResult { - /** Set of Application Insights web test definitions. */ + /** Set of Application Insights WebTest definitions. */ value: WebTest[]; - /** The link to get the next part of the returned list of web tests, should the return set be too large for a single request. May be null. */ + /** The link to get the next part of the returned list of WebTest, should the return set be too large for a single request. May be null. */ nextLink?: string; } -/** Geo-physical location to run a web test from. You must specify one or more locations for the test to run from. */ +/** Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from. */ export interface WebTestGeolocation { - /** Location ID for the webtest to run from. */ + /** Location ID for the WebTest to run from. */ location?: string; } @@ -585,6 +681,54 @@ export interface WebTestPropertiesConfiguration { webTest?: string; } +/** The collection of request properties */ +export interface WebTestPropertiesRequest { + /** Url location to test. */ + requestUrl?: string; + /** List of headers and their values to add to the WebTest call. */ + headers?: HeaderField[]; + /** Http verb to use for this web test. */ + httpVerb?: string; + /** Base64 encoded string body to send with this web test. */ + requestBody?: string; + /** Parse Dependent request for this WebTest. */ + parseDependentRequests?: boolean; + /** Follow redirects for this web test. */ + followRedirects?: boolean; +} + +/** A header to add to the WebTest. */ +export interface HeaderField { + /** The name of the header. */ + headerFieldName?: string; + /** The value of the header. */ + headerFieldValue?: string; +} + +/** The collection of validation rule properties */ +export interface WebTestPropertiesValidationRules { + /** The collection of content validation properties */ + contentValidation?: WebTestPropertiesValidationRulesContentValidation; + /** Checks to see if the SSL cert is still valid. */ + sSLCheck?: boolean; + /** A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true. */ + sSLCertRemainingLifetimeCheck?: number; + /** Validate that the WebTest returns the http status code provided. */ + expectedHttpStatusCode?: number; + /** When set, validation will ignore the status code. */ + ignoreHttpStatusCode?: boolean; +} + +/** The collection of content validation properties */ +export interface WebTestPropertiesValidationRulesContentValidation { + /** Content to look for in the return of the WebTest. Must not be null or empty. */ + contentMatch?: string; + /** When set, this value makes the ContentMatch validation case insensitive. */ + ignoreCase?: boolean; + /** When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match */ + passIfTextFound?: boolean; +} + /** An azure resource object */ export interface WebtestsResource { /** @@ -608,12 +752,6 @@ export interface WebtestsResource { tags?: { [propertyName: string]: string }; } -/** A container holding only the Tags for a resource, allowing the user to update the tags on a WebTest instance. */ -export interface TagsResource { - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - /** Properties that define an Analytics item that is associated to an Application Insights component. */ export interface ApplicationInsightsComponentAnalyticsItem { /** Internally assigned unique id of the item definition. */ @@ -651,6 +789,52 @@ export interface ApplicationInsightsComponentAnalyticsItemProperties { functionAlias?: string; } +/** Result of the request to list Azure Workbooks operations. It contains a list of operations and a URL link to get the next set of results. */ +export interface OperationListResult { + /** List of Workbook operations supported by the Microsoft.Insights resource provider. */ + value?: Operation[]; + /** URL to get the next set of operation list results if there are any. */ + nextLink?: string; +} + +/** Azure Workbooks REST API operation */ +export interface Operation { + /** Operation name: {provider}/{resource}/{operation} */ + name?: string; + /** The object that represents the operation. */ + display?: OperationDisplay; +} + +/** The object that represents the operation. */ +export interface OperationDisplay { + /** Service provider: Microsoft.Insights */ + provider?: string; + /** Resource on which the operation is performed: Profile, endpoint, etc. */ + resource?: string; + /** Operation type: Read, write, delete, etc. */ + operation?: string; +} + +/** Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message. */ +export interface ErrorResponse { + /** Error code. */ + code?: string; + /** Error message indicating why the operation failed. */ + message?: string; + /** The list of invalid fields send in request, in case of validation error. */ + details?: ErrorFieldContract[]; +} + +/** Error Field contract. */ +export interface ErrorFieldContract { + /** Property level error code. */ + code?: string; + /** Human-readable representation of property-level error. */ + message?: string; + /** Property name. */ + target?: string; +} + /** WorkbookTemplate list result. */ export interface WorkbookTemplatesListResult { /** An array of workbook templates. */ @@ -745,12 +929,12 @@ export interface WorkbookTemplateUpdateParameters { } /** Workbook list result. */ -export interface MyWorkbooksListResult { +export interface WorkbooksListResult { /** - * An array of private workbooks. + * An array of workbooks. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: MyWorkbook[]; + readonly value?: Workbook[]; nextLink?: string; } @@ -770,81 +954,6 @@ export interface SystemData { lastModifiedAt?: Date; } -/** An azure resource object */ -export interface MyWorkbookResource { - /** Identity used for BYOS */ - identity?: MyWorkbookManagedIdentity; - /** Azure resource Id */ - id?: string; - /** Azure resource name */ - name?: string; - /** Azure resource type */ - type?: string; - /** Resource location */ - location?: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** Resource etag */ - etag?: { [propertyName: string]: string }; -} - -/** Customer Managed Identity */ -export interface MyWorkbookManagedIdentity { - /** Customer Managed Identity */ - userAssignedIdentities?: MyWorkbookUserAssignedIdentities; - /** The identity type. */ - type?: MyWorkbookManagedIdentityType; -} - -/** Customer Managed Identity */ -export interface MyWorkbookUserAssignedIdentities { - /** - * The principal ID of resource identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The tenant ID of resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; -} - -/** Error response. */ -export interface MyWorkbookError { - /** The error details. */ - error?: ErrorDefinition; -} - -/** Error definition. */ -export interface ErrorDefinition { - /** - * Service specific error code which serves as the substatus for the HTTP error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * Description of the error. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * Internal error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly innererror?: any; -} - -/** Workbook list result. */ -export interface WorkbooksListResult { - /** - * An array of workbooks. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Workbook[]; - nextLink?: string; -} - /** Managed service identity (system assigned and/or user assigned identities) */ export interface ManagedServiceIdentity { /** @@ -918,7 +1027,16 @@ export interface WorkbookErrorDefinition { * Internal error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly innerError?: any; + readonly innererror?: WorkbookInnerErrorTrace; +} + +/** Error details */ +export interface WorkbookInnerErrorTrace { + /** + * detailed error trace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly trace?: string[]; } /** The parameters that can be provided when updating workbook properties properties. */ @@ -941,52 +1059,22 @@ export interface WorkbookUpdateParameters { revision?: string; } -/** Describes the list of Application Insights Resources. */ -export interface ApplicationInsightsComponentListResult { - /** List of Application Insights component definitions. */ - value: ApplicationInsightsComponent[]; - /** The URI to get the next set of Application Insights component definitions if too many components where returned in the result set. */ - nextLink?: string; -} - -/** The private link scope resource reference. */ -export interface PrivateLinkScopedResource { - /** The full resource Id of the private link scope resource. */ - resourceId?: string; - /** The private link scope unique Identifier. */ - scopeId?: string; -} - -/** An azure resource object */ -export interface ComponentsResource { - /** - * Azure resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Azure resource name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** The response to a live token query. */ +export interface LiveTokenResponse { /** - * Azure resource type + * JWT token for accessing live metrics stream data. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** Resource location */ - location: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; + readonly liveToken?: string; } -export interface ErrorResponseComponents { +export interface ErrorResponseLinkedStorage { /** Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message. */ - error?: ErrorResponseComponentsError; + error?: ErrorResponseLinkedStorageError; } /** Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message. */ -export interface ErrorResponseComponentsError { +export interface ErrorResponseLinkedStorageError { /** * Error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -999,117 +1087,73 @@ export interface ErrorResponseComponentsError { readonly message?: string; } -/** Describes the body of a purge request for an App Insights component */ -export interface ComponentPurgeBody { - /** Table from which to purge data. */ - table: string; - /** The set of columns and filters (queries) to run over them to purge the resulting data. */ - filters: ComponentPurgeBodyFilters[]; -} - -/** User-defined filters to return data which will be purged from the table. */ -export interface ComponentPurgeBodyFilters { - /** The column of the table over which the given query should run */ - column?: string; - /** A query operator to evaluate over the provided column and value(s). Supported operators are ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL query. */ - operator?: string; - /** the value for the operator to function over. This can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of values. */ - value?: any; - /** When filtering over custom dimensions, this key will be used as the name of the custom dimension. */ - key?: string; -} - -/** Response containing operationId for a specific purge action. */ -export interface ComponentPurgeResponse { - /** Id to use when querying for status for a particular purge operation. */ - operationId: string; -} - -/** Response containing status for a specific purge operation. */ -export interface ComponentPurgeStatusResponse { - /** Status of the operation represented by the requested Id. */ - status: PurgeState; +/** An Application Insights component linked storage accounts patch */ +export interface ComponentLinkedStorageAccountsPatch { + /** Linked storage account resource ID */ + linkedStorageAccount?: string; } -export interface ErrorResponseLinkedStorage { - /** Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message. */ - error?: ErrorResponseLinkedStorageError; +/** Workbook list result. */ +export interface DeletedWorkbooksListResult { + /** + * An array of workbooks. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: DeletedWorkbook[]; + nextLink?: string; } -/** Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message. */ -export interface ErrorResponseLinkedStorageError { +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface ResourceAutoGenerated { /** - * Error code. + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly id?: string; /** - * Error message indicating why the operation failed. + * The name of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; -} - -/** An Application Insights component linked storage accounts patch */ -export interface ComponentLinkedStorageAccountsPatch { - /** Linked storage account resource ID */ - linkedStorageAccount?: string; -} - -/** The response to a live token query. */ -export interface LiveTokenResponse { + readonly name?: string; /** - * JWT token for accessing live metrics stream data. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly liveToken?: string; -} - -/** Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message. */ -export interface ErrorResponse { - /** Error code. */ - code?: string; - /** Error message indicating why the operation failed. */ - message?: string; -} - -/** CDN REST API operation */ -export interface Operation { - /** Operation name: {provider}/{resource}/{operation} */ - name?: string; - /** The object that represents the operation. */ - display?: OperationDisplay; -} - -/** The object that represents the operation. */ -export interface OperationDisplay { - /** Service provider: Microsoft.Cdn */ - provider?: string; - /** Resource on which the operation is performed: Profile, endpoint, etc. */ - resource?: string; - /** Operation type: Read, write, delete, etc. */ - operation?: string; + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; } -/** Result of the request to list CDN operations. It contains a list of operations and a URL link to get the next set of results. */ -export interface OperationListResult { - /** List of CDN operations supported by the CDN resource provider. */ - value?: Operation[]; - /** URL to get the next set of operation list results if there are any. */ - nextLink?: string; +/** Error response. */ +export interface DeletedWorkbookError { + /** The error details. */ + error?: DeletedWorkbookErrorDefinition; } -/** Error details */ -export interface InnerErrorTrace { +/** Error definition. */ +export interface DeletedWorkbookErrorDefinition { /** - * detailed error trace + * Service specific error code which serves as the substatus for the HTTP error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly trace?: string[]; + readonly code?: string; + /** + * Description of the error. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * Internal error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly innererror?: DeletedWorkbookInnerErrorTrace; } /** Error details */ -export interface WorkbookInnerErrorTrace { +export interface DeletedWorkbookInnerErrorTrace { /** * detailed error trace * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1151,100 +1195,6 @@ export interface OperationInfo { description?: string; } -/** An Application Insights web test definition. */ -export interface WebTest extends WebtestsResource { - /** The kind of web test that this web test watches. Choices are ping and multistep. */ - kind?: WebTestKind; - /** Unique ID of this WebTest. This is typically the same value as the Name field. */ - syntheticMonitorId?: string; - /** User defined name if this WebTest. */ - webTestName?: string; - /** Purpose/user defined descriptive test for this WebTest. */ - description?: string; - /** Is the test actively being monitored. */ - enabled?: boolean; - /** Interval in seconds between test runs for this WebTest. Default value is 300. */ - frequency?: number; - /** Seconds until this WebTest will timeout and fail. Default value is 30. */ - timeout?: number; - /** The kind of web test this is, valid choices are ping and multistep. */ - webTestKind?: WebTestKind; - /** Allow for retries should this WebTest fail. */ - retryEnabled?: boolean; - /** A list of where to physically run the tests from to give global coverage for accessibility of your application. */ - locations?: WebTestGeolocation[]; - /** An XML configuration specification for a WebTest. */ - configuration?: WebTestPropertiesConfiguration; - /** - * Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -} - -/** An Application Insights workbook template definition. */ -export interface WorkbookTemplate extends WorkbookTemplateResource { - /** Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. */ - priority?: number; - /** Information about the author of the workbook template. */ - author?: string; - /** Valid JSON object containing workbook template payload. */ - templateData?: Record; - /** Workbook galleries supported by the template. */ - galleries?: WorkbookTemplateGallery[]; - /** Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal. */ - localized?: { [propertyName: string]: WorkbookTemplateLocalizedGallery[] }; -} - -/** An Application Insights private workbook definition. */ -export interface MyWorkbook extends MyWorkbookResource { - /** The kind of workbook. Choices are user and shared. */ - kind?: Kind; - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** The user-defined name of the private workbook. */ - displayName?: string; - /** Configuration of this particular private workbook. Configuration data is a string containing valid JSON */ - serializedData?: string; - /** This instance's version of the data model. This can change as new features are added that can be marked private workbook. */ - version?: string; - /** - * Date and time in UTC of the last modification that was made to this private workbook definition. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeModified?: string; - /** Workbook category, as defined by the user at creation time. */ - category?: string; - /** A list of 0 or more tags that are associated with this private workbook definition */ - tagsPropertiesTags?: string[]; - /** - * Unique user id of the specific user that owns this private workbook. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly userId?: string; - /** Optional resourceId for a source resource. */ - sourceId?: string; - /** BYOS Storage Account URI */ - storageUri?: string; -} - -/** Identity used for BYOS */ -export interface WorkbookResourceIdentity extends ManagedServiceIdentity {} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - /** An Application Insights component definition. */ export interface ApplicationInsightsComponent extends ComponentsResource { /** The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone. */ @@ -1336,6 +1286,77 @@ export interface ApplicationInsightsComponent extends ComponentsResource { forceCustomerStorageForProfiler?: boolean; } +/** An Application Insights WebTest definition. */ +export interface WebTest extends WebtestsResource { + /** The kind of WebTest that this web test watches. Choices are ping, multistep and standard. */ + kind?: WebTestKind; + /** Unique ID of this WebTest. This is typically the same value as the Name field. */ + syntheticMonitorId?: string; + /** User defined name if this WebTest. */ + webTestName?: string; + /** User defined description for this WebTest. */ + description?: string; + /** Is the test actively being monitored. */ + enabled?: boolean; + /** Interval in seconds between test runs for this WebTest. Default value is 300. */ + frequency?: number; + /** Seconds until this WebTest will timeout and fail. Default value is 30. */ + timeout?: number; + /** The kind of web test this is, valid choices are ping, multistep and standard. */ + webTestKind?: WebTestKind; + /** Allow for retries should this WebTest fail. */ + retryEnabled?: boolean; + /** A list of where to physically run the tests from to give global coverage for accessibility of your application. */ + locations?: WebTestGeolocation[]; + /** An XML configuration specification for a WebTest. */ + configuration?: WebTestPropertiesConfiguration; + /** + * Current state of this component, whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** The collection of request properties */ + request?: WebTestPropertiesRequest; + /** The collection of validation rule properties */ + validationRules?: WebTestPropertiesValidationRules; +} + +/** An Application Insights workbook template definition. */ +export interface WorkbookTemplate extends WorkbookTemplateResource { + /** Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. */ + priority?: number; + /** Information about the author of the workbook template. */ + author?: string; + /** Valid JSON object containing workbook template payload. */ + templateData?: Record; + /** Workbook galleries supported by the template. */ + galleries?: WorkbookTemplateGallery[]; + /** Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal. */ + localized?: { [propertyName: string]: WorkbookTemplateLocalizedGallery[] }; +} + +/** Identity used for BYOS */ +export interface WorkbookResourceIdentity extends ManagedServiceIdentity {} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + /** An azure resource object */ export interface WorkbookResource extends TrackedResource { /** Identity used for BYOS */ @@ -1352,13 +1373,56 @@ export interface ComponentLinkedStorageAccounts extends ProxyResource { linkedStorageAccount?: string; } +/** An azure resource object */ +export interface DeletedWorkbookResource extends TrackedResourceAutoGenerated { + /** The kind of workbook. Only valid value is shared. */ + kind?: WorkbookSharedTypeKind; + /** Resource etag */ + etag?: string; +} + /** A workbook definition. */ export interface Workbook extends WorkbookResource { /** - * Metadata pertaining to creation and last modification of the resource. + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The user-defined name (display name) of the workbook. */ + displayName?: string; + /** Configuration of this particular workbook. Configuration data is a string containing valid JSON */ + serializedData?: string; + /** Workbook schema version format, like 'Notebook/1.0', which should match the workbook in serializedData */ + version?: string; + /** + * Date and time in UTC of the last modification that was made to this workbook definition. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; + readonly timeModified?: Date; + /** Workbook category, as defined by the user at creation time. */ + category?: string; + /** Being deprecated, please use the other tags field */ + tagsPropertiesTags?: string[]; + /** + * Unique user id of the specific user that owns this workbook. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userId?: string; + /** ResourceId for a source resource. */ + sourceId?: string; + /** The resourceId to the storage account when bring your own storage is used */ + storageUri?: string; + /** The description of the workbook. */ + description?: string; + /** + * The unique revision id for this workbook definition + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly revision?: string; +} + +/** A workbook definition. */ +export interface DeletedWorkbook extends DeletedWorkbookResource { /** The user-defined name (display name) of the workbook. */ displayName?: string; /** Configuration of this particular workbook. Configuration data is a string containing valid JSON */ @@ -1392,6 +1456,111 @@ export interface Workbook extends WorkbookResource { readonly revision?: string; } +/** Known values of {@link ApplicationType} that the service accepts. */ +export enum KnownApplicationType { + /** Web */ + Web = "web", + /** Other */ + Other = "other", +} + +/** + * Defines values for ApplicationType. \ + * {@link KnownApplicationType} can be used interchangeably with ApplicationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **web** \ + * **other** + */ +export type ApplicationType = string; + +/** Known values of {@link FlowType} that the service accepts. */ +export enum KnownFlowType { + /** Bluefield */ + Bluefield = "Bluefield", +} + +/** + * Defines values for FlowType. \ + * {@link KnownFlowType} can be used interchangeably with FlowType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Bluefield** + */ +export type FlowType = string; + +/** Known values of {@link RequestSource} that the service accepts. */ +export enum KnownRequestSource { + /** Rest */ + Rest = "rest", +} + +/** + * Defines values for RequestSource. \ + * {@link KnownRequestSource} can be used interchangeably with RequestSource, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **rest** + */ +export type RequestSource = string; + +/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ +export enum KnownPublicNetworkAccessType { + /** Enables connectivity to Application Insights through public DNS. */ + Enabled = "Enabled", + /** Disables public connectivity to Application Insights through public DNS. */ + Disabled = "Disabled", +} + +/** + * Defines values for PublicNetworkAccessType. \ + * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Enables connectivity to Application Insights through public DNS. \ + * **Disabled**: Disables public connectivity to Application Insights through public DNS. + */ +export type PublicNetworkAccessType = string; + +/** Known values of {@link IngestionMode} that the service accepts. */ +export enum KnownIngestionMode { + /** ApplicationInsights */ + ApplicationInsights = "ApplicationInsights", + /** ApplicationInsightsWithDiagnosticSettings */ + ApplicationInsightsWithDiagnosticSettings = "ApplicationInsightsWithDiagnosticSettings", + /** LogAnalytics */ + LogAnalytics = "LogAnalytics", +} + +/** + * Defines values for IngestionMode. \ + * {@link KnownIngestionMode} can be used interchangeably with IngestionMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ApplicationInsights** \ + * **ApplicationInsightsWithDiagnosticSettings** \ + * **LogAnalytics** + */ +export type IngestionMode = string; + +/** Known values of {@link PurgeState} that the service accepts. */ +export enum KnownPurgeState { + /** Pending */ + Pending = "pending", + /** Completed */ + Completed = "completed", +} + +/** + * Defines values for PurgeState. \ + * {@link KnownPurgeState} can be used interchangeably with PurgeState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **pending** \ + * **completed** + */ +export type PurgeState = string; + /** Known values of {@link FavoriteSourceType} that the service accepts. */ export enum KnownFavoriteSourceType { /** Retention */ @@ -1409,7 +1578,7 @@ export enum KnownFavoriteSourceType { /** Impact */ Impact = "impact", /** Segmentation */ - Segmentation = "segmentation" + Segmentation = "segmentation", } /** @@ -1433,7 +1602,7 @@ export enum KnownItemScopePath { /** AnalyticsItems */ AnalyticsItems = "analyticsItems", /** MyanalyticsItems */ - MyanalyticsItems = "myanalyticsItems" + MyanalyticsItems = "myanalyticsItems", } /** @@ -1451,7 +1620,7 @@ export enum KnownItemScope { /** Shared */ Shared = "shared", /** User */ - User = "user" + User = "user", } /** @@ -1475,7 +1644,7 @@ export enum KnownItemTypeParameter { /** Folder */ Folder = "folder", /** Recent */ - Recent = "recent" + Recent = "recent", } /** @@ -1500,7 +1669,7 @@ export enum KnownItemType { /** Recent */ Recent = "recent", /** Function */ - Function = "function" + Function = "function", } /** @@ -1524,7 +1693,7 @@ export enum KnownCategoryType { /** Performance */ Performance = "performance", /** Retention */ - Retention = "retention" + Retention = "retention", } /** @@ -1539,24 +1708,6 @@ export enum KnownCategoryType { */ export type CategoryType = string; -/** Known values of {@link Kind} that the service accepts. */ -export enum KnownKind { - /** User */ - User = "user", - /** Shared */ - Shared = "shared" -} - -/** - * Defines values for Kind. \ - * {@link KnownKind} can be used interchangeably with Kind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user** \ - * **shared** - */ -export type Kind = string; - /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { /** User */ @@ -1566,7 +1717,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -1581,24 +1732,6 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; -/** Known values of {@link MyWorkbookManagedIdentityType} that the service accepts. */ -export enum KnownMyWorkbookManagedIdentityType { - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** None */ - None = "None" -} - -/** - * Defines values for MyWorkbookManagedIdentityType. \ - * {@link KnownMyWorkbookManagedIdentityType} can be used interchangeably with MyWorkbookManagedIdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **UserAssigned** \ - * **None** - */ -export type MyWorkbookManagedIdentityType = string; - /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ export enum KnownManagedServiceIdentityType { /** None */ @@ -1608,7 +1741,7 @@ export enum KnownManagedServiceIdentityType { /** UserAssigned */ UserAssigned = "UserAssigned", /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", } /** @@ -1626,142 +1759,37 @@ export type ManagedServiceIdentityType = string; /** Known values of {@link WorkbookSharedTypeKind} that the service accepts. */ export enum KnownWorkbookSharedTypeKind { /** Shared */ - Shared = "shared" + Shared = "shared", } /** * Defines values for WorkbookSharedTypeKind. \ * {@link KnownWorkbookSharedTypeKind} can be used interchangeably with WorkbookSharedTypeKind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **shared** - */ -export type WorkbookSharedTypeKind = string; - -/** Known values of {@link WorkbookUpdateSharedTypeKind} that the service accepts. */ -export enum KnownWorkbookUpdateSharedTypeKind { - /** Shared */ - Shared = "shared" -} - -/** - * Defines values for WorkbookUpdateSharedTypeKind. \ - * {@link KnownWorkbookUpdateSharedTypeKind} can be used interchangeably with WorkbookUpdateSharedTypeKind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **shared** - */ -export type WorkbookUpdateSharedTypeKind = string; - -/** Known values of {@link ApplicationType} that the service accepts. */ -export enum KnownApplicationType { - /** Web */ - Web = "web", - /** Other */ - Other = "other" -} - -/** - * Defines values for ApplicationType. \ - * {@link KnownApplicationType} can be used interchangeably with ApplicationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **web** \ - * **other** - */ -export type ApplicationType = string; - -/** Known values of {@link FlowType} that the service accepts. */ -export enum KnownFlowType { - /** Bluefield */ - Bluefield = "Bluefield" -} - -/** - * Defines values for FlowType. \ - * {@link KnownFlowType} can be used interchangeably with FlowType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Bluefield** - */ -export type FlowType = string; - -/** Known values of {@link RequestSource} that the service accepts. */ -export enum KnownRequestSource { - /** Rest */ - Rest = "rest" -} - -/** - * Defines values for RequestSource. \ - * {@link KnownRequestSource} can be used interchangeably with RequestSource, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **rest** - */ -export type RequestSource = string; - -/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ -export enum KnownPublicNetworkAccessType { - /** Enables connectivity to Application Insights through public DNS. */ - Enabled = "Enabled", - /** Disables public connectivity to Application Insights through public DNS. */ - Disabled = "Disabled" -} - -/** - * Defines values for PublicNetworkAccessType. \ - * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled**: Enables connectivity to Application Insights through public DNS. \ - * **Disabled**: Disables public connectivity to Application Insights through public DNS. - */ -export type PublicNetworkAccessType = string; - -/** Known values of {@link IngestionMode} that the service accepts. */ -export enum KnownIngestionMode { - /** ApplicationInsights */ - ApplicationInsights = "ApplicationInsights", - /** ApplicationInsightsWithDiagnosticSettings */ - ApplicationInsightsWithDiagnosticSettings = "ApplicationInsightsWithDiagnosticSettings", - /** LogAnalytics */ - LogAnalytics = "LogAnalytics" -} - -/** - * Defines values for IngestionMode. \ - * {@link KnownIngestionMode} can be used interchangeably with IngestionMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ApplicationInsights** \ - * **ApplicationInsightsWithDiagnosticSettings** \ - * **LogAnalytics** + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **shared** */ -export type IngestionMode = string; +export type WorkbookSharedTypeKind = string; -/** Known values of {@link PurgeState} that the service accepts. */ -export enum KnownPurgeState { - /** Pending */ - Pending = "pending", - /** Completed */ - Completed = "completed" +/** Known values of {@link WorkbookUpdateSharedTypeKind} that the service accepts. */ +export enum KnownWorkbookUpdateSharedTypeKind { + /** Shared */ + Shared = "shared", } /** - * Defines values for PurgeState. \ - * {@link KnownPurgeState} can be used interchangeably with PurgeState, + * Defines values for WorkbookUpdateSharedTypeKind. \ + * {@link KnownWorkbookUpdateSharedTypeKind} can be used interchangeably with WorkbookUpdateSharedTypeKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **pending** \ - * **completed** + * **shared** */ -export type PurgeState = string; +export type WorkbookUpdateSharedTypeKind = string; /** Known values of {@link StorageType} that the service accepts. */ export enum KnownStorageType { /** ServiceProfiler */ - ServiceProfiler = "ServiceProfiler" + ServiceProfiler = "ServiceProfiler", } /** @@ -1775,7 +1803,76 @@ export type StorageType = string; /** Defines values for FavoriteType. */ export type FavoriteType = "shared" | "user"; /** Defines values for WebTestKind. */ -export type WebTestKind = "ping" | "multistep"; +export type WebTestKind = "ping" | "multistep" | "standard"; + +/** Optional parameters. */ +export interface ComponentsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ComponentsListResponse = ApplicationInsightsComponentListResult; + +/** Optional parameters. */ +export interface ComponentsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type ComponentsListByResourceGroupResponse = + ApplicationInsightsComponentListResult; + +/** Optional parameters. */ +export interface ComponentsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ComponentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComponentsGetResponse = ApplicationInsightsComponent; + +/** Optional parameters. */ +export interface ComponentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ComponentsCreateOrUpdateResponse = ApplicationInsightsComponent; + +/** Optional parameters. */ +export interface ComponentsUpdateTagsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the updateTags operation. */ +export type ComponentsUpdateTagsResponse = ApplicationInsightsComponent; + +/** Optional parameters. */ +export interface ComponentsPurgeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the purge operation. */ +export type ComponentsPurgeResponse = ComponentPurgeResponse; + +/** Optional parameters. */ +export interface ComponentsGetPurgeStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getPurgeStatus operation. */ +export type ComponentsGetPurgeStatusResponse = ComponentPurgeStatusResponse; + +/** Optional parameters. */ +export interface ComponentsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ComponentsListNextResponse = ApplicationInsightsComponentListResult; + +/** Optional parameters. */ +export interface ComponentsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ComponentsListByResourceGroupNextResponse = + ApplicationInsightsComponentListResult; /** Optional parameters. */ export interface AnnotationsListOptionalParams @@ -1834,98 +1931,112 @@ export interface ExportConfigurationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ExportConfigurationsListResponse = ApplicationInsightsComponentExportConfiguration[]; +export type ExportConfigurationsListResponse = + ApplicationInsightsComponentExportConfiguration[]; /** Optional parameters. */ export interface ExportConfigurationsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type ExportConfigurationsCreateResponse = ApplicationInsightsComponentExportConfiguration[]; +export type ExportConfigurationsCreateResponse = + ApplicationInsightsComponentExportConfiguration[]; /** Optional parameters. */ export interface ExportConfigurationsDeleteOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the delete operation. */ -export type ExportConfigurationsDeleteResponse = ApplicationInsightsComponentExportConfiguration; +export type ExportConfigurationsDeleteResponse = + ApplicationInsightsComponentExportConfiguration; /** Optional parameters. */ export interface ExportConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExportConfigurationsGetResponse = ApplicationInsightsComponentExportConfiguration; +export type ExportConfigurationsGetResponse = + ApplicationInsightsComponentExportConfiguration; /** Optional parameters. */ export interface ExportConfigurationsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ExportConfigurationsUpdateResponse = ApplicationInsightsComponentExportConfiguration; +export type ExportConfigurationsUpdateResponse = + ApplicationInsightsComponentExportConfiguration; /** Optional parameters. */ export interface ComponentCurrentBillingFeaturesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComponentCurrentBillingFeaturesGetResponse = ApplicationInsightsComponentBillingFeatures; +export type ComponentCurrentBillingFeaturesGetResponse = + ApplicationInsightsComponentBillingFeatures; /** Optional parameters. */ export interface ComponentCurrentBillingFeaturesUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ComponentCurrentBillingFeaturesUpdateResponse = ApplicationInsightsComponentBillingFeatures; +export type ComponentCurrentBillingFeaturesUpdateResponse = + ApplicationInsightsComponentBillingFeatures; /** Optional parameters. */ export interface ComponentQuotaStatusGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComponentQuotaStatusGetResponse = ApplicationInsightsComponentQuotaStatus; +export type ComponentQuotaStatusGetResponse = + ApplicationInsightsComponentQuotaStatus; /** Optional parameters. */ export interface ComponentFeatureCapabilitiesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComponentFeatureCapabilitiesGetResponse = ApplicationInsightsComponentFeatureCapabilities; +export type ComponentFeatureCapabilitiesGetResponse = + ApplicationInsightsComponentFeatureCapabilities; /** Optional parameters. */ export interface ComponentAvailableFeaturesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComponentAvailableFeaturesGetResponse = ApplicationInsightsComponentAvailableFeatures; +export type ComponentAvailableFeaturesGetResponse = + ApplicationInsightsComponentAvailableFeatures; /** Optional parameters. */ export interface ProactiveDetectionConfigurationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ProactiveDetectionConfigurationsListResponse = ApplicationInsightsComponentProactiveDetectionConfiguration[]; +export type ProactiveDetectionConfigurationsListResponse = + ApplicationInsightsComponentProactiveDetectionConfiguration[]; /** Optional parameters. */ export interface ProactiveDetectionConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ProactiveDetectionConfigurationsGetResponse = ApplicationInsightsComponentProactiveDetectionConfiguration; +export type ProactiveDetectionConfigurationsGetResponse = + ApplicationInsightsComponentProactiveDetectionConfiguration; /** Optional parameters. */ export interface ProactiveDetectionConfigurationsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ProactiveDetectionConfigurationsUpdateResponse = ApplicationInsightsComponentProactiveDetectionConfiguration; +export type ProactiveDetectionConfigurationsUpdateResponse = + ApplicationInsightsComponentProactiveDetectionConfiguration; /** Optional parameters. */ export interface WorkItemConfigurationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WorkItemConfigurationsListResponse = WorkItemConfigurationsListResult; +export type WorkItemConfigurationsListResponse = + WorkItemConfigurationsListResult; /** Optional parameters. */ export interface WorkItemConfigurationsCreateOptionalParams @@ -2005,7 +2116,8 @@ export interface WebTestLocationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WebTestLocationsListResponse = ApplicationInsightsWebTestLocationsListResult; +export type WebTestLocationsListResponse = + ApplicationInsightsWebTestLocationsListResult; /** Optional parameters. */ export interface WebTestsListByResourceGroupOptionalParams @@ -2080,13 +2192,14 @@ export interface AnalyticsItemsListOptionalParams /** Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component. */ scope?: ItemScope; /** Enum indicating the type of the Analytics item. */ - typeParam?: ItemTypeParameter; + type?: ItemTypeParameter; /** Flag indicating whether or not to return the content of each applicable item. If false, only return the item information. */ includeContent?: boolean; } /** Contains response data for the list operation. */ -export type AnalyticsItemsListResponse = ApplicationInsightsComponentAnalyticsItem[]; +export type AnalyticsItemsListResponse = + ApplicationInsightsComponentAnalyticsItem[]; /** Optional parameters. */ export interface AnalyticsItemsGetOptionalParams @@ -2098,7 +2211,8 @@ export interface AnalyticsItemsGetOptionalParams } /** Contains response data for the get operation. */ -export type AnalyticsItemsGetResponse = ApplicationInsightsComponentAnalyticsItem; +export type AnalyticsItemsGetResponse = + ApplicationInsightsComponentAnalyticsItem; /** Optional parameters. */ export interface AnalyticsItemsPutOptionalParams @@ -2108,7 +2222,8 @@ export interface AnalyticsItemsPutOptionalParams } /** Contains response data for the put operation. */ -export type AnalyticsItemsPutResponse = ApplicationInsightsComponentAnalyticsItem; +export type AnalyticsItemsPutResponse = + ApplicationInsightsComponentAnalyticsItem; /** Optional parameters. */ export interface AnalyticsItemsDeleteOptionalParams @@ -2119,12 +2234,27 @@ export interface AnalyticsItemsDeleteOptionalParams name?: string; } +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; + /** Optional parameters. */ export interface WorkbookTemplatesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type WorkbookTemplatesListByResourceGroupResponse = WorkbookTemplatesListResult; +export type WorkbookTemplatesListByResourceGroupResponse = + WorkbookTemplatesListResult; /** Optional parameters. */ export interface WorkbookTemplatesGetOptionalParams @@ -2154,89 +2284,6 @@ export interface WorkbookTemplatesUpdateOptionalParams /** Contains response data for the update operation. */ export type WorkbookTemplatesUpdateResponse = WorkbookTemplate; -/** Optional parameters. */ -export interface MyWorkbooksListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks. */ - canFetchContent?: boolean; - /** Tags presents on each workbook returned. */ - tags?: string[]; - /** Azure Resource Id that will fetch all linked workbooks. */ - sourceId?: string; -} - -/** Contains response data for the listByResourceGroup operation. */ -export type MyWorkbooksListByResourceGroupResponse = MyWorkbooksListResult; - -/** Optional parameters. */ -export interface MyWorkbooksListBySubscriptionOptionalParams - extends coreClient.OperationOptions { - /** Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks. */ - canFetchContent?: boolean; - /** Tags presents on each workbook returned. */ - tags?: string[]; -} - -/** Contains response data for the listBySubscription operation. */ -export type MyWorkbooksListBySubscriptionResponse = MyWorkbooksListResult; - -/** Optional parameters. */ -export interface MyWorkbooksGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type MyWorkbooksGetResponse = MyWorkbook; - -/** Optional parameters. */ -export interface MyWorkbooksDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface MyWorkbooksCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Azure Resource Id that will fetch all linked workbooks. */ - sourceId?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type MyWorkbooksCreateOrUpdateResponse = MyWorkbook; - -/** Optional parameters. */ -export interface MyWorkbooksUpdateOptionalParams - extends coreClient.OperationOptions { - /** Azure Resource Id that will fetch all linked workbooks. */ - sourceId?: string; -} - -/** Contains response data for the update operation. */ -export type MyWorkbooksUpdateResponse = MyWorkbook; - -/** Optional parameters. */ -export interface MyWorkbooksListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks. */ - canFetchContent?: boolean; - /** Tags presents on each workbook returned. */ - tags?: string[]; - /** Azure Resource Id that will fetch all linked workbooks. */ - sourceId?: string; -} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type MyWorkbooksListByResourceGroupNextResponse = MyWorkbooksListResult; - -/** Optional parameters. */ -export interface MyWorkbooksListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { - /** Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks. */ - canFetchContent?: boolean; - /** Tags presents on each workbook returned. */ - tags?: string[]; -} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type MyWorkbooksListBySubscriptionNextResponse = MyWorkbooksListResult; - /** Optional parameters. */ export interface WorkbooksListBySubscriptionOptionalParams extends coreClient.OperationOptions { @@ -2315,26 +2362,14 @@ export type WorkbooksRevisionGetResponse = Workbook; /** Optional parameters. */ export interface WorkbooksListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { - /** Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks. */ - canFetchContent?: boolean; - /** Tags presents on each workbook returned. */ - tags?: string[]; -} + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type WorkbooksListBySubscriptionNextResponse = WorkbooksListResult; /** Optional parameters. */ export interface WorkbooksListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { - /** Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks. */ - canFetchContent?: boolean; - /** Tags presents on each workbook returned. */ - tags?: string[]; - /** Azure Resource Id that will fetch all linked workbooks. */ - sourceId?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type WorkbooksListByResourceGroupNextResponse = WorkbooksListResult; @@ -2347,103 +2382,60 @@ export interface WorkbooksRevisionsListNextOptionalParams export type WorkbooksRevisionsListNextResponse = WorkbooksListResult; /** Optional parameters. */ -export interface ComponentsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ComponentsListResponse = ApplicationInsightsComponentListResult; - -/** Optional parameters. */ -export interface ComponentsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ComponentsListByResourceGroupResponse = ApplicationInsightsComponentListResult; - -/** Optional parameters. */ -export interface ComponentsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ComponentsGetOptionalParams +export interface LiveTokenGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComponentsGetResponse = ApplicationInsightsComponent; - -/** Optional parameters. */ -export interface ComponentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type ComponentsCreateOrUpdateResponse = ApplicationInsightsComponent; - -/** Optional parameters. */ -export interface ComponentsUpdateTagsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the updateTags operation. */ -export type ComponentsUpdateTagsResponse = ApplicationInsightsComponent; - -/** Optional parameters. */ -export interface ComponentsPurgeOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the purge operation. */ -export type ComponentsPurgeResponse = ComponentPurgeResponse; - -/** Optional parameters. */ -export interface ComponentsGetPurgeStatusOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getPurgeStatus operation. */ -export type ComponentsGetPurgeStatusResponse = ComponentPurgeStatusResponse; - -/** Optional parameters. */ -export interface ComponentsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ComponentsListNextResponse = ApplicationInsightsComponentListResult; - -/** Optional parameters. */ -export interface ComponentsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type ComponentsListByResourceGroupNextResponse = ApplicationInsightsComponentListResult; +export type LiveTokenGetResponse = LiveTokenResponse; /** Optional parameters. */ export interface ComponentLinkedStorageAccountsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComponentLinkedStorageAccountsGetResponse = ComponentLinkedStorageAccounts; +export type ComponentLinkedStorageAccountsGetResponse = + ComponentLinkedStorageAccounts; /** Optional parameters. */ export interface ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createAndUpdate operation. */ -export type ComponentLinkedStorageAccountsCreateAndUpdateResponse = ComponentLinkedStorageAccounts; +export type ComponentLinkedStorageAccountsCreateAndUpdateResponse = + ComponentLinkedStorageAccounts; /** Optional parameters. */ export interface ComponentLinkedStorageAccountsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ComponentLinkedStorageAccountsUpdateResponse = ComponentLinkedStorageAccounts; +export type ComponentLinkedStorageAccountsUpdateResponse = + ComponentLinkedStorageAccounts; /** Optional parameters. */ export interface ComponentLinkedStorageAccountsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LiveTokenGetOptionalParams +export interface DeletedWorkbooksListBySubscriptionOptionalParams + extends coreClient.OperationOptions { + /** Tags presents on each workbook returned. */ + tags?: string[]; + /** Category of workbook to return. */ + category?: CategoryType; +} + +/** Contains response data for the listBySubscription operation. */ +export type DeletedWorkbooksListBySubscriptionResponse = + DeletedWorkbooksListResult; + +/** Optional parameters. */ +export interface DeletedWorkbooksListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LiveTokenGetResponse = LiveTokenResponse; +/** Contains response data for the listBySubscriptionNext operation. */ +export type DeletedWorkbooksListBySubscriptionNextResponse = + DeletedWorkbooksListResult; /** Optional parameters. */ export interface ApplicationInsightsManagementClientOptionalParams diff --git a/sdk/applicationinsights/arm-appinsights/src/models/mappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/mappers.ts index 1b0a3199878a..72adfc05bb69 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/mappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/mappers.ts @@ -8,6 +8,249 @@ import * as coreClient from "@azure/core-client"; +export const ApplicationInsightsComponentListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationInsightsComponent", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PrivateLinkScopedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkScopedResource", + modelProperties: { + resourceId: { + serializedName: "ResourceId", + type: { + name: "String", + }, + }, + scopeId: { + serializedName: "ScopeId", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ComponentsResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentsResource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const ErrorResponseComponents: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseComponents", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponseComponentsError", + }, + }, + }, + }, +}; + +export const ErrorResponseComponentsError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseComponentsError", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TagsResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TagsResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const ComponentPurgeBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentPurgeBody", + modelProperties: { + table: { + serializedName: "table", + required: true, + type: { + name: "String", + }, + }, + filters: { + serializedName: "filters", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComponentPurgeBodyFilters", + }, + }, + }, + }, + }, + }, +}; + +export const ComponentPurgeBodyFilters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentPurgeBodyFilters", + modelProperties: { + column: { + serializedName: "column", + type: { + name: "String", + }, + }, + operator: { + serializedName: "operator", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "any", + }, + }, + key: { + serializedName: "key", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ComponentPurgeResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentPurgeResponse", + modelProperties: { + operationId: { + serializedName: "operationId", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ComponentPurgeStatusResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentPurgeStatusResponse", + modelProperties: { + status: { + serializedName: "status", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + export const AnnotationsListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -21,13 +264,13 @@ export const AnnotationsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Annotation" - } - } - } - } - } - } + className: "Annotation", + }, + }, + }, + }, + }, + }, }; export const Annotation: coreClient.CompositeMapper = { @@ -38,42 +281,42 @@ export const Annotation: coreClient.CompositeMapper = { annotationName: { serializedName: "AnnotationName", type: { - name: "String" - } + name: "String", + }, }, category: { serializedName: "Category", type: { - name: "String" - } + name: "String", + }, }, eventTime: { serializedName: "EventTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, id: { serializedName: "Id", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "Properties", type: { - name: "String" - } + name: "String", + }, }, relatedAnnotation: { defaultValue: "null", serializedName: "RelatedAnnotation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AnnotationError: coreClient.CompositeMapper = { @@ -84,24 +327,24 @@ export const AnnotationError: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, innererror: { serializedName: "innererror", type: { name: "Composite", - className: "InnerError" - } - } - } - } + className: "InnerError", + }, + }, + }, + }, }; export const InnerError: coreClient.CompositeMapper = { @@ -112,40 +355,41 @@ export const InnerError: coreClient.CompositeMapper = { diagnosticcontext: { serializedName: "diagnosticcontext", type: { - name: "String" - } + name: "String", + }, }, time: { serializedName: "time", type: { - name: "DateTime" - } - } - } - } -}; - -export const ApplicationInsightsComponentAPIKeyListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationInsightsComponentAPIKeyListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentAPIKey" - } - } - } - } - } - } -}; + name: "DateTime", + }, + }, + }, + }, +}; + +export const ApplicationInsightsComponentAPIKeyListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentAPIKeyListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationInsightsComponentAPIKey", + }, + }, + }, + }, + }, + }, + }; export const ApplicationInsightsComponentAPIKey: coreClient.CompositeMapper = { type: { @@ -156,27 +400,27 @@ export const ApplicationInsightsComponentAPIKey: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, apiKey: { serializedName: "apiKey", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, createdDate: { serializedName: "createdDate", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, linkedReadProperties: { serializedName: "linkedReadProperties", @@ -184,10 +428,10 @@ export const ApplicationInsightsComponentAPIKey: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, linkedWriteProperties: { serializedName: "linkedWriteProperties", @@ -195,13 +439,13 @@ export const ApplicationInsightsComponentAPIKey: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const APIKeyRequest: coreClient.CompositeMapper = { @@ -212,8 +456,8 @@ export const APIKeyRequest: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, linkedReadProperties: { serializedName: "linkedReadProperties", @@ -221,10 +465,10 @@ export const APIKeyRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, linkedWriteProperties: { serializedName: "linkedWriteProperties", @@ -232,2693 +476,2301 @@ export const APIKeyRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const ApplicationInsightsComponentExportConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentExportConfiguration", + modelProperties: { + exportId: { + serializedName: "ExportId", + readOnly: true, + type: { + name: "String", + }, + }, + instrumentationKey: { + serializedName: "InstrumentationKey", + readOnly: true, + type: { + name: "String", + }, + }, + recordTypes: { + serializedName: "RecordTypes", + type: { + name: "String", + }, + }, + applicationName: { + serializedName: "ApplicationName", + readOnly: true, + type: { + name: "String", + }, + }, + subscriptionId: { + serializedName: "SubscriptionId", + readOnly: true, + type: { + name: "String", + }, + }, + resourceGroup: { + serializedName: "ResourceGroup", + readOnly: true, + type: { + name: "String", + }, + }, + destinationStorageSubscriptionId: { + serializedName: "DestinationStorageSubscriptionId", + readOnly: true, + type: { + name: "String", + }, + }, + destinationStorageLocationId: { + serializedName: "DestinationStorageLocationId", + readOnly: true, + type: { + name: "String", + }, + }, + destinationAccountId: { + serializedName: "DestinationAccountId", + readOnly: true, + type: { + name: "String", + }, + }, + destinationType: { + serializedName: "DestinationType", + readOnly: true, + type: { + name: "String", + }, + }, + isUserEnabled: { + serializedName: "IsUserEnabled", + readOnly: true, + type: { + name: "String", + }, + }, + lastUserUpdate: { + serializedName: "LastUserUpdate", + readOnly: true, + type: { + name: "String", + }, + }, + notificationQueueEnabled: { + serializedName: "NotificationQueueEnabled", + type: { + name: "String", + }, + }, + exportStatus: { + serializedName: "ExportStatus", + readOnly: true, + type: { + name: "String", + }, + }, + lastSuccessTime: { + serializedName: "LastSuccessTime", + readOnly: true, + type: { + name: "String", + }, + }, + lastGapTime: { + serializedName: "LastGapTime", + readOnly: true, + type: { + name: "String", + }, + }, + permanentErrorReason: { + serializedName: "PermanentErrorReason", + readOnly: true, + type: { + name: "String", + }, + }, + storageName: { + serializedName: "StorageName", + readOnly: true, + type: { + name: "String", + }, + }, + containerName: { + serializedName: "ContainerName", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApplicationInsightsComponentExportRequest: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentExportRequest", + modelProperties: { + recordTypes: { + serializedName: "RecordTypes", + type: { + name: "String", + }, + }, + destinationType: { + serializedName: "DestinationType", + type: { + name: "String", + }, + }, + destinationAddress: { + serializedName: "DestinationAddress", + type: { + name: "String", + }, + }, + isEnabled: { + serializedName: "IsEnabled", + type: { + name: "String", + }, + }, + notificationQueueEnabled: { + serializedName: "NotificationQueueEnabled", + type: { + name: "String", + }, + }, + notificationQueueUri: { + serializedName: "NotificationQueueUri", + type: { + name: "String", + }, + }, + destinationStorageSubscriptionId: { + serializedName: "DestinationStorageSubscriptionId", + type: { + name: "String", + }, + }, + destinationStorageLocationId: { + serializedName: "DestinationStorageLocationId", + type: { + name: "String", + }, + }, + destinationAccountId: { + serializedName: "DestinationAccountId", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApplicationInsightsComponentBillingFeatures: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentBillingFeatures", + modelProperties: { + dataVolumeCap: { + serializedName: "DataVolumeCap", + type: { + name: "Composite", + className: "ApplicationInsightsComponentDataVolumeCap", + }, + }, + currentBillingFeatures: { + serializedName: "CurrentBillingFeatures", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; + +export const ApplicationInsightsComponentDataVolumeCap: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentDataVolumeCap", + modelProperties: { + cap: { + serializedName: "Cap", + type: { + name: "Number", + }, + }, + resetTime: { + serializedName: "ResetTime", + readOnly: true, + type: { + name: "Number", + }, + }, + warningThreshold: { + serializedName: "WarningThreshold", + type: { + name: "Number", + }, + }, + stopSendNotificationWhenHitThreshold: { + serializedName: "StopSendNotificationWhenHitThreshold", + type: { + name: "Boolean", + }, + }, + stopSendNotificationWhenHitCap: { + serializedName: "StopSendNotificationWhenHitCap", + type: { + name: "Boolean", + }, + }, + maxHistoryCap: { + serializedName: "MaxHistoryCap", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const ApplicationInsightsComponentQuotaStatus: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentQuotaStatus", + modelProperties: { + appId: { + serializedName: "AppId", + readOnly: true, + type: { + name: "String", + }, + }, + shouldBeThrottled: { + serializedName: "ShouldBeThrottled", + readOnly: true, + type: { + name: "Boolean", + }, + }, + expirationTime: { + serializedName: "ExpirationTime", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApplicationInsightsComponentFeatureCapabilities: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentFeatureCapabilities", + modelProperties: { + supportExportData: { + serializedName: "SupportExportData", + readOnly: true, + type: { + name: "Boolean", + }, + }, + burstThrottlePolicy: { + serializedName: "BurstThrottlePolicy", + readOnly: true, + type: { + name: "String", + }, + }, + metadataClass: { + serializedName: "MetadataClass", + readOnly: true, + type: { + name: "String", + }, + }, + liveStreamMetrics: { + serializedName: "LiveStreamMetrics", + readOnly: true, + type: { + name: "Boolean", + }, + }, + applicationMap: { + serializedName: "ApplicationMap", + readOnly: true, + type: { + name: "Boolean", + }, + }, + workItemIntegration: { + serializedName: "WorkItemIntegration", + readOnly: true, + type: { + name: "Boolean", + }, + }, + powerBIIntegration: { + serializedName: "PowerBIIntegration", + readOnly: true, + type: { + name: "Boolean", + }, + }, + openSchema: { + serializedName: "OpenSchema", + readOnly: true, + type: { + name: "Boolean", + }, + }, + proactiveDetection: { + serializedName: "ProactiveDetection", + readOnly: true, + type: { + name: "Boolean", + }, + }, + analyticsIntegration: { + serializedName: "AnalyticsIntegration", + readOnly: true, + type: { + name: "Boolean", + }, + }, + multipleStepWebTest: { + serializedName: "MultipleStepWebTest", + readOnly: true, + type: { + name: "Boolean", + }, + }, + apiAccessLevel: { + serializedName: "ApiAccessLevel", + readOnly: true, + type: { + name: "String", + }, + }, + trackingType: { + serializedName: "TrackingType", + readOnly: true, + type: { + name: "String", + }, + }, + dailyCap: { + serializedName: "DailyCap", + readOnly: true, + type: { + name: "Number", + }, + }, + dailyCapResetTime: { + serializedName: "DailyCapResetTime", + readOnly: true, + type: { + name: "Number", + }, + }, + throttleRate: { + serializedName: "ThrottleRate", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const ApplicationInsightsComponentAvailableFeatures: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentAvailableFeatures", + modelProperties: { + result: { + serializedName: "Result", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationInsightsComponentFeature", + }, + }, + }, + }, + }, + }, + }; -export const ApplicationInsightsComponentExportConfiguration: coreClient.CompositeMapper = { +export const ApplicationInsightsComponentFeature: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentExportConfiguration", + className: "ApplicationInsightsComponentFeature", modelProperties: { - exportId: { - serializedName: "ExportId", - readOnly: true, - type: { - name: "String" - } - }, - instrumentationKey: { - serializedName: "InstrumentationKey", + featureName: { + serializedName: "FeatureName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - recordTypes: { - serializedName: "RecordTypes", - type: { - name: "String" - } - }, - applicationName: { - serializedName: "ApplicationName", + meterId: { + serializedName: "MeterId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - subscriptionId: { - serializedName: "SubscriptionId", + meterRateFrequency: { + serializedName: "MeterRateFrequency", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - resourceGroup: { - serializedName: "ResourceGroup", + resouceId: { + serializedName: "ResouceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - destinationStorageSubscriptionId: { - serializedName: "DestinationStorageSubscriptionId", + isHidden: { + serializedName: "IsHidden", readOnly: true, type: { - name: "String" - } + name: "Boolean", + }, }, - destinationStorageLocationId: { - serializedName: "DestinationStorageLocationId", + capabilities: { + serializedName: "Capabilities", readOnly: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationInsightsComponentFeatureCapability", + }, + }, + }, }, - destinationAccountId: { - serializedName: "DestinationAccountId", + title: { + serializedName: "Title", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - destinationType: { - serializedName: "DestinationType", + isMainFeature: { + serializedName: "IsMainFeature", readOnly: true, type: { - name: "String" - } + name: "Boolean", + }, }, - isUserEnabled: { - serializedName: "IsUserEnabled", + supportedAddonFeatures: { + serializedName: "SupportedAddonFeatures", readOnly: true, type: { - name: "String" - } - }, - lastUserUpdate: { - serializedName: "LastUserUpdate", + name: "String", + }, + }, + }, + }, +}; + +export const ApplicationInsightsComponentFeatureCapability: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentFeatureCapability", + modelProperties: { + name: { + serializedName: "Name", + readOnly: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "Description", + readOnly: true, + type: { + name: "String", + }, + }, + value: { + serializedName: "Value", + readOnly: true, + type: { + name: "String", + }, + }, + unit: { + serializedName: "Unit", + readOnly: true, + type: { + name: "String", + }, + }, + meterId: { + serializedName: "MeterId", + readOnly: true, + type: { + name: "String", + }, + }, + meterRateFrequency: { + serializedName: "MeterRateFrequency", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApplicationInsightsComponentProactiveDetectionConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentProactiveDetectionConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + sendEmailsToSubscriptionOwners: { + serializedName: "sendEmailsToSubscriptionOwners", + type: { + name: "Boolean", + }, + }, + customEmails: { + serializedName: "customEmails", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + lastUpdatedTime: { + serializedName: "lastUpdatedTime", + type: { + name: "String", + }, + }, + ruleDefinitions: { + serializedName: "ruleDefinitions", + type: { + name: "Composite", + className: + "ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions", + }, + }, + }, + }, + }; + +export const ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions", + modelProperties: { + name: { + serializedName: "Name", + type: { + name: "String", + }, + }, + displayName: { + serializedName: "DisplayName", + type: { + name: "String", + }, + }, + description: { + serializedName: "Description", + type: { + name: "String", + }, + }, + helpUrl: { + serializedName: "HelpUrl", + type: { + name: "String", + }, + }, + isHidden: { + serializedName: "IsHidden", + type: { + name: "Boolean", + }, + }, + isEnabledByDefault: { + serializedName: "IsEnabledByDefault", + type: { + name: "Boolean", + }, + }, + isInPreview: { + serializedName: "IsInPreview", + type: { + name: "Boolean", + }, + }, + supportsEmailNotifications: { + serializedName: "SupportsEmailNotifications", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const WorkItemConfigurationsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkItemConfigurationsListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String" - } - }, - notificationQueueEnabled: { - serializedName: "NotificationQueueEnabled", - type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkItemConfiguration", + }, + }, + }, }, - exportStatus: { - serializedName: "ExportStatus", - readOnly: true, + }, + }, +}; + +export const WorkItemConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkItemConfiguration", + modelProperties: { + connectorId: { + serializedName: "ConnectorId", type: { - name: "String" - } + name: "String", + }, }, - lastSuccessTime: { - serializedName: "LastSuccessTime", - readOnly: true, + configDisplayName: { + serializedName: "ConfigDisplayName", type: { - name: "String" - } + name: "String", + }, }, - lastGapTime: { - serializedName: "LastGapTime", - readOnly: true, + isDefault: { + serializedName: "IsDefault", type: { - name: "String" - } + name: "Boolean", + }, }, - permanentErrorReason: { - serializedName: "PermanentErrorReason", - readOnly: true, + id: { + serializedName: "Id", type: { - name: "String" - } + name: "String", + }, }, - storageName: { - serializedName: "StorageName", - readOnly: true, + configProperties: { + serializedName: "ConfigProperties", type: { - name: "String" - } + name: "String", + }, }, - containerName: { - serializedName: "ContainerName", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApplicationInsightsComponentExportRequest: coreClient.CompositeMapper = { +export const WorkItemConfigurationError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentExportRequest", + className: "WorkItemConfigurationError", modelProperties: { - recordTypes: { - serializedName: "RecordTypes", - type: { - name: "String" - } - }, - destinationType: { - serializedName: "DestinationType", + code: { + serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, - destinationAddress: { - serializedName: "DestinationAddress", + message: { + serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, - isEnabled: { - serializedName: "IsEnabled", + innererror: { + serializedName: "innererror", type: { - name: "String" - } + name: "Composite", + className: "InnerError", + }, }, - notificationQueueEnabled: { - serializedName: "NotificationQueueEnabled", - type: { - name: "String" - } - }, - notificationQueueUri: { - serializedName: "NotificationQueueUri", + }, + }, +}; + +export const WorkItemCreateConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkItemCreateConfiguration", + modelProperties: { + connectorId: { + serializedName: "ConnectorId", type: { - name: "String" - } + name: "String", + }, }, - destinationStorageSubscriptionId: { - serializedName: "DestinationStorageSubscriptionId", + connectorDataConfiguration: { + serializedName: "ConnectorDataConfiguration", type: { - name: "String" - } + name: "String", + }, }, - destinationStorageLocationId: { - serializedName: "DestinationStorageLocationId", + validateOnly: { + serializedName: "ValidateOnly", type: { - name: "String" - } + name: "Boolean", + }, }, - destinationAccountId: { - serializedName: "DestinationAccountId", + workItemProperties: { + serializedName: "WorkItemProperties", type: { - name: "String" - } - } - } - } -}; + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const ApplicationInsightsComponentFavorite: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentFavorite", + modelProperties: { + name: { + serializedName: "Name", + type: { + name: "String", + }, + }, + config: { + serializedName: "Config", + type: { + name: "String", + }, + }, + version: { + serializedName: "Version", + type: { + name: "String", + }, + }, + favoriteId: { + serializedName: "FavoriteId", + readOnly: true, + type: { + name: "String", + }, + }, + favoriteType: { + serializedName: "FavoriteType", + type: { + name: "Enum", + allowedValues: ["shared", "user"], + }, + }, + sourceType: { + serializedName: "SourceType", + type: { + name: "String", + }, + }, + timeModified: { + serializedName: "TimeModified", + readOnly: true, + type: { + name: "String", + }, + }, + tags: { + serializedName: "Tags", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + category: { + serializedName: "Category", + type: { + name: "String", + }, + }, + isGeneratedFromTemplate: { + serializedName: "IsGeneratedFromTemplate", + type: { + name: "Boolean", + }, + }, + userId: { + serializedName: "UserId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApplicationInsightsWebTestLocationsListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsWebTestLocationsListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationInsightsComponentWebTestLocation", + }, + }, + }, + }, + }, + }, + }; + +export const ApplicationInsightsComponentWebTestLocation: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentWebTestLocation", + modelProperties: { + displayName: { + serializedName: "DisplayName", + readOnly: true, + type: { + name: "String", + }, + }, + tag: { + serializedName: "Tag", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApplicationInsightsComponentBillingFeatures: coreClient.CompositeMapper = { +export const WebTestListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentBillingFeatures", + className: "WebTestListResult", modelProperties: { - dataVolumeCap: { - serializedName: "DataVolumeCap", - type: { - name: "Composite", - className: "ApplicationInsightsComponentDataVolumeCap" - } - }, - currentBillingFeatures: { - serializedName: "CurrentBillingFeatures", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "Composite", + className: "WebTest", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApplicationInsightsComponentDataVolumeCap: coreClient.CompositeMapper = { +export const WebTestGeolocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentDataVolumeCap", + className: "WebTestGeolocation", modelProperties: { - cap: { - serializedName: "Cap", - type: { - name: "Number" - } - }, - resetTime: { - serializedName: "ResetTime", - readOnly: true, - type: { - name: "Number" - } - }, - warningThreshold: { - serializedName: "WarningThreshold", - type: { - name: "Number" - } - }, - stopSendNotificationWhenHitThreshold: { - serializedName: "StopSendNotificationWhenHitThreshold", - type: { - name: "Boolean" - } - }, - stopSendNotificationWhenHitCap: { - serializedName: "StopSendNotificationWhenHitCap", + location: { + serializedName: "Id", type: { - name: "Boolean" - } + name: "String", + }, }, - maxHistoryCap: { - serializedName: "MaxHistoryCap", - readOnly: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const ApplicationInsightsComponentQuotaStatus: coreClient.CompositeMapper = { +export const WebTestPropertiesConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentQuotaStatus", + className: "WebTestPropertiesConfiguration", modelProperties: { - appId: { - serializedName: "AppId", - readOnly: true, - type: { - name: "String" - } - }, - shouldBeThrottled: { - serializedName: "ShouldBeThrottled", - readOnly: true, + webTest: { + serializedName: "WebTest", type: { - name: "Boolean" - } + name: "String", + }, }, - expirationTime: { - serializedName: "ExpirationTime", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApplicationInsightsComponentFeatureCapabilities: coreClient.CompositeMapper = { +export const WebTestPropertiesRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentFeatureCapabilities", + className: "WebTestPropertiesRequest", modelProperties: { - supportExportData: { - serializedName: "SupportExportData", - readOnly: true, - type: { - name: "Boolean" - } - }, - burstThrottlePolicy: { - serializedName: "BurstThrottlePolicy", - readOnly: true, - type: { - name: "String" - } - }, - metadataClass: { - serializedName: "MetadataClass", - readOnly: true, - type: { - name: "String" - } - }, - liveStreamMetrics: { - serializedName: "LiveStreamMetrics", - readOnly: true, - type: { - name: "Boolean" - } - }, - applicationMap: { - serializedName: "ApplicationMap", - readOnly: true, - type: { - name: "Boolean" - } - }, - workItemIntegration: { - serializedName: "WorkItemIntegration", - readOnly: true, - type: { - name: "Boolean" - } - }, - powerBIIntegration: { - serializedName: "PowerBIIntegration", - readOnly: true, - type: { - name: "Boolean" - } - }, - openSchema: { - serializedName: "OpenSchema", - readOnly: true, + requestUrl: { + serializedName: "RequestUrl", type: { - name: "Boolean" - } + name: "String", + }, }, - proactiveDetection: { - serializedName: "ProactiveDetection", - readOnly: true, + headers: { + serializedName: "Headers", type: { - name: "Boolean" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HeaderField", + }, + }, + }, }, - analyticsIntegration: { - serializedName: "AnalyticsIntegration", - readOnly: true, + httpVerb: { + serializedName: "HttpVerb", type: { - name: "Boolean" - } + name: "String", + }, }, - multipleStepWebTest: { - serializedName: "MultipleStepWebTest", - readOnly: true, + requestBody: { + serializedName: "RequestBody", type: { - name: "Boolean" - } + name: "String", + }, }, - apiAccessLevel: { - serializedName: "ApiAccessLevel", - readOnly: true, + parseDependentRequests: { + serializedName: "ParseDependentRequests", type: { - name: "String" - } + name: "Boolean", + }, }, - trackingType: { - serializedName: "TrackingType", - readOnly: true, + followRedirects: { + serializedName: "FollowRedirects", type: { - name: "String" - } + name: "Boolean", + }, }, - dailyCap: { - serializedName: "DailyCap", - readOnly: true, + }, + }, +}; + +export const HeaderField: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HeaderField", + modelProperties: { + headerFieldName: { + serializedName: "key", type: { - name: "Number" - } + name: "String", + }, }, - dailyCapResetTime: { - serializedName: "DailyCapResetTime", - readOnly: true, + headerFieldValue: { + serializedName: "value", type: { - name: "Number" - } + name: "String", + }, }, - throttleRate: { - serializedName: "ThrottleRate", - readOnly: true, - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const ApplicationInsightsComponentAvailableFeatures: coreClient.CompositeMapper = { +export const WebTestPropertiesValidationRules: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentAvailableFeatures", + className: "WebTestPropertiesValidationRules", modelProperties: { - result: { - serializedName: "Result", - readOnly: true, + contentValidation: { + serializedName: "ContentValidation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentFeature" - } - } - } - } - } - } -}; + name: "Composite", + className: "WebTestPropertiesValidationRulesContentValidation", + }, + }, + sSLCheck: { + serializedName: "SSLCheck", + type: { + name: "Boolean", + }, + }, + sSLCertRemainingLifetimeCheck: { + serializedName: "SSLCertRemainingLifetimeCheck", + type: { + name: "Number", + }, + }, + expectedHttpStatusCode: { + serializedName: "ExpectedHttpStatusCode", + type: { + name: "Number", + }, + }, + ignoreHttpStatusCode: { + serializedName: "IgnoreHttpStatusCode", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const WebTestPropertiesValidationRulesContentValidation: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "WebTestPropertiesValidationRulesContentValidation", + modelProperties: { + contentMatch: { + serializedName: "ContentMatch", + type: { + name: "String", + }, + }, + ignoreCase: { + serializedName: "IgnoreCase", + type: { + name: "Boolean", + }, + }, + passIfTextFound: { + serializedName: "PassIfTextFound", + type: { + name: "Boolean", + }, + }, + }, + }, + }; -export const ApplicationInsightsComponentFeature: coreClient.CompositeMapper = { +export const WebtestsResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentFeature", + className: "WebtestsResource", modelProperties: { - featureName: { - serializedName: "FeatureName", + id: { + serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - meterId: { - serializedName: "MeterId", + name: { + serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - meterRateFrequency: { - serializedName: "MeterRateFrequency", + type: { + serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - resouceId: { - serializedName: "ResouceId", - readOnly: true, + location: { + serializedName: "location", + required: true, type: { - name: "String" - } + name: "String", + }, }, - isHidden: { - serializedName: "IsHidden", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "Boolean" - } - }, - capabilities: { - serializedName: "Capabilities", - readOnly: true, + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const ApplicationInsightsComponentAnalyticsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentAnalyticsItem", + modelProperties: { + id: { + serializedName: "Id", + type: { + name: "String", + }, + }, + name: { + serializedName: "Name", + type: { + name: "String", + }, + }, + content: { + serializedName: "Content", + type: { + name: "String", + }, + }, + version: { + serializedName: "Version", + readOnly: true, + type: { + name: "String", + }, + }, + scope: { + serializedName: "Scope", + type: { + name: "String", + }, + }, + type: { + serializedName: "Type", + type: { + name: "String", + }, + }, + timeCreated: { + serializedName: "TimeCreated", + readOnly: true, + type: { + name: "String", + }, + }, + timeModified: { + serializedName: "TimeModified", + readOnly: true, + type: { + name: "String", + }, + }, + properties: { + serializedName: "Properties", + type: { + name: "Composite", + className: "ApplicationInsightsComponentAnalyticsItemProperties", + }, + }, + }, + }, + }; + +export const ApplicationInsightsComponentAnalyticsItemProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ApplicationInsightsComponentAnalyticsItemProperties", + modelProperties: { + functionAlias: { + serializedName: "functionAlias", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationInsightsComponentFeatureCapability" - } - } - } - }, - title: { - serializedName: "Title", - readOnly: true, - type: { - name: "String" - } + className: "Operation", + }, + }, + }, }, - isMainFeature: { - serializedName: "IsMainFeature", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Boolean" - } + name: "String", + }, }, - supportedAddonFeatures: { - serializedName: "SupportedAddonFeatures", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApplicationInsightsComponentFeatureCapability: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentFeatureCapability", + className: "Operation", modelProperties: { name: { - serializedName: "Name", - readOnly: true, + serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "Description", - readOnly: true, + display: { + serializedName: "display", type: { - name: "String" - } + name: "Composite", + className: "OperationDisplay", + }, }, - value: { - serializedName: "Value", - readOnly: true, + }, + }, +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, - unit: { - serializedName: "Unit", - readOnly: true, + resource: { + serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, - meterId: { - serializedName: "MeterId", - readOnly: true, + operation: { + serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, - meterRateFrequency: { - serializedName: "MeterRateFrequency", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApplicationInsightsComponentProactiveDetectionConfiguration: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentProactiveDetectionConfiguration", + className: "ErrorResponse", modelProperties: { - name: { - serializedName: "Name", - type: { - name: "String" - } - }, - enabled: { - serializedName: "Enabled", + code: { + serializedName: "code", type: { - name: "Boolean" - } + name: "String", + }, }, - sendEmailsToSubscriptionOwners: { - serializedName: "SendEmailsToSubscriptionOwners", + message: { + serializedName: "message", type: { - name: "Boolean" - } + name: "String", + }, }, - customEmails: { - serializedName: "CustomEmails", + details: { + serializedName: "details", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - }, - lastUpdatedTime: { - serializedName: "LastUpdatedTime", - type: { - name: "String" - } + name: "Composite", + className: "ErrorFieldContract", + }, + }, + }, }, - ruleDefinitions: { - serializedName: "RuleDefinitions", - type: { - name: "Composite", - className: - "ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions" - } - } - } - } + }, + }, }; -export const ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions: coreClient.CompositeMapper = { +export const ErrorFieldContract: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions", + className: "ErrorFieldContract", modelProperties: { - name: { - serializedName: "Name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "DisplayName", - type: { - name: "String" - } - }, - description: { - serializedName: "Description", - type: { - name: "String" - } - }, - helpUrl: { - serializedName: "HelpUrl", - type: { - name: "String" - } - }, - isHidden: { - serializedName: "IsHidden", + code: { + serializedName: "code", type: { - name: "Boolean" - } + name: "String", + }, }, - isEnabledByDefault: { - serializedName: "IsEnabledByDefault", + message: { + serializedName: "message", type: { - name: "Boolean" - } + name: "String", + }, }, - isInPreview: { - serializedName: "IsInPreview", + target: { + serializedName: "target", type: { - name: "Boolean" - } + name: "String", + }, }, - supportsEmailNotifications: { - serializedName: "SupportsEmailNotifications", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const WorkItemConfigurationsListResult: coreClient.CompositeMapper = { +export const WorkbookTemplatesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkItemConfigurationsListResult", + className: "WorkbookTemplatesListResult", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "WorkItemConfiguration" - } - } - } - } - } - } + className: "WorkbookTemplate", + }, + }, + }, + }, + }, + }, }; -export const WorkItemConfiguration: coreClient.CompositeMapper = { +export const WorkbookTemplateGallery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkItemConfiguration", + className: "WorkbookTemplateGallery", modelProperties: { - connectorId: { - serializedName: "ConnectorId", + name: { + serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - configDisplayName: { - serializedName: "ConfigDisplayName", + category: { + serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, - isDefault: { - serializedName: "IsDefault", + type: { + serializedName: "type", type: { - name: "Boolean" - } + name: "String", + }, }, - id: { - serializedName: "Id", - type: { - name: "String" - } + order: { + serializedName: "order", + type: { + name: "Number", + }, }, - configProperties: { - serializedName: "ConfigProperties", + resourceType: { + serializedName: "resourceType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const WorkItemConfigurationError: coreClient.CompositeMapper = { +export const WorkbookTemplateLocalizedGallery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkItemConfigurationError", + className: "WorkbookTemplateLocalizedGallery", modelProperties: { - code: { - serializedName: "code", + templateData: { + serializedName: "templateData", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - message: { - serializedName: "message", + galleries: { + serializedName: "galleries", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkbookTemplateGallery", + }, + }, + }, }, - innererror: { - serializedName: "innererror", - type: { - name: "Composite", - className: "InnerError" - } - } - } - } + }, + }, }; -export const WorkItemCreateConfiguration: coreClient.CompositeMapper = { +export const WorkbookTemplateResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkItemCreateConfiguration", + className: "WorkbookTemplateResource", modelProperties: { - connectorId: { - serializedName: "ConnectorId", + id: { + serializedName: "id", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - connectorDataConfiguration: { - serializedName: "ConnectorDataConfiguration", + name: { + serializedName: "name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - validateOnly: { - serializedName: "ValidateOnly", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" - } + name: "String", + }, }, - workItemProperties: { - serializedName: "WorkItemProperties", + location: { + serializedName: "location", + required: true, + type: { + name: "String", + }, + }, + tags: { + serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; -export const ApplicationInsightsComponentFavorite: coreClient.CompositeMapper = { +export const WorkbookTemplateError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentFavorite", + className: "WorkbookTemplateError", modelProperties: { - name: { - serializedName: "Name", + error: { + serializedName: "error", type: { - name: "String" - } + name: "Composite", + className: "WorkbookTemplateErrorBody", + }, }, - config: { - serializedName: "Config", + }, + }, +}; + +export const WorkbookTemplateErrorBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkbookTemplateErrorBody", + modelProperties: { + code: { + serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, - version: { - serializedName: "Version", + message: { + serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, - favoriteId: { - serializedName: "FavoriteId", - readOnly: true, + details: { + serializedName: "details", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkbookTemplateErrorFieldContract", + }, + }, + }, }, - favoriteType: { - serializedName: "FavoriteType", + }, + }, +}; + +export const WorkbookTemplateErrorFieldContract: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkbookTemplateErrorFieldContract", + modelProperties: { + code: { + serializedName: "code", type: { - name: "Enum", - allowedValues: ["shared", "user"] - } + name: "String", + }, }, - sourceType: { - serializedName: "SourceType", + message: { + serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, - timeModified: { - serializedName: "TimeModified", - readOnly: true, + target: { + serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, + }, + }, +}; + +export const WorkbookTemplateUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkbookTemplateUpdateParameters", + modelProperties: { tags: { - serializedName: "Tags", + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - category: { - serializedName: "Category", + priority: { + serializedName: "properties.priority", type: { - name: "String" - } + name: "Number", + }, }, - isGeneratedFromTemplate: { - serializedName: "IsGeneratedFromTemplate", + author: { + serializedName: "properties.author", type: { - name: "Boolean" - } + name: "String", + }, }, - userId: { - serializedName: "UserId", - readOnly: true, + templateData: { + serializedName: "properties.templateData", type: { - name: "String" - } - } - } - } -}; - -export const ApplicationInsightsWebTestLocationsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationInsightsWebTestLocationsListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + galleries: { + serializedName: "properties.galleries", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApplicationInsightsComponentWebTestLocation" - } - } - } - } - } - } -}; - -export const ApplicationInsightsComponentWebTestLocation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationInsightsComponentWebTestLocation", - modelProperties: { - displayName: { - serializedName: "DisplayName", - readOnly: true, - type: { - name: "String" - } + className: "WorkbookTemplateGallery", + }, + }, + }, }, - tag: { - serializedName: "Tag", - readOnly: true, + localized: { + serializedName: "properties.localized", type: { - name: "String" - } - } - } - } + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkbookTemplateLocalizedGallery", + }, + }, + }, + }, + }, + }, + }, + }, }; -export const WebTestListResult: coreClient.CompositeMapper = { +export const WorkbooksListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebTestListResult", + className: "WorkbooksListResult", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "WebTest" - } - } - } + className: "Workbook", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const WebTestGeolocation: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebTestGeolocation", + className: "SystemData", modelProperties: { - location: { - serializedName: "Id", + createdBy: { + serializedName: "createdBy", type: { - name: "String" - } - } - } - } -}; - -export const WebTestPropertiesConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WebTestPropertiesConfiguration", - modelProperties: { - webTest: { - serializedName: "WebTest", + name: "String", + }, + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "String" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const WebtestsResource: coreClient.CompositeMapper = { +export const ManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebtestsResource", + className: "ManagedServiceIdentity", modelProperties: { - id: { - serializedName: "id", + principalId: { + serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "Uuid", + }, }, - name: { - serializedName: "name", + tenantId: { + serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "Uuid", + }, }, type: { serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, - tags: { - serializedName: "tags", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { + type: { name: "Composite", className: "UserAssignedIdentity" }, + }, + }, + }, + }, + }, }; -export const TagsResource: coreClient.CompositeMapper = { +export const UserAssignedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TagsResource", + className: "UserAssignedIdentity", modelProperties: { - tags: { - serializedName: "tags", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + name: "Uuid", + }, + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + }, + }, }; -export const ApplicationInsightsComponentAnalyticsItem: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentAnalyticsItem", + className: "Resource", modelProperties: { id: { - serializedName: "Id", + serializedName: "id", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { - serializedName: "Name", - type: { - name: "String" - } - }, - content: { - serializedName: "Content", - type: { - name: "String" - } - }, - version: { - serializedName: "Version", + serializedName: "name", readOnly: true, type: { - name: "String" - } - }, - scope: { - serializedName: "Scope", - type: { - name: "String" - } + name: "String", + }, }, type: { - serializedName: "Type", - type: { - name: "String" - } - }, - timeCreated: { - serializedName: "TimeCreated", - readOnly: true, - type: { - name: "String" - } - }, - timeModified: { - serializedName: "TimeModified", + serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - properties: { - serializedName: "Properties", + }, + }, +}; + +export const WorkbookError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkbookError", + modelProperties: { + error: { + serializedName: "error", type: { name: "Composite", - className: "ApplicationInsightsComponentAnalyticsItemProperties" - } - } - } - } + className: "WorkbookErrorDefinition", + }, + }, + }, + }, }; -export const ApplicationInsightsComponentAnalyticsItemProperties: coreClient.CompositeMapper = { +export const WorkbookErrorDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationInsightsComponentAnalyticsItemProperties", + className: "WorkbookErrorDefinition", modelProperties: { - functionAlias: { - serializedName: "functionAlias", + code: { + serializedName: "code", + readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + innererror: { + serializedName: "innererror", + type: { + name: "Composite", + className: "WorkbookInnerErrorTrace", + }, + }, + }, + }, }; -export const WorkbookTemplatesListResult: coreClient.CompositeMapper = { +export const WorkbookInnerErrorTrace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkbookTemplatesListResult", + className: "WorkbookInnerErrorTrace", modelProperties: { - value: { - serializedName: "value", + trace: { + serializedName: "trace", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "WorkbookTemplate" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; -export const WorkbookTemplateGallery: coreClient.CompositeMapper = { +export const WorkbookUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkbookTemplateGallery", + className: "WorkbookUpdateParameters", modelProperties: { - name: { - serializedName: "name", + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String", + }, + }, + serializedData: { + serializedName: "properties.serializedData", type: { - name: "String" - } + name: "String", + }, }, category: { - serializedName: "category", + serializedName: "properties.category", type: { - name: "String" - } + name: "String", + }, }, - type: { - serializedName: "type", + tagsPropertiesTags: { + serializedName: "properties.tags", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - order: { - serializedName: "order", + description: { + serializedName: "properties.description", + nullable: true, type: { - name: "Number" - } + name: "String", + }, }, - resourceType: { - serializedName: "resourceType", + revision: { + serializedName: "properties.revision", + nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const WorkbookTemplateLocalizedGallery: coreClient.CompositeMapper = { +export const LiveTokenResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkbookTemplateLocalizedGallery", + className: "LiveTokenResponse", modelProperties: { - templateData: { - serializedName: "templateData", + liveToken: { + serializedName: "liveToken", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } - } + name: "String", + }, }, - galleries: { - serializedName: "galleries", + }, + }, +}; + +export const ErrorResponseLinkedStorage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseLinkedStorage", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponseLinkedStorageError", + }, + }, + }, + }, +}; + +export const ErrorResponseLinkedStorageError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseLinkedStorageError", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ComponentLinkedStorageAccountsPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentLinkedStorageAccountsPatch", + modelProperties: { + linkedStorageAccount: { + serializedName: "properties.linkedStorageAccount", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const DeletedWorkbooksListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeletedWorkbooksListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "WorkbookTemplateGallery" - } - } - } - } - } - } + className: "DeletedWorkbook", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const WorkbookTemplateResource: coreClient.CompositeMapper = { +export const ResourceAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkbookTemplateResource", + className: "ResourceAutoGenerated", modelProperties: { id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - location: { - serializedName: "location", - required: true, + systemData: { + serializedName: "systemData", type: { - name: "String" - } + name: "Composite", + className: "SystemData", + }, }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + }, + }, }; -export const WorkbookTemplateError: coreClient.CompositeMapper = { +export const DeletedWorkbookError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkbookTemplateError", + className: "DeletedWorkbookError", modelProperties: { error: { serializedName: "error", type: { name: "Composite", - className: "WorkbookTemplateErrorBody" - } - } - } - } -}; - -export const WorkbookTemplateErrorBody: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkbookTemplateErrorBody", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } + className: "DeletedWorkbookErrorDefinition", + }, }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkbookTemplateErrorFieldContract" - } - } - } - } - } - } + }, + }, }; -export const WorkbookTemplateErrorFieldContract: coreClient.CompositeMapper = { +export const DeletedWorkbookErrorDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkbookTemplateErrorFieldContract", + className: "DeletedWorkbookErrorDefinition", modelProperties: { code: { serializedName: "code", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - target: { - serializedName: "target", + innererror: { + serializedName: "innererror", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "DeletedWorkbookInnerErrorTrace", + }, + }, + }, + }, }; -export const WorkbookTemplateUpdateParameters: coreClient.CompositeMapper = { +export const DeletedWorkbookInnerErrorTrace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkbookTemplateUpdateParameters", + className: "DeletedWorkbookInnerErrorTrace", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - priority: { - serializedName: "properties.priority", - type: { - name: "Number" - } - }, - author: { - serializedName: "properties.author", - type: { - name: "String" - } - }, - templateData: { - serializedName: "properties.templateData", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - }, - galleries: { - serializedName: "properties.galleries", + trace: { + serializedName: "trace", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "WorkbookTemplateGallery" - } - } - } + name: "String", + }, + }, + }, }, - localized: { - serializedName: "properties.localized", - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkbookTemplateLocalizedGallery" - } - } - } - } - } - } - } - } + }, + }, }; -export const MyWorkbooksListResult: coreClient.CompositeMapper = { +export const OperationsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MyWorkbooksListResult", + className: "OperationsListResult", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MyWorkbook" - } - } - } + className: "OperationLive", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SystemData: coreClient.CompositeMapper = { +export const OperationLive: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "OperationLive", modelProperties: { - createdBy: { - serializedName: "createdBy", + name: { + serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - createdByType: { - serializedName: "createdByType", + isDataAction: { + serializedName: "isDataAction", type: { - name: "String" - } + name: "Boolean", + }, }, - createdAt: { - serializedName: "createdAt", + display: { + serializedName: "display", type: { - name: "DateTime" - } + name: "Composite", + className: "OperationInfo", + }, }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + origin: { + serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + properties: { + serializedName: "properties", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const MyWorkbookResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MyWorkbookResource", - modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "MyWorkbookManagedIdentity" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - etag: { - serializedName: "etag", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const MyWorkbookManagedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MyWorkbookManagedIdentity", - modelProperties: { - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Composite", - className: "MyWorkbookUserAssignedIdentities" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const MyWorkbookUserAssignedIdentities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MyWorkbookUserAssignedIdentities", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const MyWorkbookError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MyWorkbookError", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDefinition" - } - } - } - } -}; - -export const ErrorDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorDefinition", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - }, - innererror: { - serializedName: "innererror", - readOnly: true, - type: { - name: "any" - } - } - } - } -}; - -export const WorkbooksListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkbooksListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Workbook" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedServiceIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedServiceIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "Uuid" - } - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "Uuid" - } - }, - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserAssignedIdentity" } - } - } - } - } - } -}; - -export const UserAssignedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "Uuid" - } - }, - clientId: { - serializedName: "clientId", - readOnly: true, - type: { - name: "Uuid" - } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const WorkbookError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkbookError", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "WorkbookErrorDefinition" - } - } - } - } -}; - -export const WorkbookErrorDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkbookErrorDefinition", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - }, - innerError: { - serializedName: "innerError", - readOnly: true, - type: { - name: "any" - } - } - } - } -}; - -export const WorkbookUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkbookUpdateParameters", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - serializedData: { - serializedName: "properties.serializedData", - type: { - name: "String" - } - }, - category: { - serializedName: "properties.category", - type: { - name: "String" - } - }, - tagsPropertiesTags: { - serializedName: "properties.tags", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - description: { - serializedName: "properties.description", - nullable: true, - type: { - name: "String" - } - }, - revision: { - serializedName: "properties.revision", - nullable: true, - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationInsightsComponentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationInsightsComponentListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponent" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkScopedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkScopedResource", - modelProperties: { - resourceId: { - serializedName: "ResourceId", - type: { - name: "String" - } - }, - scopeId: { - serializedName: "ScopeId", - type: { - name: "String" - } - } - } - } -}; - -export const ComponentsResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentsResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const ErrorResponseComponents: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponseComponents", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponseComponentsError" - } - } - } - } -}; - -export const ErrorResponseComponentsError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponseComponentsError", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ComponentPurgeBody: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentPurgeBody", - modelProperties: { - table: { - serializedName: "table", - required: true, - type: { - name: "String" - } - }, - filters: { - serializedName: "filters", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComponentPurgeBodyFilters" - } - } - } - } - } - } -}; - -export const ComponentPurgeBodyFilters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentPurgeBodyFilters", - modelProperties: { - column: { - serializedName: "column", - type: { - name: "String" - } - }, - operator: { - serializedName: "operator", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "any" - } - }, - key: { - serializedName: "key", - type: { - name: "String" - } - } - } - } -}; - -export const ComponentPurgeResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentPurgeResponse", - modelProperties: { - operationId: { - serializedName: "operationId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ComponentPurgeStatusResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentPurgeStatusResponse", - modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ErrorResponseLinkedStorage: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponseLinkedStorage", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponseLinkedStorageError" - } - } - } - } -}; - -export const ErrorResponseLinkedStorageError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponseLinkedStorageError", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ComponentLinkedStorageAccountsPatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComponentLinkedStorageAccountsPatch", - modelProperties: { - linkedStorageAccount: { - serializedName: "properties.linkedStorageAccount", - type: { - name: "String" - } - } - } - } -}; - -export const LiveTokenResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LiveTokenResponse", - modelProperties: { - liveToken: { - serializedName: "liveToken", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - } - } - } -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - type: { - name: "String" - } - } - } - } -}; - -export const OperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const InnerErrorTrace: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InnerErrorTrace", - modelProperties: { - trace: { - serializedName: "trace", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const WorkbookInnerErrorTrace: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkbookInnerErrorTrace", - modelProperties: { - trace: { - serializedName: "trace", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const OperationsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationsListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationLive" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const OperationLive: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationLive", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - isDataAction: { - serializedName: "isDataAction", - type: { - name: "Boolean" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationInfo" - } - }, - origin: { - serializedName: "origin", - type: { - name: "String" - } - }, - properties: { - serializedName: "properties", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const OperationInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationInfo", - modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - } - } - } -}; - -export const WebTest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WebTest", - modelProperties: { - ...WebtestsResource.type.modelProperties, - kind: { - serializedName: "kind", - type: { - name: "Enum", - allowedValues: ["ping", "multistep"] - } - }, - syntheticMonitorId: { - serializedName: "properties.SyntheticMonitorId", - type: { - name: "String" - } - }, - webTestName: { - serializedName: "properties.Name", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.Description", - type: { - name: "String" - } - }, - enabled: { - serializedName: "properties.Enabled", - type: { - name: "Boolean" - } - }, - frequency: { - defaultValue: 300, - serializedName: "properties.Frequency", - type: { - name: "Number" - } - }, - timeout: { - defaultValue: 30, - serializedName: "properties.Timeout", - type: { - name: "Number" - } - }, - webTestKind: { - serializedName: "properties.Kind", - type: { - name: "Enum", - allowedValues: ["ping", "multistep"] - } - }, - retryEnabled: { - serializedName: "properties.RetryEnabled", - type: { - name: "Boolean" - } - }, - locations: { - serializedName: "properties.Locations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WebTestGeolocation" - } - } - } - }, - configuration: { - serializedName: "properties.Configuration", - type: { - name: "Composite", - className: "WebTestPropertiesConfiguration" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const WorkbookTemplate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkbookTemplate", - modelProperties: { - ...WorkbookTemplateResource.type.modelProperties, - priority: { - serializedName: "properties.priority", - type: { - name: "Number" - } - }, - author: { - serializedName: "properties.author", - type: { - name: "String" - } - }, - templateData: { - serializedName: "properties.templateData", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - }, - galleries: { - serializedName: "properties.galleries", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkbookTemplateGallery" - } - } - } - }, - localized: { - serializedName: "properties.localized", - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkbookTemplateLocalizedGallery" - } - } - } - } - } - } - } - } -}; - -export const MyWorkbook: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MyWorkbook", - modelProperties: { - ...MyWorkbookResource.type.modelProperties, - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - serializedData: { - serializedName: "properties.serializedData", - nullable: true, - type: { - name: "String" - } - }, - version: { - serializedName: "properties.version", - type: { - name: "String" - } - }, - timeModified: { - serializedName: "properties.timeModified", - readOnly: true, - type: { - name: "String" - } - }, - category: { - serializedName: "properties.category", - type: { - name: "String" - } - }, - tagsPropertiesTags: { - serializedName: "properties.tags", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - userId: { - serializedName: "properties.userId", - readOnly: true, - type: { - name: "String" - } - }, - sourceId: { - serializedName: "properties.sourceId", - type: { - name: "String" - } - }, - storageUri: { - serializedName: "properties.storageUri", - nullable: true, - type: { - name: "String" - } - } - } - } -}; - -export const WorkbookResourceIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkbookResourceIdentity", - modelProperties: { - ...ManagedServiceIdentity.type.modelProperties - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ProxyResource: coreClient.CompositeMapper = { +export const OperationInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyResource", + className: "OperationInfo", modelProperties: { - ...Resource.type.modelProperties - } - } + provider: { + serializedName: "provider", + type: { + name: "String", + }, + }, + resource: { + serializedName: "resource", + type: { + name: "String", + }, + }, + operation: { + serializedName: "operation", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + }, + }, }; export const ApplicationInsightsComponent: coreClient.CompositeMapper = { @@ -2931,141 +2783,141 @@ export const ApplicationInsightsComponent: coreClient.CompositeMapper = { serializedName: "kind", required: true, type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, applicationId: { serializedName: "properties.ApplicationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, appId: { serializedName: "properties.AppId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, namePropertiesName: { serializedName: "properties.Name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, applicationType: { defaultValue: "web", serializedName: "properties.Application_Type", type: { - name: "String" - } + name: "String", + }, }, flowType: { defaultValue: "Bluefield", serializedName: "properties.Flow_Type", type: { - name: "String" - } + name: "String", + }, }, requestSource: { defaultValue: "rest", serializedName: "properties.Request_Source", type: { - name: "String" - } + name: "String", + }, }, instrumentationKey: { serializedName: "properties.InstrumentationKey", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationDate: { serializedName: "properties.CreationDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, tenantId: { serializedName: "properties.TenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hockeyAppId: { serializedName: "properties.HockeyAppId", type: { - name: "String" - } + name: "String", + }, }, hockeyAppToken: { serializedName: "properties.HockeyAppToken", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, samplingPercentage: { serializedName: "properties.SamplingPercentage", type: { - name: "Number" - } + name: "Number", + }, }, connectionString: { serializedName: "properties.ConnectionString", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, retentionInDays: { serializedName: "properties.RetentionInDays", type: { - name: "Number" - } + name: "Number", + }, }, disableIpMasking: { serializedName: "properties.DisableIpMasking", type: { - name: "Boolean" - } + name: "Boolean", + }, }, immediatePurgeDataOn30Days: { serializedName: "properties.ImmediatePurgeDataOn30Days", type: { - name: "Boolean" - } + name: "Boolean", + }, }, workspaceResourceId: { serializedName: "properties.WorkspaceResourceId", type: { - name: "String" - } + name: "String", + }, }, laMigrationDate: { serializedName: "properties.LaMigrationDate", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, privateLinkScopedResources: { serializedName: "properties.PrivateLinkScopedResources", @@ -3075,46 +2927,280 @@ export const ApplicationInsightsComponent: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkScopedResource" - } - } - } + className: "PrivateLinkScopedResource", + }, + }, + }, }, publicNetworkAccessForIngestion: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccessForIngestion", type: { - name: "String" - } + name: "String", + }, }, publicNetworkAccessForQuery: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccessForQuery", type: { - name: "String" - } + name: "String", + }, }, ingestionMode: { defaultValue: "LogAnalytics", serializedName: "properties.IngestionMode", type: { - name: "String" - } + name: "String", + }, }, disableLocalAuth: { serializedName: "properties.DisableLocalAuth", type: { - name: "Boolean" - } + name: "Boolean", + }, }, forceCustomerStorageForProfiler: { serializedName: "properties.ForceCustomerStorageForProfiler", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, +}; + +export const WebTest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebTest", + modelProperties: { + ...WebtestsResource.type.modelProperties, + kind: { + serializedName: "kind", + type: { + name: "Enum", + allowedValues: ["ping", "multistep", "standard"], + }, + }, + syntheticMonitorId: { + serializedName: "properties.SyntheticMonitorId", + type: { + name: "String", + }, + }, + webTestName: { + serializedName: "properties.Name", + type: { + name: "String", + }, + }, + description: { + serializedName: "properties.Description", + type: { + name: "String", + }, + }, + enabled: { + serializedName: "properties.Enabled", + type: { + name: "Boolean", + }, + }, + frequency: { + defaultValue: 300, + serializedName: "properties.Frequency", + type: { + name: "Number", + }, + }, + timeout: { + defaultValue: 30, + serializedName: "properties.Timeout", + type: { + name: "Number", + }, + }, + webTestKind: { + serializedName: "properties.Kind", + type: { + name: "Enum", + allowedValues: ["ping", "multistep", "standard"], + }, + }, + retryEnabled: { + serializedName: "properties.RetryEnabled", + type: { + name: "Boolean", + }, + }, + locations: { + serializedName: "properties.Locations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WebTestGeolocation", + }, + }, + }, + }, + configuration: { + serializedName: "properties.Configuration", + type: { + name: "Composite", + className: "WebTestPropertiesConfiguration", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + request: { + serializedName: "properties.Request", + type: { + name: "Composite", + className: "WebTestPropertiesRequest", + }, + }, + validationRules: { + serializedName: "properties.ValidationRules", + type: { + name: "Composite", + className: "WebTestPropertiesValidationRules", + }, + }, + }, + }, +}; + +export const WorkbookTemplate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkbookTemplate", + modelProperties: { + ...WorkbookTemplateResource.type.modelProperties, + priority: { + serializedName: "properties.priority", + type: { + name: "Number", + }, + }, + author: { + serializedName: "properties.author", + type: { + name: "String", + }, + }, + templateData: { + serializedName: "properties.templateData", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + galleries: { + serializedName: "properties.galleries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkbookTemplateGallery", + }, + }, + }, + }, + localized: { + serializedName: "properties.localized", + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkbookTemplateLocalizedGallery", + }, + }, + }, + }, + }, + }, + }, + }, +}; + +export const WorkbookResourceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkbookResourceIdentity", + modelProperties: { + ...ManagedServiceIdentity.type.modelProperties, + }, + }, +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties, + }, + }, +}; + +export const TrackedResourceAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResourceAutoGenerated", + modelProperties: { + ...ResourceAutoGenerated.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String", + }, + }, + }, + }, }; export const WorkbookResource: coreClient.CompositeMapper = { @@ -3127,23 +3213,23 @@ export const WorkbookResource: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "WorkbookResourceIdentity" - } + className: "WorkbookResourceIdentity", + }, }, kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ComponentLinkedStorageAccounts: coreClient.CompositeMapper = { @@ -3155,11 +3241,33 @@ export const ComponentLinkedStorageAccounts: coreClient.CompositeMapper = { linkedStorageAccount: { serializedName: "properties.linkedStorageAccount", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const DeletedWorkbookResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeletedWorkbookResource", + modelProperties: { + ...TrackedResourceAutoGenerated.type.modelProperties, + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + etag: { + serializedName: "etag", + type: { + name: "String", + }, + }, + }, + }, }; export const Workbook: coreClient.CompositeMapper = { @@ -3172,40 +3280,128 @@ export const Workbook: coreClient.CompositeMapper = { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String", + }, + }, + serializedData: { + serializedName: "properties.serializedData", + nullable: true, + type: { + name: "String", + }, + }, + version: { + serializedName: "properties.version", + type: { + name: "String", + }, + }, + timeModified: { + serializedName: "properties.timeModified", + readOnly: true, + type: { + name: "DateTime", + }, + }, + category: { + serializedName: "properties.category", + type: { + name: "String", + }, + }, + tagsPropertiesTags: { + serializedName: "properties.tags", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + userId: { + serializedName: "properties.userId", + readOnly: true, + type: { + name: "String", + }, + }, + sourceId: { + serializedName: "properties.sourceId", + type: { + name: "String", + }, + }, + storageUri: { + serializedName: "properties.storageUri", + nullable: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "properties.description", + nullable: true, + type: { + name: "String", + }, + }, + revision: { + serializedName: "properties.revision", + readOnly: true, + nullable: true, + type: { + name: "String", + }, }, + }, + }, +}; + +export const DeletedWorkbook: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeletedWorkbook", + modelProperties: { + ...DeletedWorkbookResource.type.modelProperties, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, serializedData: { serializedName: "properties.serializedData", nullable: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "properties.version", type: { - name: "String" - } + name: "String", + }, }, timeModified: { serializedName: "properties.timeModified", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, category: { serializedName: "properties.category", type: { - name: "String" - } + name: "String", + }, }, tagsPropertiesTags: { serializedName: "properties.tags", @@ -3213,46 +3409,46 @@ export const Workbook: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, userId: { serializedName: "properties.userId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sourceId: { serializedName: "properties.sourceId", type: { - name: "String" - } + name: "String", + }, }, storageUri: { serializedName: "properties.storageUri", nullable: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", nullable: true, type: { - name: "String" - } + name: "String", + }, }, revision: { serializedName: "properties.revision", readOnly: true, nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts b/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts index 5f050754320e..dc52c3bdb836 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts @@ -9,9 +9,12 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { + ApplicationInsightsComponent as ApplicationInsightsComponentMapper, + TagsResource as TagsResourceMapper, + ComponentPurgeBody as ComponentPurgeBodyMapper, Annotation as AnnotationMapper, APIKeyRequest as APIKeyRequestMapper, ApplicationInsightsComponentExportRequest as ApplicationInsightsComponentExportRequestMapper, @@ -20,17 +23,13 @@ import { WorkItemCreateConfiguration as WorkItemCreateConfigurationMapper, ApplicationInsightsComponentFavorite as ApplicationInsightsComponentFavoriteMapper, WebTest as WebTestMapper, - TagsResource as TagsResourceMapper, ApplicationInsightsComponentAnalyticsItem as ApplicationInsightsComponentAnalyticsItemMapper, WorkbookTemplate as WorkbookTemplateMapper, WorkbookTemplateUpdateParameters as WorkbookTemplateUpdateParametersMapper, - MyWorkbook as MyWorkbookMapper, Workbook as WorkbookMapper, WorkbookUpdateParameters as WorkbookUpdateParametersMapper, - ApplicationInsightsComponent as ApplicationInsightsComponentMapper, - ComponentPurgeBody as ComponentPurgeBodyMapper, ComponentLinkedStorageAccounts as ComponentLinkedStorageAccountsMapper, - ComponentLinkedStorageAccountsPatch as ComponentLinkedStorageAccountsPatchMapper + ComponentLinkedStorageAccountsPatch as ComponentLinkedStorageAccountsPatchMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -40,9 +39,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -51,51 +50,51 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - constraints: { - MaxLength: 90, - MinLength: 1 + name: "String", }, - serializedName: "resourceGroupName", - required: true, - type: { - name: "String" - } - } + }, + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2015-05-01", + defaultValue: "2020-02-02", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String", + }, + }, }; export const resourceName: OperationURLParameter = { @@ -104,9 +103,71 @@ export const resourceName: OperationURLParameter = { serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String", + }, + }, +}; + +export const insightProperties: OperationParameter = { + parameterPath: "insightProperties", + mapper: ApplicationInsightsComponentMapper, +}; + +export const componentTags: OperationParameter = { + parameterPath: "componentTags", + mapper: TagsResourceMapper, +}; + +export const body: OperationParameter = { + parameterPath: "body", + mapper: ComponentPurgeBodyMapper, +}; + +export const purgeId: OperationURLParameter = { + parameterPath: "purgeId", + mapper: { + serializedName: "purgeId", + required: true, + type: { + name: "String", + }, + }, +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, +}; + +export const apiVersion1: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2015-05-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, }; export const start: OperationQueryParameter = { @@ -115,9 +176,9 @@ export const start: OperationQueryParameter = { serializedName: "start", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const end: OperationQueryParameter = { @@ -126,26 +187,14 @@ export const end: OperationQueryParameter = { serializedName: "end", required: true, type: { - name: "String" - } - } -}; - -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } + name: "String", + }, + }, }; export const annotationProperties: OperationParameter = { parameterPath: "annotationProperties", - mapper: AnnotationMapper + mapper: AnnotationMapper, }; export const annotationId: OperationURLParameter = { @@ -154,14 +203,14 @@ export const annotationId: OperationURLParameter = { serializedName: "annotationId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const aPIKeyProperties: OperationParameter = { parameterPath: "aPIKeyProperties", - mapper: APIKeyRequestMapper + mapper: APIKeyRequestMapper, }; export const keyId: OperationURLParameter = { @@ -170,14 +219,14 @@ export const keyId: OperationURLParameter = { serializedName: "keyId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const exportProperties: OperationParameter = { parameterPath: "exportProperties", - mapper: ApplicationInsightsComponentExportRequestMapper + mapper: ApplicationInsightsComponentExportRequestMapper, }; export const exportId: OperationURLParameter = { @@ -186,14 +235,14 @@ export const exportId: OperationURLParameter = { serializedName: "exportId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const billingFeaturesProperties: OperationParameter = { parameterPath: "billingFeaturesProperties", - mapper: ApplicationInsightsComponentBillingFeaturesMapper + mapper: ApplicationInsightsComponentBillingFeaturesMapper, }; export const configurationId: OperationURLParameter = { @@ -202,19 +251,19 @@ export const configurationId: OperationURLParameter = { serializedName: "ConfigurationId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const proactiveDetectionProperties: OperationParameter = { parameterPath: "proactiveDetectionProperties", - mapper: ApplicationInsightsComponentProactiveDetectionConfigurationMapper + mapper: ApplicationInsightsComponentProactiveDetectionConfigurationMapper, }; export const workItemConfigurationProperties: OperationParameter = { parameterPath: "workItemConfigurationProperties", - mapper: WorkItemCreateConfigurationMapper + mapper: WorkItemCreateConfigurationMapper, }; export const workItemConfigId: OperationURLParameter = { @@ -223,9 +272,9 @@ export const workItemConfigId: OperationURLParameter = { serializedName: "workItemConfigId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const favoriteType: OperationQueryParameter = { @@ -234,9 +283,9 @@ export const favoriteType: OperationQueryParameter = { serializedName: "favoriteType", type: { name: "Enum", - allowedValues: ["shared", "user"] - } - } + allowedValues: ["shared", "user"], + }, + }, }; export const sourceType: OperationQueryParameter = { @@ -244,9 +293,9 @@ export const sourceType: OperationQueryParameter = { mapper: { serializedName: "sourceType", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const canFetchContent: OperationQueryParameter = { @@ -254,9 +303,9 @@ export const canFetchContent: OperationQueryParameter = { mapper: { serializedName: "canFetchContent", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const tags: OperationQueryParameter = { @@ -267,12 +316,12 @@ export const tags: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const favoriteId: OperationURLParameter = { @@ -281,14 +330,26 @@ export const favoriteId: OperationURLParameter = { serializedName: "favoriteId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const favoriteProperties: OperationParameter = { parameterPath: "favoriteProperties", - mapper: ApplicationInsightsComponentFavoriteMapper + mapper: ApplicationInsightsComponentFavoriteMapper, +}; + +export const apiVersion2: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2022-06-15", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, }; export const webTestName: OperationURLParameter = { @@ -297,19 +358,19 @@ export const webTestName: OperationURLParameter = { serializedName: "webTestName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const webTestDefinition: OperationParameter = { parameterPath: "webTestDefinition", - mapper: WebTestMapper + mapper: WebTestMapper, }; export const webTestTags: OperationParameter = { parameterPath: "webTestTags", - mapper: TagsResourceMapper + mapper: TagsResourceMapper, }; export const componentName: OperationURLParameter = { @@ -318,21 +379,9 @@ export const componentName: OperationURLParameter = { serializedName: "componentName", required: true, type: { - name: "String" - } - } -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true }; export const scopePath: OperationURLParameter = { @@ -341,9 +390,9 @@ export const scopePath: OperationURLParameter = { serializedName: "scopePath", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const scope: OperationQueryParameter = { @@ -351,9 +400,9 @@ export const scope: OperationQueryParameter = { mapper: { serializedName: "scope", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const typeParam: OperationQueryParameter = { @@ -362,9 +411,9 @@ export const typeParam: OperationQueryParameter = { defaultValue: "none", serializedName: "type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const includeContent: OperationQueryParameter = { @@ -372,9 +421,9 @@ export const includeContent: OperationQueryParameter = { mapper: { serializedName: "includeContent", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const id: OperationQueryParameter = { @@ -382,9 +431,9 @@ export const id: OperationQueryParameter = { mapper: { serializedName: "id", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const name: OperationQueryParameter = { @@ -392,14 +441,14 @@ export const name: OperationQueryParameter = { mapper: { serializedName: "name", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const itemProperties: OperationParameter = { parameterPath: "itemProperties", - mapper: ApplicationInsightsComponentAnalyticsItemMapper + mapper: ApplicationInsightsComponentAnalyticsItemMapper, }; export const overrideItem: OperationQueryParameter = { @@ -407,31 +456,43 @@ export const overrideItem: OperationQueryParameter = { mapper: { serializedName: "overrideItem", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; -export const apiVersion1: OperationQueryParameter = { +export const apiVersion3: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-03-08", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const apiVersion4: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2020-11-20", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const workbookTemplateProperties: OperationParameter = { parameterPath: "workbookTemplateProperties", - mapper: WorkbookTemplateMapper + mapper: WorkbookTemplateMapper, }; export const workbookTemplateUpdateParameters: OperationParameter = { parameterPath: ["options", "workbookTemplateUpdateParameters"], - mapper: WorkbookTemplateUpdateParametersMapper + mapper: WorkbookTemplateUpdateParametersMapper, }; export const category: OperationQueryParameter = { @@ -440,58 +501,41 @@ export const category: OperationQueryParameter = { serializedName: "category", required: true, type: { - name: "String" - } - } -}; - -export const sourceId: OperationQueryParameter = { - parameterPath: ["options", "sourceId"], - mapper: { - serializedName: "sourceId", - type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const apiVersion2: OperationQueryParameter = { +export const apiVersion5: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-03-08", + defaultValue: "2023-06-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } -}; - -export const workbookProperties: OperationParameter = { - parameterPath: "workbookProperties", - mapper: MyWorkbookMapper + name: "String", + }, + }, }; -export const apiVersion3: OperationQueryParameter = { - parameterPath: "apiVersion", +export const sourceId: OperationQueryParameter = { + parameterPath: ["options", "sourceId"], mapper: { - defaultValue: "2022-04-01", - isConstant: true, - serializedName: "api-version", + serializedName: "sourceId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const workbookProperties1: OperationParameter = { +export const workbookProperties: OperationParameter = { parameterPath: "workbookProperties", - mapper: WorkbookMapper + mapper: WorkbookMapper, }; export const workbookUpdateParameters: OperationParameter = { parameterPath: ["options", "workbookUpdateParameters"], - mapper: WorkbookUpdateParametersMapper + mapper: WorkbookUpdateParametersMapper, }; export const revisionId: OperationURLParameter = { @@ -500,59 +544,45 @@ export const revisionId: OperationURLParameter = { serializedName: "revisionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const apiVersion4: OperationQueryParameter = { - parameterPath: "apiVersion", +export const resourceUri: OperationURLParameter = { + parameterPath: "resourceUri", mapper: { - defaultValue: "2020-02-02", - isConstant: true, - serializedName: "api-version", + serializedName: "resourceUri", + required: true, type: { - name: "String" - } - } -}; - -export const insightProperties: OperationParameter = { - parameterPath: "insightProperties", - mapper: ApplicationInsightsComponentMapper -}; - -export const componentTags: OperationParameter = { - parameterPath: "componentTags", - mapper: TagsResourceMapper -}; - -export const body: OperationParameter = { - parameterPath: "body", - mapper: ComponentPurgeBodyMapper + name: "String", + }, + }, + skipEncoding: true, }; -export const purgeId: OperationURLParameter = { - parameterPath: "purgeId", +export const apiVersion6: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "purgeId", - required: true, + defaultValue: "2021-10-14", + isConstant: true, + serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const apiVersion5: OperationQueryParameter = { +export const apiVersion7: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2020-03-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const storageType: OperationURLParameter = { @@ -561,41 +591,39 @@ export const storageType: OperationURLParameter = { serializedName: "storageType", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const linkedStorageAccountsProperties: OperationParameter = { parameterPath: "linkedStorageAccountsProperties", - mapper: ComponentLinkedStorageAccountsMapper + mapper: ComponentLinkedStorageAccountsMapper, }; export const linkedStorageAccountsProperties1: OperationParameter = { parameterPath: "linkedStorageAccountsProperties", - mapper: ComponentLinkedStorageAccountsPatchMapper + mapper: ComponentLinkedStorageAccountsPatchMapper, }; -export const resourceUri: OperationURLParameter = { - parameterPath: "resourceUri", +export const category1: OperationQueryParameter = { + parameterPath: ["options", "category"], mapper: { - serializedName: "resourceUri", - required: true, + serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true }; -export const apiVersion6: OperationQueryParameter = { +export const apiVersion8: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-10-14", + defaultValue: "2024-02-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts b/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts index f4d24cf4d9e2..8ac6e866858a 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts @@ -22,7 +22,7 @@ import { APIKeysDeleteOptionalParams, APIKeysDeleteResponse, APIKeysGetOptionalParams, - APIKeysGetResponse + APIKeysGetResponse, } from "../models"; /// @@ -47,7 +47,7 @@ export class APIKeysImpl implements APIKeys { public list( resourceGroupName: string, resourceName: string, - options?: APIKeysListOptionalParams + options?: APIKeysListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -65,9 +65,9 @@ export class APIKeysImpl implements APIKeys { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class APIKeysImpl implements APIKeys { resourceGroupName: string, resourceName: string, options?: APIKeysListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: APIKeysListResponse; result = await this._list(resourceGroupName, resourceName, options); @@ -85,12 +85,12 @@ export class APIKeysImpl implements APIKeys { private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: APIKeysListOptionalParams + options?: APIKeysListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -105,11 +105,11 @@ export class APIKeysImpl implements APIKeys { private _list( resourceGroupName: string, resourceName: string, - options?: APIKeysListOptionalParams + options?: APIKeysListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -125,11 +125,11 @@ export class APIKeysImpl implements APIKeys { resourceGroupName: string, resourceName: string, aPIKeyProperties: APIKeyRequest, - options?: APIKeysCreateOptionalParams + options?: APIKeysCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, aPIKeyProperties, options }, - createOperationSpec + createOperationSpec, ); } @@ -144,11 +144,11 @@ export class APIKeysImpl implements APIKeys { resourceGroupName: string, resourceName: string, keyId: string, - options?: APIKeysDeleteOptionalParams + options?: APIKeysDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, keyId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -163,11 +163,11 @@ export class APIKeysImpl implements APIKeys { resourceGroupName: string, resourceName: string, keyId: string, - options?: APIKeysGetOptionalParams + options?: APIKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, keyId, options }, - getOperationSpec + getOperationSpec, ); } } @@ -175,82 +175,78 @@ export class APIKeysImpl implements APIKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAPIKeyListResult - } + bodyMapper: Mappers.ApplicationInsightsComponentAPIKeyListResult, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAPIKey - } + bodyMapper: Mappers.ApplicationInsightsComponentAPIKey, + }, }, requestBody: Parameters.aPIKeyProperties, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAPIKey - } + bodyMapper: Mappers.ApplicationInsightsComponentAPIKey, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.keyId + Parameters.keyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAPIKey - } + bodyMapper: Mappers.ApplicationInsightsComponentAPIKey, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.keyId + Parameters.keyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts b/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts index e82a0517d7d6..e8bbdcc5a355 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts @@ -20,7 +20,7 @@ import { ApplicationInsightsComponentAnalyticsItem, AnalyticsItemsPutOptionalParams, AnalyticsItemsPutResponse, - AnalyticsItemsDeleteOptionalParams + AnalyticsItemsDeleteOptionalParams, } from "../models"; /** Class containing AnalyticsItems operations. */ @@ -47,11 +47,11 @@ export class AnalyticsItemsImpl implements AnalyticsItems { resourceGroupName: string, resourceName: string, scopePath: ItemScopePath, - options?: AnalyticsItemsListOptionalParams + options?: AnalyticsItemsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, scopePath, options }, - listOperationSpec + listOperationSpec, ); } @@ -67,11 +67,11 @@ export class AnalyticsItemsImpl implements AnalyticsItems { resourceGroupName: string, resourceName: string, scopePath: ItemScopePath, - options?: AnalyticsItemsGetOptionalParams + options?: AnalyticsItemsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, scopePath, options }, - getOperationSpec + getOperationSpec, ); } @@ -90,11 +90,11 @@ export class AnalyticsItemsImpl implements AnalyticsItems { resourceName: string, scopePath: ItemScopePath, itemProperties: ApplicationInsightsComponentAnalyticsItem, - options?: AnalyticsItemsPutOptionalParams + options?: AnalyticsItemsPutOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, scopePath, itemProperties, options }, - putOperationSpec + putOperationSpec, ); } @@ -110,11 +110,11 @@ export class AnalyticsItemsImpl implements AnalyticsItems { resourceGroupName: string, resourceName: string, scopePath: ItemScopePath, - options?: AnalyticsItemsDeleteOptionalParams + options?: AnalyticsItemsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, scopePath, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -122,8 +122,7 @@ export class AnalyticsItemsImpl implements AnalyticsItems { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}", httpMethod: "GET", responses: { 200: { @@ -133,83 +132,80 @@ const listOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "ApplicationInsightsComponentAnalyticsItem" - } - } - } - } - } + className: "ApplicationInsightsComponentAnalyticsItem", + }, + }, + }, + }, + }, }, queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion1, Parameters.scope, Parameters.typeParam, - Parameters.includeContent + Parameters.includeContent, ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.scopePath + Parameters.scopePath, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem - } + bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.id, Parameters.name], + queryParameters: [Parameters.apiVersion1, Parameters.id, Parameters.name], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.scopePath + Parameters.scopePath, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const putOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem - } + bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem, + }, }, requestBody: Parameters.itemProperties, - queryParameters: [Parameters.apiVersion, Parameters.overrideItem], + queryParameters: [Parameters.apiVersion1, Parameters.overrideItem], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.scopePath + Parameters.scopePath, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion, Parameters.id, Parameters.name], + queryParameters: [Parameters.apiVersion1, Parameters.id, Parameters.name], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.scopePath + Parameters.scopePath, ], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts index 46f766e81959..0ff1d3c373b6 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts @@ -20,7 +20,7 @@ import { AnnotationsCreateResponse, AnnotationsDeleteOptionalParams, AnnotationsGetOptionalParams, - AnnotationsGetResponse + AnnotationsGetResponse, } from "../models"; /// @@ -50,14 +50,14 @@ export class AnnotationsImpl implements Annotations { resourceName: string, start: string, end: string, - options?: AnnotationsListOptionalParams + options?: AnnotationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, resourceName, start, end, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class AnnotationsImpl implements Annotations { start, end, options, - settings + settings, ); - } + }, }; } @@ -88,7 +88,7 @@ export class AnnotationsImpl implements Annotations { start: string, end: string, options?: AnnotationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: AnnotationsListResponse; result = await this._list( @@ -96,7 +96,7 @@ export class AnnotationsImpl implements Annotations { resourceName, start, end, - options + options, ); yield result.value || []; } @@ -106,14 +106,14 @@ export class AnnotationsImpl implements Annotations { resourceName: string, start: string, end: string, - options?: AnnotationsListOptionalParams + options?: AnnotationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, start, end, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class AnnotationsImpl implements Annotations { resourceName: string, start: string, end: string, - options?: AnnotationsListOptionalParams + options?: AnnotationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, start, end, options }, - listOperationSpec + listOperationSpec, ); } @@ -153,11 +153,11 @@ export class AnnotationsImpl implements Annotations { resourceGroupName: string, resourceName: string, annotationProperties: Annotation, - options?: AnnotationsCreateOptionalParams + options?: AnnotationsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, annotationProperties, options }, - createOperationSpec + createOperationSpec, ); } @@ -173,11 +173,11 @@ export class AnnotationsImpl implements Annotations { resourceGroupName: string, resourceName: string, annotationId: string, - options?: AnnotationsDeleteOptionalParams + options?: AnnotationsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, annotationId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -193,11 +193,11 @@ export class AnnotationsImpl implements Annotations { resourceGroupName: string, resourceName: string, annotationId: string, - options?: AnnotationsGetOptionalParams + options?: AnnotationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, annotationId, options }, - getOperationSpec + getOperationSpec, ); } } @@ -205,96 +205,92 @@ export class AnnotationsImpl implements Annotations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AnnotationsListResult + bodyMapper: Mappers.AnnotationsListResult, }, default: { - bodyMapper: Mappers.AnnotationError - } + bodyMapper: Mappers.AnnotationError, + }, }, - queryParameters: [Parameters.apiVersion, Parameters.start, Parameters.end], + queryParameters: [Parameters.apiVersion1, Parameters.start, Parameters.end], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations", httpMethod: "PUT", responses: { 200: { bodyMapper: { type: { name: "Sequence", - element: { type: { name: "Composite", className: "Annotation" } } - } - } + element: { type: { name: "Composite", className: "Annotation" } }, + }, + }, }, default: { - bodyMapper: Mappers.AnnotationError - } + bodyMapper: Mappers.AnnotationError, + }, }, requestBody: Parameters.annotationProperties, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.annotationId + Parameters.annotationId, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}", httpMethod: "GET", responses: { 200: { bodyMapper: { type: { name: "Sequence", - element: { type: { name: "Composite", className: "Annotation" } } - } - } + element: { type: { name: "Composite", className: "Annotation" } }, + }, + }, }, default: { - bodyMapper: Mappers.AnnotationError - } + bodyMapper: Mappers.AnnotationError, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.annotationId + Parameters.annotationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts index cb112acafb6c..adc4e42023e6 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient"; import { ComponentAvailableFeaturesGetOptionalParams, - ComponentAvailableFeaturesGetResponse + ComponentAvailableFeaturesGetResponse, } from "../models"; /** Class containing ComponentAvailableFeatures operations. */ export class ComponentAvailableFeaturesImpl - implements ComponentAvailableFeatures { + implements ComponentAvailableFeatures +{ private readonly client: ApplicationInsightsManagementClient; /** @@ -38,11 +39,11 @@ export class ComponentAvailableFeaturesImpl get( resourceGroupName: string, resourceName: string, - options?: ComponentAvailableFeaturesGetOptionalParams + options?: ComponentAvailableFeaturesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -50,21 +51,20 @@ export class ComponentAvailableFeaturesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/getavailablebillingfeatures", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/getavailablebillingfeatures", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAvailableFeatures - } + bodyMapper: Mappers.ApplicationInsightsComponentAvailableFeatures, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts index a3acc0fa2123..5bbf9bda4673 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts @@ -16,12 +16,13 @@ import { ComponentCurrentBillingFeaturesGetResponse, ApplicationInsightsComponentBillingFeatures, ComponentCurrentBillingFeaturesUpdateOptionalParams, - ComponentCurrentBillingFeaturesUpdateResponse + ComponentCurrentBillingFeaturesUpdateResponse, } from "../models"; /** Class containing ComponentCurrentBillingFeatures operations. */ export class ComponentCurrentBillingFeaturesImpl - implements ComponentCurrentBillingFeatures { + implements ComponentCurrentBillingFeatures +{ private readonly client: ApplicationInsightsManagementClient; /** @@ -41,11 +42,11 @@ export class ComponentCurrentBillingFeaturesImpl get( resourceGroupName: string, resourceName: string, - options?: ComponentCurrentBillingFeaturesGetOptionalParams + options?: ComponentCurrentBillingFeaturesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -61,11 +62,11 @@ export class ComponentCurrentBillingFeaturesImpl resourceGroupName: string, resourceName: string, billingFeaturesProperties: ApplicationInsightsComponentBillingFeatures, - options?: ComponentCurrentBillingFeaturesUpdateOptionalParams + options?: ComponentCurrentBillingFeaturesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, billingFeaturesProperties, options }, - updateOperationSpec + updateOperationSpec, ); } } @@ -73,42 +74,40 @@ export class ComponentCurrentBillingFeaturesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures - } + bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures - } + bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures, + }, }, requestBody: Parameters.billingFeaturesProperties, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts index 4b383c42e0c0..b12162d38194 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient"; import { ComponentFeatureCapabilitiesGetOptionalParams, - ComponentFeatureCapabilitiesGetResponse + ComponentFeatureCapabilitiesGetResponse, } from "../models"; /** Class containing ComponentFeatureCapabilities operations. */ export class ComponentFeatureCapabilitiesImpl - implements ComponentFeatureCapabilities { + implements ComponentFeatureCapabilities +{ private readonly client: ApplicationInsightsManagementClient; /** @@ -38,11 +39,11 @@ export class ComponentFeatureCapabilitiesImpl get( resourceGroupName: string, resourceName: string, - options?: ComponentFeatureCapabilitiesGetOptionalParams + options?: ComponentFeatureCapabilitiesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -50,21 +51,20 @@ export class ComponentFeatureCapabilitiesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/featurecapabilities", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/featurecapabilities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentFeatureCapabilities - } + bodyMapper: Mappers.ApplicationInsightsComponentFeatureCapabilities, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts index d9b50fde2a13..74f0425f1949 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts @@ -21,12 +21,13 @@ import { ComponentLinkedStorageAccountsPatch, ComponentLinkedStorageAccountsUpdateOptionalParams, ComponentLinkedStorageAccountsUpdateResponse, - ComponentLinkedStorageAccountsDeleteOptionalParams + ComponentLinkedStorageAccountsDeleteOptionalParams, } from "../models"; /** Class containing ComponentLinkedStorageAccountsOperations operations. */ export class ComponentLinkedStorageAccountsOperationsImpl - implements ComponentLinkedStorageAccountsOperations { + implements ComponentLinkedStorageAccountsOperations +{ private readonly client: ApplicationInsightsManagementClient; /** @@ -49,11 +50,11 @@ export class ComponentLinkedStorageAccountsOperationsImpl resourceGroupName: string, resourceName: string, storageType: StorageType, - options?: ComponentLinkedStorageAccountsGetOptionalParams + options?: ComponentLinkedStorageAccountsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, storageType, options }, - getOperationSpec + getOperationSpec, ); } @@ -72,7 +73,7 @@ export class ComponentLinkedStorageAccountsOperationsImpl resourceName: string, storageType: StorageType, linkedStorageAccountsProperties: ComponentLinkedStorageAccounts, - options?: ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams + options?: ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -80,9 +81,9 @@ export class ComponentLinkedStorageAccountsOperationsImpl resourceName, storageType, linkedStorageAccountsProperties, - options + options, }, - createAndUpdateOperationSpec + createAndUpdateOperationSpec, ); } @@ -101,7 +102,7 @@ export class ComponentLinkedStorageAccountsOperationsImpl resourceName: string, storageType: StorageType, linkedStorageAccountsProperties: ComponentLinkedStorageAccountsPatch, - options?: ComponentLinkedStorageAccountsUpdateOptionalParams + options?: ComponentLinkedStorageAccountsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -109,9 +110,9 @@ export class ComponentLinkedStorageAccountsOperationsImpl resourceName, storageType, linkedStorageAccountsProperties, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -127,11 +128,11 @@ export class ComponentLinkedStorageAccountsOperationsImpl resourceGroupName: string, resourceName: string, storageType: StorageType, - options?: ComponentLinkedStorageAccountsDeleteOptionalParams + options?: ComponentLinkedStorageAccountsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, storageType, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -139,97 +140,93 @@ export class ComponentLinkedStorageAccountsOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ComponentLinkedStorageAccounts + bodyMapper: Mappers.ComponentLinkedStorageAccounts, }, default: { - bodyMapper: Mappers.ErrorResponseLinkedStorage - } + bodyMapper: Mappers.ErrorResponseLinkedStorage, + }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.storageType + Parameters.storageType, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createAndUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ComponentLinkedStorageAccounts + bodyMapper: Mappers.ComponentLinkedStorageAccounts, }, default: { - bodyMapper: Mappers.ErrorResponseLinkedStorage - } + bodyMapper: Mappers.ErrorResponseLinkedStorage, + }, }, requestBody: Parameters.linkedStorageAccountsProperties, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.storageType + Parameters.storageType, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ComponentLinkedStorageAccounts + bodyMapper: Mappers.ComponentLinkedStorageAccounts, }, default: { - bodyMapper: Mappers.ErrorResponseLinkedStorage - } + bodyMapper: Mappers.ErrorResponseLinkedStorage, + }, }, requestBody: Parameters.linkedStorageAccountsProperties1, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.storageType + Parameters.storageType, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponseLinkedStorage - } + bodyMapper: Mappers.ErrorResponseLinkedStorage, + }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.storageType + Parameters.storageType, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts index 4acb374ee67f..91867222762f 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient"; import { ComponentQuotaStatusGetOptionalParams, - ComponentQuotaStatusGetResponse + ComponentQuotaStatusGetResponse, } from "../models"; /** Class containing ComponentQuotaStatus operations. */ @@ -37,11 +37,11 @@ export class ComponentQuotaStatusImpl implements ComponentQuotaStatus { get( resourceGroupName: string, resourceName: string, - options?: ComponentQuotaStatusGetOptionalParams + options?: ComponentQuotaStatusGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -49,21 +49,20 @@ export class ComponentQuotaStatusImpl implements ComponentQuotaStatus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/quotastatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/quotastatus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentQuotaStatus - } + bodyMapper: Mappers.ApplicationInsightsComponentQuotaStatus, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/components.ts b/sdk/applicationinsights/arm-appinsights/src/operations/components.ts index 8108a41f1ca1..5a75d0bd94db 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/components.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/components.ts @@ -35,7 +35,7 @@ import { ComponentsGetPurgeStatusOptionalParams, ComponentsGetPurgeStatusResponse, ComponentsListNextResponse, - ComponentsListByResourceGroupNextResponse + ComponentsListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +56,7 @@ export class ComponentsImpl implements Components { * @param options The options parameters. */ public list( - options?: ComponentsListOptionalParams + options?: ComponentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -71,13 +71,13 @@ export class ComponentsImpl implements Components { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ComponentsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ComponentsListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class ComponentsImpl implements Components { } private async *listPagingAll( - options?: ComponentsListOptionalParams + options?: ComponentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -112,7 +112,7 @@ export class ComponentsImpl implements Components { */ public listByResourceGroup( resourceGroupName: string, - options?: ComponentsListByResourceGroupOptionalParams + options?: ComponentsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +129,16 @@ export class ComponentsImpl implements Components { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ComponentsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ComponentsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +153,7 @@ export class ComponentsImpl implements Components { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +164,11 @@ export class ComponentsImpl implements Components { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ComponentsListByResourceGroupOptionalParams + options?: ComponentsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,7 +179,7 @@ export class ComponentsImpl implements Components { * @param options The options parameters. */ private _list( - options?: ComponentsListOptionalParams + options?: ComponentsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -191,11 +191,11 @@ export class ComponentsImpl implements Components { */ private _listByResourceGroup( resourceGroupName: string, - options?: ComponentsListByResourceGroupOptionalParams + options?: ComponentsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -208,11 +208,11 @@ export class ComponentsImpl implements Components { delete( resourceGroupName: string, resourceName: string, - options?: ComponentsDeleteOptionalParams + options?: ComponentsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -225,11 +225,11 @@ export class ComponentsImpl implements Components { get( resourceGroupName: string, resourceName: string, - options?: ComponentsGetOptionalParams + options?: ComponentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -246,11 +246,11 @@ export class ComponentsImpl implements Components { resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, - options?: ComponentsCreateOrUpdateOptionalParams + options?: ComponentsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, insightProperties, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -265,11 +265,11 @@ export class ComponentsImpl implements Components { resourceGroupName: string, resourceName: string, componentTags: TagsResource, - options?: ComponentsUpdateTagsOptionalParams + options?: ComponentsUpdateTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, componentTags, options }, - updateTagsOperationSpec + updateTagsOperationSpec, ); } @@ -280,6 +280,10 @@ export class ComponentsImpl implements Components { * should batch the execution of purge requests by sending a single command whose predicate includes * all user identities that require purging. Use the in operator to specify multiple identities. You * should run the query prior to using for a purge request to verify that the results are expected. + * Note: this operation is intended for Classic resources, for workspace-based Application Insights + * resource please run purge operation (directly on the + * workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to + * specific resource id. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param body Describes the body of a request to purge data in a single table of an Application @@ -290,11 +294,11 @@ export class ComponentsImpl implements Components { resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, - options?: ComponentsPurgeOptionalParams + options?: ComponentsPurgeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, body, options }, - purgeOperationSpec + purgeOperationSpec, ); } @@ -310,11 +314,11 @@ export class ComponentsImpl implements Components { resourceGroupName: string, resourceName: string, purgeId: string, - options?: ComponentsGetPurgeStatusOptionalParams + options?: ComponentsGetPurgeStatusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, purgeId, options }, - getPurgeStatusOperationSpec + getPurgeStatusOperationSpec, ); } @@ -325,11 +329,11 @@ export class ComponentsImpl implements Components { */ private _listNext( nextLink: string, - options?: ComponentsListNextOptionalParams + options?: ComponentsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -342,11 +346,11 @@ export class ComponentsImpl implements Components { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ComponentsListByResourceGroupNextOptionalParams + options?: ComponentsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -354,219 +358,209 @@ export class ComponentsImpl implements Components { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/components", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/components", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentListResult + bodyMapper: Mappers.ApplicationInsightsComponentListResult, }, default: { - bodyMapper: Mappers.ErrorResponseComponents - } + bodyMapper: Mappers.ErrorResponseComponents, + }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentListResult + bodyMapper: Mappers.ApplicationInsightsComponentListResult, }, default: { - bodyMapper: Mappers.ErrorResponseComponents - } + bodyMapper: Mappers.ErrorResponseComponents, + }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.subscriptionId ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponseComponents - } + bodyMapper: Mappers.ErrorResponseComponents, + }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponent + bodyMapper: Mappers.ApplicationInsightsComponent, }, default: { - bodyMapper: Mappers.ErrorResponseComponents - } + bodyMapper: Mappers.ErrorResponseComponents, + }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponent + bodyMapper: Mappers.ApplicationInsightsComponent, }, default: { - bodyMapper: Mappers.ErrorResponseComponents - } + bodyMapper: Mappers.ErrorResponseComponents, + }, }, requestBody: Parameters.insightProperties, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponent + bodyMapper: Mappers.ApplicationInsightsComponent, }, default: { - bodyMapper: Mappers.ErrorResponseComponents - } + bodyMapper: Mappers.ErrorResponseComponents, + }, }, requestBody: Parameters.componentTags, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const purgeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge", httpMethod: "POST", responses: { 202: { - bodyMapper: Mappers.ComponentPurgeResponse + bodyMapper: Mappers.ComponentPurgeResponse, }, default: { - bodyMapper: Mappers.ErrorResponseComponents - } + bodyMapper: Mappers.ErrorResponseComponents, + }, }, requestBody: Parameters.body, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getPurgeStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ComponentPurgeStatusResponse + bodyMapper: Mappers.ComponentPurgeStatusResponse, }, default: { - bodyMapper: Mappers.ErrorResponseComponents - } + bodyMapper: Mappers.ErrorResponseComponents, + }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.purgeId + Parameters.purgeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentListResult + bodyMapper: Mappers.ApplicationInsightsComponentListResult, }, default: { - bodyMapper: Mappers.ErrorResponseComponents - } + bodyMapper: Mappers.ErrorResponseComponents, + }, }, - queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentListResult + bodyMapper: Mappers.ApplicationInsightsComponentListResult, }, default: { - bodyMapper: Mappers.ErrorResponseComponents - } + bodyMapper: Mappers.ErrorResponseComponents, + }, }, - queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.resourceGroupName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/deletedWorkbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operations/deletedWorkbooks.ts new file mode 100644 index 000000000000..3c3650c23dd8 --- /dev/null +++ b/sdk/applicationinsights/arm-appinsights/src/operations/deletedWorkbooks.ts @@ -0,0 +1,160 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DeletedWorkbooks } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient"; +import { + DeletedWorkbook, + DeletedWorkbooksListBySubscriptionNextOptionalParams, + DeletedWorkbooksListBySubscriptionOptionalParams, + DeletedWorkbooksListBySubscriptionResponse, + DeletedWorkbooksListBySubscriptionNextResponse, +} from "../models"; + +/// +/** Class containing DeletedWorkbooks operations. */ +export class DeletedWorkbooksImpl implements DeletedWorkbooks { + private readonly client: ApplicationInsightsManagementClient; + + /** + * Initialize a new instance of the class DeletedWorkbooks class. + * @param client Reference to the service client + */ + constructor(client: ApplicationInsightsManagementClient) { + this.client = client; + } + + /** + * Get all recently deleted Workbooks in a specified subscription. + * @param options The options parameters. + */ + public listBySubscription( + options?: DeletedWorkbooksListBySubscriptionOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + }, + }; + } + + private async *listBySubscriptionPagingPage( + options?: DeletedWorkbooksListBySubscriptionOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: DeletedWorkbooksListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: DeletedWorkbooksListBySubscriptionOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Get all recently deleted Workbooks in a specified subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: DeletedWorkbooksListBySubscriptionOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec, + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: DeletedWorkbooksListBySubscriptionNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/deletedWorkbooks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DeletedWorkbooksListResult, + }, + default: { + bodyMapper: Mappers.DeletedWorkbookError, + }, + }, + queryParameters: [ + Parameters.tags, + Parameters.category1, + Parameters.apiVersion8, + ], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DeletedWorkbooksListResult, + }, + default: { + bodyMapper: Mappers.DeletedWorkbookError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts index 95c6930c80e8..cc4f3320ae13 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts @@ -22,7 +22,7 @@ import { ExportConfigurationsGetOptionalParams, ExportConfigurationsGetResponse, ExportConfigurationsUpdateOptionalParams, - ExportConfigurationsUpdateResponse + ExportConfigurationsUpdateResponse, } from "../models"; /** Class containing ExportConfigurations operations. */ @@ -46,11 +46,11 @@ export class ExportConfigurationsImpl implements ExportConfigurations { list( resourceGroupName: string, resourceName: string, - options?: ExportConfigurationsListOptionalParams + options?: ExportConfigurationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -66,11 +66,11 @@ export class ExportConfigurationsImpl implements ExportConfigurations { resourceGroupName: string, resourceName: string, exportProperties: ApplicationInsightsComponentExportRequest, - options?: ExportConfigurationsCreateOptionalParams + options?: ExportConfigurationsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, exportProperties, options }, - createOperationSpec + createOperationSpec, ); } @@ -86,11 +86,11 @@ export class ExportConfigurationsImpl implements ExportConfigurations { resourceGroupName: string, resourceName: string, exportId: string, - options?: ExportConfigurationsDeleteOptionalParams + options?: ExportConfigurationsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, exportId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -106,11 +106,11 @@ export class ExportConfigurationsImpl implements ExportConfigurations { resourceGroupName: string, resourceName: string, exportId: string, - options?: ExportConfigurationsGetOptionalParams + options?: ExportConfigurationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, exportId, options }, - getOperationSpec + getOperationSpec, ); } @@ -129,11 +129,11 @@ export class ExportConfigurationsImpl implements ExportConfigurations { resourceName: string, exportId: string, exportProperties: ApplicationInsightsComponentExportRequest, - options?: ExportConfigurationsUpdateOptionalParams + options?: ExportConfigurationsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, exportId, exportProperties, options }, - updateOperationSpec + updateOperationSpec, ); } } @@ -141,8 +141,7 @@ export class ExportConfigurationsImpl implements ExportConfigurations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration", httpMethod: "GET", responses: { 200: { @@ -152,26 +151,25 @@ const listOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "ApplicationInsightsComponentExportConfiguration" - } - } - } - } - } + className: "ApplicationInsightsComponentExportConfiguration", + }, + }, + }, + }, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration", httpMethod: "POST", responses: { 200: { @@ -181,84 +179,81 @@ const createOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "ApplicationInsightsComponentExportConfiguration" - } - } - } - } - } + className: "ApplicationInsightsComponentExportConfiguration", + }, + }, + }, + }, + }, }, requestBody: Parameters.exportProperties, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration - } + bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.exportId + Parameters.exportId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration - } + bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.exportId + Parameters.exportId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration - } + bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration, + }, }, requestBody: Parameters.exportProperties, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.exportId + Parameters.exportId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts b/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts index 841d9e65a5c1..1833b0f8fe84 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts @@ -21,7 +21,7 @@ import { FavoritesAddResponse, FavoritesUpdateOptionalParams, FavoritesUpdateResponse, - FavoritesDeleteOptionalParams + FavoritesDeleteOptionalParams, } from "../models"; /** Class containing Favorites operations. */ @@ -45,11 +45,11 @@ export class FavoritesImpl implements Favorites { list( resourceGroupName: string, resourceName: string, - options?: FavoritesListOptionalParams + options?: FavoritesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -64,11 +64,11 @@ export class FavoritesImpl implements Favorites { resourceGroupName: string, resourceName: string, favoriteId: string, - options?: FavoritesGetOptionalParams + options?: FavoritesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, favoriteId, options }, - getOperationSpec + getOperationSpec, ); } @@ -86,7 +86,7 @@ export class FavoritesImpl implements Favorites { resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, - options?: FavoritesAddOptionalParams + options?: FavoritesAddOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -94,9 +94,9 @@ export class FavoritesImpl implements Favorites { resourceName, favoriteId, favoriteProperties, - options + options, }, - addOperationSpec + addOperationSpec, ); } @@ -113,7 +113,7 @@ export class FavoritesImpl implements Favorites { resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, - options?: FavoritesUpdateOptionalParams + options?: FavoritesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -121,9 +121,9 @@ export class FavoritesImpl implements Favorites { resourceName, favoriteId, favoriteProperties, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -138,11 +138,11 @@ export class FavoritesImpl implements Favorites { resourceGroupName: string, resourceName: string, favoriteId: string, - options?: FavoritesDeleteOptionalParams + options?: FavoritesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, favoriteId, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -150,8 +150,7 @@ export class FavoritesImpl implements Favorites { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites", httpMethod: "GET", responses: { 200: { @@ -161,105 +160,101 @@ const listOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "ApplicationInsightsComponentFavorite" - } - } - } - } - } + className: "ApplicationInsightsComponentFavorite", + }, + }, + }, + }, + }, }, queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion1, Parameters.favoriteType, Parameters.sourceType, Parameters.canFetchContent, - Parameters.tags + Parameters.tags, ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentFavorite - } + bodyMapper: Mappers.ApplicationInsightsComponentFavorite, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.favoriteId + Parameters.favoriteId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const addOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentFavorite - } + bodyMapper: Mappers.ApplicationInsightsComponentFavorite, + }, }, requestBody: Parameters.favoriteProperties, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.favoriteId + Parameters.favoriteId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsComponentFavorite - } + bodyMapper: Mappers.ApplicationInsightsComponentFavorite, + }, }, requestBody: Parameters.favoriteProperties, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.favoriteId + Parameters.favoriteId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.favoriteId + Parameters.favoriteId, ], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/index.ts b/sdk/applicationinsights/arm-appinsights/src/operations/index.ts index d273af781cd5..79d013803eb7 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/index.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/index.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./components"; export * from "./annotations"; export * from "./aPIKeys"; export * from "./exportConfigurations"; @@ -19,9 +20,9 @@ export * from "./favorites"; export * from "./webTestLocations"; export * from "./webTests"; export * from "./analyticsItems"; +export * from "./operations"; export * from "./workbookTemplates"; -export * from "./myWorkbooks"; export * from "./workbooks"; -export * from "./components"; -export * from "./componentLinkedStorageAccountsOperations"; export * from "./liveToken"; +export * from "./componentLinkedStorageAccountsOperations"; +export * from "./deletedWorkbooks"; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts b/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts index b5e5efb50c24..16fa89225c66 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts @@ -32,11 +32,11 @@ export class LiveTokenImpl implements LiveToken { */ get( resourceUri: string, - options?: LiveTokenGetOptionalParams + options?: LiveTokenGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceUri, options }, - getOperationSpec + getOperationSpec, ); } } @@ -48,14 +48,14 @@ const getOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LiveTokenResponse + bodyMapper: Mappers.LiveTokenResponse, }, default: { - bodyMapper: Mappers.ErrorResponseLinkedStorage - } + bodyMapper: Mappers.ErrorResponseLinkedStorage, + }, }, queryParameters: [Parameters.apiVersion6], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts deleted file mode 100644 index bd61179653d9..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { MyWorkbooks } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient"; -import { - MyWorkbook, - CategoryType, - MyWorkbooksListByResourceGroupNextOptionalParams, - MyWorkbooksListByResourceGroupOptionalParams, - MyWorkbooksListByResourceGroupResponse, - MyWorkbooksListBySubscriptionNextOptionalParams, - MyWorkbooksListBySubscriptionOptionalParams, - MyWorkbooksListBySubscriptionResponse, - MyWorkbooksGetOptionalParams, - MyWorkbooksGetResponse, - MyWorkbooksDeleteOptionalParams, - MyWorkbooksCreateOrUpdateOptionalParams, - MyWorkbooksCreateOrUpdateResponse, - MyWorkbooksUpdateOptionalParams, - MyWorkbooksUpdateResponse, - MyWorkbooksListByResourceGroupNextResponse, - MyWorkbooksListBySubscriptionNextResponse -} from "../models"; - -/// -/** Class containing MyWorkbooks operations. */ -export class MyWorkbooksImpl implements MyWorkbooks { - private readonly client: ApplicationInsightsManagementClient; - - /** - * Initialize a new instance of the class MyWorkbooks class. - * @param client Reference to the service client - */ - constructor(client: ApplicationInsightsManagementClient) { - this.client = client; - } - - /** - * Get all private workbooks defined within a specified resource group and category. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param category Category of workbook to return. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - category: CategoryType, - options?: MyWorkbooksListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll( - resourceGroupName, - category, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - category, - options, - settings - ); - } - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - category: CategoryType, - options?: MyWorkbooksListByResourceGroupOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: MyWorkbooksListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup( - resourceGroupName, - category, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - category, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - category: CategoryType, - options?: MyWorkbooksListByResourceGroupOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - category, - options - )) { - yield* page; - } - } - - /** - * Get all private workbooks defined within a specified subscription and category. - * @param category Category of workbook to return. - * @param options The options parameters. - */ - public listBySubscription( - category: CategoryType, - options?: MyWorkbooksListBySubscriptionOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(category, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(category, options, settings); - } - }; - } - - private async *listBySubscriptionPagingPage( - category: CategoryType, - options?: MyWorkbooksListBySubscriptionOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: MyWorkbooksListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(category, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext( - category, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - category: CategoryType, - options?: MyWorkbooksListBySubscriptionOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage( - category, - options - )) { - yield* page; - } - } - - /** - * Get all private workbooks defined within a specified resource group and category. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param category Category of workbook to return. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - category: CategoryType, - options?: MyWorkbooksListByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, category, options }, - listByResourceGroupOperationSpec - ); - } - - /** - * Get all private workbooks defined within a specified subscription and category. - * @param category Category of workbook to return. - * @param options The options parameters. - */ - private _listBySubscription( - category: CategoryType, - options?: MyWorkbooksListBySubscriptionOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { category, options }, - listBySubscriptionOperationSpec - ); - } - - /** - * Get a single private workbook by its resourceName. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Application Insights component resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - options?: MyWorkbooksGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - getOperationSpec - ); - } - - /** - * Delete a private workbook. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Application Insights component resource. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - resourceName: string, - options?: MyWorkbooksDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, options }, - deleteOperationSpec - ); - } - - /** - * Create a new private workbook. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Application Insights component resource. - * @param workbookProperties Properties that need to be specified to create a new private workbook. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - workbookProperties: MyWorkbook, - options?: MyWorkbooksCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, workbookProperties, options }, - createOrUpdateOperationSpec - ); - } - - /** - * Updates a private workbook that has already been added. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Application Insights component resource. - * @param workbookProperties Properties that need to be specified to create a new private workbook. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - resourceName: string, - workbookProperties: MyWorkbook, - options?: MyWorkbooksUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, resourceName, workbookProperties, options }, - updateOperationSpec - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param category Category of workbook to return. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - category: CategoryType, - nextLink: string, - options?: MyWorkbooksListByResourceGroupNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, category, nextLink, options }, - listByResourceGroupNextOperationSpec - ); - } - - /** - * ListBySubscriptionNext - * @param category Category of workbook to return. - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - category: CategoryType, - nextLink: string, - options?: MyWorkbooksListBySubscriptionNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { category, nextLink, options }, - listBySubscriptionNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MyWorkbooksListResult - }, - default: { - bodyMapper: Mappers.MyWorkbookError - } - }, - queryParameters: [ - Parameters.canFetchContent, - Parameters.tags, - Parameters.category, - Parameters.sourceId, - Parameters.apiVersion2 - ], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/myWorkbooks", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MyWorkbooksListResult - }, - default: { - bodyMapper: Mappers.MyWorkbookError - } - }, - queryParameters: [ - Parameters.canFetchContent, - Parameters.tags, - Parameters.category, - Parameters.apiVersion2 - ], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MyWorkbook - }, - default: { - bodyMapper: Mappers.MyWorkbookError - } - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.MyWorkbookError - } - }, - queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.MyWorkbook - }, - 201: { - bodyMapper: Mappers.MyWorkbook - }, - default: { - bodyMapper: Mappers.MyWorkbookError - } - }, - requestBody: Parameters.workbookProperties, - queryParameters: [Parameters.sourceId, Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}", - httpMethod: "PATCH", - responses: { - 201: { - bodyMapper: Mappers.MyWorkbook - }, - default: { - bodyMapper: Mappers.MyWorkbookError - } - }, - requestBody: Parameters.workbookProperties, - queryParameters: [Parameters.sourceId, Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MyWorkbooksListResult - }, - default: { - bodyMapper: Mappers.MyWorkbookError - } - }, - queryParameters: [ - Parameters.canFetchContent, - Parameters.tags, - Parameters.category, - Parameters.sourceId, - Parameters.apiVersion2 - ], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.MyWorkbooksListResult - }, - default: { - bodyMapper: Mappers.MyWorkbookError - } - }, - queryParameters: [ - Parameters.canFetchContent, - Parameters.tags, - Parameters.category, - Parameters.apiVersion2 - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts new file mode 100644 index 000000000000..e344ecb1f91b --- /dev/null +++ b/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts @@ -0,0 +1,149 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Operations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient"; +import { + Operation, + OperationsListNextOptionalParams, + OperationsListOptionalParams, + OperationsListResponse, + OperationsListNextResponse, +} from "../models"; + +/// +/** Class containing Operations operations. */ +export class OperationsImpl implements Operations { + private readonly client: ApplicationInsightsManagementClient; + + /** + * Initialize a new instance of the class Operations class. + * @param client Reference to the service client + */ + constructor(client: ApplicationInsightsManagementClient) { + this.client = client; + } + + /** + * Lists all of the available insights REST API operations. + * @param options The options parameters. + */ + public list( + options?: OperationsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); + }, + }; + } + + private async *listPagingPage( + options?: OperationsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: OperationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: OperationsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * Lists all of the available insights REST API operations. + * @param options The options parameters. + */ + private _list( + options?: OperationsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: OperationsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Insights/operations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [Parameters.$host, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts index 513948aeb59d..2a15f1fe1c26 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts @@ -18,12 +18,13 @@ import { ProactiveDetectionConfigurationsGetResponse, ApplicationInsightsComponentProactiveDetectionConfiguration, ProactiveDetectionConfigurationsUpdateOptionalParams, - ProactiveDetectionConfigurationsUpdateResponse + ProactiveDetectionConfigurationsUpdateResponse, } from "../models"; /** Class containing ProactiveDetectionConfigurations operations. */ export class ProactiveDetectionConfigurationsImpl - implements ProactiveDetectionConfigurations { + implements ProactiveDetectionConfigurations +{ private readonly client: ApplicationInsightsManagementClient; /** @@ -43,11 +44,11 @@ export class ProactiveDetectionConfigurationsImpl list( resourceGroupName: string, resourceName: string, - options?: ProactiveDetectionConfigurationsListOptionalParams + options?: ProactiveDetectionConfigurationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -63,11 +64,11 @@ export class ProactiveDetectionConfigurationsImpl resourceGroupName: string, resourceName: string, configurationId: string, - options?: ProactiveDetectionConfigurationsGetOptionalParams + options?: ProactiveDetectionConfigurationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, configurationId, options }, - getOperationSpec + getOperationSpec, ); } @@ -86,7 +87,7 @@ export class ProactiveDetectionConfigurationsImpl resourceName: string, configurationId: string, proactiveDetectionProperties: ApplicationInsightsComponentProactiveDetectionConfiguration, - options?: ProactiveDetectionConfigurationsUpdateOptionalParams + options?: ProactiveDetectionConfigurationsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -94,9 +95,9 @@ export class ProactiveDetectionConfigurationsImpl resourceName, configurationId, proactiveDetectionProperties, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } } @@ -104,8 +105,7 @@ export class ProactiveDetectionConfigurationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs", httpMethod: "GET", responses: { 200: { @@ -116,64 +116,62 @@ const listOperationSpec: coreClient.OperationSpec = { type: { name: "Composite", className: - "ApplicationInsightsComponentProactiveDetectionConfiguration" - } - } - } - } - } + "ApplicationInsightsComponentProactiveDetectionConfiguration", + }, + }, + }, + }, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}", httpMethod: "GET", responses: { 200: { bodyMapper: - Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration - } + Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.configurationId + Parameters.configurationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}", httpMethod: "PUT", responses: { 200: { bodyMapper: - Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration - } + Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration, + }, }, requestBody: Parameters.proactiveDetectionProperties, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.configurationId + Parameters.configurationId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts index 1ed6971b6108..cf5e8be2ff8e 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts @@ -15,7 +15,7 @@ import { ApplicationInsightsManagementClient } from "../applicationInsightsManag import { ApplicationInsightsComponentWebTestLocation, WebTestLocationsListOptionalParams, - WebTestLocationsListResponse + WebTestLocationsListResponse, } from "../models"; /// @@ -40,7 +40,7 @@ export class WebTestLocationsImpl implements WebTestLocations { public list( resourceGroupName: string, resourceName: string, - options?: WebTestLocationsListOptionalParams + options?: WebTestLocationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -58,9 +58,9 @@ export class WebTestLocationsImpl implements WebTestLocations { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -68,7 +68,7 @@ export class WebTestLocationsImpl implements WebTestLocations { resourceGroupName: string, resourceName: string, options?: WebTestLocationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: WebTestLocationsListResponse; result = await this._list(resourceGroupName, resourceName, options); @@ -78,12 +78,12 @@ export class WebTestLocationsImpl implements WebTestLocations { private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: WebTestLocationsListOptionalParams + options?: WebTestLocationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -98,11 +98,11 @@ export class WebTestLocationsImpl implements WebTestLocations { private _list( resourceGroupName: string, resourceName: string, - options?: WebTestLocationsListOptionalParams + options?: WebTestLocationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -110,21 +110,20 @@ export class WebTestLocationsImpl implements WebTestLocations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/syntheticmonitorlocations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/syntheticmonitorlocations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationInsightsWebTestLocationsListResult - } + bodyMapper: Mappers.ApplicationInsightsWebTestLocationsListResult, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts b/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts index cdc40d5a4e14..7b06da01db8e 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts @@ -34,7 +34,7 @@ import { WebTestsDeleteOptionalParams, WebTestsListByResourceGroupNextResponse, WebTestsListNextResponse, - WebTestsListByComponentNextResponse + WebTestsListByComponentNextResponse, } from "../models"; /// @@ -51,13 +51,13 @@ export class WebTestsImpl implements WebTests { } /** - * Get all Application Insights web tests defined within a specified resource group. + * Get all Application Insights web tests defined for the specified resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( resourceGroupName: string, - options?: WebTestsListByResourceGroupOptionalParams + options?: WebTestsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -74,16 +74,16 @@ export class WebTestsImpl implements WebTests { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: WebTestsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebTestsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class WebTestsImpl implements WebTests { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -109,22 +109,22 @@ export class WebTestsImpl implements WebTests { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: WebTestsListByResourceGroupOptionalParams + options?: WebTestsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } } /** - * Get all Application Insights web test alerts definitions within a subscription. + * Get all Application Insights web test definitions for the specified subscription. * @param options The options parameters. */ public list( - options?: WebTestsListOptionalParams + options?: WebTestsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -139,13 +139,13 @@ export class WebTestsImpl implements WebTests { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: WebTestsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebTestsListResponse; let continuationToken = settings?.continuationToken; @@ -166,7 +166,7 @@ export class WebTestsImpl implements WebTests { } private async *listPagingAll( - options?: WebTestsListOptionalParams + options?: WebTestsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -182,12 +182,12 @@ export class WebTestsImpl implements WebTests { public listByComponent( componentName: string, resourceGroupName: string, - options?: WebTestsListByComponentOptionalParams + options?: WebTestsListByComponentOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByComponentPagingAll( componentName, resourceGroupName, - options + options, ); return { next() { @@ -204,9 +204,9 @@ export class WebTestsImpl implements WebTests { componentName, resourceGroupName, options, - settings + settings, ); - } + }, }; } @@ -214,7 +214,7 @@ export class WebTestsImpl implements WebTests { componentName: string, resourceGroupName: string, options?: WebTestsListByComponentOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebTestsListByComponentResponse; let continuationToken = settings?.continuationToken; @@ -222,7 +222,7 @@ export class WebTestsImpl implements WebTests { result = await this._listByComponent( componentName, resourceGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -234,7 +234,7 @@ export class WebTestsImpl implements WebTests { componentName, resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -246,53 +246,53 @@ export class WebTestsImpl implements WebTests { private async *listByComponentPagingAll( componentName: string, resourceGroupName: string, - options?: WebTestsListByComponentOptionalParams + options?: WebTestsListByComponentOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByComponentPagingPage( componentName, resourceGroupName, - options + options, )) { yield* page; } } /** - * Get all Application Insights web tests defined within a specified resource group. + * Get all Application Insights web tests defined for the specified resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup( resourceGroupName: string, - options?: WebTestsListByResourceGroupOptionalParams + options?: WebTestsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } /** * Get a specific Application Insights web test definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webTestName The name of the Application Insights webtest resource. + * @param webTestName The name of the Application Insights WebTest resource. * @param options The options parameters. */ get( resourceGroupName: string, webTestName: string, - options?: WebTestsGetOptionalParams + options?: WebTestsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, webTestName, options }, - getOperationSpec + getOperationSpec, ); } /** * Creates or updates an Application Insights web test definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webTestName The name of the Application Insights webtest resource. + * @param webTestName The name of the Application Insights WebTest resource. * @param webTestDefinition Properties that need to be specified to create or update an Application * Insights web test definition. * @param options The options parameters. @@ -301,56 +301,56 @@ export class WebTestsImpl implements WebTests { resourceGroupName: string, webTestName: string, webTestDefinition: WebTest, - options?: WebTestsCreateOrUpdateOptionalParams + options?: WebTestsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, webTestName, webTestDefinition, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } /** - * Creates or updates an Application Insights web test definition. + * Updates the tags associated with an Application Insights web test. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webTestName The name of the Application Insights webtest resource. - * @param webTestTags Updated tag information to set into the web test instance. + * @param webTestName The name of the Application Insights WebTest resource. + * @param webTestTags Updated tag information to associate with the web test resource. * @param options The options parameters. */ updateTags( resourceGroupName: string, webTestName: string, webTestTags: TagsResource, - options?: WebTestsUpdateTagsOptionalParams + options?: WebTestsUpdateTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, webTestName, webTestTags, options }, - updateTagsOperationSpec + updateTagsOperationSpec, ); } /** * Deletes an Application Insights web test. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webTestName The name of the Application Insights webtest resource. + * @param webTestName The name of the Application Insights WebTest resource. * @param options The options parameters. */ delete( resourceGroupName: string, webTestName: string, - options?: WebTestsDeleteOptionalParams + options?: WebTestsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, webTestName, options }, - deleteOperationSpec + deleteOperationSpec, ); } /** - * Get all Application Insights web test alerts definitions within a subscription. + * Get all Application Insights web test definitions for the specified subscription. * @param options The options parameters. */ private _list( - options?: WebTestsListOptionalParams + options?: WebTestsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -364,11 +364,11 @@ export class WebTestsImpl implements WebTests { private _listByComponent( componentName: string, resourceGroupName: string, - options?: WebTestsListByComponentOptionalParams + options?: WebTestsListByComponentOptionalParams, ): Promise { return this.client.sendOperationRequest( { componentName, resourceGroupName, options }, - listByComponentOperationSpec + listByComponentOperationSpec, ); } @@ -381,11 +381,11 @@ export class WebTestsImpl implements WebTests { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: WebTestsListByResourceGroupNextOptionalParams + options?: WebTestsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -396,11 +396,11 @@ export class WebTestsImpl implements WebTests { */ private _listNext( nextLink: string, - options?: WebTestsListNextOptionalParams + options?: WebTestsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -415,11 +415,11 @@ export class WebTestsImpl implements WebTests { componentName: string, resourceGroupName: string, nextLink: string, - options?: WebTestsListByComponentNextOptionalParams + options?: WebTestsListByComponentNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { componentName, resourceGroupName, nextLink, options }, - listByComponentNextOperationSpec + listByComponentNextOperationSpec, ); } } @@ -427,181 +427,172 @@ export class WebTestsImpl implements WebTests { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebTestListResult - } + bodyMapper: Mappers.WebTestListResult, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.subscriptionId ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebTest - } + bodyMapper: Mappers.WebTest, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.webTestName + Parameters.resourceGroupName, + Parameters.webTestName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.WebTest - } + bodyMapper: Mappers.WebTest, + }, }, requestBody: Parameters.webTestDefinition, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.webTestName + Parameters.resourceGroupName, + Parameters.webTestName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.WebTest - } + bodyMapper: Mappers.WebTest, + }, }, requestBody: Parameters.webTestTags, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.webTestName + Parameters.resourceGroupName, + Parameters.webTestName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", httpMethod: "DELETE", responses: { 200: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.webTestName + Parameters.resourceGroupName, + Parameters.webTestName, ], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebTestListResult - } + bodyMapper: Mappers.WebTestListResult, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion2], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByComponentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{componentName}/webtests", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{componentName}/webtests", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebTestListResult - } + bodyMapper: Mappers.WebTestListResult, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.componentName + Parameters.resourceGroupName, + Parameters.componentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebTestListResult - } + bodyMapper: Mappers.WebTestListResult, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.resourceGroupName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebTestListResult - } + bodyMapper: Mappers.WebTestListResult, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByComponentNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebTestListResult - } + bodyMapper: Mappers.WebTestListResult, + }, }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, Parameters.componentName, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts index f4c87b96edda..872fcb5261d0 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts @@ -25,7 +25,7 @@ import { WorkItemConfigurationsGetItemOptionalParams, WorkItemConfigurationsGetItemResponse, WorkItemConfigurationsUpdateItemOptionalParams, - WorkItemConfigurationsUpdateItemResponse + WorkItemConfigurationsUpdateItemResponse, } from "../models"; /// @@ -50,7 +50,7 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { public list( resourceGroupName: string, resourceName: string, - options?: WorkItemConfigurationsListOptionalParams + options?: WorkItemConfigurationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, resourceName, options); return { @@ -68,9 +68,9 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +78,7 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { resourceGroupName: string, resourceName: string, options?: WorkItemConfigurationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: WorkItemConfigurationsListResponse; result = await this._list(resourceGroupName, resourceName, options); @@ -88,12 +88,12 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { private async *listPagingAll( resourceGroupName: string, resourceName: string, - options?: WorkItemConfigurationsListOptionalParams + options?: WorkItemConfigurationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -108,11 +108,11 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { private _list( resourceGroupName: string, resourceName: string, - options?: WorkItemConfigurationsListOptionalParams + options?: WorkItemConfigurationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -128,16 +128,16 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { resourceGroupName: string, resourceName: string, workItemConfigurationProperties: WorkItemCreateConfiguration, - options?: WorkItemConfigurationsCreateOptionalParams + options?: WorkItemConfigurationsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, workItemConfigurationProperties, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -150,11 +150,11 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { getDefault( resourceGroupName: string, resourceName: string, - options?: WorkItemConfigurationsGetDefaultOptionalParams + options?: WorkItemConfigurationsGetDefaultOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getDefaultOperationSpec + getDefaultOperationSpec, ); } @@ -170,11 +170,11 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { resourceGroupName: string, resourceName: string, workItemConfigId: string, - options?: WorkItemConfigurationsDeleteOptionalParams + options?: WorkItemConfigurationsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, workItemConfigId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -190,11 +190,11 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { resourceGroupName: string, resourceName: string, workItemConfigId: string, - options?: WorkItemConfigurationsGetItemOptionalParams + options?: WorkItemConfigurationsGetItemOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, workItemConfigId, options }, - getItemOperationSpec + getItemOperationSpec, ); } @@ -213,7 +213,7 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { resourceName: string, workItemConfigId: string, workItemConfigurationProperties: WorkItemCreateConfiguration, - options?: WorkItemConfigurationsUpdateItemOptionalParams + options?: WorkItemConfigurationsUpdateItemOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -221,9 +221,9 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { resourceName, workItemConfigId, workItemConfigurationProperties, - options + options, }, - updateItemOperationSpec + updateItemOperationSpec, ); } } @@ -231,121 +231,115 @@ export class WorkItemConfigurationsImpl implements WorkItemConfigurations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkItemConfigurationsListResult + bodyMapper: Mappers.WorkItemConfigurationsListResult, }, default: { - bodyMapper: Mappers.WorkItemConfigurationError - } + bodyMapper: Mappers.WorkItemConfigurationError, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.WorkItemConfiguration - } + bodyMapper: Mappers.WorkItemConfiguration, + }, }, requestBody: Parameters.workItemConfigurationProperties, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getDefaultOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/DefaultWorkItemConfig", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/DefaultWorkItemConfig", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkItemConfiguration - } + bodyMapper: Mappers.WorkItemConfiguration, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.workItemConfigId + Parameters.workItemConfigId, ], - serializer + serializer, }; const getItemOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkItemConfiguration - } + bodyMapper: Mappers.WorkItemConfiguration, + }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.workItemConfigId + Parameters.workItemConfigId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateItemOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.WorkItemConfiguration - } + bodyMapper: Mappers.WorkItemConfiguration, + }, }, requestBody: Parameters.workItemConfigurationProperties, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.workItemConfigId + Parameters.workItemConfigId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/workbookTemplates.ts b/sdk/applicationinsights/arm-appinsights/src/operations/workbookTemplates.ts index 1cde6cd8a09e..c6e0f2b934ee 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/workbookTemplates.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/workbookTemplates.ts @@ -22,7 +22,7 @@ import { WorkbookTemplatesCreateOrUpdateOptionalParams, WorkbookTemplatesCreateOrUpdateResponse, WorkbookTemplatesUpdateOptionalParams, - WorkbookTemplatesUpdateResponse + WorkbookTemplatesUpdateResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export class WorkbookTemplatesImpl implements WorkbookTemplates { */ public listByResourceGroup( resourceGroupName: string, - options?: WorkbookTemplatesListByResourceGroupOptionalParams + options?: WorkbookTemplatesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -62,16 +62,16 @@ export class WorkbookTemplatesImpl implements WorkbookTemplates { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: WorkbookTemplatesListByResourceGroupOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: WorkbookTemplatesListByResourceGroupResponse; result = await this._listByResourceGroup(resourceGroupName, options); @@ -80,11 +80,11 @@ export class WorkbookTemplatesImpl implements WorkbookTemplates { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: WorkbookTemplatesListByResourceGroupOptionalParams + options?: WorkbookTemplatesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -97,11 +97,11 @@ export class WorkbookTemplatesImpl implements WorkbookTemplates { */ private _listByResourceGroup( resourceGroupName: string, - options?: WorkbookTemplatesListByResourceGroupOptionalParams + options?: WorkbookTemplatesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -114,11 +114,11 @@ export class WorkbookTemplatesImpl implements WorkbookTemplates { get( resourceGroupName: string, resourceName: string, - options?: WorkbookTemplatesGetOptionalParams + options?: WorkbookTemplatesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -131,11 +131,11 @@ export class WorkbookTemplatesImpl implements WorkbookTemplates { delete( resourceGroupName: string, resourceName: string, - options?: WorkbookTemplatesDeleteOptionalParams + options?: WorkbookTemplatesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -150,11 +150,11 @@ export class WorkbookTemplatesImpl implements WorkbookTemplates { resourceGroupName: string, resourceName: string, workbookTemplateProperties: WorkbookTemplate, - options?: WorkbookTemplatesCreateOrUpdateOptionalParams + options?: WorkbookTemplatesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, workbookTemplateProperties, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -167,11 +167,11 @@ export class WorkbookTemplatesImpl implements WorkbookTemplates { update( resourceGroupName: string, resourceName: string, - options?: WorkbookTemplatesUpdateOptionalParams + options?: WorkbookTemplatesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - updateOperationSpec + updateOperationSpec, ); } } @@ -179,117 +179,112 @@ export class WorkbookTemplatesImpl implements WorkbookTemplates { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkbookTemplatesListResult + bodyMapper: Mappers.WorkbookTemplatesListResult, }, default: { - bodyMapper: Mappers.WorkbookTemplateError - } + bodyMapper: Mappers.WorkbookTemplateError, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.subscriptionId ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkbookTemplate + bodyMapper: Mappers.WorkbookTemplate, }, default: { - bodyMapper: Mappers.WorkbookTemplateError - } + bodyMapper: Mappers.WorkbookTemplateError, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.WorkbookTemplateError - } + bodyMapper: Mappers.WorkbookTemplateError, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.WorkbookTemplate + bodyMapper: Mappers.WorkbookTemplate, }, 201: { - bodyMapper: Mappers.WorkbookTemplate + bodyMapper: Mappers.WorkbookTemplate, }, default: { - bodyMapper: Mappers.WorkbookTemplateError - } + bodyMapper: Mappers.WorkbookTemplateError, + }, }, requestBody: Parameters.workbookTemplateProperties, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.WorkbookTemplate + bodyMapper: Mappers.WorkbookTemplate, }, default: { - bodyMapper: Mappers.WorkbookTemplateError - } + bodyMapper: Mappers.WorkbookTemplateError, + }, }, requestBody: Parameters.workbookTemplateUpdateParameters, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts index a5de76fcba90..a04717ca9ccb 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts @@ -15,8 +15,8 @@ import * as Parameters from "../models/parameters"; import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient"; import { Workbook, - CategoryType, WorkbooksListBySubscriptionNextOptionalParams, + CategoryType, WorkbooksListBySubscriptionOptionalParams, WorkbooksListBySubscriptionResponse, WorkbooksListByResourceGroupNextOptionalParams, @@ -36,7 +36,7 @@ import { WorkbooksRevisionGetResponse, WorkbooksListBySubscriptionNextResponse, WorkbooksListByResourceGroupNextResponse, - WorkbooksRevisionsListNextResponse + WorkbooksRevisionsListNextResponse, } from "../models"; /// @@ -59,7 +59,7 @@ export class WorkbooksImpl implements Workbooks { */ public listBySubscription( category: CategoryType, - options?: WorkbooksListBySubscriptionOptionalParams + options?: WorkbooksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(category, options); return { @@ -74,14 +74,14 @@ export class WorkbooksImpl implements Workbooks { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(category, options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( category: CategoryType, options?: WorkbooksListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkbooksListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -93,11 +93,7 @@ export class WorkbooksImpl implements Workbooks { yield page; } while (continuationToken) { - result = await this._listBySubscriptionNext( - category, - continuationToken, - options - ); + result = await this._listBySubscriptionNext(continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -107,11 +103,11 @@ export class WorkbooksImpl implements Workbooks { private async *listBySubscriptionPagingAll( category: CategoryType, - options?: WorkbooksListBySubscriptionOptionalParams + options?: WorkbooksListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage( category, - options + options, )) { yield* page; } @@ -126,12 +122,12 @@ export class WorkbooksImpl implements Workbooks { public listByResourceGroup( resourceGroupName: string, category: CategoryType, - options?: WorkbooksListByResourceGroupOptionalParams + options?: WorkbooksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll( resourceGroupName, category, - options + options, ); return { next() { @@ -148,9 +144,9 @@ export class WorkbooksImpl implements Workbooks { resourceGroupName, category, options, - settings + settings, ); - } + }, }; } @@ -158,7 +154,7 @@ export class WorkbooksImpl implements Workbooks { resourceGroupName: string, category: CategoryType, options?: WorkbooksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkbooksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -166,7 +162,7 @@ export class WorkbooksImpl implements Workbooks { result = await this._listByResourceGroup( resourceGroupName, category, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -176,9 +172,8 @@ export class WorkbooksImpl implements Workbooks { while (continuationToken) { result = await this._listByResourceGroupNext( resourceGroupName, - category, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -190,12 +185,12 @@ export class WorkbooksImpl implements Workbooks { private async *listByResourceGroupPagingAll( resourceGroupName: string, category: CategoryType, - options?: WorkbooksListByResourceGroupOptionalParams + options?: WorkbooksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, category, - options + options, )) { yield* page; } @@ -204,18 +199,18 @@ export class WorkbooksImpl implements Workbooks { /** * Get the revisions for the workbook defined by its resourceName. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param options The options parameters. */ public listRevisionsList( resourceGroupName: string, resourceName: string, - options?: WorkbooksRevisionsListOptionalParams + options?: WorkbooksRevisionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.revisionsListPagingAll( resourceGroupName, resourceName, - options + options, ); return { next() { @@ -232,9 +227,9 @@ export class WorkbooksImpl implements Workbooks { resourceGroupName, resourceName, options, - settings + settings, ); - } + }, }; } @@ -242,7 +237,7 @@ export class WorkbooksImpl implements Workbooks { resourceGroupName: string, resourceName: string, options?: WorkbooksRevisionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkbooksRevisionsListResponse; let continuationToken = settings?.continuationToken; @@ -250,7 +245,7 @@ export class WorkbooksImpl implements Workbooks { result = await this._revisionsList( resourceGroupName, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -262,7 +257,7 @@ export class WorkbooksImpl implements Workbooks { resourceGroupName, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -274,12 +269,12 @@ export class WorkbooksImpl implements Workbooks { private async *revisionsListPagingAll( resourceGroupName: string, resourceName: string, - options?: WorkbooksRevisionsListOptionalParams + options?: WorkbooksRevisionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.revisionsListPagingPage( resourceGroupName, resourceName, - options + options, )) { yield* page; } @@ -292,11 +287,11 @@ export class WorkbooksImpl implements Workbooks { */ private _listBySubscription( category: CategoryType, - options?: WorkbooksListBySubscriptionOptionalParams + options?: WorkbooksListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { category, options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -309,52 +304,52 @@ export class WorkbooksImpl implements Workbooks { private _listByResourceGroup( resourceGroupName: string, category: CategoryType, - options?: WorkbooksListByResourceGroupOptionalParams + options?: WorkbooksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, category, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } /** * Get a single workbook by its resourceName. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param options The options parameters. */ get( resourceGroupName: string, resourceName: string, - options?: WorkbooksGetOptionalParams + options?: WorkbooksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - getOperationSpec + getOperationSpec, ); } /** * Delete a workbook. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param options The options parameters. */ delete( resourceGroupName: string, resourceName: string, - options?: WorkbooksDeleteOptionalParams + options?: WorkbooksDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - deleteOperationSpec + deleteOperationSpec, ); } /** * Create a new workbook. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param workbookProperties Properties that need to be specified to create a new workbook. * @param options The options parameters. */ @@ -362,52 +357,52 @@ export class WorkbooksImpl implements Workbooks { resourceGroupName: string, resourceName: string, workbookProperties: Workbook, - options?: WorkbooksCreateOrUpdateOptionalParams + options?: WorkbooksCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, workbookProperties, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } /** * Updates a workbook that has already been added. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param options The options parameters. */ update( resourceGroupName: string, resourceName: string, - options?: WorkbooksUpdateOptionalParams + options?: WorkbooksUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - updateOperationSpec + updateOperationSpec, ); } /** * Get the revisions for the workbook defined by its resourceName. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param options The options parameters. */ private _revisionsList( resourceGroupName: string, resourceName: string, - options?: WorkbooksRevisionsListOptionalParams + options?: WorkbooksRevisionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, options }, - revisionsListOperationSpec + revisionsListOperationSpec, ); } /** * Get a single workbook revision defined by its revisionId. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param revisionId The id of the workbook's revision. * @param options The options parameters. */ @@ -415,54 +410,50 @@ export class WorkbooksImpl implements Workbooks { resourceGroupName: string, resourceName: string, revisionId: string, - options?: WorkbooksRevisionGetOptionalParams + options?: WorkbooksRevisionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, revisionId, options }, - revisionGetOperationSpec + revisionGetOperationSpec, ); } /** * ListBySubscriptionNext - * @param category Category of workbook to return. * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. * @param options The options parameters. */ private _listBySubscriptionNext( - category: CategoryType, nextLink: string, - options?: WorkbooksListBySubscriptionNextOptionalParams + options?: WorkbooksListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { category, nextLink, options }, - listBySubscriptionNextOperationSpec + { nextLink, options }, + listBySubscriptionNextOperationSpec, ); } /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param category Category of workbook to return. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ private _listByResourceGroupNext( resourceGroupName: string, - category: CategoryType, nextLink: string, - options?: WorkbooksListByResourceGroupNextOptionalParams + options?: WorkbooksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, category, nextLink, options }, - listByResourceGroupNextOperationSpec + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec, ); } /** * RevisionsListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param nextLink The nextLink from the previous successful call to the RevisionsList method. * @param options The options parameters. */ @@ -470,11 +461,11 @@ export class WorkbooksImpl implements Workbooks { resourceGroupName: string, resourceName: string, nextLink: string, - options?: WorkbooksRevisionsListNextOptionalParams + options?: WorkbooksRevisionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, resourceName, nextLink, options }, - revisionsListNextOperationSpec + revisionsListNextOperationSpec, ); } } @@ -482,264 +473,245 @@ export class WorkbooksImpl implements Workbooks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/workbooks", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/workbooks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkbooksListResult + bodyMapper: Mappers.WorkbooksListResult, }, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, queryParameters: [ Parameters.canFetchContent, Parameters.tags, Parameters.category, - Parameters.apiVersion3 + Parameters.apiVersion5, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkbooksListResult + bodyMapper: Mappers.WorkbooksListResult, }, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, queryParameters: [ Parameters.canFetchContent, Parameters.tags, Parameters.category, + Parameters.apiVersion5, Parameters.sourceId, - Parameters.apiVersion3 ], urlParameters: [ Parameters.$host, + Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.subscriptionId ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Workbook + bodyMapper: Mappers.Workbook, }, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, - queryParameters: [Parameters.canFetchContent, Parameters.apiVersion3], + queryParameters: [Parameters.canFetchContent, Parameters.apiVersion5], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Workbook + bodyMapper: Mappers.Workbook, }, 201: { - bodyMapper: Mappers.Workbook + bodyMapper: Mappers.Workbook, }, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, - requestBody: Parameters.workbookProperties1, - queryParameters: [Parameters.sourceId, Parameters.apiVersion3], + requestBody: Parameters.workbookProperties, + queryParameters: [Parameters.apiVersion5, Parameters.sourceId], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}", httpMethod: "PATCH", responses: { + 200: { + bodyMapper: Mappers.Workbook, + }, 201: { - bodyMapper: Mappers.Workbook + bodyMapper: Mappers.Workbook, }, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, requestBody: Parameters.workbookUpdateParameters, - queryParameters: [Parameters.sourceId, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion5, Parameters.sourceId], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const revisionsListOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}/revisions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}/revisions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkbooksListResult + bodyMapper: Mappers.WorkbooksListResult, }, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceName + Parameters.resourceGroupName, + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const revisionGetOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}/revisions/{revisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}/revisions/{revisionId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Workbook + bodyMapper: Mappers.Workbook, }, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.revisionId + Parameters.revisionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkbooksListResult + bodyMapper: Mappers.WorkbooksListResult, }, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, - queryParameters: [ - Parameters.canFetchContent, - Parameters.tags, - Parameters.category, - Parameters.apiVersion3 - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkbooksListResult + bodyMapper: Mappers.WorkbooksListResult, }, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, - queryParameters: [ - Parameters.canFetchContent, - Parameters.tags, - Parameters.category, - Parameters.sourceId, - Parameters.apiVersion3 - ], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.resourceGroupName, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const revisionsListNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkbooksListResult + bodyMapper: Mappers.WorkbooksListResult, }, default: { - bodyMapper: Mappers.WorkbookError - } + bodyMapper: Mappers.WorkbookError, + }, }, - queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, - Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.resourceGroupName, Parameters.resourceName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/aPIKeys.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/aPIKeys.ts index a8b25dfdecee..db18b692418e 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/aPIKeys.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/aPIKeys.ts @@ -16,7 +16,7 @@ import { APIKeysDeleteOptionalParams, APIKeysDeleteResponse, APIKeysGetOptionalParams, - APIKeysGetResponse + APIKeysGetResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface APIKeys { list( resourceGroupName: string, resourceName: string, - options?: APIKeysListOptionalParams + options?: APIKeysListOptionalParams, ): PagedAsyncIterableIterator; /** * Create an API Key of an Application Insights component. @@ -45,7 +45,7 @@ export interface APIKeys { resourceGroupName: string, resourceName: string, aPIKeyProperties: APIKeyRequest, - options?: APIKeysCreateOptionalParams + options?: APIKeysCreateOptionalParams, ): Promise; /** * Delete an API Key of an Application Insights component. @@ -58,7 +58,7 @@ export interface APIKeys { resourceGroupName: string, resourceName: string, keyId: string, - options?: APIKeysDeleteOptionalParams + options?: APIKeysDeleteOptionalParams, ): Promise; /** * Get the API Key for this key id. @@ -71,6 +71,6 @@ export interface APIKeys { resourceGroupName: string, resourceName: string, keyId: string, - options?: APIKeysGetOptionalParams + options?: APIKeysGetOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/analyticsItems.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/analyticsItems.ts index 54710d4939e3..988bc1402f4c 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/analyticsItems.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/analyticsItems.ts @@ -15,7 +15,7 @@ import { ApplicationInsightsComponentAnalyticsItem, AnalyticsItemsPutOptionalParams, AnalyticsItemsPutResponse, - AnalyticsItemsDeleteOptionalParams + AnalyticsItemsDeleteOptionalParams, } from "../models"; /** Interface representing a AnalyticsItems. */ @@ -32,7 +32,7 @@ export interface AnalyticsItems { resourceGroupName: string, resourceName: string, scopePath: ItemScopePath, - options?: AnalyticsItemsListOptionalParams + options?: AnalyticsItemsListOptionalParams, ): Promise; /** * Gets a specific Analytics Items defined within an Application Insights component. @@ -46,7 +46,7 @@ export interface AnalyticsItems { resourceGroupName: string, resourceName: string, scopePath: ItemScopePath, - options?: AnalyticsItemsGetOptionalParams + options?: AnalyticsItemsGetOptionalParams, ): Promise; /** * Adds or Updates a specific Analytics Item within an Application Insights component. @@ -63,7 +63,7 @@ export interface AnalyticsItems { resourceName: string, scopePath: ItemScopePath, itemProperties: ApplicationInsightsComponentAnalyticsItem, - options?: AnalyticsItemsPutOptionalParams + options?: AnalyticsItemsPutOptionalParams, ): Promise; /** * Deletes a specific Analytics Items defined within an Application Insights component. @@ -77,6 +77,6 @@ export interface AnalyticsItems { resourceGroupName: string, resourceName: string, scopePath: ItemScopePath, - options?: AnalyticsItemsDeleteOptionalParams + options?: AnalyticsItemsDeleteOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/annotations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/annotations.ts index 96629458740f..4c313cccbba7 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/annotations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/annotations.ts @@ -14,7 +14,7 @@ import { AnnotationsCreateResponse, AnnotationsDeleteOptionalParams, AnnotationsGetOptionalParams, - AnnotationsGetResponse + AnnotationsGetResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Annotations { resourceName: string, start: string, end: string, - options?: AnnotationsListOptionalParams + options?: AnnotationsListOptionalParams, ): PagedAsyncIterableIterator; /** * Create an Annotation of an Application Insights component. @@ -48,7 +48,7 @@ export interface Annotations { resourceGroupName: string, resourceName: string, annotationProperties: Annotation, - options?: AnnotationsCreateOptionalParams + options?: AnnotationsCreateOptionalParams, ): Promise; /** * Delete an Annotation of an Application Insights component. @@ -62,7 +62,7 @@ export interface Annotations { resourceGroupName: string, resourceName: string, annotationId: string, - options?: AnnotationsDeleteOptionalParams + options?: AnnotationsDeleteOptionalParams, ): Promise; /** * Get the annotation for given id. @@ -76,6 +76,6 @@ export interface Annotations { resourceGroupName: string, resourceName: string, annotationId: string, - options?: AnnotationsGetOptionalParams + options?: AnnotationsGetOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentAvailableFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentAvailableFeatures.ts index d3880d894bff..33bb1d513233 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentAvailableFeatures.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentAvailableFeatures.ts @@ -8,7 +8,7 @@ import { ComponentAvailableFeaturesGetOptionalParams, - ComponentAvailableFeaturesGetResponse + ComponentAvailableFeaturesGetResponse, } from "../models"; /** Interface representing a ComponentAvailableFeatures. */ @@ -22,6 +22,6 @@ export interface ComponentAvailableFeatures { get( resourceGroupName: string, resourceName: string, - options?: ComponentAvailableFeaturesGetOptionalParams + options?: ComponentAvailableFeaturesGetOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentCurrentBillingFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentCurrentBillingFeatures.ts index e2a617e46a21..7542ef4a4aa6 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentCurrentBillingFeatures.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentCurrentBillingFeatures.ts @@ -11,7 +11,7 @@ import { ComponentCurrentBillingFeaturesGetResponse, ApplicationInsightsComponentBillingFeatures, ComponentCurrentBillingFeaturesUpdateOptionalParams, - ComponentCurrentBillingFeaturesUpdateResponse + ComponentCurrentBillingFeaturesUpdateResponse, } from "../models"; /** Interface representing a ComponentCurrentBillingFeatures. */ @@ -25,7 +25,7 @@ export interface ComponentCurrentBillingFeatures { get( resourceGroupName: string, resourceName: string, - options?: ComponentCurrentBillingFeaturesGetOptionalParams + options?: ComponentCurrentBillingFeaturesGetOptionalParams, ): Promise; /** * Update current billing features for an Application Insights component. @@ -39,6 +39,6 @@ export interface ComponentCurrentBillingFeatures { resourceGroupName: string, resourceName: string, billingFeaturesProperties: ApplicationInsightsComponentBillingFeatures, - options?: ComponentCurrentBillingFeaturesUpdateOptionalParams + options?: ComponentCurrentBillingFeaturesUpdateOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentFeatureCapabilities.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentFeatureCapabilities.ts index 0ca1c39b7be6..a4ba3bf939d1 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentFeatureCapabilities.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentFeatureCapabilities.ts @@ -8,7 +8,7 @@ import { ComponentFeatureCapabilitiesGetOptionalParams, - ComponentFeatureCapabilitiesGetResponse + ComponentFeatureCapabilitiesGetResponse, } from "../models"; /** Interface representing a ComponentFeatureCapabilities. */ @@ -22,6 +22,6 @@ export interface ComponentFeatureCapabilities { get( resourceGroupName: string, resourceName: string, - options?: ComponentFeatureCapabilitiesGetOptionalParams + options?: ComponentFeatureCapabilitiesGetOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentLinkedStorageAccountsOperations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentLinkedStorageAccountsOperations.ts index 4635a3f43fa7..2edfe6c81dbb 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentLinkedStorageAccountsOperations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentLinkedStorageAccountsOperations.ts @@ -16,7 +16,7 @@ import { ComponentLinkedStorageAccountsPatch, ComponentLinkedStorageAccountsUpdateOptionalParams, ComponentLinkedStorageAccountsUpdateResponse, - ComponentLinkedStorageAccountsDeleteOptionalParams + ComponentLinkedStorageAccountsDeleteOptionalParams, } from "../models"; /** Interface representing a ComponentLinkedStorageAccountsOperations. */ @@ -33,7 +33,7 @@ export interface ComponentLinkedStorageAccountsOperations { resourceGroupName: string, resourceName: string, storageType: StorageType, - options?: ComponentLinkedStorageAccountsGetOptionalParams + options?: ComponentLinkedStorageAccountsGetOptionalParams, ): Promise; /** * Replace current linked storage account for an Application Insights component. @@ -50,7 +50,7 @@ export interface ComponentLinkedStorageAccountsOperations { resourceName: string, storageType: StorageType, linkedStorageAccountsProperties: ComponentLinkedStorageAccounts, - options?: ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams + options?: ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams, ): Promise; /** * Update linked storage accounts for an Application Insights component. @@ -67,7 +67,7 @@ export interface ComponentLinkedStorageAccountsOperations { resourceName: string, storageType: StorageType, linkedStorageAccountsProperties: ComponentLinkedStorageAccountsPatch, - options?: ComponentLinkedStorageAccountsUpdateOptionalParams + options?: ComponentLinkedStorageAccountsUpdateOptionalParams, ): Promise; /** * Delete linked storage accounts for an Application Insights component. @@ -81,6 +81,6 @@ export interface ComponentLinkedStorageAccountsOperations { resourceGroupName: string, resourceName: string, storageType: StorageType, - options?: ComponentLinkedStorageAccountsDeleteOptionalParams + options?: ComponentLinkedStorageAccountsDeleteOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentQuotaStatus.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentQuotaStatus.ts index 0eea4b49a2b7..6a210bb2bef3 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentQuotaStatus.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentQuotaStatus.ts @@ -8,7 +8,7 @@ import { ComponentQuotaStatusGetOptionalParams, - ComponentQuotaStatusGetResponse + ComponentQuotaStatusGetResponse, } from "../models"; /** Interface representing a ComponentQuotaStatus. */ @@ -22,6 +22,6 @@ export interface ComponentQuotaStatus { get( resourceGroupName: string, resourceName: string, - options?: ComponentQuotaStatusGetOptionalParams + options?: ComponentQuotaStatusGetOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/components.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/components.ts index 84fb14b12d30..3375380bbb4f 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/components.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/components.ts @@ -23,7 +23,7 @@ import { ComponentsPurgeOptionalParams, ComponentsPurgeResponse, ComponentsGetPurgeStatusOptionalParams, - ComponentsGetPurgeStatusResponse + ComponentsGetPurgeStatusResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Components { * @param options The options parameters. */ list( - options?: ComponentsListOptionalParams + options?: ComponentsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of Application Insights components within a resource group. @@ -43,7 +43,7 @@ export interface Components { */ listByResourceGroup( resourceGroupName: string, - options?: ComponentsListByResourceGroupOptionalParams + options?: ComponentsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Deletes an Application Insights component. @@ -54,7 +54,7 @@ export interface Components { delete( resourceGroupName: string, resourceName: string, - options?: ComponentsDeleteOptionalParams + options?: ComponentsDeleteOptionalParams, ): Promise; /** * Returns an Application Insights component. @@ -65,7 +65,7 @@ export interface Components { get( resourceGroupName: string, resourceName: string, - options?: ComponentsGetOptionalParams + options?: ComponentsGetOptionalParams, ): Promise; /** * Creates (or updates) an Application Insights component. Note: You cannot specify a different value @@ -80,7 +80,7 @@ export interface Components { resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, - options?: ComponentsCreateOrUpdateOptionalParams + options?: ComponentsCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing component's tags. To update other fields use the CreateOrUpdate method. @@ -93,7 +93,7 @@ export interface Components { resourceGroupName: string, resourceName: string, componentTags: TagsResource, - options?: ComponentsUpdateTagsOptionalParams + options?: ComponentsUpdateTagsOptionalParams, ): Promise; /** * Purges data in an Application Insights component by a set of user-defined filters. @@ -102,6 +102,10 @@ export interface Components { * should batch the execution of purge requests by sending a single command whose predicate includes * all user identities that require purging. Use the in operator to specify multiple identities. You * should run the query prior to using for a purge request to verify that the results are expected. + * Note: this operation is intended for Classic resources, for workspace-based Application Insights + * resource please run purge operation (directly on the + * workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to + * specific resource id. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param body Describes the body of a request to purge data in a single table of an Application @@ -112,7 +116,7 @@ export interface Components { resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, - options?: ComponentsPurgeOptionalParams + options?: ComponentsPurgeOptionalParams, ): Promise; /** * Get status for an ongoing purge operation. @@ -126,6 +130,6 @@ export interface Components { resourceGroupName: string, resourceName: string, purgeId: string, - options?: ComponentsGetPurgeStatusOptionalParams + options?: ComponentsGetPurgeStatusOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/deletedWorkbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/deletedWorkbooks.ts new file mode 100644 index 000000000000..3bceb4a891d4 --- /dev/null +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/deletedWorkbooks.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DeletedWorkbook, + DeletedWorkbooksListBySubscriptionOptionalParams, +} from "../models"; + +/// +/** Interface representing a DeletedWorkbooks. */ +export interface DeletedWorkbooks { + /** + * Get all recently deleted Workbooks in a specified subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: DeletedWorkbooksListBySubscriptionOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/exportConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/exportConfigurations.ts index a9a3edcf01fa..ff088574e8c4 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/exportConfigurations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/exportConfigurations.ts @@ -17,7 +17,7 @@ import { ExportConfigurationsGetOptionalParams, ExportConfigurationsGetResponse, ExportConfigurationsUpdateOptionalParams, - ExportConfigurationsUpdateResponse + ExportConfigurationsUpdateResponse, } from "../models"; /** Interface representing a ExportConfigurations. */ @@ -31,7 +31,7 @@ export interface ExportConfigurations { list( resourceGroupName: string, resourceName: string, - options?: ExportConfigurationsListOptionalParams + options?: ExportConfigurationsListOptionalParams, ): Promise; /** * Create a Continuous Export configuration of an Application Insights component. @@ -45,7 +45,7 @@ export interface ExportConfigurations { resourceGroupName: string, resourceName: string, exportProperties: ApplicationInsightsComponentExportRequest, - options?: ExportConfigurationsCreateOptionalParams + options?: ExportConfigurationsCreateOptionalParams, ): Promise; /** * Delete a Continuous Export configuration of an Application Insights component. @@ -59,7 +59,7 @@ export interface ExportConfigurations { resourceGroupName: string, resourceName: string, exportId: string, - options?: ExportConfigurationsDeleteOptionalParams + options?: ExportConfigurationsDeleteOptionalParams, ): Promise; /** * Get the Continuous Export configuration for this export id. @@ -73,7 +73,7 @@ export interface ExportConfigurations { resourceGroupName: string, resourceName: string, exportId: string, - options?: ExportConfigurationsGetOptionalParams + options?: ExportConfigurationsGetOptionalParams, ): Promise; /** * Update the Continuous Export configuration for this export id. @@ -90,6 +90,6 @@ export interface ExportConfigurations { resourceName: string, exportId: string, exportProperties: ApplicationInsightsComponentExportRequest, - options?: ExportConfigurationsUpdateOptionalParams + options?: ExportConfigurationsUpdateOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/favorites.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/favorites.ts index 5ad0be7a2dd9..ed08326991f9 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/favorites.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/favorites.ts @@ -16,7 +16,7 @@ import { FavoritesAddResponse, FavoritesUpdateOptionalParams, FavoritesUpdateResponse, - FavoritesDeleteOptionalParams + FavoritesDeleteOptionalParams, } from "../models"; /** Interface representing a Favorites. */ @@ -30,7 +30,7 @@ export interface Favorites { list( resourceGroupName: string, resourceName: string, - options?: FavoritesListOptionalParams + options?: FavoritesListOptionalParams, ): Promise; /** * Get a single favorite by its FavoriteId, defined within an Application Insights component. @@ -43,7 +43,7 @@ export interface Favorites { resourceGroupName: string, resourceName: string, favoriteId: string, - options?: FavoritesGetOptionalParams + options?: FavoritesGetOptionalParams, ): Promise; /** * Adds a new favorites to an Application Insights component. @@ -59,7 +59,7 @@ export interface Favorites { resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, - options?: FavoritesAddOptionalParams + options?: FavoritesAddOptionalParams, ): Promise; /** * Updates a favorite that has already been added to an Application Insights component. @@ -74,7 +74,7 @@ export interface Favorites { resourceName: string, favoriteId: string, favoriteProperties: ApplicationInsightsComponentFavorite, - options?: FavoritesUpdateOptionalParams + options?: FavoritesUpdateOptionalParams, ): Promise; /** * Remove a favorite that is associated to an Application Insights component. @@ -87,6 +87,6 @@ export interface Favorites { resourceGroupName: string, resourceName: string, favoriteId: string, - options?: FavoritesDeleteOptionalParams + options?: FavoritesDeleteOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/index.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/index.ts index d273af781cd5..79d013803eb7 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/index.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/index.ts @@ -6,6 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./components"; export * from "./annotations"; export * from "./aPIKeys"; export * from "./exportConfigurations"; @@ -19,9 +20,9 @@ export * from "./favorites"; export * from "./webTestLocations"; export * from "./webTests"; export * from "./analyticsItems"; +export * from "./operations"; export * from "./workbookTemplates"; -export * from "./myWorkbooks"; export * from "./workbooks"; -export * from "./components"; -export * from "./componentLinkedStorageAccountsOperations"; export * from "./liveToken"; +export * from "./componentLinkedStorageAccountsOperations"; +export * from "./deletedWorkbooks"; diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/liveToken.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/liveToken.ts index 2045c08c28e8..8e7e2d0b8c6f 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/liveToken.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/liveToken.ts @@ -17,6 +17,6 @@ export interface LiveToken { */ get( resourceUri: string, - options?: LiveTokenGetOptionalParams + options?: LiveTokenGetOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/myWorkbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/myWorkbooks.ts deleted file mode 100644 index 46def1df128f..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/myWorkbooks.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - MyWorkbook, - CategoryType, - MyWorkbooksListByResourceGroupOptionalParams, - MyWorkbooksListBySubscriptionOptionalParams, - MyWorkbooksGetOptionalParams, - MyWorkbooksGetResponse, - MyWorkbooksDeleteOptionalParams, - MyWorkbooksCreateOrUpdateOptionalParams, - MyWorkbooksCreateOrUpdateResponse, - MyWorkbooksUpdateOptionalParams, - MyWorkbooksUpdateResponse -} from "../models"; - -/// -/** Interface representing a MyWorkbooks. */ -export interface MyWorkbooks { - /** - * Get all private workbooks defined within a specified resource group and category. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param category Category of workbook to return. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - category: CategoryType, - options?: MyWorkbooksListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get all private workbooks defined within a specified subscription and category. - * @param category Category of workbook to return. - * @param options The options parameters. - */ - listBySubscription( - category: CategoryType, - options?: MyWorkbooksListBySubscriptionOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get a single private workbook by its resourceName. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Application Insights component resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceName: string, - options?: MyWorkbooksGetOptionalParams - ): Promise; - /** - * Delete a private workbook. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Application Insights component resource. - * @param options The options parameters. - */ - delete( - resourceGroupName: string, - resourceName: string, - options?: MyWorkbooksDeleteOptionalParams - ): Promise; - /** - * Create a new private workbook. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Application Insights component resource. - * @param workbookProperties Properties that need to be specified to create a new private workbook. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - resourceName: string, - workbookProperties: MyWorkbook, - options?: MyWorkbooksCreateOrUpdateOptionalParams - ): Promise; - /** - * Updates a private workbook that has already been added. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the Application Insights component resource. - * @param workbookProperties Properties that need to be specified to create a new private workbook. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - resourceName: string, - workbookProperties: MyWorkbook, - options?: MyWorkbooksUpdateOptionalParams - ): Promise; -} diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/operations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/operations.ts new file mode 100644 index 000000000000..d5eaf4137a6f --- /dev/null +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/operations.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Operation, OperationsListOptionalParams } from "../models"; + +/// +/** Interface representing a Operations. */ +export interface Operations { + /** + * Lists all of the available insights REST API operations. + * @param options The options parameters. + */ + list( + options?: OperationsListOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/proactiveDetectionConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/proactiveDetectionConfigurations.ts index be564904a0ff..14282433049a 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/proactiveDetectionConfigurations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/proactiveDetectionConfigurations.ts @@ -13,7 +13,7 @@ import { ProactiveDetectionConfigurationsGetResponse, ApplicationInsightsComponentProactiveDetectionConfiguration, ProactiveDetectionConfigurationsUpdateOptionalParams, - ProactiveDetectionConfigurationsUpdateResponse + ProactiveDetectionConfigurationsUpdateResponse, } from "../models"; /** Interface representing a ProactiveDetectionConfigurations. */ @@ -27,7 +27,7 @@ export interface ProactiveDetectionConfigurations { list( resourceGroupName: string, resourceName: string, - options?: ProactiveDetectionConfigurationsListOptionalParams + options?: ProactiveDetectionConfigurationsListOptionalParams, ): Promise; /** * Get the ProactiveDetection configuration for this configuration id. @@ -41,7 +41,7 @@ export interface ProactiveDetectionConfigurations { resourceGroupName: string, resourceName: string, configurationId: string, - options?: ProactiveDetectionConfigurationsGetOptionalParams + options?: ProactiveDetectionConfigurationsGetOptionalParams, ): Promise; /** * Update the ProactiveDetection configuration for this configuration id. @@ -58,6 +58,6 @@ export interface ProactiveDetectionConfigurations { resourceName: string, configurationId: string, proactiveDetectionProperties: ApplicationInsightsComponentProactiveDetectionConfiguration, - options?: ProactiveDetectionConfigurationsUpdateOptionalParams + options?: ProactiveDetectionConfigurationsUpdateOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTestLocations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTestLocations.ts index 6bb6a15bec02..25ab94121292 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTestLocations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTestLocations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApplicationInsightsComponentWebTestLocation, - WebTestLocationsListOptionalParams + WebTestLocationsListOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface WebTestLocations { list( resourceGroupName: string, resourceName: string, - options?: WebTestLocationsListOptionalParams + options?: WebTestLocationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTests.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTests.ts index 113a8444b933..b27be18dbe1f 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTests.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTests.ts @@ -19,27 +19,27 @@ import { TagsResource, WebTestsUpdateTagsOptionalParams, WebTestsUpdateTagsResponse, - WebTestsDeleteOptionalParams + WebTestsDeleteOptionalParams, } from "../models"; /// /** Interface representing a WebTests. */ export interface WebTests { /** - * Get all Application Insights web tests defined within a specified resource group. + * Get all Application Insights web tests defined for the specified resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( resourceGroupName: string, - options?: WebTestsListByResourceGroupOptionalParams + options?: WebTestsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** - * Get all Application Insights web test alerts definitions within a subscription. + * Get all Application Insights web test definitions for the specified subscription. * @param options The options parameters. */ list( - options?: WebTestsListOptionalParams + options?: WebTestsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get all Application Insights web tests defined for the specified component. @@ -50,23 +50,23 @@ export interface WebTests { listByComponent( componentName: string, resourceGroupName: string, - options?: WebTestsListByComponentOptionalParams + options?: WebTestsListByComponentOptionalParams, ): PagedAsyncIterableIterator; /** * Get a specific Application Insights web test definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webTestName The name of the Application Insights webtest resource. + * @param webTestName The name of the Application Insights WebTest resource. * @param options The options parameters. */ get( resourceGroupName: string, webTestName: string, - options?: WebTestsGetOptionalParams + options?: WebTestsGetOptionalParams, ): Promise; /** * Creates or updates an Application Insights web test definition. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webTestName The name of the Application Insights webtest resource. + * @param webTestName The name of the Application Insights WebTest resource. * @param webTestDefinition Properties that need to be specified to create or update an Application * Insights web test definition. * @param options The options parameters. @@ -75,30 +75,30 @@ export interface WebTests { resourceGroupName: string, webTestName: string, webTestDefinition: WebTest, - options?: WebTestsCreateOrUpdateOptionalParams + options?: WebTestsCreateOrUpdateOptionalParams, ): Promise; /** - * Creates or updates an Application Insights web test definition. + * Updates the tags associated with an Application Insights web test. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webTestName The name of the Application Insights webtest resource. - * @param webTestTags Updated tag information to set into the web test instance. + * @param webTestName The name of the Application Insights WebTest resource. + * @param webTestTags Updated tag information to associate with the web test resource. * @param options The options parameters. */ updateTags( resourceGroupName: string, webTestName: string, webTestTags: TagsResource, - options?: WebTestsUpdateTagsOptionalParams + options?: WebTestsUpdateTagsOptionalParams, ): Promise; /** * Deletes an Application Insights web test. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webTestName The name of the Application Insights webtest resource. + * @param webTestName The name of the Application Insights WebTest resource. * @param options The options parameters. */ delete( resourceGroupName: string, webTestName: string, - options?: WebTestsDeleteOptionalParams + options?: WebTestsDeleteOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workItemConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workItemConfigurations.ts index 958744cb3b6e..9b745fc0362e 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workItemConfigurations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workItemConfigurations.ts @@ -19,7 +19,7 @@ import { WorkItemConfigurationsGetItemOptionalParams, WorkItemConfigurationsGetItemResponse, WorkItemConfigurationsUpdateItemOptionalParams, - WorkItemConfigurationsUpdateItemResponse + WorkItemConfigurationsUpdateItemResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface WorkItemConfigurations { list( resourceGroupName: string, resourceName: string, - options?: WorkItemConfigurationsListOptionalParams + options?: WorkItemConfigurationsListOptionalParams, ): PagedAsyncIterableIterator; /** * Create a work item configuration for an Application Insights component. @@ -48,7 +48,7 @@ export interface WorkItemConfigurations { resourceGroupName: string, resourceName: string, workItemConfigurationProperties: WorkItemCreateConfiguration, - options?: WorkItemConfigurationsCreateOptionalParams + options?: WorkItemConfigurationsCreateOptionalParams, ): Promise; /** * Gets default work item configurations that exist for the application @@ -59,7 +59,7 @@ export interface WorkItemConfigurations { getDefault( resourceGroupName: string, resourceName: string, - options?: WorkItemConfigurationsGetDefaultOptionalParams + options?: WorkItemConfigurationsGetDefaultOptionalParams, ): Promise; /** * Delete a work item configuration of an Application Insights component. @@ -73,7 +73,7 @@ export interface WorkItemConfigurations { resourceGroupName: string, resourceName: string, workItemConfigId: string, - options?: WorkItemConfigurationsDeleteOptionalParams + options?: WorkItemConfigurationsDeleteOptionalParams, ): Promise; /** * Gets specified work item configuration for an Application Insights component. @@ -87,7 +87,7 @@ export interface WorkItemConfigurations { resourceGroupName: string, resourceName: string, workItemConfigId: string, - options?: WorkItemConfigurationsGetItemOptionalParams + options?: WorkItemConfigurationsGetItemOptionalParams, ): Promise; /** * Update a work item configuration for an Application Insights component. @@ -104,6 +104,6 @@ export interface WorkItemConfigurations { resourceName: string, workItemConfigId: string, workItemConfigurationProperties: WorkItemCreateConfiguration, - options?: WorkItemConfigurationsUpdateItemOptionalParams + options?: WorkItemConfigurationsUpdateItemOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbookTemplates.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbookTemplates.ts index 69bac6e12019..ce4c2bfe4b93 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbookTemplates.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbookTemplates.ts @@ -16,7 +16,7 @@ import { WorkbookTemplatesCreateOrUpdateOptionalParams, WorkbookTemplatesCreateOrUpdateResponse, WorkbookTemplatesUpdateOptionalParams, - WorkbookTemplatesUpdateResponse + WorkbookTemplatesUpdateResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface WorkbookTemplates { */ listByResourceGroup( resourceGroupName: string, - options?: WorkbookTemplatesListByResourceGroupOptionalParams + options?: WorkbookTemplatesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get a single workbook template by its resourceName. @@ -40,7 +40,7 @@ export interface WorkbookTemplates { get( resourceGroupName: string, resourceName: string, - options?: WorkbookTemplatesGetOptionalParams + options?: WorkbookTemplatesGetOptionalParams, ): Promise; /** * Delete a workbook template. @@ -51,7 +51,7 @@ export interface WorkbookTemplates { delete( resourceGroupName: string, resourceName: string, - options?: WorkbookTemplatesDeleteOptionalParams + options?: WorkbookTemplatesDeleteOptionalParams, ): Promise; /** * Create a new workbook template. @@ -64,7 +64,7 @@ export interface WorkbookTemplates { resourceGroupName: string, resourceName: string, workbookTemplateProperties: WorkbookTemplate, - options?: WorkbookTemplatesCreateOrUpdateOptionalParams + options?: WorkbookTemplatesCreateOrUpdateOptionalParams, ): Promise; /** * Updates a workbook template that has already been added. @@ -75,6 +75,6 @@ export interface WorkbookTemplates { update( resourceGroupName: string, resourceName: string, - options?: WorkbookTemplatesUpdateOptionalParams + options?: WorkbookTemplatesUpdateOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbooks.ts index 252a0e0bcb11..4a0c11d06708 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbooks.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbooks.ts @@ -21,7 +21,7 @@ import { WorkbooksUpdateOptionalParams, WorkbooksUpdateResponse, WorkbooksRevisionGetOptionalParams, - WorkbooksRevisionGetResponse + WorkbooksRevisionGetResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Workbooks { */ listBySubscription( category: CategoryType, - options?: WorkbooksListBySubscriptionOptionalParams + options?: WorkbooksListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get all Workbooks defined within a specified resource group and category. @@ -45,45 +45,45 @@ export interface Workbooks { listByResourceGroup( resourceGroupName: string, category: CategoryType, - options?: WorkbooksListByResourceGroupOptionalParams + options?: WorkbooksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get the revisions for the workbook defined by its resourceName. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param options The options parameters. */ listRevisionsList( resourceGroupName: string, resourceName: string, - options?: WorkbooksRevisionsListOptionalParams + options?: WorkbooksRevisionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a single workbook by its resourceName. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param options The options parameters. */ get( resourceGroupName: string, resourceName: string, - options?: WorkbooksGetOptionalParams + options?: WorkbooksGetOptionalParams, ): Promise; /** * Delete a workbook. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param options The options parameters. */ delete( resourceGroupName: string, resourceName: string, - options?: WorkbooksDeleteOptionalParams + options?: WorkbooksDeleteOptionalParams, ): Promise; /** * Create a new workbook. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param workbookProperties Properties that need to be specified to create a new workbook. * @param options The options parameters. */ @@ -91,23 +91,23 @@ export interface Workbooks { resourceGroupName: string, resourceName: string, workbookProperties: Workbook, - options?: WorkbooksCreateOrUpdateOptionalParams + options?: WorkbooksCreateOrUpdateOptionalParams, ): Promise; /** * Updates a workbook that has already been added. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param options The options parameters. */ update( resourceGroupName: string, resourceName: string, - options?: WorkbooksUpdateOptionalParams + options?: WorkbooksUpdateOptionalParams, ): Promise; /** * Get a single workbook revision defined by its revisionId. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the resource. + * @param resourceName The name of the workbook resource. The value must be an UUID. * @param revisionId The id of the workbook's revision. * @param options The options parameters. */ @@ -115,6 +115,6 @@ export interface Workbooks { resourceGroupName: string, resourceName: string, revisionId: string, - options?: WorkbooksRevisionGetOptionalParams + options?: WorkbooksRevisionGetOptionalParams, ): Promise; } diff --git a/sdk/applicationinsights/arm-appinsights/src/pagingHelper.ts b/sdk/applicationinsights/arm-appinsights/src/pagingHelper.ts index d85fc13bce1e..205cccc26592 100644 --- a/sdk/applicationinsights/arm-appinsights/src/pagingHelper.ts +++ b/sdk/applicationinsights/arm-appinsights/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/applicationinsights/arm-appinsights/test/sampleTest.ts b/sdk/applicationinsights/arm-appinsights/test/sampleTest.ts index 8ff7deb0acbe..d64be981b694 100644 --- a/sdk/applicationinsights/arm-appinsights/test/sampleTest.ts +++ b/sdk/applicationinsights/arm-appinsights/test/sampleTest.ts @@ -9,7 +9,7 @@ import { Recorder, RecorderStartOptions, - env + env, } from "@azure-tools/test-recorder"; import { assert } from "chai"; import { Context } from "mocha"; @@ -18,15 +18,11 @@ const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", AZURE_CLIENT_SECRET: "azure_client_secret", AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" + SUBSCRIPTION_ID: "azure_subscription_id", }; const recorderOptions: RecorderStartOptions = { envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], }; describe("My test", () => { diff --git a/sdk/applicationinsights/arm-appinsights/tsconfig.json b/sdk/applicationinsights/arm-appinsights/tsconfig.json index 996cead488fa..b35d05ad6e9d 100644 --- a/sdk/applicationinsights/arm-appinsights/tsconfig.json +++ b/sdk/applicationinsights/arm-appinsights/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-appinsights": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "src/**/*.ts", + "test/**/*.ts" ], "exclude": [ "node_modules"