diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e2ac4a887b9b..6333dde29639 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -13202,21 +13202,25 @@ packages: dev: false file:projects/arm-automanage.tgz: - resolution: {integrity: sha512-D1jk83JsK1u+NaDH8LRnlS0OjG2bxd9N18ad5gmgcRF2JAz49h+EtGUG6+XTeQ9gDM+Byx/k/p9vISYPUZP8TA==, tarball: file:projects/arm-automanage.tgz} + resolution: {integrity: sha512-FLxV4eA7BVC0t5VSFQ98psMRU4VZMLjif5iTiqe1D+45Jq9XX0b48LF9vkRqgKTS+n0tSNs7b0eCL2tAkqfeRA==, tarball: file:projects/arm-automanage.tgz} name: '@rush-temp/arm-automanage' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.3.1 '@azure-tools/test-recorder': 3.5.2 + '@microsoft/api-extractor': 7.47.11(@types/node@18.19.64) '@types/chai': 4.3.20 '@types/mocha': 10.0.9 '@types/node': 18.19.64 chai: 4.3.10 + cross-env: 7.0.3 dotenv: 16.4.5 mocha: 10.8.2 ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) tslib: 2.8.1 + tsx: 4.19.2 typescript: 5.6.3 + uglify-js: 3.19.3 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -15416,7 +15420,7 @@ packages: dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-+DX7eIMt7WAbn6AD+QZpjVyoMuXdNpGH452FuoUH2UvFhOBtlZD3B5y8bwW/oE8d3E/u2eZ3B4N2cAFV32bgbw==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-IxFMCCeH0D2P6u+4Vwi9ROrWBKeO0DJEfs2jxyfJnrGNMrRKAWfplx0QVZY6ETK5Thjlm3myTMffxO2BT5PBiA==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: @@ -19240,7 +19244,7 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-xPt7oEFIEnDcZHXkEsgPlaOBwbjSF6dQq4uDtXsp/yeslQgiTdGNnO5bUMfuqpTTiiwSsXCyCKEy2FmmrcRHLw==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-2asWr03USbfs287ufZkj8sgX94e8AIkX8BU9mVvBxqPp+5NwM8F2I2OeKa/ZRb9z7dcawliux8IwyB2kNGIEAg==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: diff --git a/sdk/automanage/arm-automanage/CHANGELOG.md b/sdk/automanage/arm-automanage/CHANGELOG.md index 35c283046887..fb454ccf4e14 100644 --- a/sdk/automanage/arm-automanage/CHANGELOG.md +++ b/sdk/automanage/arm-automanage/CHANGELOG.md @@ -1,15 +1,24 @@ # Release History - -## 1.0.3 (2023-01-11) - + +## 2.0.0 (2024-11-18) + ### Features Added -  - - Exposes `getContinuationToken` helper function to extract continuation token - -### Bugs Fixed -  - - A series of small bug fixs relevant to authentication and apiVersion policy + - Added Interface AssignmentReportProperties + - Added Interface Report_2 + - Added Interface ReportList_2 + - Added Interface ServicePrincipalProperties + - Interface BestPractice has a new optional parameter properties + - Interface ServicePrincipal has a new optional parameter properties + - Added function getContinuationToken + +### Breaking Changes + + - Class AutomanageClient has a new signature + - Interface BestPractice no longer has parameter configuration + - Interface ServicePrincipal no longer has parameter authorizationSet + - Interface ServicePrincipal no longer has parameter servicePrincipalId + ## 1.0.2 (2022-10-08) ### Bugs Fixed @@ -24,4 +33,4 @@ ## 1.0.0 (2022-08-03) -The package of @azure/arm-automanage is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +The package of @azure/arm-automanage is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/automanage/arm-automanage/LICENSE b/sdk/automanage/arm-automanage/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/automanage/arm-automanage/LICENSE +++ b/sdk/automanage/arm-automanage/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 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/automanage/arm-automanage/_meta.json b/sdk/automanage/arm-automanage/_meta.json index cfc6e4ccb48a..d1b3a5244605 100644 --- a/sdk/automanage/arm-automanage/_meta.json +++ b/sdk/automanage/arm-automanage/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1dd79c416cdccde274113ec03b92b75069fad464", - "readme": "specification\\automanage\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\automanage\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.6.20221226.1 --generate-sample=true", + "commit": "71672e845eba644312dbfa6f44d3a6a5993a635b", + "readme": "specification/automanage/resource-manager/readme.md", + "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/automanage/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.5.4", - "use": "@autorest/typescript@6.0.0-rc.6.20221226.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/automanage/arm-automanage/package.json b/sdk/automanage/arm-automanage/package.json index 2d5bb22d5c1f..e3897851757b 100644 --- a/sdk/automanage/arm-automanage/package.json +++ b/sdk/automanage/arm-automanage/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AutomanageClient.", - "version": "1.0.3", + "version": "2.0.0", "engines": { "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,18 +26,22 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-automanage.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@microsoft/api-extractor": "^7.31.1", + "typescript": "~5.6.2", + "uglify-js": "^3.4.9", + "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", - "dotenv": "^16.0.0", - "mocha": "^10.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "cross-env": "^7.0.2", + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -65,28 +69,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": "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:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "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,13 +103,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/automanage/arm-automanage", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-automanage?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/automanage/arm-automanage" +} \ No newline at end of file diff --git a/sdk/automanage/arm-automanage/review/arm-automanage.api.md b/sdk/automanage/arm-automanage/review/arm-automanage.api.md index a121946e9b54..5aae2c3e5896 100644 --- a/sdk/automanage/arm-automanage/review/arm-automanage.api.md +++ b/sdk/automanage/arm-automanage/review/arm-automanage.api.md @@ -11,11 +11,26 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; // @public export type ActionType = string; +// @public +export interface AssignmentReportProperties { + readonly configurationProfile?: string; + readonly duration?: string; + endTime?: string; + readonly error?: ErrorDetail; + readonly lastModifiedTime?: string; + readonly reportFormatVersion?: string; + readonly resources?: ReportResource[]; + startTime?: string; + readonly status?: string; + readonly type?: string; +} + // @public (undocumented) export class AutomanageClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AutomanageClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: AutomanageClientOptionalParams); // (undocumented) apiVersion: string; // (undocumented) @@ -43,7 +58,7 @@ export class AutomanageClient extends coreClient.ServiceClient { // (undocumented) servicePrincipals: ServicePrincipals; // (undocumented) - subscriptionId: string; + subscriptionId?: string; } // @public @@ -55,9 +70,9 @@ export interface AutomanageClientOptionalParams extends coreClient.ServiceClient // @public export interface BestPractice { - configuration?: Record; readonly id?: string; readonly name?: string; + properties?: ConfigurationProfileProperties; readonly systemData?: SystemData; readonly type?: string; } @@ -474,17 +489,8 @@ export interface ProxyResource extends Resource { // @public interface Report_2 extends ProxyResource { - readonly configurationProfile?: string; - readonly duration?: string; - endTime?: string; - readonly error?: ErrorDetail; - readonly lastModifiedTime?: string; - readonly reportFormatVersion?: string; - readonly resources?: ReportResource[]; - startTime?: string; - readonly status?: string; + properties?: AssignmentReportProperties; readonly systemData?: SystemData; - readonly typePropertiesType?: string; } export { Report_2 as Report } @@ -532,8 +538,7 @@ export interface Resource { // @public export interface ServicePrincipal extends ProxyResource { - readonly authorizationSet?: boolean; - readonly servicePrincipalId?: string; + properties?: ServicePrincipalProperties; readonly systemData?: SystemData; } @@ -542,6 +547,12 @@ export interface ServicePrincipalListResult { value?: ServicePrincipal[]; } +// @public +export interface ServicePrincipalProperties { + readonly authorizationSet?: boolean; + readonly servicePrincipalId?: string; +} + // @public export interface ServicePrincipals { get(options?: ServicePrincipalsGetOptionalParams): Promise; diff --git a/sdk/automanage/arm-automanage/sample.env b/sdk/automanage/arm-automanage/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/automanage/arm-automanage/sample.env +++ b/sdk/automanage/arm-automanage/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/automanage/arm-automanage/src/automanageClient.ts b/sdk/automanage/arm-automanage/src/automanageClient.ts index 6b0425cf1b17..9af1e2c04204 100644 --- a/sdk/automanage/arm-automanage/src/automanageClient.ts +++ b/sdk/automanage/arm-automanage/src/automanageClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -26,7 +26,7 @@ import { ConfigurationProfileHcrpAssignmentsImpl, HcrpReportsImpl, ConfigurationProfileHCIAssignmentsImpl, - HCIReportsImpl + HCIReportsImpl, } from "./operations"; import { BestPractices, @@ -40,14 +40,14 @@ import { ConfigurationProfileHcrpAssignments, HcrpReports, ConfigurationProfileHCIAssignments, - HCIReports + HCIReports, } from "./operationsInterfaces"; import { AutomanageClientOptionalParams } from "./models"; export class AutomanageClient extends coreClient.ServiceClient { $host: string; apiVersion: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the AutomanageClient class. @@ -58,13 +58,27 @@ export class AutomanageClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AutomanageClientOptionalParams + options?: AutomanageClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: AutomanageClientOptionalParams, + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: AutomanageClientOptionalParams | string, + options?: AutomanageClientOptionalParams, ) { 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 @@ -73,10 +87,10 @@ export class AutomanageClient extends coreClient.ServiceClient { } const defaults: AutomanageClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-automanage/1.0.3`; + const packageDetails = `azsdk-js-arm-automanage/2.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -86,20 +100,21 @@ export class AutomanageClient extends coreClient.ServiceClient { ...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 ( @@ -109,7 +124,7 @@ export class AutomanageClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -119,9 +134,9 @@ export class AutomanageClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -134,21 +149,18 @@ export class AutomanageClient extends coreClient.ServiceClient { this.bestPracticesVersions = new BestPracticesVersionsImpl(this); this.configurationProfiles = new ConfigurationProfilesImpl(this); this.configurationProfilesVersions = new ConfigurationProfilesVersionsImpl( - this - ); - this.configurationProfileAssignments = new ConfigurationProfileAssignmentsImpl( - this + this, ); + this.configurationProfileAssignments = + new ConfigurationProfileAssignmentsImpl(this); this.operations = new OperationsImpl(this); this.reports = new ReportsImpl(this); this.servicePrincipals = new ServicePrincipalsImpl(this); - this.configurationProfileHcrpAssignments = new ConfigurationProfileHcrpAssignmentsImpl( - this - ); + this.configurationProfileHcrpAssignments = + new ConfigurationProfileHcrpAssignmentsImpl(this); this.hcrpReports = new HcrpReportsImpl(this); - this.configurationProfileHCIAssignments = new ConfigurationProfileHCIAssignmentsImpl( - this - ); + this.configurationProfileHCIAssignments = + new ConfigurationProfileHCIAssignmentsImpl(this); this.hCIReports = new HCIReportsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -162,7 +174,7 @@ export class AutomanageClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -176,7 +188,7 @@ export class AutomanageClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/automanage/arm-automanage/src/models/index.ts b/sdk/automanage/arm-automanage/src/models/index.ts index 6cb29ff853d4..d64ba2cc468e 100644 --- a/sdk/automanage/arm-automanage/src/models/index.ts +++ b/sdk/automanage/arm-automanage/src/models/index.ts @@ -25,13 +25,13 @@ export interface BestPractice { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; + /** Properties of the best practice. */ + properties?: ConfigurationProfileProperties; /** * 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; - /** configuration dictionary of the configuration profile. */ - configuration?: Record; } /** Automanage configuration profile properties. */ @@ -228,6 +228,54 @@ export interface OperationDisplay { readonly description?: string; } +/** Data related to the report detail. */ +export interface AssignmentReportProperties { + /** Start time of the configuration profile assignment processing. */ + startTime?: string; + /** End time of the configuration profile assignment processing. */ + endTime?: string; + /** + * Last modified time of the configuration profile assignment processing. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModifiedTime?: string; + /** + * Duration of the configuration profile assignment processing. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly duration?: string; + /** + * Type of the configuration profile assignment processing (Initial/Consistency). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The status of the configuration profile assignment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; + /** + * The configurationProfile linked to the assignment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationProfile?: string; + /** + * List of resources processed by the configuration profile assignment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resources?: ReportResource[]; + /** + * Error message, if any, returned by the configuration profile assignment processing. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly error?: ErrorDetail; + /** + * Version of the report format + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reportFormatVersion?: string; +} + /** Details about the resource processed by the configuration profile assignment */ export interface ReportResource { /** @@ -269,6 +317,20 @@ export interface ServicePrincipalListResult { value?: ServicePrincipal[]; } +/** The Service Principal properties for the subscription. */ +export interface ServicePrincipalProperties { + /** + * The Service Principal Id for the subscription. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly servicePrincipalId?: string; + /** + * Returns the contributor RBAC Role exist or not for the Service Principal Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly authorizationSet?: boolean; +} + /** 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. */ @@ -315,74 +377,24 @@ export interface ConfigurationProfileAssignment extends ProxyResource { /** Definition of the report. */ export interface Report extends ProxyResource { + /** The properties for the report. */ + properties?: AssignmentReportProperties; /** * 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; - /** Start time of the configuration profile assignment processing. */ - startTime?: string; - /** End time of the configuration profile assignment processing. */ - endTime?: string; - /** - * Last modified time of the configuration profile assignment processing. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModifiedTime?: string; - /** - * Duration of the configuration profile assignment processing. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly duration?: string; - /** - * Type of the configuration profile assignment processing (Initial/Consistency). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly typePropertiesType?: string; - /** - * The status of the configuration profile assignment. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; - /** - * The configurationProfile linked to the assignment. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly configurationProfile?: string; - /** - * List of resources processed by the configuration profile assignment. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resources?: ReportResource[]; - /** - * Error message, if any, returned by the configuration profile assignment processing. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly error?: ErrorDetail; - /** - * Version of the report format - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reportFormatVersion?: string; } /** The Service Principal Id for the subscription. */ export interface ServicePrincipal extends ProxyResource { + /** The Service Principal properties for the subscription */ + properties?: ServicePrincipalProperties; /** * 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; - /** - * The Service Principal Id for the subscription. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly servicePrincipalId?: string; - /** - * Returns the contributor RBAC Role exist or not for the Service Principal Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly authorizationSet?: boolean; } /** Known values of {@link CreatedByType} that the service accepts. */ @@ -394,7 +406,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -416,7 +428,7 @@ export enum KnownOrigin { /** System */ System = "system", /** UserSystem */ - UserSystem = "user,system" + UserSystem = "user,system", } /** @@ -433,7 +445,7 @@ export type Origin = string; /** Known values of {@link ActionType} that the service accepts. */ export enum KnownActionType { /** Internal */ - Internal = "Internal" + Internal = "Internal", } /** @@ -503,21 +515,24 @@ export interface ConfigurationProfilesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type ConfigurationProfilesListByResourceGroupResponse = ConfigurationProfileList; +export type ConfigurationProfilesListByResourceGroupResponse = + ConfigurationProfileList; /** Optional parameters. */ export interface ConfigurationProfilesListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type ConfigurationProfilesListBySubscriptionResponse = ConfigurationProfileList; +export type ConfigurationProfilesListBySubscriptionResponse = + ConfigurationProfileList; /** Optional parameters. */ export interface ConfigurationProfilesVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ConfigurationProfilesVersionsCreateOrUpdateResponse = ConfigurationProfile; +export type ConfigurationProfilesVersionsCreateOrUpdateResponse = + ConfigurationProfile; /** Optional parameters. */ export interface ConfigurationProfilesVersionsGetOptionalParams @@ -535,21 +550,24 @@ export interface ConfigurationProfilesVersionsListChildResourcesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listChildResources operation. */ -export type ConfigurationProfilesVersionsListChildResourcesResponse = ConfigurationProfileList; +export type ConfigurationProfilesVersionsListChildResourcesResponse = + ConfigurationProfileList; /** Optional parameters. */ export interface ConfigurationProfileAssignmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ConfigurationProfileAssignmentsCreateOrUpdateResponse = ConfigurationProfileAssignment; +export type ConfigurationProfileAssignmentsCreateOrUpdateResponse = + ConfigurationProfileAssignment; /** Optional parameters. */ export interface ConfigurationProfileAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ConfigurationProfileAssignmentsGetResponse = ConfigurationProfileAssignment; +export type ConfigurationProfileAssignmentsGetResponse = + ConfigurationProfileAssignment; /** Optional parameters. */ export interface ConfigurationProfileAssignmentsDeleteOptionalParams @@ -560,35 +578,40 @@ export interface ConfigurationProfileAssignmentsListByVirtualMachinesOptionalPar extends coreClient.OperationOptions {} /** Contains response data for the listByVirtualMachines operation. */ -export type ConfigurationProfileAssignmentsListByVirtualMachinesResponse = ConfigurationProfileAssignmentList; +export type ConfigurationProfileAssignmentsListByVirtualMachinesResponse = + ConfigurationProfileAssignmentList; /** Optional parameters. */ export interface ConfigurationProfileAssignmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ConfigurationProfileAssignmentsListResponse = ConfigurationProfileAssignmentList; +export type ConfigurationProfileAssignmentsListResponse = + ConfigurationProfileAssignmentList; /** Optional parameters. */ export interface ConfigurationProfileAssignmentsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type ConfigurationProfileAssignmentsListBySubscriptionResponse = ConfigurationProfileAssignmentList; +export type ConfigurationProfileAssignmentsListBySubscriptionResponse = + ConfigurationProfileAssignmentList; /** Optional parameters. */ export interface ConfigurationProfileAssignmentsListByMachineNameOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByMachineName operation. */ -export type ConfigurationProfileAssignmentsListByMachineNameResponse = ConfigurationProfileAssignmentList; +export type ConfigurationProfileAssignmentsListByMachineNameResponse = + ConfigurationProfileAssignmentList; /** Optional parameters. */ export interface ConfigurationProfileAssignmentsListByClusterNameOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByClusterName operation. */ -export type ConfigurationProfileAssignmentsListByClusterNameResponse = ConfigurationProfileAssignmentList; +export type ConfigurationProfileAssignmentsListByClusterNameResponse = + ConfigurationProfileAssignmentList; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -615,7 +638,8 @@ export interface ServicePrincipalsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type ServicePrincipalsListBySubscriptionResponse = ServicePrincipalListResult; +export type ServicePrincipalsListBySubscriptionResponse = + ServicePrincipalListResult; /** Optional parameters. */ export interface ServicePrincipalsGetOptionalParams @@ -629,14 +653,16 @@ export interface ConfigurationProfileHcrpAssignmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ConfigurationProfileHcrpAssignmentsCreateOrUpdateResponse = ConfigurationProfileAssignment; +export type ConfigurationProfileHcrpAssignmentsCreateOrUpdateResponse = + ConfigurationProfileAssignment; /** Optional parameters. */ export interface ConfigurationProfileHcrpAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ConfigurationProfileHcrpAssignmentsGetResponse = ConfigurationProfileAssignment; +export type ConfigurationProfileHcrpAssignmentsGetResponse = + ConfigurationProfileAssignment; /** Optional parameters. */ export interface ConfigurationProfileHcrpAssignmentsDeleteOptionalParams @@ -654,21 +680,24 @@ export interface HcrpReportsListByConfigurationProfileAssignmentsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByConfigurationProfileAssignments operation. */ -export type HcrpReportsListByConfigurationProfileAssignmentsResponse = ReportList; +export type HcrpReportsListByConfigurationProfileAssignmentsResponse = + ReportList; /** Optional parameters. */ export interface ConfigurationProfileHCIAssignmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ConfigurationProfileHCIAssignmentsCreateOrUpdateResponse = ConfigurationProfileAssignment; +export type ConfigurationProfileHCIAssignmentsCreateOrUpdateResponse = + ConfigurationProfileAssignment; /** Optional parameters. */ export interface ConfigurationProfileHCIAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ConfigurationProfileHCIAssignmentsGetResponse = ConfigurationProfileAssignment; +export type ConfigurationProfileHCIAssignmentsGetResponse = + ConfigurationProfileAssignment; /** Optional parameters. */ export interface ConfigurationProfileHCIAssignmentsDeleteOptionalParams @@ -686,7 +715,8 @@ export interface HCIReportsListByConfigurationProfileAssignmentsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByConfigurationProfileAssignments operation. */ -export type HCIReportsListByConfigurationProfileAssignmentsResponse = ReportList; +export type HCIReportsListByConfigurationProfileAssignmentsResponse = + ReportList; /** Optional parameters. */ export interface AutomanageClientOptionalParams diff --git a/sdk/automanage/arm-automanage/src/models/mappers.ts b/sdk/automanage/arm-automanage/src/models/mappers.ts index be91a8fbf0ed..cf55c52f6572 100644 --- a/sdk/automanage/arm-automanage/src/models/mappers.ts +++ b/sdk/automanage/arm-automanage/src/models/mappers.ts @@ -17,39 +17,39 @@ export const BestPractice: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ConfigurationProfileProperties", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, - configuration: { - serializedName: "properties.configuration", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + }, + }, }; export const ConfigurationProfileProperties: coreClient.CompositeMapper = { @@ -61,11 +61,11 @@ export const ConfigurationProfileProperties: coreClient.CompositeMapper = { serializedName: "configuration", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -76,41 +76,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -122,11 +122,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -138,22 +138,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -163,10 +163,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -176,13 +176,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -194,19 +194,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const BestPracticeList: coreClient.CompositeMapper = { @@ -221,13 +221,13 @@ export const BestPracticeList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BestPractice" - } - } - } - } - } - } + className: "BestPractice", + }, + }, + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -239,25 +239,25 @@ export const Resource: coreClient.CompositeMapper = { 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", + }, + }, + }, + }, }; export const UpdateResource: coreClient.CompositeMapper = { @@ -269,11 +269,11 @@ export const UpdateResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ConfigurationProfileList: coreClient.CompositeMapper = { @@ -288,44 +288,45 @@ export const ConfigurationProfileList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConfigurationProfile" - } - } - } - } - } - } -}; - -export const ConfigurationProfileAssignmentProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConfigurationProfileAssignmentProperties", - modelProperties: { - configurationProfile: { - serializedName: "configurationProfile", - type: { - name: "String" - } - }, - targetId: { - serializedName: "targetId", - readOnly: true, - type: { - name: "String" - } + className: "ConfigurationProfile", + }, + }, + }, }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; +export const ConfigurationProfileAssignmentProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ConfigurationProfileAssignmentProperties", + modelProperties: { + configurationProfile: { + serializedName: "configurationProfile", + type: { + name: "String", + }, + }, + targetId: { + serializedName: "targetId", + readOnly: true, + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + export const ConfigurationProfileAssignmentList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -338,13 +339,13 @@ export const ConfigurationProfileAssignmentList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConfigurationProfileAssignment" - } - } - } - } - } - } + className: "ConfigurationProfileAssignment", + }, + }, + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -360,20 +361,20 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -385,39 +386,39 @@ export const Operation: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, actionType: { serializedName: "actionType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -429,32 +430,115 @@ export const OperationDisplay: coreClient.CompositeMapper = { serializedName: "provider", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const AssignmentReportProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssignmentReportProperties", + modelProperties: { + startTime: { + serializedName: "startTime", + type: { + name: "String", + }, + }, + endTime: { + serializedName: "endTime", + type: { + name: "String", + }, + }, + lastModifiedTime: { + serializedName: "lastModifiedTime", + readOnly: true, + type: { + name: "String", + }, + }, + duration: { + serializedName: "duration", + readOnly: true, + type: { + name: "TimeSpan", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String", + }, + }, + configurationProfile: { + serializedName: "configurationProfile", + readOnly: true, + type: { + name: "String", + }, + }, + resources: { + serializedName: "resources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReportResource", + }, + }, + }, + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + reportFormatVersion: { + serializedName: "reportFormatVersion", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, }; export const ReportResource: coreClient.CompositeMapper = { @@ -466,39 +550,39 @@ export const ReportResource: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ReportList: coreClient.CompositeMapper = { @@ -513,13 +597,13 @@ export const ReportList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Report" - } - } - } - } - } - } + className: "Report", + }, + }, + }, + }, + }, + }, }; export const ServicePrincipalListResult: coreClient.CompositeMapper = { @@ -534,13 +618,36 @@ export const ServicePrincipalListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ServicePrincipal" - } - } - } - } - } - } + className: "ServicePrincipal", + }, + }, + }, + }, + }, + }, +}; + +export const ServicePrincipalProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServicePrincipalProperties", + modelProperties: { + servicePrincipalId: { + serializedName: "servicePrincipalId", + readOnly: true, + type: { + name: "String", + }, + }, + authorizationSet: { + serializedName: "authorizationSet", + readOnly: true, + type: { + name: "Boolean", + }, + }, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -553,18 +660,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -572,9 +679,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const ConfigurationProfileUpdate: coreClient.CompositeMapper = { @@ -587,11 +694,11 @@ export const ConfigurationProfileUpdate: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ConfigurationProfileProperties" - } - } - } - } + className: "ConfigurationProfileProperties", + }, + }, + }, + }, }; export const ConfigurationProfile: coreClient.CompositeMapper = { @@ -604,18 +711,18 @@ export const ConfigurationProfile: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ConfigurationProfileProperties" - } + className: "ConfigurationProfileProperties", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const ConfigurationProfileAssignment: coreClient.CompositeMapper = { @@ -628,25 +735,25 @@ export const ConfigurationProfileAssignment: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "ConfigurationProfileAssignmentProperties" - } + className: "ConfigurationProfileAssignmentProperties", + }, }, managedBy: { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const Report: coreClient.CompositeMapper = { @@ -655,89 +762,22 @@ export const Report: coreClient.CompositeMapper = { className: "Report", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "SystemData" - } - }, - startTime: { - serializedName: "properties.startTime", - type: { - name: "String" - } - }, - endTime: { - serializedName: "properties.endTime", - type: { - name: "String" - } + className: "AssignmentReportProperties", + }, }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, - type: { - name: "String" - } - }, - duration: { - serializedName: "properties.duration", - readOnly: true, - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - readOnly: true, - type: { - name: "String" - } - }, - configurationProfile: { - serializedName: "properties.configurationProfile", - readOnly: true, - type: { - name: "String" - } - }, - resources: { - serializedName: "properties.resources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReportResource" - } - } - } - }, - error: { - serializedName: "properties.error", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "ErrorDetail" - } + className: "SystemData", + }, }, - reportFormatVersion: { - serializedName: "properties.reportFormatVersion", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const ServicePrincipal: coreClient.CompositeMapper = { @@ -746,27 +786,20 @@ export const ServicePrincipal: coreClient.CompositeMapper = { className: "ServicePrincipal", modelProperties: { ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "SystemData" - } + className: "ServicePrincipalProperties", + }, }, - servicePrincipalId: { - serializedName: "properties.servicePrincipalId", - readOnly: true, + systemData: { + serializedName: "systemData", type: { - name: "String" - } + name: "Composite", + className: "SystemData", + }, }, - authorizationSet: { - serializedName: "properties.authorizationSet", - readOnly: true, - type: { - name: "Boolean" - } - } - } - } + }, + }, }; diff --git a/sdk/automanage/arm-automanage/src/models/parameters.ts b/sdk/automanage/arm-automanage/src/models/parameters.ts index a6cbe11d13ff..318cb59ba551 100644 --- a/sdk/automanage/arm-automanage/src/models/parameters.ts +++ b/sdk/automanage/arm-automanage/src/models/parameters.ts @@ -9,12 +9,12 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ConfigurationProfile as ConfigurationProfileMapper, ConfigurationProfileUpdate as ConfigurationProfileUpdateMapper, - ConfigurationProfileAssignment as ConfigurationProfileAssignmentMapper + ConfigurationProfileAssignment as ConfigurationProfileAssignmentMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -24,9 +24,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -35,10 +35,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const bestPracticeName: OperationURLParameter = { @@ -47,9 +47,9 @@ export const bestPracticeName: OperationURLParameter = { serializedName: "bestPracticeName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { @@ -59,9 +59,9 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const versionName: OperationURLParameter = { @@ -70,9 +70,9 @@ export const versionName: OperationURLParameter = { serializedName: "versionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -82,14 +82,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: ConfigurationProfileMapper + mapper: ConfigurationProfileMapper, }; export const configurationProfileName: OperationURLParameter = { @@ -98,23 +98,23 @@ export const configurationProfileName: OperationURLParameter = { serializedName: "configurationProfileName", required: true, 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 = { @@ -122,24 +122,24 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: ConfigurationProfileUpdateMapper + mapper: ConfigurationProfileUpdateMapper, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: ConfigurationProfileAssignmentMapper + mapper: ConfigurationProfileAssignmentMapper, }; export const configurationProfileAssignmentName: OperationURLParameter = { @@ -148,9 +148,9 @@ export const configurationProfileAssignmentName: OperationURLParameter = { serializedName: "configurationProfileAssignmentName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmName: OperationURLParameter = { @@ -159,9 +159,9 @@ export const vmName: OperationURLParameter = { serializedName: "vmName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const machineName: OperationURLParameter = { @@ -170,9 +170,9 @@ export const machineName: OperationURLParameter = { serializedName: "machineName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const clusterName: OperationURLParameter = { @@ -181,9 +181,9 @@ export const clusterName: OperationURLParameter = { serializedName: "clusterName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const reportName: OperationURLParameter = { @@ -192,7 +192,7 @@ export const reportName: OperationURLParameter = { serializedName: "reportName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/automanage/arm-automanage/src/operations/bestPractices.ts b/sdk/automanage/arm-automanage/src/operations/bestPractices.ts index 124195d8e5e0..fa826fbcf7e0 100644 --- a/sdk/automanage/arm-automanage/src/operations/bestPractices.ts +++ b/sdk/automanage/arm-automanage/src/operations/bestPractices.ts @@ -17,7 +17,7 @@ import { BestPracticesListByTenantOptionalParams, BestPracticesListByTenantResponse, BestPracticesGetOptionalParams, - BestPracticesGetResponse + BestPracticesGetResponse, } from "../models"; /// @@ -38,7 +38,7 @@ export class BestPracticesImpl implements BestPractices { * @param options The options parameters. */ public listByTenant( - options?: BestPracticesListByTenantOptionalParams + options?: BestPracticesListByTenantOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTenantPagingAll(options); return { @@ -53,13 +53,13 @@ export class BestPracticesImpl implements BestPractices { throw new Error("maxPageSize is not supported by this operation."); } return this.listByTenantPagingPage(options, settings); - } + }, }; } private async *listByTenantPagingPage( options?: BestPracticesListByTenantOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: BestPracticesListByTenantResponse; result = await this._listByTenant(options); @@ -67,7 +67,7 @@ export class BestPracticesImpl implements BestPractices { } private async *listByTenantPagingAll( - options?: BestPracticesListByTenantOptionalParams + options?: BestPracticesListByTenantOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTenantPagingPage(options)) { yield* page; @@ -81,11 +81,11 @@ export class BestPracticesImpl implements BestPractices { */ get( bestPracticeName: string, - options?: BestPracticesGetOptionalParams + options?: BestPracticesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { bestPracticeName, options }, - getOperationSpec + getOperationSpec, ); } @@ -94,11 +94,11 @@ export class BestPracticesImpl implements BestPractices { * @param options The options parameters. */ private _listByTenant( - options?: BestPracticesListByTenantOptionalParams + options?: BestPracticesListByTenantOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listByTenantOperationSpec + listByTenantOperationSpec, ); } } @@ -110,30 +110,30 @@ const getOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BestPractice + bodyMapper: Mappers.BestPractice, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.bestPracticeName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTenantOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Automanage/bestPractices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BestPracticeList + bodyMapper: Mappers.BestPracticeList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automanage/arm-automanage/src/operations/bestPracticesVersions.ts b/sdk/automanage/arm-automanage/src/operations/bestPracticesVersions.ts index 4a6f9d216dc8..fd94715e6b5f 100644 --- a/sdk/automanage/arm-automanage/src/operations/bestPracticesVersions.ts +++ b/sdk/automanage/arm-automanage/src/operations/bestPracticesVersions.ts @@ -17,7 +17,7 @@ import { BestPracticesVersionsListByTenantOptionalParams, BestPracticesVersionsListByTenantResponse, BestPracticesVersionsGetOptionalParams, - BestPracticesVersionsGetResponse + BestPracticesVersionsGetResponse, } from "../models"; /// @@ -40,7 +40,7 @@ export class BestPracticesVersionsImpl implements BestPracticesVersions { */ public listByTenant( bestPracticeName: string, - options?: BestPracticesVersionsListByTenantOptionalParams + options?: BestPracticesVersionsListByTenantOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTenantPagingAll(bestPracticeName, options); return { @@ -55,14 +55,14 @@ export class BestPracticesVersionsImpl implements BestPracticesVersions { throw new Error("maxPageSize is not supported by this operation."); } return this.listByTenantPagingPage(bestPracticeName, options, settings); - } + }, }; } private async *listByTenantPagingPage( bestPracticeName: string, options?: BestPracticesVersionsListByTenantOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: BestPracticesVersionsListByTenantResponse; result = await this._listByTenant(bestPracticeName, options); @@ -71,11 +71,11 @@ export class BestPracticesVersionsImpl implements BestPracticesVersions { private async *listByTenantPagingAll( bestPracticeName: string, - options?: BestPracticesVersionsListByTenantOptionalParams + options?: BestPracticesVersionsListByTenantOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTenantPagingPage( bestPracticeName, - options + options, )) { yield* page; } @@ -90,11 +90,11 @@ export class BestPracticesVersionsImpl implements BestPracticesVersions { get( bestPracticeName: string, versionName: string, - options?: BestPracticesVersionsGetOptionalParams + options?: BestPracticesVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { bestPracticeName, versionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -105,11 +105,11 @@ export class BestPracticesVersionsImpl implements BestPracticesVersions { */ private _listByTenant( bestPracticeName: string, - options?: BestPracticesVersionsListByTenantOptionalParams + options?: BestPracticesVersionsListByTenantOptionalParams, ): Promise { return this.client.sendOperationRequest( { bestPracticeName, options }, - listByTenantOperationSpec + listByTenantOperationSpec, ); } } @@ -117,40 +117,38 @@ export class BestPracticesVersionsImpl implements BestPracticesVersions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}/versions/{versionName}", + path: "/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}/versions/{versionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BestPractice + bodyMapper: Mappers.BestPractice, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.bestPracticeName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTenantOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}/versions", + path: "/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BestPracticeList + bodyMapper: Mappers.BestPracticeList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.bestPracticeName], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automanage/arm-automanage/src/operations/configurationProfileAssignments.ts b/sdk/automanage/arm-automanage/src/operations/configurationProfileAssignments.ts index 94c3c52c1c68..ca1df7c59e87 100644 --- a/sdk/automanage/arm-automanage/src/operations/configurationProfileAssignments.ts +++ b/sdk/automanage/arm-automanage/src/operations/configurationProfileAssignments.ts @@ -28,13 +28,14 @@ import { ConfigurationProfileAssignmentsCreateOrUpdateResponse, ConfigurationProfileAssignmentsGetOptionalParams, ConfigurationProfileAssignmentsGetResponse, - ConfigurationProfileAssignmentsDeleteOptionalParams + ConfigurationProfileAssignmentsDeleteOptionalParams, } from "../models"; /// /** Class containing ConfigurationProfileAssignments operations. */ export class ConfigurationProfileAssignmentsImpl - implements ConfigurationProfileAssignments { + implements ConfigurationProfileAssignments +{ private readonly client: AutomanageClient; /** @@ -54,12 +55,12 @@ export class ConfigurationProfileAssignmentsImpl public listByVirtualMachines( resourceGroupName: string, vmName: string, - options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams + options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVirtualMachinesPagingAll( resourceGroupName, vmName, - options + options, ); return { next() { @@ -76,9 +77,9 @@ export class ConfigurationProfileAssignmentsImpl resourceGroupName, vmName, options, - settings + settings, ); - } + }, }; } @@ -86,13 +87,13 @@ export class ConfigurationProfileAssignmentsImpl resourceGroupName: string, vmName: string, options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationProfileAssignmentsListByVirtualMachinesResponse; result = await this._listByVirtualMachines( resourceGroupName, vmName, - options + options, ); yield result.value || []; } @@ -100,12 +101,12 @@ export class ConfigurationProfileAssignmentsImpl private async *listByVirtualMachinesPagingAll( resourceGroupName: string, vmName: string, - options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams + options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVirtualMachinesPagingPage( resourceGroupName, vmName, - options + options, )) { yield* page; } @@ -118,7 +119,7 @@ export class ConfigurationProfileAssignmentsImpl */ public list( resourceGroupName: string, - options?: ConfigurationProfileAssignmentsListOptionalParams + options?: ConfigurationProfileAssignmentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -133,14 +134,14 @@ export class ConfigurationProfileAssignmentsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: ConfigurationProfileAssignmentsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationProfileAssignmentsListResponse; result = await this._list(resourceGroupName, options); @@ -149,7 +150,7 @@ export class ConfigurationProfileAssignmentsImpl private async *listPagingAll( resourceGroupName: string, - options?: ConfigurationProfileAssignmentsListOptionalParams + options?: ConfigurationProfileAssignmentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -161,7 +162,7 @@ export class ConfigurationProfileAssignmentsImpl * @param options The options parameters. */ public listBySubscription( - options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams + options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -176,13 +177,13 @@ export class ConfigurationProfileAssignmentsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationProfileAssignmentsListBySubscriptionResponse; result = await this._listBySubscription(options); @@ -190,7 +191,7 @@ export class ConfigurationProfileAssignmentsImpl } private async *listBySubscriptionPagingAll( - options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams + options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -206,12 +207,12 @@ export class ConfigurationProfileAssignmentsImpl public listByMachineName( resourceGroupName: string, machineName: string, - options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams + options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByMachineNamePagingAll( resourceGroupName, machineName, - options + options, ); return { next() { @@ -228,9 +229,9 @@ export class ConfigurationProfileAssignmentsImpl resourceGroupName, machineName, options, - settings + settings, ); - } + }, }; } @@ -238,13 +239,13 @@ export class ConfigurationProfileAssignmentsImpl resourceGroupName: string, machineName: string, options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationProfileAssignmentsListByMachineNameResponse; result = await this._listByMachineName( resourceGroupName, machineName, - options + options, ); yield result.value || []; } @@ -252,12 +253,12 @@ export class ConfigurationProfileAssignmentsImpl private async *listByMachineNamePagingAll( resourceGroupName: string, machineName: string, - options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams + options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByMachineNamePagingPage( resourceGroupName, machineName, - options + options, )) { yield* page; } @@ -272,12 +273,12 @@ export class ConfigurationProfileAssignmentsImpl public listByClusterName( resourceGroupName: string, clusterName: string, - options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams + options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByClusterNamePagingAll( resourceGroupName, clusterName, - options + options, ); return { next() { @@ -294,9 +295,9 @@ export class ConfigurationProfileAssignmentsImpl resourceGroupName, clusterName, options, - settings + settings, ); - } + }, }; } @@ -304,13 +305,13 @@ export class ConfigurationProfileAssignmentsImpl resourceGroupName: string, clusterName: string, options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationProfileAssignmentsListByClusterNameResponse; result = await this._listByClusterName( resourceGroupName, clusterName, - options + options, ); yield result.value || []; } @@ -318,12 +319,12 @@ export class ConfigurationProfileAssignmentsImpl private async *listByClusterNamePagingAll( resourceGroupName: string, clusterName: string, - options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams + options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByClusterNamePagingPage( resourceGroupName, clusterName, - options + options, )) { yield* page; } @@ -343,7 +344,7 @@ export class ConfigurationProfileAssignmentsImpl resourceGroupName: string, vmName: string, parameters: ConfigurationProfileAssignment, - options?: ConfigurationProfileAssignmentsCreateOrUpdateOptionalParams + options?: ConfigurationProfileAssignmentsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -351,9 +352,9 @@ export class ConfigurationProfileAssignmentsImpl resourceGroupName, vmName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -368,16 +369,16 @@ export class ConfigurationProfileAssignmentsImpl resourceGroupName: string, configurationProfileAssignmentName: string, vmName: string, - options?: ConfigurationProfileAssignmentsGetOptionalParams + options?: ConfigurationProfileAssignmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configurationProfileAssignmentName, vmName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -392,16 +393,16 @@ export class ConfigurationProfileAssignmentsImpl resourceGroupName: string, configurationProfileAssignmentName: string, vmName: string, - options?: ConfigurationProfileAssignmentsDeleteOptionalParams + options?: ConfigurationProfileAssignmentsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configurationProfileAssignmentName, vmName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -414,11 +415,11 @@ export class ConfigurationProfileAssignmentsImpl private _listByVirtualMachines( resourceGroupName: string, vmName: string, - options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams + options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - listByVirtualMachinesOperationSpec + listByVirtualMachinesOperationSpec, ); } @@ -429,11 +430,11 @@ export class ConfigurationProfileAssignmentsImpl */ private _list( resourceGroupName: string, - options?: ConfigurationProfileAssignmentsListOptionalParams + options?: ConfigurationProfileAssignmentsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -442,11 +443,11 @@ export class ConfigurationProfileAssignmentsImpl * @param options The options parameters. */ private _listBySubscription( - options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams + options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -459,11 +460,11 @@ export class ConfigurationProfileAssignmentsImpl private _listByMachineName( resourceGroupName: string, machineName: string, - options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams + options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, machineName, options }, - listByMachineNameOperationSpec + listByMachineNameOperationSpec, ); } @@ -476,11 +477,11 @@ export class ConfigurationProfileAssignmentsImpl private _listByClusterName( resourceGroupName: string, clusterName: string, - options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams + options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, options }, - listByClusterNameOperationSpec + listByClusterNameOperationSpec, ); } } @@ -488,19 +489,18 @@ export class ConfigurationProfileAssignmentsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignment + bodyMapper: Mappers.ConfigurationProfileAssignment, }, 201: { - bodyMapper: Mappers.ConfigurationProfileAssignment + bodyMapper: Mappers.ConfigurationProfileAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -509,23 +509,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignment + bodyMapper: Mappers.ConfigurationProfileAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -533,21 +532,20 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -555,112 +553,107 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByVirtualMachinesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignmentList + bodyMapper: Mappers.ConfigurationProfileAssignmentList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfileAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfileAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignmentList + bodyMapper: Mappers.ConfigurationProfileAssignmentList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/configurationProfileAssignments", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/configurationProfileAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignmentList + bodyMapper: Mappers.ConfigurationProfileAssignmentList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByMachineNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignmentList + bodyMapper: Mappers.ConfigurationProfileAssignmentList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.machineName + Parameters.machineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByClusterNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignmentList + bodyMapper: Mappers.ConfigurationProfileAssignmentList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automanage/arm-automanage/src/operations/configurationProfileHCIAssignments.ts b/sdk/automanage/arm-automanage/src/operations/configurationProfileHCIAssignments.ts index d78294f0ae66..076b889bb691 100644 --- a/sdk/automanage/arm-automanage/src/operations/configurationProfileHCIAssignments.ts +++ b/sdk/automanage/arm-automanage/src/operations/configurationProfileHCIAssignments.ts @@ -17,12 +17,13 @@ import { ConfigurationProfileHCIAssignmentsCreateOrUpdateResponse, ConfigurationProfileHCIAssignmentsGetOptionalParams, ConfigurationProfileHCIAssignmentsGetResponse, - ConfigurationProfileHCIAssignmentsDeleteOptionalParams + ConfigurationProfileHCIAssignmentsDeleteOptionalParams, } from "../models"; /** Class containing ConfigurationProfileHCIAssignments operations. */ export class ConfigurationProfileHCIAssignmentsImpl - implements ConfigurationProfileHCIAssignments { + implements ConfigurationProfileHCIAssignments +{ private readonly client: AutomanageClient; /** @@ -47,7 +48,7 @@ export class ConfigurationProfileHCIAssignmentsImpl clusterName: string, configurationProfileAssignmentName: string, parameters: ConfigurationProfileAssignment, - options?: ConfigurationProfileHCIAssignmentsCreateOrUpdateOptionalParams + options?: ConfigurationProfileHCIAssignmentsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -55,9 +56,9 @@ export class ConfigurationProfileHCIAssignmentsImpl clusterName, configurationProfileAssignmentName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -72,16 +73,16 @@ export class ConfigurationProfileHCIAssignmentsImpl resourceGroupName: string, clusterName: string, configurationProfileAssignmentName: string, - options?: ConfigurationProfileHCIAssignmentsGetOptionalParams + options?: ConfigurationProfileHCIAssignmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, configurationProfileAssignmentName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -96,16 +97,16 @@ export class ConfigurationProfileHCIAssignmentsImpl resourceGroupName: string, clusterName: string, configurationProfileAssignmentName: string, - options?: ConfigurationProfileHCIAssignmentsDeleteOptionalParams + options?: ConfigurationProfileHCIAssignmentsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, configurationProfileAssignmentName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -113,19 +114,18 @@ export class ConfigurationProfileHCIAssignmentsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignment + bodyMapper: Mappers.ConfigurationProfileAssignment, }, 201: { - bodyMapper: Mappers.ConfigurationProfileAssignment + bodyMapper: Mappers.ConfigurationProfileAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -134,23 +134,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignment + bodyMapper: Mappers.ConfigurationProfileAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -158,21 +157,20 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -180,8 +178,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, - Parameters.clusterName + Parameters.clusterName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automanage/arm-automanage/src/operations/configurationProfileHcrpAssignments.ts b/sdk/automanage/arm-automanage/src/operations/configurationProfileHcrpAssignments.ts index 4b7873faee9b..503ae821b42b 100644 --- a/sdk/automanage/arm-automanage/src/operations/configurationProfileHcrpAssignments.ts +++ b/sdk/automanage/arm-automanage/src/operations/configurationProfileHcrpAssignments.ts @@ -17,12 +17,13 @@ import { ConfigurationProfileHcrpAssignmentsCreateOrUpdateResponse, ConfigurationProfileHcrpAssignmentsGetOptionalParams, ConfigurationProfileHcrpAssignmentsGetResponse, - ConfigurationProfileHcrpAssignmentsDeleteOptionalParams + ConfigurationProfileHcrpAssignmentsDeleteOptionalParams, } from "../models"; /** Class containing ConfigurationProfileHcrpAssignments operations. */ export class ConfigurationProfileHcrpAssignmentsImpl - implements ConfigurationProfileHcrpAssignments { + implements ConfigurationProfileHcrpAssignments +{ private readonly client: AutomanageClient; /** @@ -47,7 +48,7 @@ export class ConfigurationProfileHcrpAssignmentsImpl machineName: string, configurationProfileAssignmentName: string, parameters: ConfigurationProfileAssignment, - options?: ConfigurationProfileHcrpAssignmentsCreateOrUpdateOptionalParams + options?: ConfigurationProfileHcrpAssignmentsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -55,9 +56,9 @@ export class ConfigurationProfileHcrpAssignmentsImpl machineName, configurationProfileAssignmentName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -72,16 +73,16 @@ export class ConfigurationProfileHcrpAssignmentsImpl resourceGroupName: string, machineName: string, configurationProfileAssignmentName: string, - options?: ConfigurationProfileHcrpAssignmentsGetOptionalParams + options?: ConfigurationProfileHcrpAssignmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, machineName, configurationProfileAssignmentName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -96,16 +97,16 @@ export class ConfigurationProfileHcrpAssignmentsImpl resourceGroupName: string, machineName: string, configurationProfileAssignmentName: string, - options?: ConfigurationProfileHcrpAssignmentsDeleteOptionalParams + options?: ConfigurationProfileHcrpAssignmentsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, machineName, configurationProfileAssignmentName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -113,19 +114,18 @@ export class ConfigurationProfileHcrpAssignmentsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignment + bodyMapper: Mappers.ConfigurationProfileAssignment, }, 201: { - bodyMapper: Mappers.ConfigurationProfileAssignment + bodyMapper: Mappers.ConfigurationProfileAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -134,23 +134,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, - Parameters.machineName + Parameters.machineName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileAssignment + bodyMapper: Mappers.ConfigurationProfileAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -158,21 +157,20 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, - Parameters.machineName + Parameters.machineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -180,8 +178,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, - Parameters.machineName + Parameters.machineName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automanage/arm-automanage/src/operations/configurationProfiles.ts b/sdk/automanage/arm-automanage/src/operations/configurationProfiles.ts index 91565c047699..ebdbfb55dab4 100644 --- a/sdk/automanage/arm-automanage/src/operations/configurationProfiles.ts +++ b/sdk/automanage/arm-automanage/src/operations/configurationProfiles.ts @@ -25,7 +25,7 @@ import { ConfigurationProfilesDeleteOptionalParams, ConfigurationProfileUpdate, ConfigurationProfilesUpdateOptionalParams, - ConfigurationProfilesUpdateResponse + ConfigurationProfilesUpdateResponse, } from "../models"; /// @@ -48,7 +48,7 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { */ public listByResourceGroup( resourceGroupName: string, - options?: ConfigurationProfilesListByResourceGroupOptionalParams + options?: ConfigurationProfilesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -65,16 +65,16 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ConfigurationProfilesListByResourceGroupOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationProfilesListByResourceGroupResponse; result = await this._listByResourceGroup(resourceGroupName, options); @@ -83,11 +83,11 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ConfigurationProfilesListByResourceGroupOptionalParams + options?: ConfigurationProfilesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -98,7 +98,7 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { * @param options The options parameters. */ public listBySubscription( - options?: ConfigurationProfilesListBySubscriptionOptionalParams + options?: ConfigurationProfilesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -113,13 +113,13 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ConfigurationProfilesListBySubscriptionOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationProfilesListBySubscriptionResponse; result = await this._listBySubscription(options); @@ -127,7 +127,7 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { } private async *listBySubscriptionPagingAll( - options?: ConfigurationProfilesListBySubscriptionOptionalParams + options?: ConfigurationProfilesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -145,11 +145,11 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { configurationProfileName: string, resourceGroupName: string, parameters: ConfigurationProfile, - options?: ConfigurationProfilesCreateOrUpdateOptionalParams + options?: ConfigurationProfilesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { configurationProfileName, resourceGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -162,11 +162,11 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { get( configurationProfileName: string, resourceGroupName: string, - options?: ConfigurationProfilesGetOptionalParams + options?: ConfigurationProfilesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { configurationProfileName, resourceGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -179,11 +179,11 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { delete( resourceGroupName: string, configurationProfileName: string, - options?: ConfigurationProfilesDeleteOptionalParams + options?: ConfigurationProfilesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configurationProfileName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -198,11 +198,11 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { configurationProfileName: string, resourceGroupName: string, parameters: ConfigurationProfileUpdate, - options?: ConfigurationProfilesUpdateOptionalParams + options?: ConfigurationProfilesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { configurationProfileName, resourceGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -213,11 +213,11 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { */ private _listByResourceGroup( resourceGroupName: string, - options?: ConfigurationProfilesListByResourceGroupOptionalParams + options?: ConfigurationProfilesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -226,11 +226,11 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { * @param options The options parameters. */ private _listBySubscription( - options?: ConfigurationProfilesListBySubscriptionOptionalParams + options?: ConfigurationProfilesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } } @@ -238,19 +238,18 @@ export class ConfigurationProfilesImpl implements ConfigurationProfiles { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfile + bodyMapper: Mappers.ConfigurationProfile, }, 201: { - bodyMapper: Mappers.ConfigurationProfile + bodyMapper: Mappers.ConfigurationProfile, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -258,66 +257,63 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.configurationProfileName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfile + bodyMapper: Mappers.ConfigurationProfile, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.configurationProfileName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.configurationProfileName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfile + bodyMapper: Mappers.ConfigurationProfile, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -325,47 +321,45 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.configurationProfileName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileList + bodyMapper: Mappers.ConfigurationProfileList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/configurationProfiles", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/configurationProfiles", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileList + bodyMapper: Mappers.ConfigurationProfileList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automanage/arm-automanage/src/operations/configurationProfilesVersions.ts b/sdk/automanage/arm-automanage/src/operations/configurationProfilesVersions.ts index e5e8fdc7b65d..d0ff54029476 100644 --- a/sdk/automanage/arm-automanage/src/operations/configurationProfilesVersions.ts +++ b/sdk/automanage/arm-automanage/src/operations/configurationProfilesVersions.ts @@ -20,13 +20,14 @@ import { ConfigurationProfilesVersionsCreateOrUpdateResponse, ConfigurationProfilesVersionsGetOptionalParams, ConfigurationProfilesVersionsGetResponse, - ConfigurationProfilesVersionsDeleteOptionalParams + ConfigurationProfilesVersionsDeleteOptionalParams, } from "../models"; /// /** Class containing ConfigurationProfilesVersions operations. */ export class ConfigurationProfilesVersionsImpl - implements ConfigurationProfilesVersions { + implements ConfigurationProfilesVersions +{ private readonly client: AutomanageClient; /** @@ -46,12 +47,12 @@ export class ConfigurationProfilesVersionsImpl public listChildResources( configurationProfileName: string, resourceGroupName: string, - options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams + options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listChildResourcesPagingAll( configurationProfileName, resourceGroupName, - options + options, ); return { next() { @@ -68,9 +69,9 @@ export class ConfigurationProfilesVersionsImpl configurationProfileName, resourceGroupName, options, - settings + settings, ); - } + }, }; } @@ -78,13 +79,13 @@ export class ConfigurationProfilesVersionsImpl configurationProfileName: string, resourceGroupName: string, options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationProfilesVersionsListChildResourcesResponse; result = await this._listChildResources( configurationProfileName, resourceGroupName, - options + options, ); yield result.value || []; } @@ -92,12 +93,12 @@ export class ConfigurationProfilesVersionsImpl private async *listChildResourcesPagingAll( configurationProfileName: string, resourceGroupName: string, - options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams + options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listChildResourcesPagingPage( configurationProfileName, resourceGroupName, - options + options, )) { yield* page; } @@ -116,7 +117,7 @@ export class ConfigurationProfilesVersionsImpl versionName: string, resourceGroupName: string, parameters: ConfigurationProfile, - options?: ConfigurationProfilesVersionsCreateOrUpdateOptionalParams + options?: ConfigurationProfilesVersionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -124,9 +125,9 @@ export class ConfigurationProfilesVersionsImpl versionName, resourceGroupName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -141,11 +142,11 @@ export class ConfigurationProfilesVersionsImpl configurationProfileName: string, versionName: string, resourceGroupName: string, - options?: ConfigurationProfilesVersionsGetOptionalParams + options?: ConfigurationProfilesVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { configurationProfileName, versionName, resourceGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -160,11 +161,11 @@ export class ConfigurationProfilesVersionsImpl resourceGroupName: string, configurationProfileName: string, versionName: string, - options?: ConfigurationProfilesVersionsDeleteOptionalParams + options?: ConfigurationProfilesVersionsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configurationProfileName, versionName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -177,11 +178,11 @@ export class ConfigurationProfilesVersionsImpl private _listChildResources( configurationProfileName: string, resourceGroupName: string, - options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams + options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams, ): Promise { return this.client.sendOperationRequest( { configurationProfileName, resourceGroupName, options }, - listChildResourcesOperationSpec + listChildResourcesOperationSpec, ); } } @@ -189,19 +190,18 @@ export class ConfigurationProfilesVersionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfile + bodyMapper: Mappers.ConfigurationProfile, }, 201: { - bodyMapper: Mappers.ConfigurationProfile + bodyMapper: Mappers.ConfigurationProfile, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -210,23 +210,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.versionName, Parameters.configurationProfileName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfile + bodyMapper: Mappers.ConfigurationProfile, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -234,21 +233,20 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.versionName, Parameters.configurationProfileName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -256,30 +254,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.versionName, Parameters.configurationProfileName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listChildResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfigurationProfileList + bodyMapper: Mappers.ConfigurationProfileList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.configurationProfileName, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automanage/arm-automanage/src/operations/hCIReports.ts b/sdk/automanage/arm-automanage/src/operations/hCIReports.ts index df997970861d..8f09f4f9b9a9 100644 --- a/sdk/automanage/arm-automanage/src/operations/hCIReports.ts +++ b/sdk/automanage/arm-automanage/src/operations/hCIReports.ts @@ -17,7 +17,7 @@ import { HCIReportsListByConfigurationProfileAssignmentsOptionalParams, HCIReportsListByConfigurationProfileAssignmentsResponse, HCIReportsGetOptionalParams, - HCIReportsGetResponse + HCIReportsGetResponse, } from "../models"; /// @@ -44,13 +44,13 @@ export class HCIReportsImpl implements HCIReports { resourceGroupName: string, clusterName: string, configurationProfileAssignmentName: string, - options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams + options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByConfigurationProfileAssignmentsPagingAll( resourceGroupName, clusterName, configurationProfileAssignmentName, - options + options, ); return { next() { @@ -68,9 +68,9 @@ export class HCIReportsImpl implements HCIReports { clusterName, configurationProfileAssignmentName, options, - settings + settings, ); - } + }, }; } @@ -79,14 +79,14 @@ export class HCIReportsImpl implements HCIReports { clusterName: string, configurationProfileAssignmentName: string, options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: HCIReportsListByConfigurationProfileAssignmentsResponse; result = await this._listByConfigurationProfileAssignments( resourceGroupName, clusterName, configurationProfileAssignmentName, - options + options, ); yield result.value || []; } @@ -95,13 +95,13 @@ export class HCIReportsImpl implements HCIReports { resourceGroupName: string, clusterName: string, configurationProfileAssignmentName: string, - options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams + options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByConfigurationProfileAssignmentsPagingPage( resourceGroupName, clusterName, configurationProfileAssignmentName, - options + options, )) { yield* page; } @@ -120,7 +120,7 @@ export class HCIReportsImpl implements HCIReports { clusterName: string, configurationProfileAssignmentName: string, reportName: string, - options?: HCIReportsGetOptionalParams + options?: HCIReportsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -128,9 +128,9 @@ export class HCIReportsImpl implements HCIReports { clusterName, configurationProfileAssignmentName, reportName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -145,16 +145,16 @@ export class HCIReportsImpl implements HCIReports { resourceGroupName: string, clusterName: string, configurationProfileAssignmentName: string, - options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams + options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, clusterName, configurationProfileAssignmentName, - options + options, }, - listByConfigurationProfileAssignmentsOperationSpec + listByConfigurationProfileAssignmentsOperationSpec, ); } } @@ -162,16 +162,15 @@ export class HCIReportsImpl implements HCIReports { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Report + bodyMapper: Mappers.Report, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -180,31 +179,31 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, Parameters.clusterName, - Parameters.reportName + Parameters.reportName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listByConfigurationProfileAssignmentsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ReportList +const listByConfigurationProfileAssignmentsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReportList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.configurationProfileAssignmentName, - Parameters.clusterName - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configurationProfileAssignmentName, + Parameters.clusterName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/automanage/arm-automanage/src/operations/hcrpReports.ts b/sdk/automanage/arm-automanage/src/operations/hcrpReports.ts index 06788c9b753c..8f8c0b151bb3 100644 --- a/sdk/automanage/arm-automanage/src/operations/hcrpReports.ts +++ b/sdk/automanage/arm-automanage/src/operations/hcrpReports.ts @@ -17,7 +17,7 @@ import { HcrpReportsListByConfigurationProfileAssignmentsOptionalParams, HcrpReportsListByConfigurationProfileAssignmentsResponse, HcrpReportsGetOptionalParams, - HcrpReportsGetResponse + HcrpReportsGetResponse, } from "../models"; /// @@ -44,13 +44,13 @@ export class HcrpReportsImpl implements HcrpReports { resourceGroupName: string, machineName: string, configurationProfileAssignmentName: string, - options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams + options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByConfigurationProfileAssignmentsPagingAll( resourceGroupName, machineName, configurationProfileAssignmentName, - options + options, ); return { next() { @@ -68,9 +68,9 @@ export class HcrpReportsImpl implements HcrpReports { machineName, configurationProfileAssignmentName, options, - settings + settings, ); - } + }, }; } @@ -79,14 +79,14 @@ export class HcrpReportsImpl implements HcrpReports { machineName: string, configurationProfileAssignmentName: string, options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: HcrpReportsListByConfigurationProfileAssignmentsResponse; result = await this._listByConfigurationProfileAssignments( resourceGroupName, machineName, configurationProfileAssignmentName, - options + options, ); yield result.value || []; } @@ -95,13 +95,13 @@ export class HcrpReportsImpl implements HcrpReports { resourceGroupName: string, machineName: string, configurationProfileAssignmentName: string, - options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams + options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByConfigurationProfileAssignmentsPagingPage( resourceGroupName, machineName, configurationProfileAssignmentName, - options + options, )) { yield* page; } @@ -120,7 +120,7 @@ export class HcrpReportsImpl implements HcrpReports { machineName: string, configurationProfileAssignmentName: string, reportName: string, - options?: HcrpReportsGetOptionalParams + options?: HcrpReportsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -128,9 +128,9 @@ export class HcrpReportsImpl implements HcrpReports { machineName, configurationProfileAssignmentName, reportName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -145,16 +145,16 @@ export class HcrpReportsImpl implements HcrpReports { resourceGroupName: string, machineName: string, configurationProfileAssignmentName: string, - options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams + options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, machineName, configurationProfileAssignmentName, - options + options, }, - listByConfigurationProfileAssignmentsOperationSpec + listByConfigurationProfileAssignmentsOperationSpec, ); } } @@ -162,16 +162,15 @@ export class HcrpReportsImpl implements HcrpReports { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Report + bodyMapper: Mappers.Report, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -180,31 +179,31 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, Parameters.machineName, - Parameters.reportName + Parameters.reportName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listByConfigurationProfileAssignmentsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ReportList +const listByConfigurationProfileAssignmentsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReportList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.configurationProfileAssignmentName, - Parameters.machineName - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configurationProfileAssignmentName, + Parameters.machineName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/automanage/arm-automanage/src/operations/operations.ts b/sdk/automanage/arm-automanage/src/operations/operations.ts index edc070f1944b..ba0600cf5798 100644 --- a/sdk/automanage/arm-automanage/src/operations/operations.ts +++ b/sdk/automanage/arm-automanage/src/operations/operations.ts @@ -15,7 +15,7 @@ import { AutomanageClient } from "../automanageClient"; import { Operation, OperationsListOptionalParams, - OperationsListResponse + OperationsListResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -51,13 +51,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; result = await this._list(options); @@ -65,7 +65,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -77,7 +77,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -90,14 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automanage/arm-automanage/src/operations/reports.ts b/sdk/automanage/arm-automanage/src/operations/reports.ts index 771fee432a8c..c921995666a3 100644 --- a/sdk/automanage/arm-automanage/src/operations/reports.ts +++ b/sdk/automanage/arm-automanage/src/operations/reports.ts @@ -17,7 +17,7 @@ import { ReportsListByConfigurationProfileAssignmentsOptionalParams, ReportsListByConfigurationProfileAssignmentsResponse, ReportsGetOptionalParams, - ReportsGetResponse + ReportsGetResponse, } from "../models"; /// @@ -44,13 +44,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, configurationProfileAssignmentName: string, vmName: string, - options?: ReportsListByConfigurationProfileAssignmentsOptionalParams + options?: ReportsListByConfigurationProfileAssignmentsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByConfigurationProfileAssignmentsPagingAll( resourceGroupName, configurationProfileAssignmentName, vmName, - options + options, ); return { next() { @@ -68,9 +68,9 @@ export class ReportsImpl implements Reports { configurationProfileAssignmentName, vmName, options, - settings + settings, ); - } + }, }; } @@ -79,14 +79,14 @@ export class ReportsImpl implements Reports { configurationProfileAssignmentName: string, vmName: string, options?: ReportsListByConfigurationProfileAssignmentsOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByConfigurationProfileAssignmentsResponse; result = await this._listByConfigurationProfileAssignments( resourceGroupName, configurationProfileAssignmentName, vmName, - options + options, ); yield result.value || []; } @@ -95,13 +95,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, configurationProfileAssignmentName: string, vmName: string, - options?: ReportsListByConfigurationProfileAssignmentsOptionalParams + options?: ReportsListByConfigurationProfileAssignmentsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByConfigurationProfileAssignmentsPagingPage( resourceGroupName, configurationProfileAssignmentName, vmName, - options + options, )) { yield* page; } @@ -120,7 +120,7 @@ export class ReportsImpl implements Reports { configurationProfileAssignmentName: string, reportName: string, vmName: string, - options?: ReportsGetOptionalParams + options?: ReportsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -128,9 +128,9 @@ export class ReportsImpl implements Reports { configurationProfileAssignmentName, reportName, vmName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -145,16 +145,16 @@ export class ReportsImpl implements Reports { resourceGroupName: string, configurationProfileAssignmentName: string, vmName: string, - options?: ReportsListByConfigurationProfileAssignmentsOptionalParams + options?: ReportsListByConfigurationProfileAssignmentsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, configurationProfileAssignmentName, vmName, - options + options, }, - listByConfigurationProfileAssignmentsOperationSpec + listByConfigurationProfileAssignmentsOperationSpec, ); } } @@ -162,16 +162,15 @@ export class ReportsImpl implements Reports { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Report + bodyMapper: Mappers.Report, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -180,31 +179,31 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.configurationProfileAssignmentName, Parameters.vmName, - Parameters.reportName + Parameters.reportName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listByConfigurationProfileAssignmentsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ReportList +const listByConfigurationProfileAssignmentsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ReportList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.configurationProfileAssignmentName, - Parameters.vmName - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.configurationProfileAssignmentName, + Parameters.vmName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/automanage/arm-automanage/src/operations/servicePrincipals.ts b/sdk/automanage/arm-automanage/src/operations/servicePrincipals.ts index cacffe5a4e4f..a0cc9f8bb4a6 100644 --- a/sdk/automanage/arm-automanage/src/operations/servicePrincipals.ts +++ b/sdk/automanage/arm-automanage/src/operations/servicePrincipals.ts @@ -17,7 +17,7 @@ import { ServicePrincipalsListBySubscriptionOptionalParams, ServicePrincipalsListBySubscriptionResponse, ServicePrincipalsGetOptionalParams, - ServicePrincipalsGetResponse + ServicePrincipalsGetResponse, } from "../models"; /// @@ -38,7 +38,7 @@ export class ServicePrincipalsImpl implements ServicePrincipals { * @param options The options parameters. */ public listBySubscription( - options?: ServicePrincipalsListBySubscriptionOptionalParams + options?: ServicePrincipalsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -53,13 +53,13 @@ export class ServicePrincipalsImpl implements ServicePrincipals { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ServicePrincipalsListBySubscriptionOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ServicePrincipalsListBySubscriptionResponse; result = await this._listBySubscription(options); @@ -67,7 +67,7 @@ export class ServicePrincipalsImpl implements ServicePrincipals { } private async *listBySubscriptionPagingAll( - options?: ServicePrincipalsListBySubscriptionOptionalParams + options?: ServicePrincipalsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -79,11 +79,11 @@ export class ServicePrincipalsImpl implements ServicePrincipals { * @param options The options parameters. */ private _listBySubscription( - options?: ServicePrincipalsListBySubscriptionOptionalParams + options?: ServicePrincipalsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -92,7 +92,7 @@ export class ServicePrincipalsImpl implements ServicePrincipals { * @param options The options parameters. */ get( - options?: ServicePrincipalsGetOptionalParams + options?: ServicePrincipalsGetOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, getOperationSpec); } @@ -101,36 +101,34 @@ export class ServicePrincipalsImpl implements ServicePrincipals { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServicePrincipalListResult + bodyMapper: Mappers.ServicePrincipalListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServicePrincipal + bodyMapper: Mappers.ServicePrincipal, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/bestPractices.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/bestPractices.ts index 6155a4a70e5a..51946d75291e 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/bestPractices.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/bestPractices.ts @@ -11,7 +11,7 @@ import { BestPractice, BestPracticesListByTenantOptionalParams, BestPracticesGetOptionalParams, - BestPracticesGetResponse + BestPracticesGetResponse, } from "../models"; /// @@ -22,7 +22,7 @@ export interface BestPractices { * @param options The options parameters. */ listByTenant( - options?: BestPracticesListByTenantOptionalParams + options?: BestPracticesListByTenantOptionalParams, ): PagedAsyncIterableIterator; /** * Get information about a Automanage best practice @@ -31,6 +31,6 @@ export interface BestPractices { */ get( bestPracticeName: string, - options?: BestPracticesGetOptionalParams + options?: BestPracticesGetOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/bestPracticesVersions.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/bestPracticesVersions.ts index 6c7f41fea45e..64571fe56a1f 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/bestPracticesVersions.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/bestPracticesVersions.ts @@ -11,7 +11,7 @@ import { BestPractice, BestPracticesVersionsListByTenantOptionalParams, BestPracticesVersionsGetOptionalParams, - BestPracticesVersionsGetResponse + BestPracticesVersionsGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface BestPracticesVersions { */ listByTenant( bestPracticeName: string, - options?: BestPracticesVersionsListByTenantOptionalParams + options?: BestPracticesVersionsListByTenantOptionalParams, ): PagedAsyncIterableIterator; /** * Get information about a Automanage best practice version @@ -35,6 +35,6 @@ export interface BestPracticesVersions { get( bestPracticeName: string, versionName: string, - options?: BestPracticesVersionsGetOptionalParams + options?: BestPracticesVersionsGetOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileAssignments.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileAssignments.ts index b850daa8f737..62cabb64353e 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileAssignments.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileAssignments.ts @@ -18,7 +18,7 @@ import { ConfigurationProfileAssignmentsCreateOrUpdateResponse, ConfigurationProfileAssignmentsGetOptionalParams, ConfigurationProfileAssignmentsGetResponse, - ConfigurationProfileAssignmentsDeleteOptionalParams + ConfigurationProfileAssignmentsDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface ConfigurationProfileAssignments { listByVirtualMachines( resourceGroupName: string, vmName: string, - options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams + options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams, ): PagedAsyncIterableIterator; /** * Get list of configuration profile assignments @@ -42,14 +42,14 @@ export interface ConfigurationProfileAssignments { */ list( resourceGroupName: string, - options?: ConfigurationProfileAssignmentsListOptionalParams + options?: ConfigurationProfileAssignmentsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get list of configuration profile assignments under a given subscription * @param options The options parameters. */ listBySubscription( - options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams + options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get list of configuration profile assignments @@ -60,7 +60,7 @@ export interface ConfigurationProfileAssignments { listByMachineName( resourceGroupName: string, machineName: string, - options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams + options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams, ): PagedAsyncIterableIterator; /** * Get list of configuration profile assignments @@ -71,7 +71,7 @@ export interface ConfigurationProfileAssignments { listByClusterName( resourceGroupName: string, clusterName: string, - options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams + options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams, ): PagedAsyncIterableIterator; /** * Creates an association between a VM and Automanage configuration profile @@ -87,7 +87,7 @@ export interface ConfigurationProfileAssignments { resourceGroupName: string, vmName: string, parameters: ConfigurationProfileAssignment, - options?: ConfigurationProfileAssignmentsCreateOrUpdateOptionalParams + options?: ConfigurationProfileAssignmentsCreateOrUpdateOptionalParams, ): Promise; /** * Get information about a configuration profile assignment @@ -100,7 +100,7 @@ export interface ConfigurationProfileAssignments { resourceGroupName: string, configurationProfileAssignmentName: string, vmName: string, - options?: ConfigurationProfileAssignmentsGetOptionalParams + options?: ConfigurationProfileAssignmentsGetOptionalParams, ): Promise; /** * Delete a configuration profile assignment @@ -113,6 +113,6 @@ export interface ConfigurationProfileAssignments { resourceGroupName: string, configurationProfileAssignmentName: string, vmName: string, - options?: ConfigurationProfileAssignmentsDeleteOptionalParams + options?: ConfigurationProfileAssignmentsDeleteOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileHCIAssignments.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileHCIAssignments.ts index 661198803c53..65d6940cd362 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileHCIAssignments.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileHCIAssignments.ts @@ -12,7 +12,7 @@ import { ConfigurationProfileHCIAssignmentsCreateOrUpdateResponse, ConfigurationProfileHCIAssignmentsGetOptionalParams, ConfigurationProfileHCIAssignmentsGetResponse, - ConfigurationProfileHCIAssignmentsDeleteOptionalParams + ConfigurationProfileHCIAssignmentsDeleteOptionalParams, } from "../models"; /** Interface representing a ConfigurationProfileHCIAssignments. */ @@ -31,7 +31,7 @@ export interface ConfigurationProfileHCIAssignments { clusterName: string, configurationProfileAssignmentName: string, parameters: ConfigurationProfileAssignment, - options?: ConfigurationProfileHCIAssignmentsCreateOrUpdateOptionalParams + options?: ConfigurationProfileHCIAssignmentsCreateOrUpdateOptionalParams, ): Promise; /** * Get information about a configuration profile assignment @@ -44,7 +44,7 @@ export interface ConfigurationProfileHCIAssignments { resourceGroupName: string, clusterName: string, configurationProfileAssignmentName: string, - options?: ConfigurationProfileHCIAssignmentsGetOptionalParams + options?: ConfigurationProfileHCIAssignmentsGetOptionalParams, ): Promise; /** * Delete a configuration profile assignment @@ -57,6 +57,6 @@ export interface ConfigurationProfileHCIAssignments { resourceGroupName: string, clusterName: string, configurationProfileAssignmentName: string, - options?: ConfigurationProfileHCIAssignmentsDeleteOptionalParams + options?: ConfigurationProfileHCIAssignmentsDeleteOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileHcrpAssignments.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileHcrpAssignments.ts index b83bfc70452b..354b9dee28c2 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileHcrpAssignments.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfileHcrpAssignments.ts @@ -12,7 +12,7 @@ import { ConfigurationProfileHcrpAssignmentsCreateOrUpdateResponse, ConfigurationProfileHcrpAssignmentsGetOptionalParams, ConfigurationProfileHcrpAssignmentsGetResponse, - ConfigurationProfileHcrpAssignmentsDeleteOptionalParams + ConfigurationProfileHcrpAssignmentsDeleteOptionalParams, } from "../models"; /** Interface representing a ConfigurationProfileHcrpAssignments. */ @@ -31,7 +31,7 @@ export interface ConfigurationProfileHcrpAssignments { machineName: string, configurationProfileAssignmentName: string, parameters: ConfigurationProfileAssignment, - options?: ConfigurationProfileHcrpAssignmentsCreateOrUpdateOptionalParams + options?: ConfigurationProfileHcrpAssignmentsCreateOrUpdateOptionalParams, ): Promise; /** * Get information about a configuration profile assignment @@ -44,7 +44,7 @@ export interface ConfigurationProfileHcrpAssignments { resourceGroupName: string, machineName: string, configurationProfileAssignmentName: string, - options?: ConfigurationProfileHcrpAssignmentsGetOptionalParams + options?: ConfigurationProfileHcrpAssignmentsGetOptionalParams, ): Promise; /** * Delete a configuration profile assignment @@ -57,6 +57,6 @@ export interface ConfigurationProfileHcrpAssignments { resourceGroupName: string, machineName: string, configurationProfileAssignmentName: string, - options?: ConfigurationProfileHcrpAssignmentsDeleteOptionalParams + options?: ConfigurationProfileHcrpAssignmentsDeleteOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfiles.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfiles.ts index c6fb5742c0a7..1bc80ac00cd7 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfiles.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfiles.ts @@ -18,7 +18,7 @@ import { ConfigurationProfilesDeleteOptionalParams, ConfigurationProfileUpdate, ConfigurationProfilesUpdateOptionalParams, - ConfigurationProfilesUpdateResponse + ConfigurationProfilesUpdateResponse, } from "../models"; /// @@ -31,14 +31,14 @@ export interface ConfigurationProfiles { */ listByResourceGroup( resourceGroupName: string, - options?: ConfigurationProfilesListByResourceGroupOptionalParams + options?: ConfigurationProfilesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Retrieve a list of configuration profile within a subscription * @param options The options parameters. */ listBySubscription( - options?: ConfigurationProfilesListBySubscriptionOptionalParams + options?: ConfigurationProfilesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a configuration profile @@ -51,7 +51,7 @@ export interface ConfigurationProfiles { configurationProfileName: string, resourceGroupName: string, parameters: ConfigurationProfile, - options?: ConfigurationProfilesCreateOrUpdateOptionalParams + options?: ConfigurationProfilesCreateOrUpdateOptionalParams, ): Promise; /** * Get information about a configuration profile @@ -62,7 +62,7 @@ export interface ConfigurationProfiles { get( configurationProfileName: string, resourceGroupName: string, - options?: ConfigurationProfilesGetOptionalParams + options?: ConfigurationProfilesGetOptionalParams, ): Promise; /** * Delete a configuration profile @@ -73,7 +73,7 @@ export interface ConfigurationProfiles { delete( resourceGroupName: string, configurationProfileName: string, - options?: ConfigurationProfilesDeleteOptionalParams + options?: ConfigurationProfilesDeleteOptionalParams, ): Promise; /** * Updates a configuration profile @@ -86,6 +86,6 @@ export interface ConfigurationProfiles { configurationProfileName: string, resourceGroupName: string, parameters: ConfigurationProfileUpdate, - options?: ConfigurationProfilesUpdateOptionalParams + options?: ConfigurationProfilesUpdateOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfilesVersions.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfilesVersions.ts index 91324ba904dc..408ae25e0c21 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfilesVersions.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/configurationProfilesVersions.ts @@ -14,7 +14,7 @@ import { ConfigurationProfilesVersionsCreateOrUpdateResponse, ConfigurationProfilesVersionsGetOptionalParams, ConfigurationProfilesVersionsGetResponse, - ConfigurationProfilesVersionsDeleteOptionalParams + ConfigurationProfilesVersionsDeleteOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface ConfigurationProfilesVersions { listChildResources( configurationProfileName: string, resourceGroupName: string, - options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams + options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a configuration profile version @@ -44,7 +44,7 @@ export interface ConfigurationProfilesVersions { versionName: string, resourceGroupName: string, parameters: ConfigurationProfile, - options?: ConfigurationProfilesVersionsCreateOrUpdateOptionalParams + options?: ConfigurationProfilesVersionsCreateOrUpdateOptionalParams, ): Promise; /** * Get information about a configuration profile version @@ -57,7 +57,7 @@ export interface ConfigurationProfilesVersions { configurationProfileName: string, versionName: string, resourceGroupName: string, - options?: ConfigurationProfilesVersionsGetOptionalParams + options?: ConfigurationProfilesVersionsGetOptionalParams, ): Promise; /** * Delete a configuration profile version @@ -70,6 +70,6 @@ export interface ConfigurationProfilesVersions { resourceGroupName: string, configurationProfileName: string, versionName: string, - options?: ConfigurationProfilesVersionsDeleteOptionalParams + options?: ConfigurationProfilesVersionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/hCIReports.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/hCIReports.ts index e158d8ac4ff3..26637835201a 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/hCIReports.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/hCIReports.ts @@ -11,7 +11,7 @@ import { Report, HCIReportsListByConfigurationProfileAssignmentsOptionalParams, HCIReportsGetOptionalParams, - HCIReportsGetResponse + HCIReportsGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface HCIReports { resourceGroupName: string, clusterName: string, configurationProfileAssignmentName: string, - options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams + options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams, ): PagedAsyncIterableIterator; /** * Get information about a report associated with a configuration profile assignment run @@ -43,6 +43,6 @@ export interface HCIReports { clusterName: string, configurationProfileAssignmentName: string, reportName: string, - options?: HCIReportsGetOptionalParams + options?: HCIReportsGetOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/hcrpReports.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/hcrpReports.ts index 512369b1aa3f..bd74b6881b15 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/hcrpReports.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/hcrpReports.ts @@ -11,7 +11,7 @@ import { Report, HcrpReportsListByConfigurationProfileAssignmentsOptionalParams, HcrpReportsGetOptionalParams, - HcrpReportsGetResponse + HcrpReportsGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface HcrpReports { resourceGroupName: string, machineName: string, configurationProfileAssignmentName: string, - options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams + options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams, ): PagedAsyncIterableIterator; /** * Get information about a report associated with a configuration profile assignment run @@ -43,6 +43,6 @@ export interface HcrpReports { machineName: string, configurationProfileAssignmentName: string, reportName: string, - options?: HcrpReportsGetOptionalParams + options?: HcrpReportsGetOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/operations.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/operations.ts index 5f646309befc..0b3888bd3863 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/operations.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/reports.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/reports.ts index bf9bfee9f56c..79f546a31c00 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/reports.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/reports.ts @@ -11,7 +11,7 @@ import { Report, ReportsListByConfigurationProfileAssignmentsOptionalParams, ReportsGetOptionalParams, - ReportsGetResponse + ReportsGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface Reports { resourceGroupName: string, configurationProfileAssignmentName: string, vmName: string, - options?: ReportsListByConfigurationProfileAssignmentsOptionalParams + options?: ReportsListByConfigurationProfileAssignmentsOptionalParams, ): PagedAsyncIterableIterator; /** * Get information about a report associated with a configuration profile assignment run @@ -43,6 +43,6 @@ export interface Reports { configurationProfileAssignmentName: string, reportName: string, vmName: string, - options?: ReportsGetOptionalParams + options?: ReportsGetOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/operationsInterfaces/servicePrincipals.ts b/sdk/automanage/arm-automanage/src/operationsInterfaces/servicePrincipals.ts index 19682a41f212..3c37839b016e 100644 --- a/sdk/automanage/arm-automanage/src/operationsInterfaces/servicePrincipals.ts +++ b/sdk/automanage/arm-automanage/src/operationsInterfaces/servicePrincipals.ts @@ -11,7 +11,7 @@ import { ServicePrincipal, ServicePrincipalsListBySubscriptionOptionalParams, ServicePrincipalsGetOptionalParams, - ServicePrincipalsGetResponse + ServicePrincipalsGetResponse, } from "../models"; /// @@ -22,13 +22,13 @@ export interface ServicePrincipals { * @param options The options parameters. */ listBySubscription( - options?: ServicePrincipalsListBySubscriptionOptionalParams + options?: ServicePrincipalsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get the Automanage AAD first party Application Service Principal details for the subscription id. * @param options The options parameters. */ get( - options?: ServicePrincipalsGetOptionalParams + options?: ServicePrincipalsGetOptionalParams, ): Promise; } diff --git a/sdk/automanage/arm-automanage/src/pagingHelper.ts b/sdk/automanage/arm-automanage/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/automanage/arm-automanage/src/pagingHelper.ts +++ b/sdk/automanage/arm-automanage/src/pagingHelper.ts @@ -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/automanage/arm-automanage/test/sampleTest.ts b/sdk/automanage/arm-automanage/test/sampleTest.ts index 8ff7deb0acbe..d64be981b694 100644 --- a/sdk/automanage/arm-automanage/test/sampleTest.ts +++ b/sdk/automanage/arm-automanage/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/automanage/arm-automanage/tsconfig.json b/sdk/automanage/arm-automanage/tsconfig.json index 51f289ed6faa..b35d05ad6e9d 100644 --- a/sdk/automanage/arm-automanage/tsconfig.json +++ b/sdk/automanage/arm-automanage/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-automanage": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "src/**/*.ts", + "test/**/*.ts" ], "exclude": [ "node_modules"