From 42bf205f36394ca5efa35341f150ee0baf310860 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 9 Dec 2024 06:13:48 +0000 Subject: [PATCH] CodeGen from PR 31168 in Azure/azure-rest-api-specs Merge f0cdbdbb278abf965d1aa68f145acbcf6f363fa9 into 552b4dd311f90f4a7b2f7adf45461d7a8774a1cc --- common/config/rush/pnpm-lock.yaml | 3 +- sdk/automation/arm-automation/CHANGELOG.md | 16 +- sdk/automation/arm-automation/LICENSE | 2 +- sdk/automation/arm-automation/README.md | 3 +- sdk/automation/arm-automation/_meta.json | 10 +- sdk/automation/arm-automation/package.json | 69 +- .../review/arm-automation.api.md | 483 +- sdk/automation/arm-automation/sample.env | 5 +- .../arm-automation/src/automationClient.ts | 285 +- sdk/automation/arm-automation/src/lroImpl.ts | 54 +- .../arm-automation/src/models/index.ts | 5082 ++++----- .../arm-automation/src/models/mappers.ts | 9438 +++++++++-------- .../arm-automation/src/models/parameters.ts | 1079 +- .../src/operations/activityOperations.ts | 78 +- .../agentRegistrationInformation.ts | 45 +- .../operations/automationAccountOperations.ts | 346 +- .../src/operations/certificateOperations.ts | 139 +- .../src/operations/connectionOperations.ts | 139 +- .../operations/connectionTypeOperations.ts | 114 +- .../src/operations/credentialOperations.ts | 135 +- .../operations/deletedAutomationAccounts.ts | 22 +- .../operations/dscCompilationJobOperations.ts | 437 - .../src/operations/dscCompilationJobStream.ts | 75 - .../operations/dscConfigurationOperations.ts | 231 +- .../dscNodeConfigurationOperations.ts | 170 +- .../src/operations/dscNodeOperations.ts | 114 +- .../arm-automation/src/operations/fields.ts | 39 +- .../hybridRunbookWorkerGroupOperations.ts | 153 +- .../src/operations/hybridRunbookWorkers.ts | 231 +- .../arm-automation/src/operations/index.ts | 43 +- .../src/operations/jobOperations.ts | 204 +- .../src/operations/jobScheduleOperations.ts | 114 +- .../src/operations/jobStreamOperations.ts | 80 +- .../arm-automation/src/operations/keys.ts | 23 +- .../operations/linkedWorkspaceOperations.ts | 24 +- .../src/operations/moduleOperations.ts | 139 +- .../src/operations/nodeCountInformation.ts | 21 +- .../src/operations/nodeReports.ts | 95 +- .../src/operations/objectDataTypes.ts | 74 +- .../src/operations/operations.ts | 22 +- .../src/operations/packageOperations.ts | 449 + .../operations/privateEndpointConnections.ts | 229 +- .../src/operations/privateLinkResources.ts | 35 +- .../src/operations/python2Package.ts | 139 +- .../src/operations/python3Package.ts | 397 + .../src/operations/runbookDraftOperations.ts | 163 +- .../src/operations/runbookOperations.ts | 249 +- .../src/operations/runtimeEnvironments.ts | 406 + .../src/operations/scheduleOperations.ts | 139 +- .../softwareUpdateConfigurationMachineRuns.ts | 51 +- .../softwareUpdateConfigurationRuns.ts | 51 +- .../softwareUpdateConfigurations.ts | 99 +- .../src/operations/sourceControlOperations.ts | 139 +- .../sourceControlSyncJobOperations.ts | 104 +- .../operations/sourceControlSyncJobStreams.ts | 83 +- .../src/operations/statisticsOperations.ts | 39 +- .../src/operations/testJobOperations.ts | 105 +- .../src/operations/testJobStreams.ts | 82 +- .../arm-automation/src/operations/usages.ts | 39 +- .../src/operations/variableOperations.ts | 139 +- .../src/operations/watcherOperations.ts | 173 +- .../src/operations/webhookOperations.ts | 170 +- .../activityOperations.ts | 6 +- .../agentRegistrationInformation.ts | 6 +- .../automationAccountOperations.ts | 27 +- .../certificateOperations.ts | 12 +- .../connectionOperations.ts | 12 +- .../connectionTypeOperations.ts | 10 +- .../credentialOperations.ts | 12 +- .../deletedAutomationAccounts.ts | 4 +- .../dscCompilationJobOperations.ts | 100 - .../dscCompilationJobStream.ts | 29 - .../dscConfigurationOperations.ts | 18 +- .../dscNodeConfigurationOperations.ts | 16 +- .../operationsInterfaces/dscNodeOperations.ts | 10 +- .../src/operationsInterfaces/fields.ts | 2 +- .../hybridRunbookWorkerGroupOperations.ts | 12 +- .../hybridRunbookWorkers.ts | 29 +- .../src/operationsInterfaces/index.ts | 43 +- .../src/operationsInterfaces/jobOperations.ts | 18 +- .../jobScheduleOperations.ts | 10 +- .../jobStreamOperations.ts | 6 +- .../src/operationsInterfaces/keys.ts | 4 +- .../linkedWorkspaceOperations.ts | 4 +- .../operationsInterfaces/moduleOperations.ts | 12 +- .../nodeCountInformation.ts | 4 +- .../src/operationsInterfaces/nodeReports.ts | 8 +- .../operationsInterfaces/objectDataTypes.ts | 6 +- .../src/operationsInterfaces/operations.ts | 2 +- .../operationsInterfaces/packageOperations.ts | 104 + .../privateEndpointConnections.ts | 30 +- .../privateLinkResources.ts | 4 +- .../operationsInterfaces/python2Package.ts | 12 +- .../operationsInterfaces/python3Package.ts | 94 + .../runbookDraftOperations.ts | 22 +- .../operationsInterfaces/runbookOperations.ts | 24 +- .../runtimeEnvironments.ts | 93 + .../scheduleOperations.ts | 12 +- .../softwareUpdateConfigurationMachineRuns.ts | 6 +- .../softwareUpdateConfigurationRuns.ts | 6 +- .../softwareUpdateConfigurations.ts | 10 +- .../sourceControlOperations.ts | 12 +- .../sourceControlSyncJobOperations.ts | 8 +- .../sourceControlSyncJobStreams.ts | 6 +- .../statisticsOperations.ts | 4 +- .../operationsInterfaces/testJobOperations.ts | 12 +- .../operationsInterfaces/testJobStreams.ts | 6 +- .../src/operationsInterfaces/usages.ts | 2 +- .../variableOperations.ts | 12 +- .../operationsInterfaces/watcherOperations.ts | 16 +- .../operationsInterfaces/webhookOperations.ts | 14 +- .../arm-automation/src/pagingHelper.ts | 2 +- .../arm-automation/test/sampleTest.ts | 43 + sdk/automation/arm-automation/tsconfig.json | 12 +- 114 files changed, 13197 insertions(+), 11107 deletions(-) delete mode 100644 sdk/automation/arm-automation/src/operations/dscCompilationJobOperations.ts delete mode 100644 sdk/automation/arm-automation/src/operations/dscCompilationJobStream.ts create mode 100644 sdk/automation/arm-automation/src/operations/packageOperations.ts create mode 100644 sdk/automation/arm-automation/src/operations/python3Package.ts create mode 100644 sdk/automation/arm-automation/src/operations/runtimeEnvironments.ts delete mode 100644 sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobOperations.ts delete mode 100644 sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobStream.ts create mode 100644 sdk/automation/arm-automation/src/operationsInterfaces/packageOperations.ts create mode 100644 sdk/automation/arm-automation/src/operationsInterfaces/python3Package.ts create mode 100644 sdk/automation/arm-automation/src/operationsInterfaces/runtimeEnvironments.ts create mode 100644 sdk/automation/arm-automation/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index a584d53c2bf8..1e851031a0c4 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -12958,7 +12958,7 @@ packages: dev: false file:projects/arm-automation.tgz: - resolution: {integrity: sha512-Xp3hnnhwSfgKAkjyzZVQ9OhpB6fLPSRC8HwZD8LxRFz0Imqhr695OHugyY7OHjYsIao4K+fWif8UUMvKgf+WUg==, tarball: file:projects/arm-automation.tgz} + resolution: {integrity: sha512-onKzEOXknbErXXeYFPjPU478Ix9HGy8RaNPQcAIfEixfZ4S9+dPkEteiTkQtZO/zxNP4Q4wvoHQh02baSn8dRg==, tarball: file:projects/arm-automation.tgz} name: '@rush-temp/arm-automation' version: 0.0.0 dependencies: @@ -12974,6 +12974,7 @@ packages: mocha: 10.8.2 ts-node: 10.9.2(@types/node@18.19.67)(typescript@5.6.3) tslib: 2.8.1 + tsx: 4.19.2 typescript: 5.6.3 transitivePeerDependencies: - '@swc/core' diff --git a/sdk/automation/arm-automation/CHANGELOG.md b/sdk/automation/arm-automation/CHANGELOG.md index f8ed9df0144c..14c470ac915b 100644 --- a/sdk/automation/arm-automation/CHANGELOG.md +++ b/sdk/automation/arm-automation/CHANGELOG.md @@ -1,21 +1,13 @@ # Release History - -## 11.0.0-beta.5 (Unreleased) + +## 11.0.0 (2024-12-09) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 11.0.0-beta.4 (2023-01-11) - -The package of @azure/arm-automation is using our next generation design principles since version 11.0.0-beta.4, which contains breaking changes. +The package of @azure/arm-automation is using our next generation design principles since version 11.0.0, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/automation/arm-automation/LICENSE b/sdk/automation/arm-automation/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/automation/arm-automation/LICENSE +++ b/sdk/automation/arm-automation/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/automation/arm-automation/README.md b/sdk/automation/arm-automation/README.md index 4a22dd106ced..45e39b11fd77 100644 --- a/sdk/automation/arm-automation/README.md +++ b/sdk/automation/arm-automation/README.md @@ -6,7 +6,7 @@ Automation Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/automation/arm-automation) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-automation) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-automation?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-automation) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure Automation** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). diff --git a/sdk/automation/arm-automation/_meta.json b/sdk/automation/arm-automation/_meta.json index 9df7963e137a..c8862a34e865 100644 --- a/sdk/automation/arm-automation/_meta.json +++ b/sdk/automation/arm-automation/_meta.json @@ -1,8 +1,8 @@ { - "commit": "405811c51aa09803caedfe17fd305e110db1ca5e", - "readme": "specification\\automation\\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\\automation\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.6.20221226.1 --generate-sample=true", + "commit": "dd2d8dc16abcc241eae74b1b4e8238934922da25", + "readme": "specification/automation/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/automation/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/automation/arm-automation/package.json b/sdk/automation/arm-automation/package.json index cee14a3f219d..e8cd64d08743 100644 --- a/sdk/automation/arm-automation/package.json +++ b/sdk/automation/arm-automation/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AutomationClient.", - "version": "11.0.0-beta.5", + "version": "11.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.6.1", - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.4", + "@azure/abort-controller": "^2.1.2", "@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": [ @@ -28,18 +28,19 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-automation.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "typescript": "~5.6.2", + "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", + "@azure/identity": "^4.2.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.1.0", + "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", + "tsx": "^4.7.1", + "@types/chai": "^4.2.8", "chai": "^4.2.0", - "dotenv": "^16.0.0", - "mocha": "^10.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.6.2" + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -67,28 +68,28 @@ ], "scripts": { "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", - "build:samples": "echo skipped.", + "build:browser": "echo skipped", "build:test": "echo skipped", + "build:samples": "echo skipped.", "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", "test": "npm run integration-test", - "test:browser": "echo skipped", "test:node": "echo skipped", + "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -101,13 +102,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/automation/arm-automation", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-automation?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/automation/arm-automation" +} \ No newline at end of file diff --git a/sdk/automation/arm-automation/review/arm-automation.api.md b/sdk/automation/arm-automation/review/arm-automation.api.md index 6d170db22747..79d4f89bd9c8 100644 --- a/sdk/automation/arm-automation/review/arm-automation.api.md +++ b/sdk/automation/arm-automation/review/arm-automation.api.md @@ -7,9 +7,9 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; import * as coreRestPipeline from '@azure/core-rest-pipeline'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export interface Activity { @@ -157,7 +157,6 @@ export interface AutomationAccount extends TrackedResource { publicNetworkAccess?: boolean; sku?: Sku; readonly state?: AutomationAccountState; - readonly systemData?: SystemData; } // @public @@ -206,6 +205,20 @@ export interface AutomationAccountListByResourceGroupOptionalParams extends core // @public export type AutomationAccountListByResourceGroupResponse = AutomationAccountListResult; +// @public +export interface AutomationAccountListDeletedRunbooksNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AutomationAccountListDeletedRunbooksNextResponse = DeletedRunbookListResult; + +// @public +export interface AutomationAccountListDeletedRunbooksOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AutomationAccountListDeletedRunbooksResponse = DeletedRunbookListResult; + // @public export interface AutomationAccountListNextOptionalParams extends coreClient.OperationOptions { } @@ -233,6 +246,7 @@ export interface AutomationAccountOperations { get(resourceGroupName: string, automationAccountName: string, options?: AutomationAccountGetOptionalParams): Promise; list(options?: AutomationAccountListOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: AutomationAccountListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listDeletedRunbooks(resourceGroupName: string, automationAccountName: string, options?: AutomationAccountListDeletedRunbooksOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, automationAccountName: string, parameters: AutomationAccountUpdateParameters, options?: AutomationAccountUpdateOptionalParams): Promise; } @@ -270,6 +284,8 @@ export class AutomationClient extends coreClient.ServiceClient { // (undocumented) agentRegistrationInformation: AgentRegistrationInformation; // (undocumented) + apiVersion: string; + // (undocumented) automationAccountOperations: AutomationAccountOperations; // (undocumented) certificateOperations: CertificateOperations; @@ -283,10 +299,6 @@ export class AutomationClient extends coreClient.ServiceClient { // (undocumented) deletedAutomationAccounts: DeletedAutomationAccounts; // (undocumented) - dscCompilationJobOperations: DscCompilationJobOperations; - // (undocumented) - dscCompilationJobStream: DscCompilationJobStream; - // (undocumented) dscConfigurationOperations: DscConfigurationOperations; // (undocumented) dscNodeConfigurationOperations: DscNodeConfigurationOperations; @@ -319,16 +331,22 @@ export class AutomationClient extends coreClient.ServiceClient { // (undocumented) operations: Operations; // (undocumented) + packageOperations: PackageOperations; + // (undocumented) privateEndpointConnections: PrivateEndpointConnections; // (undocumented) privateLinkResources: PrivateLinkResources; // (undocumented) python2Package: Python2Package; // (undocumented) + python3Package: Python3Package; + // (undocumented) runbookDraftOperations: RunbookDraftOperations; // (undocumented) runbookOperations: RunbookOperations; // (undocumented) + runtimeEnvironments: RuntimeEnvironments; + // (undocumented) scheduleOperations: ScheduleOperations; // (undocumented) softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns; @@ -363,6 +381,7 @@ export class AutomationClient extends coreClient.ServiceClient { // @public export interface AutomationClientOptionalParams extends coreClient.ServiceClientOptions { $host?: string; + apiVersion?: string; endpoint?: string; } @@ -458,12 +477,6 @@ export interface CertificateUpdateParameters { // @public export type CertificateUpdateResponse = Certificate; -// @public (undocumented) -export interface ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties { - readonly clientId?: string; - readonly principalId?: string; -} - // @public export interface Connection extends ProxyResource { connectionType?: ConnectionTypeAssociationProperty; @@ -768,104 +781,30 @@ export interface DeletedAutomationAccountsListBySubscriptionOptionalParams exten export type DeletedAutomationAccountsListBySubscriptionResponse = DeletedAutomationAccountListResult; // @public -export interface DscCompilationJob extends ProxyResource { - configuration?: DscConfigurationAssociationProperty; - readonly creationTime?: Date; - readonly endTime?: Date; - readonly exception?: string; - readonly jobId?: string; - readonly lastModifiedTime?: Date; - readonly lastStatusModifiedTime?: Date; - parameters?: { - [propertyName: string]: string; - }; - provisioningState?: JobProvisioningState; - runOn?: string; - readonly startedBy?: string; - readonly startTime?: Date; - status?: JobStatus; - statusDetails?: string; -} - -// @public -export interface DscCompilationJobCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface DscCompilationJobCreateParameters { - configuration: DscConfigurationAssociationProperty; - incrementNodeConfigurationBuild?: boolean; +export interface DeletedRunbook { + creationTime?: Date; + deletionTime?: Date; + id?: string; location?: string; name?: string; - parameters?: { - [propertyName: string]: string; - }; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export type DscCompilationJobCreateResponse = DscCompilationJob; - -// @public -export interface DscCompilationJobGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DscCompilationJobGetResponse = DscCompilationJob; - -// @public -export interface DscCompilationJobGetStreamOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DscCompilationJobGetStreamResponse = JobStream; - -// @public -export interface DscCompilationJobListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DscCompilationJobListByAutomationAccountNextResponse = DscCompilationJobListResult; - -// @public -export interface DscCompilationJobListByAutomationAccountOptionalParams extends coreClient.OperationOptions { - filter?: string; + runbookId?: string; + runbookType?: string; + runtime?: string; + runtimeEnvironment?: string; } // @public -export type DscCompilationJobListByAutomationAccountResponse = DscCompilationJobListResult; - -// @public -export interface DscCompilationJobListResult { +export interface DeletedRunbookListResult { nextLink?: string; - value?: DscCompilationJob[]; -} - -// @public -export interface DscCompilationJobOperations { - beginCreate(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: DscCompilationJobCreateParameters, options?: DscCompilationJobCreateOptionalParams): Promise, DscCompilationJobCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: DscCompilationJobCreateParameters, options?: DscCompilationJobCreateOptionalParams): Promise; - get(resourceGroupName: string, automationAccountName: string, compilationJobName: string, options?: DscCompilationJobGetOptionalParams): Promise; - getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options?: DscCompilationJobGetStreamOptionalParams): Promise; - listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: DscCompilationJobListByAutomationAccountOptionalParams): PagedAsyncIterableIterator; + value?: DeletedRunbook[]; } // @public -export interface DscCompilationJobStream { - listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, options?: DscCompilationJobStreamListByJobOptionalParams): Promise; -} - -// @public -export interface DscCompilationJobStreamListByJobOptionalParams extends coreClient.OperationOptions { +export interface Dimension { + displayName?: string; + name?: string; } -// @public -export type DscCompilationJobStreamListByJobResponse = JobStreamListResult; - // @public export interface DscConfiguration extends TrackedResource { creationTime?: Date; @@ -925,7 +864,7 @@ export interface DscConfigurationGetContentOptionalParams extends coreClient.Ope // @public export type DscConfigurationGetContentResponse = { - body: string; + body: coreRestPipeline.RequestBodyType; }; // @public @@ -1125,7 +1064,7 @@ export interface DscNodeConfigurationListResult { // @public export interface DscNodeConfigurationOperations { - beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: DscNodeConfigurationCreateOrUpdateParameters, options?: DscNodeConfigurationCreateOrUpdateOptionalParams): Promise, void>>; + beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: DscNodeConfigurationCreateOrUpdateParameters, options?: DscNodeConfigurationCreateOrUpdateOptionalParams): Promise, void>>; beginCreateOrUpdateAndWait(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: DscNodeConfigurationCreateOrUpdateParameters, options?: DscNodeConfigurationCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: DscNodeConfigurationDeleteOptionalParams): Promise; get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: DscNodeConfigurationGetOptionalParams): Promise; @@ -1318,11 +1257,10 @@ export type GroupTypeEnum = string; export type HttpStatusCode = string; // @public -export interface HybridRunbookWorker extends Resource { +export interface HybridRunbookWorker extends TrackedResource { ip?: string; lastSeenDateTime?: Date; registeredDateTime?: Date; - readonly systemData?: SystemData; vmResourceId?: string; workerName?: string; workerType?: WorkerType_2; @@ -1330,15 +1268,14 @@ export interface HybridRunbookWorker extends Resource { // @public export interface HybridRunbookWorkerCreateParameters { - name?: string; + readonly name?: string; vmResourceId?: string; } // @public -export interface HybridRunbookWorkerGroup extends Resource { +export interface HybridRunbookWorkerGroup extends TrackedResource { credential?: RunAsCredentialAssociationProperty; groupType?: GroupTypeEnum; - readonly systemData?: SystemData; } // @public @@ -1414,6 +1351,7 @@ export interface HybridRunbookWorkers { get(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, options?: HybridRunbookWorkersGetOptionalParams): Promise; listByHybridRunbookWorkerGroup(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams): PagedAsyncIterableIterator; move(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, hybridRunbookWorkerMoveParameters: HybridRunbookWorkerMoveParameters, options?: HybridRunbookWorkersMoveOptionalParams): Promise; + patch(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, options?: HybridRunbookWorkersPatchOptionalParams): Promise; } // @public @@ -1459,13 +1397,21 @@ export interface HybridRunbookWorkersListResult { export interface HybridRunbookWorkersMoveOptionalParams extends coreClient.OperationOptions { } +// @public +export interface HybridRunbookWorkersPatchOptionalParams extends coreClient.OperationOptions { + hybridRunbookWorkerCreationParameters?: HybridRunbookWorkerCreateParameters; +} + +// @public +export type HybridRunbookWorkersPatchResponse = HybridRunbookWorker; + // @public export interface Identity { readonly principalId?: string; readonly tenantId?: string; type?: ResourceIdentityType; userAssignedIdentities?: { - [propertyName: string]: ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties; + [propertyName: string]: UserAssignedIdentitiesProperties; }; } @@ -1475,12 +1421,13 @@ export interface Job extends ProxyResource { endTime?: Date; exception?: string; jobId?: string; + jobRuntimeEnvironment?: JobRuntimeEnvironment; lastModifiedTime?: Date; lastStatusModifiedTime?: Date; parameters?: { [propertyName: string]: string; }; - provisioningState?: JobProvisioningState; + readonly provisioningState?: JobProvisioningState; runbook?: RunbookAssociationProperty; runOn?: string; startedBy?: string; @@ -1494,10 +1441,12 @@ export interface JobCollectionItem extends ProxyResource { readonly creationTime?: Date; readonly endTime?: Date; readonly jobId?: string; + jobRuntimeEnvironment?: JobRuntimeEnvironment; readonly lastModifiedTime?: Date; readonly provisioningState?: string; readonly runbook?: RunbookAssociationProperty; runOn?: string; + readonly startedBy?: string; readonly startTime?: Date; readonly status?: JobStatus; } @@ -1595,6 +1544,11 @@ export interface JobResumeOptionalParams extends coreClient.OperationOptions { clientRequestId?: string; } +// @public +export interface JobRuntimeEnvironment { + runtimeEnvironmentName?: string; +} + // @public export interface JobSchedule { readonly id?: string; @@ -1922,6 +1876,46 @@ export enum KnownLinuxUpdateClasses { Unclassified = "Unclassified" } +// @public +export enum KnownModuleProvisioningState { + ActivitiesStored = "ActivitiesStored", + Canceled = "Canceled", + ConnectionTypeImported = "ConnectionTypeImported", + ContentDownloaded = "ContentDownloaded", + ContentRetrieved = "ContentRetrieved", + ContentStored = "ContentStored", + ContentValidated = "ContentValidated", + Created = "Created", + Creating = "Creating", + Failed = "Failed", + ModuleDataStored = "ModuleDataStored", + ModuleImportRunbookComplete = "ModuleImportRunbookComplete", + RunningImportModuleRunbook = "RunningImportModuleRunbook", + StartingImportModuleRunbook = "StartingImportModuleRunbook", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownPackageProvisioningState { + ActivitiesStored = "ActivitiesStored", + Canceled = "Canceled", + ConnectionTypeImported = "ConnectionTypeImported", + ContentDownloaded = "ContentDownloaded", + ContentRetrieved = "ContentRetrieved", + ContentStored = "ContentStored", + ContentValidated = "ContentValidated", + Created = "Created", + Creating = "Creating", + Failed = "Failed", + ModuleDataStored = "ModuleDataStored", + ModuleImportRunbookComplete = "ModuleImportRunbookComplete", + RunningImportModuleRunbook = "RunningImportModuleRunbook", + StartingImportModuleRunbook = "StartingImportModuleRunbook", + Succeeded = "Succeeded", + Updating = "Updating" +} + // @public export enum KnownProvisioningState { Completed = "Completed", @@ -1942,7 +1936,9 @@ export enum KnownRunbookTypeEnum { GraphPowerShell = "GraphPowerShell", GraphPowerShellWorkflow = "GraphPowerShellWorkflow", PowerShell = "PowerShell", + PowerShell72 = "PowerShell72", PowerShellWorkflow = "PowerShellWorkflow", + Python = "Python", Python2 = "Python2", Python3 = "Python3", Script = "Script" @@ -2047,6 +2043,23 @@ export interface LinuxProperties { // @public export type LinuxUpdateClasses = string; +// @public +export interface LogSpecification { + blobDuration?: string; + displayName?: string; + name?: string; +} + +// @public +export interface MetricSpecification { + aggregationType?: string; + dimensions?: Dimension[]; + displayDescription?: string; + displayName?: string; + name?: string; + unit?: string; +} + // @public export interface Module extends TrackedResource { activityCount?: number; @@ -2127,7 +2140,7 @@ export interface ModuleOperations { } // @public -export type ModuleProvisioningState = "Created" | "Creating" | "StartingImportModuleRunbook" | "RunningImportModuleRunbook" | "ContentRetrieved" | "ContentDownloaded" | "ContentValidated" | "ConnectionTypeImported" | "ContentStored" | "ModuleDataStored" | "ActivitiesStored" | "ModuleImportRunbookComplete" | "Succeeded" | "Failed" | "Cancelled" | "Updating"; +export type ModuleProvisioningState = string; // @public export interface ModuleUpdateOptionalParams extends coreClient.OperationOptions { @@ -2136,8 +2149,8 @@ export interface ModuleUpdateOptionalParams extends coreClient.OperationOptions // @public export interface ModuleUpdateParameters { contentLink?: ContentLink; - location?: string; - name?: string; + readonly location?: string; + readonly name?: string; tags?: { [propertyName: string]: string; }; @@ -2245,10 +2258,13 @@ export type OperatingSystemType = "Windows" | "Linux"; export interface Operation { display?: OperationDisplay; name?: string; + origin?: string; + serviceSpecification?: OperationPropertiesFormatServiceSpecification; } // @public export interface OperationDisplay { + description?: string; operation?: string; provider?: string; resource?: string; @@ -2259,6 +2275,12 @@ export interface OperationListResult { value?: Operation[]; } +// @public +export interface OperationPropertiesFormatServiceSpecification { + logSpecifications?: LogSpecification[]; + metricSpecifications?: MetricSpecification[]; +} + // @public export interface Operations { list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; @@ -2271,6 +2293,92 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption // @public export type OperationsListResponse = OperationListResult; +// @public +export interface Package extends TrackedResource { + readonly allOf?: SystemData; + contentLink?: ContentLink; + default?: boolean; + error?: PackageErrorInfo; + readonly provisioningState?: PackageProvisioningState; + sizeInBytes?: number; + version?: string; +} + +// @public +export interface PackageCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PackageCreateOrUpdateParameters { + allOf?: TrackedResource; + contentLink: ContentLink; +} + +// @public +export type PackageCreateOrUpdateResponse = Package; + +// @public +export interface PackageDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PackageErrorInfo { + code?: string; + message?: string; +} + +// @public +export interface PackageGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PackageGetResponse = Package; + +// @public +export interface PackageListByRuntimeEnvironmentNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PackageListByRuntimeEnvironmentNextResponse = PackageListResult; + +// @public +export interface PackageListByRuntimeEnvironmentOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PackageListByRuntimeEnvironmentResponse = PackageListResult; + +// @public +export interface PackageListResult { + nextLink?: string; + value?: Package[]; +} + +// @public +export interface PackageOperations { + createOrUpdate(resourceGroupName: string, automationAccountName: string, runtimeEnvironmentName: string, packageName: string, parameters: PackageCreateOrUpdateParameters, options?: PackageCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, automationAccountName: string, runtimeEnvironmentName: string, packageName: string, options?: PackageDeleteOptionalParams): Promise; + get(resourceGroupName: string, automationAccountName: string, runtimeEnvironmentName: string, packageName: string, options?: PackageGetOptionalParams): Promise; + listByRuntimeEnvironment(resourceGroupName: string, automationAccountName: string, runtimeEnvironmentName: string, options?: PackageListByRuntimeEnvironmentOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, automationAccountName: string, runtimeEnvironmentName: string, packageName: string, parameters: PackageUpdateParameters, options?: PackageUpdateOptionalParams): Promise; +} + +// @public +export type PackageProvisioningState = string; + +// @public +export interface PackageUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PackageUpdateParameters { + allOf?: TrackedResource; + contentLink?: ContentLink; +} + +// @public +export type PackageUpdateResponse = Package; + // @public export interface PrivateEndpointConnection extends ProxyResource { groupIds?: string[]; @@ -2285,10 +2393,10 @@ export interface PrivateEndpointConnectionListResult { // @public export interface PrivateEndpointConnections { - beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, PrivateEndpointConnectionsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; get(resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams): PagedAsyncIterableIterator; } @@ -2302,12 +2410,20 @@ export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends // @public export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +// @public +export interface PrivateEndpointConnectionsDeleteHeaders { + location?: string; +} + // @public export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export type PrivateEndpointConnectionsDeleteResponse = PrivateEndpointConnectionsDeleteHeaders; + // @public export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { } @@ -2412,6 +2528,54 @@ export interface Python2PackageUpdateOptionalParams extends coreClient.Operation // @public export type Python2PackageUpdateResponse = Module; +// @public +export interface Python3Package { + createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: PythonPackageCreateParameters, options?: Python3PackageCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, automationAccountName: string, packageName: string, options?: Python3PackageDeleteOptionalParams): Promise; + get(resourceGroupName: string, automationAccountName: string, packageName: string, options?: Python3PackageGetOptionalParams): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Python3PackageListByAutomationAccountOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: PythonPackageUpdateParameters, options?: Python3PackageUpdateOptionalParams): Promise; +} + +// @public +export interface Python3PackageCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type Python3PackageCreateOrUpdateResponse = Module; + +// @public +export interface Python3PackageDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface Python3PackageGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type Python3PackageGetResponse = Module; + +// @public +export interface Python3PackageListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type Python3PackageListByAutomationAccountNextResponse = ModuleListResult; + +// @public +export interface Python3PackageListByAutomationAccountOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type Python3PackageListByAutomationAccountResponse = ModuleListResult; + +// @public +export interface Python3PackageUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type Python3PackageUpdateResponse = Module; + // @public export interface PythonPackageCreateParameters { contentLink: ContentLink; @@ -2438,6 +2602,7 @@ export interface RawGraphicalRunbookContent { export interface Resource { readonly id?: string; readonly name?: string; + readonly systemData?: SystemData; readonly type?: string; } @@ -2468,6 +2633,7 @@ export interface Runbook extends TrackedResource { provisioningState?: "Succeeded"; publishContentLink?: ContentLink; runbookType?: RunbookTypeEnum; + runtimeEnvironment?: string; state?: RunbookState; } @@ -2489,6 +2655,7 @@ export interface RunbookCreateOrUpdateDraftProperties { logProgress?: boolean; logVerbose?: boolean; runbookType: RunbookTypeEnum; + runtimeEnvironment?: string; } // @public @@ -2506,6 +2673,7 @@ export interface RunbookCreateOrUpdateParameters { name?: string; publishContentLink?: ContentLink; runbookType: RunbookTypeEnum; + runtimeEnvironment?: string; tags?: { [propertyName: string]: string; }; @@ -2548,7 +2716,7 @@ export type RunbookDraftGetResponse = RunbookDraft; // @public export interface RunbookDraftOperations { - beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: RunbookDraftReplaceContentOptionalParams): Promise, RunbookDraftReplaceContentResponse>>; + beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: RunbookDraftReplaceContentOptionalParams): Promise, RunbookDraftReplaceContentResponse>>; beginReplaceContentAndWait(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: string, options?: RunbookDraftReplaceContentOptionalParams): Promise; get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: RunbookDraftGetOptionalParams): Promise; getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: RunbookDraftGetContentOptionalParams): Promise; @@ -2625,7 +2793,7 @@ export interface RunbookListResult { // @public export interface RunbookOperations { - beginPublish(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: RunbookPublishOptionalParams): Promise, RunbookPublishResponse>>; + beginPublish(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: RunbookPublishOptionalParams): Promise, RunbookPublishResponse>>; beginPublishAndWait(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: RunbookPublishOptionalParams): Promise; createOrUpdate(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: RunbookCreateOrUpdateParameters, options?: RunbookCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: RunbookDeleteOptionalParams): Promise; @@ -2683,6 +2851,78 @@ export interface RunbookUpdateParameters { // @public export type RunbookUpdateResponse = Runbook; +// @public +export interface RuntimeEnvironment extends TrackedResource { + defaultPackages?: { + [propertyName: string]: string; + }; + description?: string; + language?: string; + version?: string; +} + +// @public +export interface RuntimeEnvironmentListResult { + nextLink?: string; + value?: RuntimeEnvironment[]; +} + +// @public +export interface RuntimeEnvironments { + create(resourceGroupName: string, automationAccountName: string, runtimeEnvironmentName: string, parameters: RuntimeEnvironment, options?: RuntimeEnvironmentsCreateOptionalParams): Promise; + delete(resourceGroupName: string, automationAccountName: string, runtimeEnvironmentName: string, options?: RuntimeEnvironmentsDeleteOptionalParams): Promise; + get(resourceGroupName: string, automationAccountName: string, runtimeEnvironmentName: string, options?: RuntimeEnvironmentsGetOptionalParams): Promise; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: RuntimeEnvironmentsListByAutomationAccountOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, automationAccountName: string, runtimeEnvironmentName: string, parameters: RuntimeEnvironmentUpdateParameters, options?: RuntimeEnvironmentsUpdateOptionalParams): Promise; +} + +// @public +export interface RuntimeEnvironmentsCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RuntimeEnvironmentsCreateResponse = RuntimeEnvironment; + +// @public +export interface RuntimeEnvironmentsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface RuntimeEnvironmentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RuntimeEnvironmentsGetResponse = RuntimeEnvironment; + +// @public +export interface RuntimeEnvironmentsListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RuntimeEnvironmentsListByAutomationAccountNextResponse = RuntimeEnvironmentListResult; + +// @public +export interface RuntimeEnvironmentsListByAutomationAccountOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RuntimeEnvironmentsListByAutomationAccountResponse = RuntimeEnvironmentListResult; + +// @public +export interface RuntimeEnvironmentsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RuntimeEnvironmentsUpdateResponse = RuntimeEnvironment; + +// @public +export interface RuntimeEnvironmentUpdateParameters { + defaultPackages?: { + [propertyName: string]: string; + }; + readonly systemData?: SystemData; +} + // @public export interface Schedule extends ProxyResource { advancedSchedule?: AdvancedSchedule; @@ -3331,6 +3571,7 @@ export interface TestJobCreateParameters { [propertyName: string]: string; }; runOn?: string; + runtimeEnvironment?: string; } // @public @@ -3397,7 +3638,7 @@ export type TokenType = string; // @public export interface TrackedResource extends Resource { - location?: string; + location: string; tags?: { [propertyName: string]: string; }; @@ -3463,6 +3704,12 @@ export interface UsagesListByAutomationAccountOptionalParams extends coreClient. // @public export type UsagesListByAutomationAccountResponse = UsageListResult; +// @public (undocumented) +export interface UserAssignedIdentitiesProperties { + readonly clientId?: string; + readonly principalId?: string; +} + // @public export interface Variable extends ProxyResource { creationTime?: Date; diff --git a/sdk/automation/arm-automation/sample.env b/sdk/automation/arm-automation/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/automation/arm-automation/sample.env +++ b/sdk/automation/arm-automation/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/automation/arm-automation/src/automationClient.ts b/sdk/automation/arm-automation/src/automationClient.ts index 51e94d91f5be..04afa7ac53c7 100644 --- a/sdk/automation/arm-automation/src/automationClient.ts +++ b/sdk/automation/arm-automation/src/automationClient.ts @@ -8,21 +8,20 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest, +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { - PrivateEndpointConnectionsImpl, + NodeCountInformationImpl, + SoftwareUpdateConfigurationsImpl, + DeletedAutomationAccountsImpl, PrivateLinkResourcesImpl, - Python2PackageImpl, AgentRegistrationInformationImpl, DscNodeOperationsImpl, NodeReportsImpl, - DscNodeConfigurationOperationsImpl, - DscCompilationJobOperationsImpl, - DscCompilationJobStreamImpl, - NodeCountInformationImpl, - SourceControlOperationsImpl, - SourceControlSyncJobOperationsImpl, - SourceControlSyncJobStreamsImpl, AutomationAccountOperationsImpl, StatisticsOperationsImpl, UsagesImpl, @@ -31,45 +30,46 @@ import { ConnectionOperationsImpl, ConnectionTypeOperationsImpl, CredentialOperationsImpl, + DscConfigurationOperationsImpl, + DscNodeConfigurationOperationsImpl, + HybridRunbookWorkersImpl, + HybridRunbookWorkerGroupOperationsImpl, + JobOperationsImpl, + JobStreamOperationsImpl, JobScheduleOperationsImpl, LinkedWorkspaceOperationsImpl, ActivityOperationsImpl, ModuleOperationsImpl, ObjectDataTypesImpl, FieldsImpl, - ScheduleOperationsImpl, - VariableOperationsImpl, - WatcherOperationsImpl, - DscConfigurationOperationsImpl, - JobOperationsImpl, - JobStreamOperationsImpl, OperationsImpl, - SoftwareUpdateConfigurationsImpl, - SoftwareUpdateConfigurationRunsImpl, - SoftwareUpdateConfigurationMachineRunsImpl, + PackageOperationsImpl, + PrivateEndpointConnectionsImpl, + Python2PackageImpl, + Python3PackageImpl, RunbookDraftOperationsImpl, RunbookOperationsImpl, TestJobStreamsImpl, TestJobOperationsImpl, + RuntimeEnvironmentsImpl, + ScheduleOperationsImpl, + SoftwareUpdateConfigurationMachineRunsImpl, + SoftwareUpdateConfigurationRunsImpl, + SourceControlOperationsImpl, + SourceControlSyncJobOperationsImpl, + SourceControlSyncJobStreamsImpl, + VariableOperationsImpl, + WatcherOperationsImpl, WebhookOperationsImpl, - HybridRunbookWorkersImpl, - DeletedAutomationAccountsImpl, - HybridRunbookWorkerGroupOperationsImpl } from "./operations"; import { - PrivateEndpointConnections, + NodeCountInformation, + SoftwareUpdateConfigurations, + DeletedAutomationAccounts, PrivateLinkResources, - Python2Package, AgentRegistrationInformation, DscNodeOperations, NodeReports, - DscNodeConfigurationOperations, - DscCompilationJobOperations, - DscCompilationJobStream, - NodeCountInformation, - SourceControlOperations, - SourceControlSyncJobOperations, - SourceControlSyncJobStreams, AutomationAccountOperations, StatisticsOperations, Usages, @@ -78,30 +78,37 @@ import { ConnectionOperations, ConnectionTypeOperations, CredentialOperations, + DscConfigurationOperations, + DscNodeConfigurationOperations, + HybridRunbookWorkers, + HybridRunbookWorkerGroupOperations, + JobOperations, + JobStreamOperations, JobScheduleOperations, LinkedWorkspaceOperations, ActivityOperations, ModuleOperations, ObjectDataTypes, Fields, - ScheduleOperations, - VariableOperations, - WatcherOperations, - DscConfigurationOperations, - JobOperations, - JobStreamOperations, Operations, - SoftwareUpdateConfigurations, - SoftwareUpdateConfigurationRuns, - SoftwareUpdateConfigurationMachineRuns, + PackageOperations, + PrivateEndpointConnections, + Python2Package, + Python3Package, RunbookDraftOperations, RunbookOperations, TestJobStreams, TestJobOperations, + RuntimeEnvironments, + ScheduleOperations, + SoftwareUpdateConfigurationMachineRuns, + SoftwareUpdateConfigurationRuns, + SourceControlOperations, + SourceControlSyncJobOperations, + SourceControlSyncJobStreams, + VariableOperations, + WatcherOperations, WebhookOperations, - HybridRunbookWorkers, - DeletedAutomationAccounts, - HybridRunbookWorkerGroupOperations } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -109,12 +116,13 @@ import { AutomationClientOptionalParams, GraphicalRunbookContent, ConvertGraphRunbookContentOptionalParams, - ConvertGraphRunbookContentResponse + ConvertGraphRunbookContentResponse, } from "./models"; export class AutomationClient extends coreClient.ServiceClient { $host: string; subscriptionId: string; + apiVersion: string; /** * Initializes a new instance of the AutomationClient class. @@ -126,7 +134,7 @@ export class AutomationClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AutomationClientOptionalParams + options?: AutomationClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -141,10 +149,10 @@ export class AutomationClient extends coreClient.ServiceClient { } const defaults: AutomationClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.5`; + const packageDetails = `azsdk-js-arm-automation/11.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -154,20 +162,21 @@ export class AutomationClient 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 ( @@ -177,7 +186,7 @@ export class AutomationClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -187,9 +196,9 @@ export class AutomationClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -197,31 +206,20 @@ export class AutomationClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); + this.apiVersion = options.apiVersion || "2024-10-23"; + this.nodeCountInformation = new NodeCountInformationImpl(this); + this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl( + this, + ); + this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); - this.python2Package = new Python2PackageImpl(this); this.agentRegistrationInformation = new AgentRegistrationInformationImpl( - this + this, ); this.dscNodeOperations = new DscNodeOperationsImpl(this); this.nodeReports = new NodeReportsImpl(this); - this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl( - this - ); - this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl( - this - ); - this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this); - this.nodeCountInformation = new NodeCountInformationImpl(this); - this.sourceControlOperations = new SourceControlOperationsImpl(this); - this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl( - this - ); - this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl( - this - ); this.automationAccountOperations = new AutomationAccountOperationsImpl( - this + this, ); this.statisticsOperations = new StatisticsOperationsImpl(this); this.usages = new UsagesImpl(this); @@ -230,38 +228,73 @@ export class AutomationClient extends coreClient.ServiceClient { this.connectionOperations = new ConnectionOperationsImpl(this); this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this); this.credentialOperations = new CredentialOperationsImpl(this); + this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this); + this.dscNodeConfigurationOperations = + new DscNodeConfigurationOperationsImpl(this); + this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this); + this.hybridRunbookWorkerGroupOperations = + new HybridRunbookWorkerGroupOperationsImpl(this); + this.jobOperations = new JobOperationsImpl(this); + this.jobStreamOperations = new JobStreamOperationsImpl(this); this.jobScheduleOperations = new JobScheduleOperationsImpl(this); this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this); this.activityOperations = new ActivityOperationsImpl(this); this.moduleOperations = new ModuleOperationsImpl(this); this.objectDataTypes = new ObjectDataTypesImpl(this); this.fields = new FieldsImpl(this); - this.scheduleOperations = new ScheduleOperationsImpl(this); - this.variableOperations = new VariableOperationsImpl(this); - this.watcherOperations = new WatcherOperationsImpl(this); - this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this); - this.jobOperations = new JobOperationsImpl(this); - this.jobStreamOperations = new JobStreamOperationsImpl(this); this.operations = new OperationsImpl(this); - this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl( - this - ); - this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl( - this - ); - this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl( - this - ); + this.packageOperations = new PackageOperationsImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); + this.python2Package = new Python2PackageImpl(this); + this.python3Package = new Python3PackageImpl(this); this.runbookDraftOperations = new RunbookDraftOperationsImpl(this); this.runbookOperations = new RunbookOperationsImpl(this); this.testJobStreams = new TestJobStreamsImpl(this); this.testJobOperations = new TestJobOperationsImpl(this); - this.webhookOperations = new WebhookOperationsImpl(this); - this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this); - this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this); - this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl( - this + this.runtimeEnvironments = new RuntimeEnvironmentsImpl(this); + this.scheduleOperations = new ScheduleOperationsImpl(this); + this.softwareUpdateConfigurationMachineRuns = + new SoftwareUpdateConfigurationMachineRunsImpl(this); + this.softwareUpdateConfigurationRuns = + new SoftwareUpdateConfigurationRunsImpl(this); + this.sourceControlOperations = new SourceControlOperationsImpl(this); + this.sourceControlSyncJobOperations = + new SourceControlSyncJobOperationsImpl(this); + this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl( + this, ); + this.variableOperations = new VariableOperationsImpl(this); + this.watcherOperations = new WatcherOperationsImpl(this); + this.webhookOperations = new WebhookOperationsImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest, + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + }, + }; + this.pipeline.addPolicy(apiVersionPolicy); } /** @@ -275,27 +308,21 @@ export class AutomationClient extends coreClient.ServiceClient { resourceGroupName: string, automationAccountName: string, parameters: GraphicalRunbookContent, - options?: ConvertGraphRunbookContentOptionalParams + options?: ConvertGraphRunbookContentOptionalParams, ): Promise { return this.sendOperationRequest( { resourceGroupName, automationAccountName, parameters, options }, - convertGraphRunbookContentOperationSpec + convertGraphRunbookContentOperationSpec, ); } - privateEndpointConnections: PrivateEndpointConnections; + nodeCountInformation: NodeCountInformation; + softwareUpdateConfigurations: SoftwareUpdateConfigurations; + deletedAutomationAccounts: DeletedAutomationAccounts; privateLinkResources: PrivateLinkResources; - python2Package: Python2Package; agentRegistrationInformation: AgentRegistrationInformation; dscNodeOperations: DscNodeOperations; nodeReports: NodeReports; - dscNodeConfigurationOperations: DscNodeConfigurationOperations; - dscCompilationJobOperations: DscCompilationJobOperations; - dscCompilationJobStream: DscCompilationJobStream; - nodeCountInformation: NodeCountInformation; - sourceControlOperations: SourceControlOperations; - sourceControlSyncJobOperations: SourceControlSyncJobOperations; - sourceControlSyncJobStreams: SourceControlSyncJobStreams; automationAccountOperations: AutomationAccountOperations; statisticsOperations: StatisticsOperations; usages: Usages; @@ -304,55 +331,61 @@ export class AutomationClient extends coreClient.ServiceClient { connectionOperations: ConnectionOperations; connectionTypeOperations: ConnectionTypeOperations; credentialOperations: CredentialOperations; + dscConfigurationOperations: DscConfigurationOperations; + dscNodeConfigurationOperations: DscNodeConfigurationOperations; + hybridRunbookWorkers: HybridRunbookWorkers; + hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations; + jobOperations: JobOperations; + jobStreamOperations: JobStreamOperations; jobScheduleOperations: JobScheduleOperations; linkedWorkspaceOperations: LinkedWorkspaceOperations; activityOperations: ActivityOperations; moduleOperations: ModuleOperations; objectDataTypes: ObjectDataTypes; fields: Fields; - scheduleOperations: ScheduleOperations; - variableOperations: VariableOperations; - watcherOperations: WatcherOperations; - dscConfigurationOperations: DscConfigurationOperations; - jobOperations: JobOperations; - jobStreamOperations: JobStreamOperations; operations: Operations; - softwareUpdateConfigurations: SoftwareUpdateConfigurations; - softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns; - softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns; + packageOperations: PackageOperations; + privateEndpointConnections: PrivateEndpointConnections; + python2Package: Python2Package; + python3Package: Python3Package; runbookDraftOperations: RunbookDraftOperations; runbookOperations: RunbookOperations; testJobStreams: TestJobStreams; testJobOperations: TestJobOperations; + runtimeEnvironments: RuntimeEnvironments; + scheduleOperations: ScheduleOperations; + softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns; + softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns; + sourceControlOperations: SourceControlOperations; + sourceControlSyncJobOperations: SourceControlSyncJobOperations; + sourceControlSyncJobStreams: SourceControlSyncJobStreams; + variableOperations: VariableOperations; + watcherOperations: WatcherOperations; webhookOperations: WebhookOperations; - hybridRunbookWorkers: HybridRunbookWorkers; - deletedAutomationAccounts: DeletedAutomationAccounts; - hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GraphicalRunbookContent + bodyMapper: Mappers.GraphicalRunbookContent, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/lroImpl.ts b/sdk/automation/arm-automation/src/lroImpl.ts index 518d5f053b4e..5f88efab981b 100644 --- a/sdk/automation/arm-automation/src/lroImpl.ts +++ b/sdk/automation/arm-automation/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike }, + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal, + }); + }, + }; } diff --git a/sdk/automation/arm-automation/src/models/index.ts b/sdk/automation/arm-automation/src/models/index.ts index 15fab0644db3..fcb849024efa 100644 --- a/sdk/automation/arm-automation/src/models/index.ts +++ b/sdk/automation/arm-automation/src/models/index.ts @@ -9,135 +9,374 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; -/** A list of private endpoint connections */ -export interface PrivateEndpointConnectionListResult { - /** Array of private endpoint connections */ - value?: PrivateEndpointConnection[]; +/** Gets the count of nodes by count type */ +export interface NodeCounts { + /** Gets an array of counts */ + value?: NodeCount[]; + /** Gets the total number of records matching countType criteria. */ + totalCount?: number; } -/** Private endpoint which the connection belongs to. */ -export interface PrivateEndpointProperty { - /** Resource id of the private endpoint. */ - id?: string; +/** Number of nodes based on the Filter */ +export interface NodeCount { + /** Gets the name of a count type */ + name?: string; + properties?: NodeCountProperties; } -/** Connection State of the Private Endpoint Connection. */ -export interface PrivateLinkServiceConnectionStateProperty { - /** The private link service connection status. */ - status?: string; - /** The private link service connection description. */ - description?: string; +export interface NodeCountProperties { + /** Gets the count for the name */ + count?: number; +} + +/** Error response of an operation failure */ +export interface ErrorResponse { + /** Error code */ + code?: string; + /** Error message indicating why the operation failed. */ + message?: string; +} + +/** Software update configuration properties. */ +export interface SoftwareUpdateConfiguration { /** - * Any action that is required beyond basic workflow (approve/ reject/ disconnect) + * Resource name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionsRequired?: string; -} - -/** The core properties of ARM resources */ -export interface Resource { + readonly name?: string; /** - * Fully qualified resource Id for the resource + * Resource Id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * The name of the resource + * Resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly type?: string; + /** update specific properties for the Software update configuration */ + updateConfiguration: UpdateConfiguration; + /** Schedule information for the Software update configuration */ + scheduleInfo: SUCScheduleProperties; /** - * The type of the resource. + * Provisioning state for the software update configuration, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly provisioningState?: string; + /** Details of provisioning error */ + error?: ErrorResponse; + /** + * Creation time of the resource, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationTime?: Date; + /** + * CreatedBy property, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdBy?: string; + /** + * Last time resource was modified, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModifiedTime?: Date; + /** + * LastModifiedBy property, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModifiedBy?: string; + /** Tasks information for the Software update configuration. */ + tasks?: SoftwareUpdateConfigurationTasks; } -/** Error response of an operation failure */ -export interface ErrorResponse { - /** Error code */ - code?: string; - /** Error message indicating why the operation failed. */ - message?: string; +/** Update specific properties of the software update configuration. */ +export interface UpdateConfiguration { + /** operating system of target machines */ + operatingSystem: OperatingSystemType; + /** Windows specific update configuration. */ + windows?: WindowsProperties; + /** Linux specific update configuration. */ + linux?: LinuxProperties; + /** Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601 */ + duration?: string; + /** List of azure resource Ids for azure virtual machines targeted by the software update configuration. */ + azureVirtualMachines?: string[]; + /** List of names of non-azure machines targeted by the software update configuration. */ + nonAzureComputerNames?: string[]; + /** Group targets for the software update configuration. */ + targets?: TargetProperties; } -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { - /** Array of private link resources */ - value?: PrivateLinkResource[]; +/** Windows specific update configuration. */ +export interface WindowsProperties { + /** Update classification included in the software update configuration. A comma separated string with required values */ + includedUpdateClassifications?: WindowsUpdateClasses; + /** KB numbers excluded from the software update configuration. */ + excludedKbNumbers?: string[]; + /** KB numbers included from the software update configuration. */ + includedKbNumbers?: string[]; + /** Reboot setting for the software update configuration. */ + rebootSetting?: string; } -/** Definition of the content link. */ -export interface ContentLink { - /** Gets or sets the uri of the runbook content. */ - uri?: string; - /** Gets or sets the hash. */ - contentHash?: ContentHash; - /** Gets or sets the version of the content. */ - version?: string; +/** Linux specific update configuration. */ +export interface LinuxProperties { + /** Update classifications included in the software update configuration. */ + includedPackageClassifications?: LinuxUpdateClasses; + /** packages excluded from the software update configuration. */ + excludedPackageNameMasks?: string[]; + /** packages included from the software update configuration. */ + includedPackageNameMasks?: string[]; + /** Reboot setting for the software update configuration. */ + rebootSetting?: string; } -/** Definition of the runbook property type. */ -export interface ContentHash { - /** Gets or sets the content hash algorithm used to hash the content. */ - algorithm: string; - /** Gets or sets expected hash value of the content. */ - value: string; +/** Group specific to the update configuration. */ +export interface TargetProperties { + /** List of Azure queries in the software update configuration. */ + azureQueries?: AzureQueryProperties[]; + /** List of non Azure queries in the software update configuration. */ + nonAzureQueries?: NonAzureQueryProperties[]; } -/** Definition of the module error info type. */ -export interface ModuleErrorInfo { - /** Gets or sets the error code. */ - code?: string; - /** Gets or sets the error message. */ - message?: string; +/** Azure query for the update configuration. */ +export interface AzureQueryProperties { + /** List of Subscription or Resource Group ARM Ids. */ + scope?: string[]; + /** List of locations to scope the query to. */ + locations?: string[]; + /** Tag settings for the VM. */ + tagSettings?: TagSettingsProperties; } -/** The parameters supplied to the create or update module operation. */ -export interface PythonPackageCreateParameters { - /** Gets or sets the tags attached to the resource. */ - tags?: { [propertyName: string]: string }; - /** Gets or sets the module content link. */ - contentLink: ContentLink; +/** Tag filter information for the VM. */ +export interface TagSettingsProperties { + /** Dictionary of tags with its list of values. */ + tags?: { [propertyName: string]: string[] }; + /** Filter VMs by Any or All specified tags. */ + filterOperator?: TagOperators; } -/** The parameters supplied to the update module operation. */ -export interface PythonPackageUpdateParameters { - /** Gets or sets the tags attached to the resource. */ - tags?: { [propertyName: string]: string }; +/** Non Azure query for the update configuration. */ +export interface NonAzureQueryProperties { + /** Log Analytics Saved Search name. */ + functionAlias?: string; + /** Workspace Id for Log Analytics in which the saved Search is resided. */ + workspaceId?: string; } -/** The response model for the list module operation. */ -export interface ModuleListResult { - /** Gets or sets a list of modules. */ - value?: Module[]; - /** Gets or sets the next link. */ - nextLink?: string; +/** Definition of schedule parameters. */ +export interface SUCScheduleProperties { + /** Gets or sets the start time of the schedule. */ + startTime?: Date; + /** + * Gets the start time's offset in minutes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTimeOffsetMinutes?: number; + /** Gets or sets the end time of the schedule. */ + expiryTime?: Date; + /** Gets or sets the expiry time's offset in minutes. */ + expiryTimeOffsetMinutes?: number; + /** Gets or sets a value indicating whether this schedule is enabled. */ + isEnabled?: boolean; + /** Gets or sets the next run time of the schedule. */ + nextRun?: Date; + /** Gets or sets the next run time's offset in minutes. */ + nextRunOffsetMinutes?: number; + /** Gets or sets the interval of the schedule. */ + interval?: number; + /** Gets or sets the frequency of the schedule. */ + frequency?: ScheduleFrequency; + /** Gets or sets the time zone of the schedule. */ + timeZone?: string; + /** Gets or sets the advanced schedule. */ + advancedSchedule?: AdvancedSchedule; + /** Gets or sets the creation time. */ + creationTime?: Date; + /** Gets or sets the last modified time. */ + lastModifiedTime?: Date; + /** Gets or sets the description. */ + description?: string; } -/** Definition of the agent registration information type. */ -export interface AgentRegistration { - /** Gets or sets the dsc meta configuration. */ - dscMetaConfiguration?: string; - /** Gets or sets the dsc server endpoint. */ - endpoint?: string; - /** Gets or sets the agent registration keys. */ - keys?: AgentRegistrationKeys; - /** Gets or sets the id. */ - id?: string; +/** The properties of the create Advanced Schedule. */ +export interface AdvancedSchedule { + /** Days of the week that the job should execute on. */ + weekDays?: string[]; + /** Days of the month that the job should execute on. Must be between 1 and 31. */ + monthDays?: number[]; + /** Occurrences of days within a month. */ + monthlyOccurrences?: AdvancedScheduleMonthlyOccurrence[]; } -/** Definition of the agent registration keys. */ -export interface AgentRegistrationKeys { - /** Gets or sets the primary key. */ - primary?: string; - /** Gets or sets the secondary key. */ - secondary?: string; +/** The properties of the create advanced schedule monthly occurrence. */ +export interface AdvancedScheduleMonthlyOccurrence { + /** Occurrence of the week within the month. Must be between 1 and 5 */ + occurrence?: number; + /** Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday. */ + day?: ScheduleDay; } -/** The parameters supplied to the regenerate keys operation. */ -export interface AgentRegistrationRegenerateKeyParameter { - /** Gets or sets the agent registration key name - primary or secondary. */ +/** Task properties of the software update configuration. */ +export interface SoftwareUpdateConfigurationTasks { + /** Pre task properties. */ + preTask?: TaskProperties; + /** Post task properties. */ + postTask?: TaskProperties; +} + +/** Task properties of the software update configuration. */ +export interface TaskProperties { + /** Gets or sets the parameters of the task. */ + parameters?: { [propertyName: string]: string }; + /** Gets or sets the name of the runbook. */ + source?: string; +} + +/** result of listing all software update configuration */ +export interface SoftwareUpdateConfigurationListResult { + /** outer object returned when listing all software update configurations */ + value?: SoftwareUpdateConfigurationCollectionItem[]; +} + +/** Software update configuration collection item properties. */ +export interface SoftwareUpdateConfigurationCollectionItem { + /** + * Name of the software update configuration. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource Id of the software update configuration + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** Update specific properties of the software update configuration. */ + updateConfiguration?: UpdateConfiguration; + /** Pre and Post Tasks defined */ + tasks?: SoftwareUpdateConfigurationTasks; + /** execution frequency of the schedule associated with the software update configuration */ + frequency?: ScheduleFrequency; + /** the start time of the update. */ + startTime?: Date; + /** + * Creation time of the software update configuration, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creationTime?: Date; + /** + * Last time software update configuration was modified, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModifiedTime?: Date; + /** + * Provisioning state for the software update configuration, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** ext run time of the update. */ + nextRun?: Date; +} + +/** The response model for the list deleted automation account. */ +export interface DeletedAutomationAccountListResult { + /** Gets or sets the list of deleted automation accounts. */ + value?: DeletedAutomationAccount[]; +} + +/** Definition of the deleted automation account type. */ +export interface DeletedAutomationAccount { + /** The resource id. */ + id?: string; + /** Gets or sets name of the resource. */ + name?: string; + /** The resource type. */ + type?: string; + /** Gets or sets the location of the resource. */ + location?: string; + /** Gets or sets the Automation Account Resource Id. */ + automationAccountResourceId?: string; + /** Gets or sets the Automation Account Id. */ + automationAccountId?: string; + /** Gets or sets the location of the resource. */ + locationPropertiesLocation?: string; + /** + * Gets the deletion time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly deletionTime?: Date; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { + /** Array of private link resources */ + value?: PrivateLinkResource[]; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Definition of the agent registration information type. */ +export interface AgentRegistration { + /** Gets or sets the dsc meta configuration. */ + dscMetaConfiguration?: string; + /** Gets or sets the dsc server endpoint. */ + endpoint?: string; + /** Gets or sets the agent registration keys. */ + keys?: AgentRegistrationKeys; + /** Gets or sets the id. */ + id?: string; +} + +/** Definition of the agent registration keys. */ +export interface AgentRegistrationKeys { + /** Gets or sets the primary key. */ + primary?: string; + /** Gets or sets the secondary key. */ + secondary?: string; +} + +/** The parameters supplied to the regenerate keys operation. */ +export interface AgentRegistrationRegenerateKeyParameter { + /** Gets or sets the agent registration key name - primary or secondary. */ keyName: AgentRegistrationKeyName; } @@ -266,326 +505,23 @@ export interface DscReportResourceNavigation { /** Gets or sets the ID of the resource to navigate to. */ resourceId?: string; } - -/** Definition of the DSC Meta Configuration. */ -export interface DscMetaConfiguration { - /** Gets or sets the ConfigurationModeFrequencyMins value of the meta configuration. */ - configurationModeFrequencyMins?: number; - /** Gets or sets the RebootNodeIfNeeded value of the meta configuration. */ - rebootNodeIfNeeded?: boolean; - /** Gets or sets the ConfigurationMode value of the meta configuration. */ - configurationMode?: string; - /** Gets or sets the ActionAfterReboot value of the meta configuration. */ - actionAfterReboot?: string; - /** Gets or sets the CertificateId value of the meta configuration. */ - certificateId?: string; - /** Gets or sets the RefreshFrequencyMins value of the meta configuration. */ - refreshFrequencyMins?: number; - /** Gets or sets the AllowModuleOverwrite value of the meta configuration. */ - allowModuleOverwrite?: boolean; -} - -/** The Dsc configuration property associated with the entity. */ -export interface DscConfigurationAssociationProperty { - /** Gets or sets the name of the Dsc configuration. */ - name?: string; -} - -/** The parameters supplied to the create or update node configuration operation. */ -export interface DscNodeConfigurationCreateOrUpdateParameters { - /** Name of the node configuration. */ - name?: string; - /** Gets or sets the tags attached to the resource. */ - tags?: { [propertyName: string]: string }; - /** Gets or sets the source. */ - source?: ContentSource; - /** Gets or sets the configuration of the node. */ - configuration?: DscConfigurationAssociationProperty; - /** If a new build version of NodeConfiguration is required. */ - incrementNodeConfigurationBuild?: boolean; -} - -/** Definition of the content source. */ -export interface ContentSource { - /** Gets or sets the hash. */ - hash?: ContentHash; - /** Gets or sets the content source type. */ - type?: ContentSourceType; - /** Gets or sets the value of the content. This is based on the content source type. */ - value?: string; - /** Gets or sets the version of the content. */ - version?: string; -} - -/** The response model for the list job operation. */ -export interface DscNodeConfigurationListResult { - /** Gets or sets a list of Dsc node configurations. */ - value?: DscNodeConfiguration[]; - /** Gets or sets the next link. */ - nextLink?: string; - /** Gets or sets the total rows in query. */ - totalCount?: number; -} - -/** The parameters supplied to the create compilation job operation. */ -export interface DscCompilationJobCreateParameters { - /** Gets or sets name of the resource. */ - name?: string; - /** Gets or sets the location of the resource. */ - location?: string; - /** Gets or sets the tags attached to the resource. */ - tags?: { [propertyName: string]: string }; - /** Gets or sets the configuration. */ - configuration: DscConfigurationAssociationProperty; - /** Gets or sets the parameters of the job. */ - parameters?: { [propertyName: string]: string }; - /** If a new build version of NodeConfiguration is required. */ - incrementNodeConfigurationBuild?: boolean; -} - -/** The response model for the list job operation. */ -export interface DscCompilationJobListResult { - /** Gets or sets a list of Dsc Compilation jobs. */ - value?: DscCompilationJob[]; - /** Gets or sets the next link. */ - nextLink?: string; -} - -/** The response model for the list job stream operation. */ -export interface JobStreamListResult { - /** A list of job streams. */ - value?: JobStream[]; - /** Gets or sets the next link. */ - nextLink?: string; -} - -/** Definition of the job stream. */ -export interface JobStream { - /** Gets or sets the id of the resource. */ - id?: string; - /** Gets or sets the id of the job stream. */ - jobStreamId?: string; - /** Gets or sets the creation time of the job. */ - time?: Date; - /** Gets or sets the stream type. */ - streamType?: JobStreamType; - /** Gets or sets the stream text. */ - streamText?: string; - /** Gets or sets the summary. */ - summary?: string; - /** Gets or sets the values of the job stream. */ - value?: { [propertyName: string]: Record }; -} - -/** Gets the count of nodes by count type */ -export interface NodeCounts { - /** Gets an array of counts */ - value?: NodeCount[]; - /** Gets the total number of records matching countType criteria. */ - totalCount?: number; -} - -/** Number of nodes based on the Filter */ -export interface NodeCount { - /** Gets the name of a count type */ - name?: string; - properties?: NodeCountProperties; -} - -export interface NodeCountProperties { - /** Gets the count for the name */ - count?: number; -} - -/** The parameters supplied to the create or update source control operation. */ -export interface SourceControlCreateOrUpdateParameters { - /** The repo url of the source control. */ - repoUrl?: string; - /** The repo branch of the source control. Include branch as empty string for VsoTfvc. */ - branch?: string; - /** The folder path of the source control. Path must be relative. */ - folderPath?: string; - /** The auto async of the source control. Default is false. */ - autoSync?: boolean; - /** The auto publish of the source control. Default is true. */ - publishRunbook?: boolean; - /** The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive. */ - sourceType?: SourceType; - /** The authorization token for the repo of the source control. */ - securityToken?: SourceControlSecurityTokenProperties; - /** The user description of the source control. */ - description?: string; -} - -export interface SourceControlSecurityTokenProperties { - /** The access token. */ - accessToken?: string; - /** The refresh token. */ - refreshToken?: string; - /** The token type. Must be either PersonalAccessToken or Oauth. */ - tokenType?: TokenType; -} - -/** The parameters supplied to the update source control operation. */ -export interface SourceControlUpdateParameters { - /** The repo branch of the source control. */ - branch?: string; - /** The folder path of the source control. Path must be relative. */ - folderPath?: string; - /** The auto sync of the source control. Default is false. */ - autoSync?: boolean; - /** The auto publish of the source control. Default is true. */ - publishRunbook?: boolean; - /** The authorization token for the repo of the source control. */ - securityToken?: SourceControlSecurityTokenProperties; - /** The user description of the source control. */ - description?: string; -} - -/** The response model for the list source controls operation. */ -export interface SourceControlListResult { - /** The list of source controls. */ - value?: SourceControl[]; - /** The next link. */ - nextLink?: string; -} - -/** The parameters supplied to the create source control sync job operation. */ -export interface SourceControlSyncJobCreateParameters { - /** The commit id of the source control sync job. If not syncing to a commitId, enter an empty string. */ - commitId: string; -} - -/** Definition of the source control sync job. */ -export interface SourceControlSyncJob { - /** - * Resource name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Resource id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** The source control sync job id. */ - sourceControlSyncJobId?: string; - /** - * The creation time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationTime?: Date; - /** The provisioning state of the job. */ - provisioningState?: ProvisioningState; - /** - * The start time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * The end time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; - /** The sync type. */ - syncType?: SyncType; -} - -/** Definition of the source control sync job. */ -export interface SourceControlSyncJobById { - /** The id of the job. */ - id?: string; - /** The source control sync job id. */ - sourceControlSyncJobId?: string; - /** - * The creation time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationTime?: Date; - /** The provisioning state of the job. */ - provisioningState?: ProvisioningState; - /** - * The start time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * The end time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; - /** The sync type. */ - syncType?: SyncType; - /** The exceptions that occurred while running the sync job. */ - exception?: string; -} - -/** The response model for the list source control sync jobs operation. */ -export interface SourceControlSyncJobListResult { - /** The list of source control sync jobs. */ - value?: SourceControlSyncJob[]; - /** The next link. */ - nextLink?: string; -} - -/** The response model for the list source control sync job streams operation. */ -export interface SourceControlSyncJobStreamsListBySyncJob { - /** The list of source control sync job streams. */ - value?: SourceControlSyncJobStream[]; - /** - * The next link. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Definition of the source control sync job stream. */ -export interface SourceControlSyncJobStream { - /** - * Resource id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** The sync job stream id. */ - sourceControlSyncJobStreamId?: string; - /** The summary of the sync job stream. */ - summary?: string; - /** - * The time of the sync job stream. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly time?: Date; - /** The type of the sync job stream. */ - streamType?: StreamType; -} - -/** Definition of the source control sync job stream by id. */ -export interface SourceControlSyncJobStreamById { - /** - * Resource id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** The sync job stream id. */ - sourceControlSyncJobStreamId?: string; - /** The summary of the sync job stream. */ - summary?: string; - /** - * The time of the sync job stream. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly time?: Date; - /** The type of the sync job stream. */ - streamType?: StreamType; - /** The text of the sync job stream. */ - streamText?: string; - /** The values of the job stream. */ - value?: { [propertyName: string]: Record }; + +/** Definition of the DSC Meta Configuration. */ +export interface DscMetaConfiguration { + /** Gets or sets the ConfigurationModeFrequencyMins value of the meta configuration. */ + configurationModeFrequencyMins?: number; + /** Gets or sets the RebootNodeIfNeeded value of the meta configuration. */ + rebootNodeIfNeeded?: boolean; + /** Gets or sets the ConfigurationMode value of the meta configuration. */ + configurationMode?: string; + /** Gets or sets the ActionAfterReboot value of the meta configuration. */ + actionAfterReboot?: string; + /** Gets or sets the CertificateId value of the meta configuration. */ + certificateId?: string; + /** Gets or sets the RefreshFrequencyMins value of the meta configuration. */ + refreshFrequencyMins?: number; + /** Gets or sets the AllowModuleOverwrite value of the meta configuration. */ + allowModuleOverwrite?: boolean; } /** The parameters supplied to the update automation account operation. */ @@ -647,7 +583,7 @@ export interface EncryptionPropertiesIdentity { /** Identity for the resource. */ export interface Identity { /** - * The principal ID of resource identity. + * The principal ID of resource identity. The value must be an UUID. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalId?: string; @@ -660,11 +596,11 @@ export interface Identity { type?: ResourceIdentityType; /** The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ userAssignedIdentities?: { - [propertyName: string]: ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties; + [propertyName: string]: UserAssignedIdentitiesProperties; }; } -export interface ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties { +export interface UserAssignedIdentitiesProperties { /** * The principal id of user assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -677,20 +613,23 @@ export interface ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentities readonly clientId?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; +/** Private endpoint which the connection belongs to. */ +export interface PrivateEndpointProperty { + /** Resource id of the private endpoint. */ + id?: string; +} + +/** Connection State of the Private Endpoint Connection. */ +export interface PrivateLinkServiceConnectionStateProperty { + /** The private link service connection status. */ + status?: string; + /** The private link service connection description. */ + description?: string; + /** + * Any action that is required beyond basic workflow (approve/ reject/ disconnect) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionsRequired?: string; } /** The parameters supplied to the create or update automation account operation. */ @@ -810,6 +749,36 @@ export interface Key { readonly value?: string; } +/** The response model for the list deleted runbook. */ +export interface DeletedRunbookListResult { + /** List of deleted runbooks in automation account. */ + value?: DeletedRunbook[]; + /** Gets or sets the next link. */ + nextLink?: string; +} + +/** Definition of deleted runbook. */ +export interface DeletedRunbook { + /** The resource id. */ + id?: string; + /** Gets or sets name of the resource. */ + name?: string; + /** Gets or sets the location of the resource. */ + location?: string; + /** Gets or sets the Runbook Id. */ + runbookId?: string; + /** Type of the runbook. */ + runbookType?: string; + /** Gets or sets runtime of the runbook. */ + runtime?: string; + /** Environment of the runbook. */ + runtimeEnvironment?: string; + /** Gets or sets the creation time. */ + creationTime?: Date; + /** Gets or sets the last modified time. */ + deletionTime?: Date; +} + /** The parameters supplied to the create or update or replace certificate operation. */ export interface CertificateCreateOrUpdateParameters { /** Gets or sets the name of the certificate. */ @@ -963,10 +932,226 @@ export interface CredentialUpdateParameters { description?: string; } -/** The response model for the list credential operation. */ -export interface CredentialListResult { - /** Gets or sets a list of credentials. */ - value?: Credential[]; +/** The response model for the list credential operation. */ +export interface CredentialListResult { + /** Gets or sets a list of credentials. */ + value?: Credential[]; + /** Gets or sets the next link. */ + nextLink?: string; +} + +/** Definition of the configuration parameter type. */ +export interface DscConfigurationParameter { + /** Gets or sets the type of the parameter. */ + type?: string; + /** Gets or sets a Boolean value to indicate whether the parameter is mandatory or not. */ + isMandatory?: boolean; + /** Get or sets the position of the parameter. */ + position?: number; + /** Gets or sets the default value of parameter. */ + defaultValue?: string; +} + +/** Definition of the content source. */ +export interface ContentSource { + /** Gets or sets the hash. */ + hash?: ContentHash; + /** Gets or sets the content source type. */ + type?: ContentSourceType; + /** Gets or sets the value of the content. This is based on the content source type. */ + value?: string; + /** Gets or sets the version of the content. */ + version?: string; +} + +/** Definition of the runbook property type. */ +export interface ContentHash { + /** Gets or sets the content hash algorithm used to hash the content. */ + algorithm: string; + /** Gets or sets expected hash value of the content. */ + value: string; +} + +/** The parameters supplied to the create or update configuration operation. */ +export interface DscConfigurationCreateOrUpdateParameters { + /** Gets or sets name of the resource. */ + name?: string; + /** Gets or sets the location of the resource. */ + location?: string; + /** Gets or sets the tags attached to the resource. */ + tags?: { [propertyName: string]: string }; + /** Gets or sets verbose log option. */ + logVerbose?: boolean; + /** Gets or sets progress log option. */ + logProgress?: boolean; + /** Gets or sets the source. */ + source: ContentSource; + /** Gets or sets the configuration parameters. */ + parameters?: { [propertyName: string]: DscConfigurationParameter }; + /** Gets or sets the description of the configuration. */ + description?: string; +} + +/** The parameters supplied to the create or update configuration operation. */ +export interface DscConfigurationUpdateParameters { + /** Gets or sets name of the resource. */ + name?: string; + /** Gets or sets the tags attached to the resource. */ + tags?: { [propertyName: string]: string }; + /** Gets or sets verbose log option. */ + logVerbose?: boolean; + /** Gets or sets progress log option. */ + logProgress?: boolean; + /** Gets or sets the source. */ + source?: ContentSource; + /** Gets or sets the configuration parameters. */ + parameters?: { [propertyName: string]: DscConfigurationParameter }; + /** Gets or sets the description of the configuration. */ + description?: string; +} + +/** The response model for the list configuration operation. */ +export interface DscConfigurationListResult { + /** Gets or sets a list of configurations. */ + value?: DscConfiguration[]; + /** Gets or sets the next link. */ + nextLink?: string; + /** Gets the total number of configurations matching filter criteria. */ + totalCount?: number; +} + +/** The Dsc configuration property associated with the entity. */ +export interface DscConfigurationAssociationProperty { + /** Gets or sets the name of the Dsc configuration. */ + name?: string; +} + +/** The parameters supplied to the create or update node configuration operation. */ +export interface DscNodeConfigurationCreateOrUpdateParameters { + /** Name of the node configuration. */ + name?: string; + /** Gets or sets the tags attached to the resource. */ + tags?: { [propertyName: string]: string }; + /** Gets or sets the source. */ + source?: ContentSource; + /** Gets or sets the configuration of the node. */ + configuration?: DscConfigurationAssociationProperty; + /** If a new build version of NodeConfiguration is required. */ + incrementNodeConfigurationBuild?: boolean; +} + +/** The response model for the list job operation. */ +export interface DscNodeConfigurationListResult { + /** Gets or sets a list of Dsc node configurations. */ + value?: DscNodeConfiguration[]; + /** Gets or sets the next link. */ + nextLink?: string; + /** Gets or sets the total rows in query. */ + totalCount?: number; +} + +/** The parameters supplied to the create hybrid runbook worker operation. */ +export interface HybridRunbookWorkerCreateParameters { + /** + * Gets or sets the name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** Azure Resource Manager Id for a virtual machine. */ + vmResourceId?: string; +} + +/** Parameters supplied to move hybrid worker operation. */ +export interface HybridRunbookWorkerMoveParameters { + /** Gets or sets the target hybrid runbook worker group. */ + hybridRunbookWorkerGroupName?: string; +} + +/** The response model for the list hybrid runbook workers. */ +export interface HybridRunbookWorkersListResult { + /** Gets or sets a list of hybrid runbook workers. */ + value?: HybridRunbookWorker[]; + /** Gets or sets the next link. */ + nextLink?: string; +} + +/** Definition of RunAs credential to use for hybrid worker. */ +export interface RunAsCredentialAssociationProperty { + /** Gets or sets the name of the credential. */ + name?: string; +} + +/** The parameters supplied to the create hybrid runbook worker group operation. */ +export interface HybridRunbookWorkerGroupCreateOrUpdateParameters { + /** Gets or sets the name of the resource. */ + name?: string; + /** Sets the credential of a worker group. */ + credential?: RunAsCredentialAssociationProperty; +} + +/** The response model for the list hybrid runbook worker groups. */ +export interface HybridRunbookWorkerGroupsListResult { + /** Gets or sets a list of hybrid runbook worker groups. */ + value?: HybridRunbookWorkerGroup[]; + /** Gets or sets the next link. */ + nextLink?: string; +} + +/** The runbook property associated with the entity. */ +export interface RunbookAssociationProperty { + /** Gets or sets the name of the runbook. */ + name?: string; +} + +/** The runbook property associated with the entity. */ +export interface JobRuntimeEnvironment { + /** Name of Runtime Environment. */ + runtimeEnvironmentName?: string; +} + +/** The parameters supplied to the create job operation. */ +export interface JobCreateParameters { + /** Gets or sets the runbook. */ + runbook?: RunbookAssociationProperty; + /** Gets or sets the parameters of the job. */ + parameters?: { [propertyName: string]: string }; + /** Gets or sets the runOn which specifies the group name where the job is to be executed. */ + runOn?: string; +} + +/** The response model for the list job operation. */ +export interface JobListResultV2 { + /** List of jobs. */ + value?: JobCollectionItem[]; + /** + * The link to the next page. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Definition of the job stream. */ +export interface JobStream { + /** Gets or sets the id of the resource. */ + id?: string; + /** Gets or sets the id of the job stream. */ + jobStreamId?: string; + /** Gets or sets the creation time of the job. */ + time?: Date; + /** Gets or sets the stream type. */ + streamType?: JobStreamType; + /** Gets or sets the stream text. */ + streamText?: string; + /** Gets or sets the summary. */ + summary?: string; + /** Gets or sets the values of the job stream. */ + value?: { [propertyName: string]: Record }; +} + +/** The response model for the list job stream operation. */ +export interface JobStreamListResult { + /** A list of job streams. */ + value?: JobStream[]; /** Gets or sets the next link. */ nextLink?: string; } @@ -1006,12 +1191,6 @@ export interface ScheduleAssociationProperty { name?: string; } -/** The runbook property associated with the entity. */ -export interface RunbookAssociationProperty { - /** Gets or sets the name of the runbook. */ - name?: string; -} - /** The parameters supplied to the create job schedule operation. */ export interface JobScheduleCreateParameters { /** Gets or sets the schedule. */ @@ -1118,6 +1297,24 @@ export interface ActivityListResult { nextLink?: string; } +/** Definition of the content link. */ +export interface ContentLink { + /** Gets or sets the uri of content. */ + uri?: string; + /** Gets or sets the hash. */ + contentHash?: ContentHash; + /** Gets or sets the version of the content. */ + version?: string; +} + +/** Definition of the module error info type. */ +export interface ModuleErrorInfo { + /** Gets or sets the error code. */ + code?: string; + /** Gets or sets the error message. */ + message?: string; +} + /** The parameters supplied to the create or update module operation. */ export interface ModuleCreateOrUpdateParameters { /** Gets or sets name of the resource. */ @@ -1132,210 +1329,42 @@ export interface ModuleCreateOrUpdateParameters { /** The parameters supplied to the update module operation. */ export interface ModuleUpdateParameters { - /** Gets or sets name of the resource. */ - name?: string; - /** Gets or sets the location of the resource. */ - location?: string; + /** + * Gets or sets name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Gets or sets the location of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; /** Gets or sets the tags attached to the resource. */ tags?: { [propertyName: string]: string }; /** Gets or sets the module content link. */ contentLink?: ContentLink; } -/** The response model for the list fields operation. */ -export interface TypeFieldListResult { - /** Gets or sets a list of fields. */ - value?: TypeField[]; -} - -/** Information about a field of a type. */ -export interface TypeField { - /** Gets or sets the name of the field. */ - name?: string; - /** Gets or sets the type of the field. */ - type?: string; -} - -/** The parameters supplied to the create or update schedule operation. */ -export interface ScheduleCreateOrUpdateParameters { - /** Gets or sets the name of the Schedule. */ - name: string; - /** Gets or sets the description of the schedule. */ - description?: string; - /** Gets or sets the start time of the schedule. */ - startTime: Date; - /** Gets or sets the end time of the schedule. */ - expiryTime?: Date; - /** Gets or sets the interval of the schedule. */ - interval?: any; - /** Gets or sets the frequency of the schedule. */ - frequency: ScheduleFrequency; - /** Gets or sets the time zone of the schedule. */ - timeZone?: string; - /** Gets or sets the AdvancedSchedule. */ - advancedSchedule?: AdvancedSchedule; -} - -/** The properties of the create Advanced Schedule. */ -export interface AdvancedSchedule { - /** Days of the week that the job should execute on. */ - weekDays?: string[]; - /** Days of the month that the job should execute on. Must be between 1 and 31. */ - monthDays?: number[]; - /** Occurrences of days within a month. */ - monthlyOccurrences?: AdvancedScheduleMonthlyOccurrence[]; -} - -/** The properties of the create advanced schedule monthly occurrence. */ -export interface AdvancedScheduleMonthlyOccurrence { - /** Occurrence of the week within the month. Must be between 1 and 5 */ - occurrence?: number; - /** Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday. */ - day?: ScheduleDay; -} - -/** The parameters supplied to the update schedule operation. */ -export interface ScheduleUpdateParameters { - /** Gets or sets the name of the Schedule. */ - name?: string; - /** Gets or sets the description of the schedule. */ - description?: string; - /** Gets or sets a value indicating whether this schedule is enabled. */ - isEnabled?: boolean; -} - -/** The response model for the list schedule operation. */ -export interface ScheduleListResult { - /** Gets or sets a list of schedules. */ - value?: Schedule[]; - /** Gets or sets the next link. */ - nextLink?: string; -} - -/** The parameters supplied to the create or update variable operation. */ -export interface VariableCreateOrUpdateParameters { - /** Gets or sets the name of the variable. */ - name: string; - /** Gets or sets the value of the variable. */ - value?: string; - /** Gets or sets the description of the variable. */ - description?: string; - /** Gets or sets the encrypted flag of the variable. */ - isEncrypted?: boolean; -} - -/** The parameters supplied to the update variable operation. */ -export interface VariableUpdateParameters { - /** Gets or sets the name of the variable. */ - name?: string; - /** Gets or sets the value of the variable. */ - value?: string; - /** Gets or sets the description of the variable. */ - description?: string; -} - -/** The response model for the list variables operation. */ -export interface VariableListResult { - /** Gets or sets a list of variables. */ - value?: Variable[]; - /** Gets or sets the next link. */ - nextLink?: string; -} - -export interface WatcherUpdateParameters { - /** Gets or sets the name of the resource. */ - name?: string; - /** Gets or sets the frequency at which the watcher is invoked. */ - executionFrequencyInSeconds?: number; -} - -/** The response model for the list watcher operation. */ -export interface WatcherListResult { - /** Gets or sets a list of watchers. */ - value?: Watcher[]; - /** Gets or sets the next link. */ - nextLink?: string; -} - -/** Definition of the configuration parameter type. */ -export interface DscConfigurationParameter { - /** Gets or sets the type of the parameter. */ - type?: string; - /** Gets or sets a Boolean value to indicate whether the parameter is mandatory or not. */ - isMandatory?: boolean; - /** Get or sets the position of the parameter. */ - position?: number; - /** Gets or sets the default value of parameter. */ - defaultValue?: string; -} - -/** The parameters supplied to the create or update configuration operation. */ -export interface DscConfigurationCreateOrUpdateParameters { - /** Gets or sets name of the resource. */ - name?: string; - /** Gets or sets the location of the resource. */ - location?: string; - /** Gets or sets the tags attached to the resource. */ - tags?: { [propertyName: string]: string }; - /** Gets or sets verbose log option. */ - logVerbose?: boolean; - /** Gets or sets progress log option. */ - logProgress?: boolean; - /** Gets or sets the source. */ - source: ContentSource; - /** Gets or sets the configuration parameters. */ - parameters?: { [propertyName: string]: DscConfigurationParameter }; - /** Gets or sets the description of the configuration. */ - description?: string; -} - -/** The parameters supplied to the create or update configuration operation. */ -export interface DscConfigurationUpdateParameters { - /** Gets or sets name of the resource. */ - name?: string; - /** Gets or sets the tags attached to the resource. */ - tags?: { [propertyName: string]: string }; - /** Gets or sets verbose log option. */ - logVerbose?: boolean; - /** Gets or sets progress log option. */ - logProgress?: boolean; - /** Gets or sets the source. */ - source?: ContentSource; - /** Gets or sets the configuration parameters. */ - parameters?: { [propertyName: string]: DscConfigurationParameter }; - /** Gets or sets the description of the configuration. */ - description?: string; -} - -/** The response model for the list configuration operation. */ -export interface DscConfigurationListResult { - /** Gets or sets a list of configurations. */ - value?: DscConfiguration[]; +/** The response model for the list module operation. */ +export interface ModuleListResult { + /** Gets or sets a list of modules. */ + value?: Module[]; /** Gets or sets the next link. */ nextLink?: string; - /** Gets the total number of configurations matching filter criteria. */ - totalCount?: number; -} - -/** The parameters supplied to the create job operation. */ -export interface JobCreateParameters { - /** Gets or sets the runbook. */ - runbook?: RunbookAssociationProperty; - /** Gets or sets the parameters of the job. */ - parameters?: { [propertyName: string]: string }; - /** Gets or sets the runOn which specifies the group name where the job is to be executed. */ - runOn?: string; } -/** The response model for the list job operation. */ -export interface JobListResultV2 { - /** List of jobs. */ - value?: JobCollectionItem[]; - /** - * The link to the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** The response model for the list fields operation. */ +export interface TypeFieldListResult { + /** Gets or sets a list of fields. */ + value?: TypeField[]; +} + +/** Information about a field of a type. */ +export interface TypeField { + /** Gets or sets the name of the field. */ + name?: string; + /** Gets or sets the type of the field. */ + type?: string; } /** The response model for the list of Automation operations */ @@ -1350,6 +1379,10 @@ export interface Operation { name?: string; /** Provider, Resource and Operation values */ display?: OperationDisplay; + /** Origin of the operation. */ + origin?: string; + /** Specification of the service. */ + serviceSpecification?: OperationPropertiesFormatServiceSpecification; } /** Provider, Resource and Operation values */ @@ -1360,6 +1393,50 @@ export interface OperationDisplay { resource?: string; /** Operation type: Read, write, delete, etc. */ operation?: string; + /** Description of the operation. */ + description?: string; +} + +/** Specification of the service. */ +export interface OperationPropertiesFormatServiceSpecification { + /** Operation service specification. */ + metricSpecifications?: MetricSpecification[]; + /** Operation log specification. */ + logSpecifications?: LogSpecification[]; +} + +/** Description of metrics specification. */ +export interface MetricSpecification { + /** The name of the metric. */ + name?: string; + /** The display name of the metric. */ + displayName?: string; + /** The description of the metric. */ + displayDescription?: string; + /** Units the metric to be displayed in. */ + unit?: string; + /** The aggregation type. */ + aggregationType?: string; + /** List of dimensions. */ + dimensions?: Dimension[]; +} + +/** Dimension of the metric. */ +export interface Dimension { + /** The name of the dimension. */ + name?: string; + /** The display name of the dimension. */ + displayName?: string; +} + +/** Description of logging specification. */ +export interface LogSpecification { + /** The name of the specification. */ + name?: string; + /** The display name of the specification. */ + displayName?: string; + /** Duration of the blob. */ + blobDuration?: string; } /** Graphical Runbook Content */ @@ -1380,228 +1457,345 @@ export interface RawGraphicalRunbookContent { runbookType?: GraphRunbookType; } -/** Software update configuration properties. */ -export interface SoftwareUpdateConfiguration { - /** - * Resource name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** update specific properties for the Software update configuration */ - updateConfiguration: UpdateConfiguration; - /** Schedule information for the Software update configuration */ - scheduleInfo: SUCScheduleProperties; - /** - * Provisioning state for the software update configuration, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** Details of provisioning error */ - error?: ErrorResponse; - /** - * Creation time of the resource, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationTime?: Date; - /** - * CreatedBy property, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdBy?: string; - /** - * Last time resource was modified, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModifiedTime?: Date; - /** - * LastModifiedBy property, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModifiedBy?: string; - /** Tasks information for the Software update configuration. */ - tasks?: SoftwareUpdateConfigurationTasks; +/** Definition of the package error info type. */ +export interface PackageErrorInfo { + /** Package import error code. */ + code?: string; + /** Package import error message. */ + message?: string; } -/** Update specific properties of the software update configuration. */ -export interface UpdateConfiguration { - /** operating system of target machines */ - operatingSystem: OperatingSystemType; - /** Windows specific update configuration. */ - windows?: WindowsProperties; - /** Linux specific update configuration. */ - linux?: LinuxProperties; - /** Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601 */ - duration?: string; - /** List of azure resource Ids for azure virtual machines targeted by the software update configuration. */ - azureVirtualMachines?: string[]; - /** List of names of non-azure machines targeted by the software update configuration. */ - nonAzureComputerNames?: string[]; - /** Group targets for the software update configuration. */ - targets?: TargetProperties; +/** The parameters supplied to the create or update package operation. */ +export interface PackageCreateOrUpdateParameters { + /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ + allOf?: TrackedResource; + /** Gets or sets the package content link. */ + contentLink: ContentLink; } -/** Windows specific update configuration. */ -export interface WindowsProperties { - /** Update classification included in the software update configuration. A comma separated string with required values */ - includedUpdateClassifications?: WindowsUpdateClasses; - /** KB numbers excluded from the software update configuration. */ - excludedKbNumbers?: string[]; - /** KB numbers included from the software update configuration. */ - includedKbNumbers?: string[]; - /** Reboot setting for the software update configuration. */ - rebootSetting?: string; +/** The parameters supplied to the update package operation. */ +export interface PackageUpdateParameters { + /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ + allOf?: TrackedResource; + /** Gets or sets the package content link. */ + contentLink?: ContentLink; } -/** Linux specific update configuration. */ -export interface LinuxProperties { - /** Update classifications included in the software update configuration. */ - includedPackageClassifications?: LinuxUpdateClasses; - /** packages excluded from the software update configuration. */ - excludedPackageNameMasks?: string[]; - /** packages included from the software update configuration. */ - includedPackageNameMasks?: string[]; - /** Reboot setting for the software update configuration. */ - rebootSetting?: string; +/** The response model for the list runtime environments operation. */ +export interface PackageListResult { + /** list of the Packages of the runtime environment. */ + value?: Package[]; + /** Gets the next link. */ + nextLink?: string; } -/** Group specific to the update configuration. */ -export interface TargetProperties { - /** List of Azure queries in the software update configuration. */ - azureQueries?: AzureQueryProperties[]; - /** List of non Azure queries in the software update configuration. */ - nonAzureQueries?: NonAzureQueryProperties[]; +/** A list of private endpoint connections */ +export interface PrivateEndpointConnectionListResult { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnection[]; } -/** Azure query for the update configuration. */ -export interface AzureQueryProperties { - /** List of Subscription or Resource Group ARM Ids. */ - scope?: string[]; - /** List of locations to scope the query to. */ - locations?: string[]; - /** Tag settings for the VM. */ - tagSettings?: TagSettingsProperties; +/** The parameters supplied to the create or update module operation. */ +export interface PythonPackageCreateParameters { + /** Gets or sets the tags attached to the resource. */ + tags?: { [propertyName: string]: string }; + /** Gets or sets the module content link. */ + contentLink: ContentLink; +} + +/** The parameters supplied to the update module operation. */ +export interface PythonPackageUpdateParameters { + /** Gets or sets the tags attached to the resource. */ + tags?: { [propertyName: string]: string }; +} + +export interface RunbookDraft { + /** Gets or sets whether runbook is in edit mode. */ + inEdit?: boolean; + /** Gets or sets the draft runbook content link. */ + draftContentLink?: ContentLink; + /** Gets or sets the creation time of the runbook draft. */ + creationTime?: Date; + /** Gets or sets the last modified time of the runbook draft. */ + lastModifiedTime?: Date; + /** Gets or sets the runbook draft parameters. */ + parameters?: { [propertyName: string]: RunbookParameter }; + /** Gets or sets the runbook output types. */ + outputTypes?: string[]; +} + +/** Definition of the runbook parameter type. */ +export interface RunbookParameter { + /** Gets or sets the type of the parameter. */ + type?: string; + /** Gets or sets a Boolean value to indicate whether the parameter is mandatory or not. */ + isMandatory?: boolean; + /** Get or sets the position of the parameter. */ + position?: number; + /** Gets or sets the default value of parameter. */ + defaultValue?: string; +} + +/** The response model for the undo edit runbook operation. */ +export interface RunbookDraftUndoEditResult { + statusCode?: HttpStatusCode; + requestId?: string; +} + +/** The parameters supplied to the create or update runbook operation. */ +export interface RunbookCreateOrUpdateParameters { + /** Gets or sets the name of the resource. */ + name?: string; + /** Gets or sets the location of the resource. */ + location?: string; + /** Gets or sets the tags attached to the resource. */ + tags?: { [propertyName: string]: string }; + /** Gets or sets verbose log option. */ + logVerbose?: boolean; + /** Gets or sets progress log option. */ + logProgress?: boolean; + /** Environment of the runbook. */ + runtimeEnvironment?: string; + /** Gets or sets the type of the runbook. */ + runbookType: RunbookTypeEnum; + /** Gets or sets the draft runbook properties. */ + draft?: RunbookDraft; + /** Gets or sets the published runbook content link. */ + publishContentLink?: ContentLink; + /** Gets or sets the description of the runbook. */ + description?: string; + /** Gets or sets the activity-level tracing options of the runbook. */ + logActivityTrace?: number; +} + +/** The parameters supplied to the update runbook operation. */ +export interface RunbookUpdateParameters { + /** Gets or sets the name of the resource. */ + name?: string; + /** Gets or sets the location of the resource. */ + location?: string; + /** Gets or sets the tags attached to the resource. */ + tags?: { [propertyName: string]: string }; + /** Gets or sets the description of the runbook. */ + description?: string; + /** Gets or sets verbose log option. */ + logVerbose?: boolean; + /** Gets or sets progress log option. */ + logProgress?: boolean; + /** Gets or sets the activity-level tracing options of the runbook. */ + logActivityTrace?: number; +} + +/** The response model for the list runbook operation. */ +export interface RunbookListResult { + /** Gets or sets a list of runbooks. */ + value?: Runbook[]; + /** Gets or sets the next link. */ + nextLink?: string; +} + +/** The parameters supplied to the create test job operation. */ +export interface TestJobCreateParameters { + /** Gets or sets the parameters of the test job. */ + parameters?: { [propertyName: string]: string }; + /** Gets or sets the runOn which specifies the group name where the job is to be executed. */ + runOn?: string; + /** The runtime Environment Name on which job needs to be tested */ + runtimeEnvironment?: string; +} + +/** Definition of the test job. */ +export interface TestJob { + /** Gets or sets the creation time of the test job. */ + creationTime?: Date; + /** Gets or sets the status of the test job. */ + status?: string; + /** Gets or sets the status details of the test job. */ + statusDetails?: string; + /** Gets or sets the runOn which specifies the group name where the job is to be executed. */ + runOn?: string; + /** Gets or sets the start time of the test job. */ + startTime?: Date; + /** Gets or sets the end time of the test job. */ + endTime?: Date; + /** Gets or sets the exception of the test job. */ + exception?: string; + /** Gets or sets the last modified time of the test job. */ + lastModifiedTime?: Date; + /** Gets or sets the last status modified time of the test job. */ + lastStatusModifiedTime?: Date; + /** Gets or sets the parameters of the test job. */ + parameters?: { [propertyName: string]: string }; + /** The activity-level tracing options of the runbook. */ + logActivityTrace?: number; } -/** Tag filter information for the VM. */ -export interface TagSettingsProperties { - /** Dictionary of tags with its list of values. */ - tags?: { [propertyName: string]: string[] }; - /** Filter VMs by Any or All specified tags. */ - filterOperator?: TagOperators; +/** The parameters supplied to the update automation account operation. */ +export interface RuntimeEnvironmentUpdateParameters { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** List of Default packages for Environment */ + defaultPackages?: { [propertyName: string]: string }; } -/** Non Azure query for the update configuration. */ -export interface NonAzureQueryProperties { - /** Log Analytics Saved Search name. */ - functionAlias?: string; - /** Workspace Id for Log Analytics in which the saved Search is resided. */ - workspaceId?: string; +/** List of all the Runtime Environments of automation account. */ +export interface RuntimeEnvironmentListResult { + /** list of RuntimeEnvironment. */ + value?: RuntimeEnvironment[]; + /** Gets or sets the next link. */ + nextLink?: string; } -/** Definition of schedule parameters. */ -export interface SUCScheduleProperties { +/** The parameters supplied to the create or update schedule operation. */ +export interface ScheduleCreateOrUpdateParameters { + /** Gets or sets the name of the Schedule. */ + name: string; + /** Gets or sets the description of the schedule. */ + description?: string; /** Gets or sets the start time of the schedule. */ - startTime?: Date; - /** - * Gets the start time's offset in minutes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTimeOffsetMinutes?: number; + startTime: Date; /** Gets or sets the end time of the schedule. */ expiryTime?: Date; - /** Gets or sets the expiry time's offset in minutes. */ - expiryTimeOffsetMinutes?: number; - /** Gets or sets a value indicating whether this schedule is enabled. */ - isEnabled?: boolean; - /** Gets or sets the next run time of the schedule. */ - nextRun?: Date; - /** Gets or sets the next run time's offset in minutes. */ - nextRunOffsetMinutes?: number; /** Gets or sets the interval of the schedule. */ - interval?: number; + interval?: any; /** Gets or sets the frequency of the schedule. */ - frequency?: ScheduleFrequency; + frequency: ScheduleFrequency; /** Gets or sets the time zone of the schedule. */ timeZone?: string; - /** Gets or sets the advanced schedule. */ + /** Gets or sets the AdvancedSchedule. */ advancedSchedule?: AdvancedSchedule; - /** Gets or sets the creation time. */ - creationTime?: Date; - /** Gets or sets the last modified time. */ - lastModifiedTime?: Date; - /** Gets or sets the description. */ - description?: string; -} - -/** Task properties of the software update configuration. */ -export interface SoftwareUpdateConfigurationTasks { - /** Pre task properties. */ - preTask?: TaskProperties; - /** Post task properties. */ - postTask?: TaskProperties; } -/** Task properties of the software update configuration. */ -export interface TaskProperties { - /** Gets or sets the parameters of the task. */ - parameters?: { [propertyName: string]: string }; - /** Gets or sets the name of the runbook. */ - source?: string; +/** The parameters supplied to the update schedule operation. */ +export interface ScheduleUpdateParameters { + /** Gets or sets the name of the Schedule. */ + name?: string; + /** Gets or sets the description of the schedule. */ + description?: string; + /** Gets or sets a value indicating whether this schedule is enabled. */ + isEnabled?: boolean; } -/** result of listing all software update configuration */ -export interface SoftwareUpdateConfigurationListResult { - /** outer object returned when listing all software update configurations */ - value?: SoftwareUpdateConfigurationCollectionItem[]; +/** The response model for the list schedule operation. */ +export interface ScheduleListResult { + /** Gets or sets a list of schedules. */ + value?: Schedule[]; + /** Gets or sets the next link. */ + nextLink?: string; } -/** Software update configuration collection item properties. */ -export interface SoftwareUpdateConfigurationCollectionItem { +/** Software update configuration machine run model. */ +export interface SoftwareUpdateConfigurationMachineRun { /** - * Name of the software update configuration. + * Name of the software update configuration machine run * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * Resource Id of the software update configuration + * Resource Id of the software update configuration machine run * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; - /** Update specific properties of the software update configuration. */ - updateConfiguration?: UpdateConfiguration; - /** Pre and Post Tasks defined */ - tasks?: SoftwareUpdateConfigurationTasks; - /** execution frequency of the schedule associated with the software update configuration */ - frequency?: ScheduleFrequency; - /** the start time of the update. */ - startTime?: Date; /** - * Creation time of the software update configuration, which only appears in the response. + * name of the updated computer + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetComputer?: string; + /** + * type of the updated computer. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetComputerType?: string; + /** software update configuration triggered this run */ + softwareUpdateConfiguration?: UpdateConfigurationNavigation; + /** + * Status of the software update configuration machine run. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; + /** + * Operating system target of the software update configuration triggered this run + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly osType?: string; + /** + * correlation id of the software update configuration machine run + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationId?: string; + /** + * source computer id of the software update configuration machine run + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceComputerId?: string; + /** + * Start time of the software update configuration machine run. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** + * End time of the software update configuration machine run. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endTime?: Date; + /** + * configured duration for the software update configuration run. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configuredDuration?: string; + /** Job associated with the software update configuration machine run */ + job?: JobNavigation; + /** + * Creation time of the resource, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationTime?: Date; /** - * Last time software update configuration was modified, which only appears in the response. + * createdBy property, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdBy?: string; + /** + * Last time resource was modified, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastModifiedTime?: Date; /** - * Provisioning state for the software update configuration, which only appears in the response. + * lastModifiedBy property, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; - /** ext run time of the update. */ - nextRun?: Date; + readonly lastModifiedBy?: string; + /** Details of provisioning error */ + error?: ErrorResponse; +} + +/** Software update configuration Run Navigation model. */ +export interface UpdateConfigurationNavigation { + /** + * Name of the software update configuration triggered the software update configuration run + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; +} + +/** Software update configuration machine run job navigation properties. */ +export interface JobNavigation { + /** + * Id of the job associated with the software update configuration run + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; +} + +/** result of listing all software update configuration machine runs */ +export interface SoftwareUpdateConfigurationMachineRunListResult { + /** outer object returned when listing all software update configuration machine runs */ + value?: SoftwareUpdateConfigurationMachineRun[]; + /** link to next page of results. */ + nextLink?: string; } /** Software update configuration Run properties. */ @@ -1677,258 +1871,266 @@ export interface SoftwareUpdateConfigurationRun { tasks?: SoftwareUpdateConfigurationRunTasks; } -/** Software update configuration Run Navigation model. */ -export interface UpdateConfigurationNavigation { - /** - * Name of the software update configuration triggered the software update configuration run - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** Software update configuration run tasks model. */ +export interface SoftwareUpdateConfigurationRunTasks { + /** Pre task properties. */ + preTask?: SoftwareUpdateConfigurationRunTaskProperties; + /** Post task properties. */ + postTask?: SoftwareUpdateConfigurationRunTaskProperties; +} + +/** Task properties of the software update configuration. */ +export interface SoftwareUpdateConfigurationRunTaskProperties { + /** The status of the task. */ + status?: string; + /** The name of the source of the task. */ + source?: string; + /** The job id of the task. */ + jobId?: string; +} + +/** result of listing all software update configuration runs */ +export interface SoftwareUpdateConfigurationRunListResult { + /** outer object returned when listing all software update configuration runs */ + value?: SoftwareUpdateConfigurationRun[]; + /** link to next page of results. */ + nextLink?: string; +} + +/** The parameters supplied to the create or update source control operation. */ +export interface SourceControlCreateOrUpdateParameters { + /** The repo url of the source control. */ + repoUrl?: string; + /** The repo branch of the source control. Include branch as empty string for VsoTfvc. */ + branch?: string; + /** The folder path of the source control. Path must be relative. */ + folderPath?: string; + /** The auto async of the source control. Default is false. */ + autoSync?: boolean; + /** The auto publish of the source control. Default is true. */ + publishRunbook?: boolean; + /** The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive. */ + sourceType?: SourceType; + /** The authorization token for the repo of the source control. */ + securityToken?: SourceControlSecurityTokenProperties; + /** The user description of the source control. */ + description?: string; +} + +export interface SourceControlSecurityTokenProperties { + /** The access token. */ + accessToken?: string; + /** The refresh token. */ + refreshToken?: string; + /** The token type. Must be either PersonalAccessToken or Oauth. */ + tokenType?: TokenType; } -/** Software update configuration run tasks model. */ -export interface SoftwareUpdateConfigurationRunTasks { - /** Pre task properties. */ - preTask?: SoftwareUpdateConfigurationRunTaskProperties; - /** Post task properties. */ - postTask?: SoftwareUpdateConfigurationRunTaskProperties; +/** The parameters supplied to the update source control operation. */ +export interface SourceControlUpdateParameters { + /** The repo branch of the source control. */ + branch?: string; + /** The folder path of the source control. Path must be relative. */ + folderPath?: string; + /** The auto sync of the source control. Default is false. */ + autoSync?: boolean; + /** The auto publish of the source control. Default is true. */ + publishRunbook?: boolean; + /** The authorization token for the repo of the source control. */ + securityToken?: SourceControlSecurityTokenProperties; + /** The user description of the source control. */ + description?: string; } -/** Task properties of the software update configuration. */ -export interface SoftwareUpdateConfigurationRunTaskProperties { - /** The status of the task. */ - status?: string; - /** The name of the source of the task. */ - source?: string; - /** The job id of the task. */ - jobId?: string; +/** The response model for the list source controls operation. */ +export interface SourceControlListResult { + /** The list of source controls. */ + value?: SourceControl[]; + /** The next link. */ + nextLink?: string; } -/** result of listing all software update configuration runs */ -export interface SoftwareUpdateConfigurationRunListResult { - /** outer object returned when listing all software update configuration runs */ - value?: SoftwareUpdateConfigurationRun[]; - /** link to next page of results. */ - nextLink?: string; +/** The parameters supplied to the create source control sync job operation. */ +export interface SourceControlSyncJobCreateParameters { + /** The commit id of the source control sync job. If not syncing to a commitId, enter an empty string. */ + commitId: string; } -/** Software update configuration machine run model. */ -export interface SoftwareUpdateConfigurationMachineRun { +/** Definition of the source control sync job. */ +export interface SourceControlSyncJob { /** - * Name of the software update configuration machine run + * Resource name. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * Resource Id of the software update configuration machine run - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * name of the updated computer + * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetComputer?: string; + readonly type?: string; /** - * type of the updated computer. + * Resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetComputerType?: string; - /** software update configuration triggered this run */ - softwareUpdateConfiguration?: UpdateConfigurationNavigation; + readonly id?: string; + /** The source control sync job id. */ + sourceControlSyncJobId?: string; /** - * Status of the software update configuration machine run. + * The creation time of the job. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: string; + readonly creationTime?: Date; + /** The provisioning state of the job. */ + provisioningState?: ProvisioningState; /** - * Operating system target of the software update configuration triggered this run + * The start time of the job. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly osType?: string; + readonly startTime?: Date; /** - * correlation id of the software update configuration machine run + * The end time of the job. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly correlationId?: string; + readonly endTime?: Date; + /** The sync type. */ + syncType?: SyncType; +} + +/** Definition of the source control sync job. */ +export interface SourceControlSyncJobById { + /** The id of the job. */ + id?: string; + /** The source control sync job id. */ + sourceControlSyncJobId?: string; /** - * source computer id of the software update configuration machine run + * The creation time of the job. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sourceComputerId?: string; + readonly creationTime?: Date; + /** The provisioning state of the job. */ + provisioningState?: ProvisioningState; /** - * Start time of the software update configuration machine run. + * The start time of the job. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly startTime?: Date; /** - * End time of the software update configuration machine run. + * The end time of the job. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endTime?: Date; + /** The sync type. */ + syncType?: SyncType; + /** The exceptions that occurred while running the sync job. */ + exception?: string; +} + +/** The response model for the list source control sync jobs operation. */ +export interface SourceControlSyncJobListResult { + /** The list of source control sync jobs. */ + value?: SourceControlSyncJob[]; + /** The next link. */ + nextLink?: string; +} + +/** The response model for the list source control sync job streams operation. */ +export interface SourceControlSyncJobStreamsListBySyncJob { + /** The list of source control sync job streams. */ + value?: SourceControlSyncJobStream[]; /** - * configured duration for the software update configuration run. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly configuredDuration?: string; - /** Job associated with the software update configuration machine run */ - job?: JobNavigation; - /** - * Creation time of the resource, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationTime?: Date; - /** - * createdBy property, which only appears in the response. + * The next link. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdBy?: string; + readonly nextLink?: string; +} + +/** Definition of the source control sync job stream. */ +export interface SourceControlSyncJobStream { /** - * Last time resource was modified, which only appears in the response. + * Resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedTime?: Date; + readonly id?: string; + /** The sync job stream id. */ + sourceControlSyncJobStreamId?: string; + /** The summary of the sync job stream. */ + summary?: string; /** - * lastModifiedBy property, which only appears in the response. + * The time of the sync job stream. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedBy?: string; - /** Details of provisioning error */ - error?: ErrorResponse; + readonly time?: Date; + /** The type of the sync job stream. */ + streamType?: StreamType; } -/** Software update configuration machine run job navigation properties. */ -export interface JobNavigation { +/** Definition of the source control sync job stream by id. */ +export interface SourceControlSyncJobStreamById { /** - * Id of the job associated with the software update configuration run + * Resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; + /** The sync job stream id. */ + sourceControlSyncJobStreamId?: string; + /** The summary of the sync job stream. */ + summary?: string; + /** + * The time of the sync job stream. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly time?: Date; + /** The type of the sync job stream. */ + streamType?: StreamType; + /** The text of the sync job stream. */ + streamText?: string; + /** The values of the job stream. */ + value?: { [propertyName: string]: Record }; } -/** result of listing all software update configuration machine runs */ -export interface SoftwareUpdateConfigurationMachineRunListResult { - /** outer object returned when listing all software update configuration machine runs */ - value?: SoftwareUpdateConfigurationMachineRun[]; - /** link to next page of results. */ - nextLink?: string; -} - -export interface RunbookDraft { - /** Gets or sets whether runbook is in edit mode. */ - inEdit?: boolean; - /** Gets or sets the draft runbook content link. */ - draftContentLink?: ContentLink; - /** Gets or sets the creation time of the runbook draft. */ - creationTime?: Date; - /** Gets or sets the last modified time of the runbook draft. */ - lastModifiedTime?: Date; - /** Gets or sets the runbook draft parameters. */ - parameters?: { [propertyName: string]: RunbookParameter }; - /** Gets or sets the runbook output types. */ - outputTypes?: string[]; -} - -/** Definition of the runbook parameter type. */ -export interface RunbookParameter { - /** Gets or sets the type of the parameter. */ - type?: string; - /** Gets or sets a Boolean value to indicate whether the parameter is mandatory or not. */ - isMandatory?: boolean; - /** Get or sets the position of the parameter. */ - position?: number; - /** Gets or sets the default value of parameter. */ - defaultValue?: string; -} - -/** The response model for the undo edit runbook operation. */ -export interface RunbookDraftUndoEditResult { - statusCode?: HttpStatusCode; - requestId?: string; -} - -/** The parameters supplied to the create or update runbook operation. */ -export interface RunbookCreateOrUpdateParameters { - /** Gets or sets the name of the resource. */ - name?: string; - /** Gets or sets the location of the resource. */ - location?: string; - /** Gets or sets the tags attached to the resource. */ - tags?: { [propertyName: string]: string }; - /** Gets or sets verbose log option. */ - logVerbose?: boolean; - /** Gets or sets progress log option. */ - logProgress?: boolean; - /** Gets or sets the type of the runbook. */ - runbookType: RunbookTypeEnum; - /** Gets or sets the draft runbook properties. */ - draft?: RunbookDraft; - /** Gets or sets the published runbook content link. */ - publishContentLink?: ContentLink; - /** Gets or sets the description of the runbook. */ +/** The parameters supplied to the create or update variable operation. */ +export interface VariableCreateOrUpdateParameters { + /** Gets or sets the name of the variable. */ + name: string; + /** Gets or sets the value of the variable. */ + value?: string; + /** Gets or sets the description of the variable. */ description?: string; - /** Gets or sets the activity-level tracing options of the runbook. */ - logActivityTrace?: number; + /** Gets or sets the encrypted flag of the variable. */ + isEncrypted?: boolean; } -/** The parameters supplied to the update runbook operation. */ -export interface RunbookUpdateParameters { - /** Gets or sets the name of the resource. */ +/** The parameters supplied to the update variable operation. */ +export interface VariableUpdateParameters { + /** Gets or sets the name of the variable. */ name?: string; - /** Gets or sets the location of the resource. */ - location?: string; - /** Gets or sets the tags attached to the resource. */ - tags?: { [propertyName: string]: string }; - /** Gets or sets the description of the runbook. */ + /** Gets or sets the value of the variable. */ + value?: string; + /** Gets or sets the description of the variable. */ description?: string; - /** Gets or sets verbose log option. */ - logVerbose?: boolean; - /** Gets or sets progress log option. */ - logProgress?: boolean; - /** Gets or sets the activity-level tracing options of the runbook. */ - logActivityTrace?: number; } -/** The response model for the list runbook operation. */ -export interface RunbookListResult { - /** Gets or sets a list of runbooks. */ - value?: Runbook[]; +/** The response model for the list variables operation. */ +export interface VariableListResult { + /** Gets or sets a list of variables. */ + value?: Variable[]; /** Gets or sets the next link. */ nextLink?: string; } -/** The parameters supplied to the create test job operation. */ -export interface TestJobCreateParameters { - /** Gets or sets the parameters of the test job. */ - parameters?: { [propertyName: string]: string }; - /** Gets or sets the runOn which specifies the group name where the job is to be executed. */ - runOn?: string; +export interface WatcherUpdateParameters { + /** Gets or sets the name of the resource. */ + name?: string; + /** Gets or sets the frequency at which the watcher is invoked. */ + executionFrequencyInSeconds?: number; } -/** Definition of the test job. */ -export interface TestJob { - /** Gets or sets the creation time of the test job. */ - creationTime?: Date; - /** Gets or sets the status of the test job. */ - status?: string; - /** Gets or sets the status details of the test job. */ - statusDetails?: string; - /** Gets or sets the runOn which specifies the group name where the job is to be executed. */ - runOn?: string; - /** Gets or sets the start time of the test job. */ - startTime?: Date; - /** Gets or sets the end time of the test job. */ - endTime?: Date; - /** Gets or sets the exception of the test job. */ - exception?: string; - /** Gets or sets the last modified time of the test job. */ - lastModifiedTime?: Date; - /** Gets or sets the last status modified time of the test job. */ - lastStatusModifiedTime?: Date; - /** Gets or sets the parameters of the test job. */ - parameters?: { [propertyName: string]: string }; - /** The activity-level tracing options of the runbook. */ - logActivityTrace?: number; +/** The response model for the list watcher operation. */ +export interface WatcherListResult { + /** Gets or sets a list of watchers. */ + value?: Watcher[]; + /** Gets or sets the next link. */ + nextLink?: string; } /** The parameters supplied to the create or update webhook operation. */ @@ -1971,85 +2173,14 @@ export interface WebhookListResult { nextLink?: string; } -/** The parameters supplied to the create hybrid runbook worker operation. */ -export interface HybridRunbookWorkerCreateParameters { - /** Gets or sets the name of the resource. */ - name?: string; - /** Azure Resource Manager Id for a virtual machine. */ - vmResourceId?: string; -} - -/** Parameters supplied to move hybrid worker operation. */ -export interface HybridRunbookWorkerMoveParameters { - /** Gets or sets the target hybrid runbook worker group. */ - hybridRunbookWorkerGroupName?: string; -} - -/** The response model for the list hybrid runbook workers. */ -export interface HybridRunbookWorkersListResult { - /** Gets or sets a list of hybrid runbook workers. */ - value?: HybridRunbookWorker[]; - /** Gets or sets the next link. */ - nextLink?: string; -} - -/** The response model for the list deleted automation account. */ -export interface DeletedAutomationAccountListResult { - /** Gets or sets the list of deleted automation accounts. */ - value?: DeletedAutomationAccount[]; -} - -/** Definition of the deleted automation account type. */ -export interface DeletedAutomationAccount { - /** The resource id. */ - id?: string; - /** Gets or sets name of the resource. */ - name?: string; - /** The resource type. */ - type?: string; - /** Gets or sets the location of the resource. */ - location?: string; - /** Gets or sets the Automation Account Resource Id. */ - automationAccountResourceId?: string; - /** Gets or sets the Automation Account Id. */ - automationAccountId?: string; - /** Gets or sets the location of the resource. */ - locationPropertiesLocation?: string; - /** - * Gets the deletion time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly deletionTime?: Date; -} - -/** Definition of RunAs credential to use for hybrid worker. */ -export interface RunAsCredentialAssociationProperty { - /** Gets or sets the name of the credential. */ - name?: string; -} - -/** The parameters supplied to the create hybrid runbook worker group operation. */ -export interface HybridRunbookWorkerGroupCreateOrUpdateParameters { - /** Gets or sets the name of the resource. */ - name?: string; - /** Sets the credential of a worker group. */ - credential?: RunAsCredentialAssociationProperty; -} - -/** The response model for the list hybrid runbook worker groups. */ -export interface HybridRunbookWorkerGroupsListResult { - /** Gets or sets a list of hybrid runbook worker groups. */ - value?: HybridRunbookWorkerGroup[]; - /** Gets or sets the next link. */ - nextLink?: string; -} - /** The parameters supplied to the create or update draft runbook properties. */ export interface RunbookCreateOrUpdateDraftProperties { /** Gets or sets verbose log option. */ logVerbose?: boolean; /** Gets or sets progress log option. */ logProgress?: boolean; + /** Environment of the runbook. */ + runtimeEnvironment?: string; /** Gets or sets the type of the runbook. */ runbookType: RunbookTypeEnum; /** Gets or sets the draft runbook properties. */ @@ -2066,15 +2197,15 @@ export interface RunbookCreateOrUpdateDraftParameters { runbookContent: string; } -/** ARM proxy resource. */ +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} -/** The resource model definition for a ARM tracked top level resource */ +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export interface TrackedResource extends Resource { /** Resource tags. */ tags?: { [propertyName: string]: string }; - /** The Azure Region where the resource lives */ - location?: string; + /** The geo-location where the resource lives */ + location: string; } /** Definition of the watcher type. */ @@ -2117,50 +2248,6 @@ export interface Watcher extends Resource { description?: string; } -/** Definition of hybrid runbook worker. */ -export interface HybridRunbookWorker extends Resource { - /** - * Resource system metadata. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** Gets or sets the assigned machine IP address. */ - ip?: string; - /** Gets or sets the registration time of the worker machine. */ - registeredDateTime?: Date; - /** Last Heartbeat from the Worker */ - lastSeenDateTime?: Date; - /** Azure Resource Manager Id for a virtual machine. */ - vmResourceId?: string; - /** Type of the HybridWorker. */ - workerType?: WorkerType; - /** Name of the HybridWorker. */ - workerName?: string; -} - -/** Definition of hybrid runbook worker group. */ -export interface HybridRunbookWorkerGroup extends Resource { - /** - * Resource system metadata. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** Type of the HybridWorkerGroup. */ - groupType?: GroupTypeEnum; - /** Sets the credential of a worker group. */ - credential?: RunAsCredentialAssociationProperty; -} - -/** A private endpoint connection */ -export interface PrivateEndpointConnection extends ProxyResource { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: PrivateEndpointProperty; - /** Gets the groupIds. */ - groupIds?: string[]; - /** Connection State of the Private Endpoint Connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; -} - /** A private link resource */ export interface PrivateLinkResource extends ProxyResource { /** @@ -2177,120 +2264,36 @@ export interface PrivateLinkResource extends ProxyResource { /** Definition of a DscNode */ export interface DscNode extends ProxyResource { - /** Gets or sets the last seen time of the node. */ - lastSeen?: Date; - /** Gets or sets the registration time of the node. */ - registrationTime?: Date; - /** Gets or sets the ip of the node. */ - ip?: string; - /** Gets or sets the account id of the node. */ - accountId?: string; - /** Gets or sets the status of the node. */ - status?: string; - /** Gets or sets the node id. */ - nodeId?: string; - /** Gets or sets the etag of the resource. */ - etag?: string; - /** Gets the total number of records matching filter criteria. */ - totalCount?: number; - /** Gets or sets the list of extensionHandler properties for a Node. */ - extensionHandler?: DscNodeExtensionHandlerAssociationProperty[]; - /** Gets or sets the name of the dsc node configuration. */ - namePropertiesNodeConfigurationName?: string; -} - -/** Definition of the dsc node configuration. */ -export interface DscNodeConfiguration extends ProxyResource { - /** Gets or sets the last modified time. */ - lastModifiedTime?: Date; - /** Gets or sets creation time. */ - creationTime?: Date; - /** Gets or sets the configuration of the node. */ - configuration?: DscConfigurationAssociationProperty; - /** Source of node configuration. */ - source?: string; - /** Number of nodes with this node configuration assigned */ - nodeCount?: number; - /** If a new build version of NodeConfiguration is required. */ - incrementNodeConfigurationBuild?: boolean; -} - -/** Definition of the Dsc Compilation job. */ -export interface DscCompilationJob extends ProxyResource { - /** Gets or sets the configuration. */ - configuration?: DscConfigurationAssociationProperty; - /** - * Gets the compilation job started by. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startedBy?: string; - /** - * Gets the id of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly jobId?: string; - /** - * Gets the creation time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly creationTime?: Date; - /** The current provisioning state of the job. */ - provisioningState?: JobProvisioningState; - /** Gets or sets the runOn which specifies the group name where the job is to be executed. */ - runOn?: string; - /** Gets or sets the status of the job. */ - status?: JobStatus; - /** Gets or sets the status details of the job. */ - statusDetails?: string; - /** - * Gets the start time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTime?: Date; - /** - * Gets the end time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTime?: Date; - /** - * Gets the exception of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly exception?: string; - /** - * Gets the last modified time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModifiedTime?: Date; - /** - * Gets the last status modified time of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastStatusModifiedTime?: Date; - /** Gets or sets the parameters of the job. */ - parameters?: { [propertyName: string]: string }; + /** Gets or sets the last seen time of the node. */ + lastSeen?: Date; + /** Gets or sets the registration time of the node. */ + registrationTime?: Date; + /** Gets or sets the ip of the node. */ + ip?: string; + /** Gets or sets the account id of the node. */ + accountId?: string; + /** Gets or sets the status of the node. */ + status?: string; + /** Gets or sets the node id. */ + nodeId?: string; + /** Gets or sets the etag of the resource. */ + etag?: string; + /** Gets the total number of records matching filter criteria. */ + totalCount?: number; + /** Gets or sets the list of extensionHandler properties for a Node. */ + extensionHandler?: DscNodeExtensionHandlerAssociationProperty[]; + /** Gets or sets the name of the dsc node configuration. */ + namePropertiesNodeConfigurationName?: string; } -/** Definition of the source control. */ -export interface SourceControl extends ProxyResource { - /** The repo url of the source control. */ - repoUrl?: string; - /** The repo branch of the source control. Include branch as empty string for VsoTfvc. */ - branch?: string; - /** The folder path of the source control. */ - folderPath?: string; - /** The auto sync of the source control. Default is false. */ - autoSync?: boolean; - /** The auto publish of the source control. Default is true. */ - publishRunbook?: boolean; - /** The source type. Must be one of VsoGit, VsoTfvc, GitHub. */ - sourceType?: SourceType; - /** The description. */ - description?: string; - /** The creation time. */ - creationTime?: Date; - /** The last modified time. */ - lastModifiedTime?: Date; +/** A private endpoint connection */ +export interface PrivateEndpointConnection extends ProxyResource { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; + /** Gets the groupIds. */ + groupIds?: string[]; + /** Connection State of the Private Endpoint Connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; } /** Definition of the certificate. */ @@ -2368,53 +2371,20 @@ export interface Credential extends ProxyResource { description?: string; } -/** Definition of the schedule. */ -export interface Schedule extends ProxyResource { - /** Gets or sets the start time of the schedule. */ - startTime?: Date; - /** - * Gets the start time's offset in minutes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startTimeOffsetMinutes?: number; - /** Gets or sets the end time of the schedule. */ - expiryTime?: Date; - /** Gets or sets the expiry time's offset in minutes. */ - expiryTimeOffsetMinutes?: number; - /** Gets or sets a value indicating whether this schedule is enabled. */ - isEnabled?: boolean; - /** Gets or sets the next run time of the schedule. */ - nextRun?: Date; - /** Gets or sets the next run time's offset in minutes. */ - nextRunOffsetMinutes?: number; - /** Gets or sets the interval of the schedule. */ - interval?: any; - /** Gets or sets the frequency of the schedule. */ - frequency?: ScheduleFrequency; - /** Gets or sets the time zone of the schedule. */ - timeZone?: string; - /** Gets or sets the advanced schedule. */ - advancedSchedule?: AdvancedSchedule; - /** Gets or sets the creation time. */ - creationTime?: Date; +/** Definition of the dsc node configuration. */ +export interface DscNodeConfiguration extends ProxyResource { /** Gets or sets the last modified time. */ lastModifiedTime?: Date; - /** Gets or sets the description. */ - description?: string; -} - -/** Definition of the variable. */ -export interface Variable extends ProxyResource { - /** Gets or sets the value of the variable. */ - value?: string; - /** Gets or sets the encrypted flag of the variable. */ - isEncrypted?: boolean; - /** Gets or sets the creation time. */ + /** Gets or sets creation time. */ creationTime?: Date; - /** Gets or sets the last modified time. */ - lastModifiedTime?: Date; - /** Gets or sets the description. */ - description?: string; + /** Gets or sets the configuration of the node. */ + configuration?: DscConfigurationAssociationProperty; + /** Source of node configuration. */ + source?: string; + /** Number of nodes with this node configuration assigned */ + nodeCount?: number; + /** If a new build version of NodeConfiguration is required. */ + incrementNodeConfigurationBuild?: boolean; } /** Definition of the job. */ @@ -2425,6 +2395,8 @@ export interface Job extends ProxyResource { startedBy?: string; /** Gets or sets the runOn which specifies the group name where the job is to be executed. */ runOn?: string; + /** Runtime Environment Property */ + jobRuntimeEnvironment?: JobRuntimeEnvironment; /** Gets or sets the id of the job. */ jobId?: string; /** Gets or sets the creation time of the job. */ @@ -2445,8 +2417,11 @@ export interface Job extends ProxyResource { lastStatusModifiedTime?: Date; /** Gets or sets the parameters of the job. */ parameters?: { [propertyName: string]: string }; - /** The current provisioning state of the job. */ - provisioningState?: JobProvisioningState; + /** + * The current provisioning state of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: JobProvisioningState; } /** Job collection item properties. */ @@ -2461,6 +2436,11 @@ export interface JobCollectionItem extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly jobId?: string; + /** + * Gets or sets the job started by. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startedBy?: string; /** * The creation time of the job. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2491,10 +2471,83 @@ export interface JobCollectionItem extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; + /** Runtime Environment Property */ + jobRuntimeEnvironment?: JobRuntimeEnvironment; /** Specifies the runOn group name where the job was executed. */ runOn?: string; } +/** Definition of the schedule. */ +export interface Schedule extends ProxyResource { + /** Gets or sets the start time of the schedule. */ + startTime?: Date; + /** + * Gets the start time's offset in minutes. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTimeOffsetMinutes?: number; + /** Gets or sets the end time of the schedule. */ + expiryTime?: Date; + /** Gets or sets the expiry time's offset in minutes. */ + expiryTimeOffsetMinutes?: number; + /** Gets or sets a value indicating whether this schedule is enabled. */ + isEnabled?: boolean; + /** Gets or sets the next run time of the schedule. */ + nextRun?: Date; + /** Gets or sets the next run time's offset in minutes. */ + nextRunOffsetMinutes?: number; + /** Gets or sets the interval of the schedule. */ + interval?: any; + /** Gets or sets the frequency of the schedule. */ + frequency?: ScheduleFrequency; + /** Gets or sets the time zone of the schedule. */ + timeZone?: string; + /** Gets or sets the advanced schedule. */ + advancedSchedule?: AdvancedSchedule; + /** Gets or sets the creation time. */ + creationTime?: Date; + /** Gets or sets the last modified time. */ + lastModifiedTime?: Date; + /** Gets or sets the description. */ + description?: string; +} + +/** Definition of the source control. */ +export interface SourceControl extends ProxyResource { + /** The repo url of the source control. */ + repoUrl?: string; + /** The repo branch of the source control. Include branch as empty string for VsoTfvc. */ + branch?: string; + /** The folder path of the source control. */ + folderPath?: string; + /** The auto sync of the source control. Default is false. */ + autoSync?: boolean; + /** The auto publish of the source control. Default is true. */ + publishRunbook?: boolean; + /** The source type. Must be one of VsoGit, VsoTfvc, GitHub. */ + sourceType?: SourceType; + /** The description. */ + description?: string; + /** The creation time. */ + creationTime?: Date; + /** The last modified time. */ + lastModifiedTime?: Date; +} + +/** Definition of the variable. */ +export interface Variable extends ProxyResource { + /** Gets or sets the value of the variable. */ + value?: string; + /** Gets or sets the encrypted flag of the variable. */ + isEncrypted?: boolean; + /** Gets or sets the creation time. */ + creationTime?: Date; + /** Gets or sets the last modified time. */ + lastModifiedTime?: Date; + /** Gets or sets the description. */ + description?: string; +} + /** Definition of the webhook type. */ export interface Webhook extends ProxyResource { /** Gets or sets the value of the enabled flag of the webhook. */ @@ -2521,45 +2574,12 @@ export interface Webhook extends ProxyResource { description?: string; } -/** Definition of the module type. */ -export interface Module extends TrackedResource { - /** Gets or sets the etag of the resource. */ - etag?: string; - /** Gets or sets the isGlobal flag of the module. */ - isGlobal?: boolean; - /** Gets or sets the version of the module. */ - version?: string; - /** Gets or sets the size in bytes of the module. */ - sizeInBytes?: number; - /** Gets or sets the activity count of the module. */ - activityCount?: number; - /** Gets or sets the provisioning state of the module. */ - provisioningState?: ModuleProvisioningState; - /** Gets or sets the contentLink of the module. */ - contentLink?: ContentLink; - /** Gets or sets the error info of the module. */ - error?: ModuleErrorInfo; - /** Gets or sets the creation time. */ - creationTime?: Date; - /** Gets or sets the last modified time. */ - lastModifiedTime?: Date; - /** Gets or sets the description. */ - description?: string; - /** Gets or sets type of module, if its composite or not. */ - isComposite?: boolean; -} - /** Definition of the automation account type. */ export interface AutomationAccount extends TrackedResource { /** Gets or sets the etag of the resource. */ etag?: string; /** Identity for the resource. */ identity?: Identity; - /** - * Resource system metadata. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; /** Gets or sets the SKU of account. */ sku?: Sku; /** Gets or sets the last modified by. */ @@ -2593,36 +2613,114 @@ export interface AutomationAccount extends TrackedResource { automationHybridServiceUrl?: string; } -/** Definition of the configuration type. */ -export interface DscConfiguration extends TrackedResource { +/** Definition of the configuration type. */ +export interface DscConfiguration extends TrackedResource { + /** Gets or sets the etag of the resource. */ + etag?: string; + /** Gets or sets the provisioning state of the configuration. */ + provisioningState?: "Succeeded"; + /** Gets or sets the job count of the configuration. */ + jobCount?: number; + /** Gets or sets the configuration parameters. */ + parameters?: { [propertyName: string]: DscConfigurationParameter }; + /** Gets or sets the source. */ + source?: ContentSource; + /** Gets or sets the state of the configuration. */ + state?: DscConfigurationState; + /** Gets or sets verbose log option. */ + logVerbose?: boolean; + /** Gets or sets the creation time. */ + creationTime?: Date; + /** Gets or sets the last modified time. */ + lastModifiedTime?: Date; + /** Gets the number of compiled node configurations. */ + nodeConfigurationCount?: number; + /** Gets or sets the description. */ + description?: string; +} + +/** Definition of hybrid runbook worker. */ +export interface HybridRunbookWorker extends TrackedResource { + /** Gets or sets the assigned machine IP address. */ + ip?: string; + /** Gets or sets the registration time of the worker machine. */ + registeredDateTime?: Date; + /** Last Heartbeat from the Worker */ + lastSeenDateTime?: Date; + /** Azure Resource Manager Id for a virtual machine. */ + vmResourceId?: string; + /** Type of the HybridWorker. */ + workerType?: WorkerType; + /** Name of the HybridWorker. */ + workerName?: string; +} + +/** Definition of hybrid runbook worker group. */ +export interface HybridRunbookWorkerGroup extends TrackedResource { + /** Type of the HybridWorkerGroup. */ + groupType?: GroupTypeEnum; + /** Sets the credential of a worker group. */ + credential?: RunAsCredentialAssociationProperty; +} + +/** Definition of the module type. */ +export interface Module extends TrackedResource { /** Gets or sets the etag of the resource. */ etag?: string; - /** Gets or sets the provisioning state of the configuration. */ - provisioningState?: "Succeeded"; - /** Gets or sets the job count of the configuration. */ - jobCount?: number; - /** Gets or sets the configuration parameters. */ - parameters?: { [propertyName: string]: DscConfigurationParameter }; - /** Gets or sets the source. */ - source?: ContentSource; - /** Gets or sets the state of the configuration. */ - state?: DscConfigurationState; - /** Gets or sets verbose log option. */ - logVerbose?: boolean; + /** Gets or sets the isGlobal flag of the module. */ + isGlobal?: boolean; + /** Gets or sets the version of the module. */ + version?: string; + /** Gets or sets the size in bytes of the module. */ + sizeInBytes?: number; + /** Gets or sets the activity count of the module. */ + activityCount?: number; + /** Gets or sets the provisioning state of the module. */ + provisioningState?: ModuleProvisioningState; + /** Gets or sets the contentLink of the module. */ + contentLink?: ContentLink; + /** Gets or sets the error info of the module. */ + error?: ModuleErrorInfo; /** Gets or sets the creation time. */ creationTime?: Date; /** Gets or sets the last modified time. */ lastModifiedTime?: Date; - /** Gets the number of compiled node configurations. */ - nodeConfigurationCount?: number; /** Gets or sets the description. */ description?: string; + /** Gets or sets type of module, if its composite or not. */ + isComposite?: boolean; +} + +/** Definition of the Package type. */ +export interface Package extends TrackedResource { + /** Gets or sets the isGlobal flag of the package. */ + default?: boolean; + /** Gets or sets the version of the Package. */ + version?: string; + /** Gets or sets the size in bytes of the Package. */ + sizeInBytes?: number; + /** + * Gets or sets the provisioning state of the Package. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: PackageProvisioningState; + /** Gets or sets the contentLink of the Package. */ + contentLink?: ContentLink; + /** Gets or sets the error info of the Package. */ + error?: PackageErrorInfo; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly allOf?: SystemData; } /** Definition of the runbook type. */ export interface Runbook extends TrackedResource { /** Gets or sets the etag of the resource. */ etag?: string; + /** Runtime Environment of the runbook execution. */ + runtimeEnvironment?: string; /** Gets or sets the type of the runbook. */ runbookType?: RunbookTypeEnum; /** Gets or sets the published runbook content link. */ @@ -2655,6 +2753,24 @@ export interface Runbook extends TrackedResource { description?: string; } +/** Definition of the Runtime Environment type. */ +export interface RuntimeEnvironment extends TrackedResource { + /** List of Default packages for Environment */ + defaultPackages?: { [propertyName: string]: string }; + /** Gets or sets the description. */ + description?: string; + /** Language of Runtime Environment */ + language?: string; + /** Version of Language */ + version?: string; +} + +/** Defines headers for PrivateEndpointConnections_delete operation. */ +export interface PrivateEndpointConnectionsDeleteHeaders { + /** The Location header contains the URL where the status of the long running operation can be checked. */ + location?: string; +} + /** Defines headers for RunbookDraft_replaceContent operation. */ export interface RunbookDraftReplaceContentHeaders { /** URL to query for status of the operation. */ @@ -2667,156 +2783,12 @@ export interface RunbookPublishHeaders { location?: string; } -/** Known values of {@link AgentRegistrationKeyName} that the service accepts. */ -export enum KnownAgentRegistrationKeyName { - /** Primary */ - Primary = "primary", - /** Secondary */ - Secondary = "secondary" -} - -/** - * Defines values for AgentRegistrationKeyName. \ - * {@link KnownAgentRegistrationKeyName} can be used interchangeably with AgentRegistrationKeyName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **primary** \ - * **secondary** - */ -export type AgentRegistrationKeyName = string; - -/** Known values of {@link ContentSourceType} that the service accepts. */ -export enum KnownContentSourceType { - /** EmbeddedContent */ - EmbeddedContent = "embeddedContent", - /** Uri */ - Uri = "uri" -} - -/** - * Defines values for ContentSourceType. \ - * {@link KnownContentSourceType} can be used interchangeably with ContentSourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **embeddedContent** \ - * **uri** - */ -export type ContentSourceType = string; - -/** Known values of {@link JobProvisioningState} that the service accepts. */ -export enum KnownJobProvisioningState { - /** Failed */ - Failed = "Failed", - /** Succeeded */ - Succeeded = "Succeeded", - /** Suspended */ - Suspended = "Suspended", - /** Processing */ - Processing = "Processing" -} - -/** - * Defines values for JobProvisioningState. \ - * {@link KnownJobProvisioningState} can be used interchangeably with JobProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Failed** \ - * **Succeeded** \ - * **Suspended** \ - * **Processing** - */ -export type JobProvisioningState = string; - -/** Known values of {@link JobStatus} that the service accepts. */ -export enum KnownJobStatus { - /** New */ - New = "New", - /** Activating */ - Activating = "Activating", - /** Running */ - Running = "Running", - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", - /** Stopped */ - Stopped = "Stopped", - /** Blocked */ - Blocked = "Blocked", - /** Suspended */ - Suspended = "Suspended", - /** Disconnected */ - Disconnected = "Disconnected", - /** Suspending */ - Suspending = "Suspending", - /** Stopping */ - Stopping = "Stopping", - /** Resuming */ - Resuming = "Resuming", - /** Removing */ - Removing = "Removing" -} - -/** - * Defines values for JobStatus. \ - * {@link KnownJobStatus} can be used interchangeably with JobStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **New** \ - * **Activating** \ - * **Running** \ - * **Completed** \ - * **Failed** \ - * **Stopped** \ - * **Blocked** \ - * **Suspended** \ - * **Disconnected** \ - * **Suspending** \ - * **Stopping** \ - * **Resuming** \ - * **Removing** - */ -export type JobStatus = string; - -/** Known values of {@link JobStreamType} that the service accepts. */ -export enum KnownJobStreamType { - /** Progress */ - Progress = "Progress", - /** Output */ - Output = "Output", - /** Warning */ - Warning = "Warning", - /** Error */ - Error = "Error", - /** Debug */ - Debug = "Debug", - /** Verbose */ - Verbose = "Verbose", - /** Any */ - Any = "Any" -} - -/** - * Defines values for JobStreamType. \ - * {@link KnownJobStreamType} can be used interchangeably with JobStreamType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Progress** \ - * **Output** \ - * **Warning** \ - * **Error** \ - * **Debug** \ - * **Verbose** \ - * **Any** - */ -export type JobStreamType = string; - /** Known values of {@link CountType} that the service accepts. */ export enum KnownCountType { /** Status */ Status = "status", /** Nodeconfiguration */ - Nodeconfiguration = "nodeconfiguration" + Nodeconfiguration = "nodeconfiguration", } /** @@ -2829,108 +2801,180 @@ export enum KnownCountType { */ export type CountType = string; -/** Known values of {@link SourceType} that the service accepts. */ -export enum KnownSourceType { - /** VsoGit */ - VsoGit = "VsoGit", - /** VsoTfvc */ - VsoTfvc = "VsoTfvc", - /** GitHub */ - GitHub = "GitHub" +/** Known values of {@link WindowsUpdateClasses} that the service accepts. */ +export enum KnownWindowsUpdateClasses { + /** Unclassified */ + Unclassified = "Unclassified", + /** Critical */ + Critical = "Critical", + /** Security */ + Security = "Security", + /** UpdateRollup */ + UpdateRollup = "UpdateRollup", + /** FeaturePack */ + FeaturePack = "FeaturePack", + /** ServicePack */ + ServicePack = "ServicePack", + /** Definition */ + Definition = "Definition", + /** Tools */ + Tools = "Tools", + /** Updates */ + Updates = "Updates", } /** - * Defines values for SourceType. \ - * {@link KnownSourceType} can be used interchangeably with SourceType, + * Defines values for WindowsUpdateClasses. \ + * {@link KnownWindowsUpdateClasses} can be used interchangeably with WindowsUpdateClasses, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **VsoGit** \ - * **VsoTfvc** \ - * **GitHub** + * **Unclassified** \ + * **Critical** \ + * **Security** \ + * **UpdateRollup** \ + * **FeaturePack** \ + * **ServicePack** \ + * **Definition** \ + * **Tools** \ + * **Updates** + */ +export type WindowsUpdateClasses = string; + +/** Known values of {@link LinuxUpdateClasses} that the service accepts. */ +export enum KnownLinuxUpdateClasses { + /** Unclassified */ + Unclassified = "Unclassified", + /** Critical */ + Critical = "Critical", + /** Security */ + Security = "Security", + /** Other */ + Other = "Other", +} + +/** + * Defines values for LinuxUpdateClasses. \ + * {@link KnownLinuxUpdateClasses} can be used interchangeably with LinuxUpdateClasses, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unclassified** \ + * **Critical** \ + * **Security** \ + * **Other** */ -export type SourceType = string; +export type LinuxUpdateClasses = string; -/** Known values of {@link TokenType} that the service accepts. */ -export enum KnownTokenType { - /** PersonalAccessToken */ - PersonalAccessToken = "PersonalAccessToken", - /** Oauth */ - Oauth = "Oauth" +/** Known values of {@link ScheduleFrequency} that the service accepts. */ +export enum KnownScheduleFrequency { + /** OneTime */ + OneTime = "OneTime", + /** Day */ + Day = "Day", + /** Hour */ + Hour = "Hour", + /** Week */ + Week = "Week", + /** Month */ + Month = "Month", + /** The minimum allowed interval for Minute schedules is 15 minutes. */ + Minute = "Minute", } /** - * Defines values for TokenType. \ - * {@link KnownTokenType} can be used interchangeably with TokenType, + * Defines values for ScheduleFrequency. \ + * {@link KnownScheduleFrequency} can be used interchangeably with ScheduleFrequency, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PersonalAccessToken** \ - * **Oauth** + * **OneTime** \ + * **Day** \ + * **Hour** \ + * **Week** \ + * **Month** \ + * **Minute**: The minimum allowed interval for Minute schedules is 15 minutes. */ -export type TokenType = string; +export type ScheduleFrequency = string; -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", - /** Running */ - Running = "Running" +/** Known values of {@link ScheduleDay} that the service accepts. */ +export enum KnownScheduleDay { + /** Monday */ + Monday = "Monday", + /** Tuesday */ + Tuesday = "Tuesday", + /** Wednesday */ + Wednesday = "Wednesday", + /** Thursday */ + Thursday = "Thursday", + /** Friday */ + Friday = "Friday", + /** Saturday */ + Saturday = "Saturday", + /** Sunday */ + Sunday = "Sunday", } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * Defines values for ScheduleDay. \ + * {@link KnownScheduleDay} can be used interchangeably with ScheduleDay, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Completed** \ - * **Failed** \ - * **Running** + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** \ + * **Sunday** */ -export type ProvisioningState = string; +export type ScheduleDay = string; -/** Known values of {@link SyncType} that the service accepts. */ -export enum KnownSyncType { - /** PartialSync */ - PartialSync = "PartialSync", - /** FullSync */ - FullSync = "FullSync" +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", } /** - * Defines values for SyncType. \ - * {@link KnownSyncType} can be used interchangeably with SyncType, + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **PartialSync** \ - * **FullSync** + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type SyncType = string; +export type CreatedByType = string; -/** Known values of {@link StreamType} that the service accepts. */ -export enum KnownStreamType { - /** Error */ - Error = "Error", - /** Output */ - Output = "Output" +/** Known values of {@link AgentRegistrationKeyName} that the service accepts. */ +export enum KnownAgentRegistrationKeyName { + /** Primary */ + Primary = "primary", + /** Secondary */ + Secondary = "secondary", } /** - * Defines values for StreamType. \ - * {@link KnownStreamType} can be used interchangeably with StreamType, + * Defines values for AgentRegistrationKeyName. \ + * {@link KnownAgentRegistrationKeyName} can be used interchangeably with AgentRegistrationKeyName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Error** \ - * **Output** + * **primary** \ + * **secondary** */ -export type StreamType = string; +export type AgentRegistrationKeyName = string; /** Known values of {@link SkuNameEnum} that the service accepts. */ export enum KnownSkuNameEnum { /** Free */ Free = "Free", /** Basic */ - Basic = "Basic" + Basic = "Basic", } /** @@ -2950,7 +2994,7 @@ export enum KnownAutomationAccountState { /** Unavailable */ Unavailable = "Unavailable", /** Suspended */ - Suspended = "Suspended" + Suspended = "Suspended", } /** @@ -2964,36 +3008,12 @@ export enum KnownAutomationAccountState { */ export type AutomationAccountState = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - /** Known values of {@link AutomationKeyName} that the service accepts. */ export enum KnownAutomationKeyName { /** Primary */ Primary = "Primary", /** Secondary */ - Secondary = "Secondary" + Secondary = "Secondary", } /** @@ -3011,109 +3031,268 @@ export enum KnownAutomationKeyPermissions { /** Read */ Read = "Read", /** Full */ - Full = "Full" + Full = "Full", +} + +/** + * Defines values for AutomationKeyPermissions. \ + * {@link KnownAutomationKeyPermissions} can be used interchangeably with AutomationKeyPermissions, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Read** \ + * **Full** + */ +export type AutomationKeyPermissions = string; + +/** Known values of {@link ContentSourceType} that the service accepts. */ +export enum KnownContentSourceType { + /** EmbeddedContent */ + EmbeddedContent = "embeddedContent", + /** Uri */ + Uri = "uri", +} + +/** + * Defines values for ContentSourceType. \ + * {@link KnownContentSourceType} can be used interchangeably with ContentSourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **embeddedContent** \ + * **uri** + */ +export type ContentSourceType = string; + +/** Known values of {@link DscConfigurationState} that the service accepts. */ +export enum KnownDscConfigurationState { + /** New */ + New = "New", + /** Edit */ + Edit = "Edit", + /** Published */ + Published = "Published", +} + +/** + * Defines values for DscConfigurationState. \ + * {@link KnownDscConfigurationState} can be used interchangeably with DscConfigurationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **New** \ + * **Edit** \ + * **Published** + */ +export type DscConfigurationState = string; + +/** Known values of {@link WorkerType} that the service accepts. */ +export enum KnownWorkerType { + /** HybridV1 */ + HybridV1 = "HybridV1", + /** HybridV2 */ + HybridV2 = "HybridV2", +} + +/** + * Defines values for WorkerType. \ + * {@link KnownWorkerType} can be used interchangeably with WorkerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **HybridV1** \ + * **HybridV2** + */ +export type WorkerType = string; + +/** Known values of {@link GroupTypeEnum} that the service accepts. */ +export enum KnownGroupTypeEnum { + /** User */ + User = "User", + /** System */ + System = "System", +} + +/** + * Defines values for GroupTypeEnum. \ + * {@link KnownGroupTypeEnum} can be used interchangeably with GroupTypeEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **System** + */ +export type GroupTypeEnum = string; + +/** Known values of {@link JobStatus} that the service accepts. */ +export enum KnownJobStatus { + /** New */ + New = "New", + /** Activating */ + Activating = "Activating", + /** Running */ + Running = "Running", + /** Completed */ + Completed = "Completed", + /** Failed */ + Failed = "Failed", + /** Stopped */ + Stopped = "Stopped", + /** Blocked */ + Blocked = "Blocked", + /** Suspended */ + Suspended = "Suspended", + /** Disconnected */ + Disconnected = "Disconnected", + /** Suspending */ + Suspending = "Suspending", + /** Stopping */ + Stopping = "Stopping", + /** Resuming */ + Resuming = "Resuming", + /** Removing */ + Removing = "Removing", } /** - * Defines values for AutomationKeyPermissions. \ - * {@link KnownAutomationKeyPermissions} can be used interchangeably with AutomationKeyPermissions, + * Defines values for JobStatus. \ + * {@link KnownJobStatus} can be used interchangeably with JobStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Read** \ - * **Full** + * **New** \ + * **Activating** \ + * **Running** \ + * **Completed** \ + * **Failed** \ + * **Stopped** \ + * **Blocked** \ + * **Suspended** \ + * **Disconnected** \ + * **Suspending** \ + * **Stopping** \ + * **Resuming** \ + * **Removing** */ -export type AutomationKeyPermissions = string; +export type JobStatus = string; -/** Known values of {@link ScheduleFrequency} that the service accepts. */ -export enum KnownScheduleFrequency { - /** OneTime */ - OneTime = "OneTime", - /** Day */ - Day = "Day", - /** Hour */ - Hour = "Hour", - /** Week */ - Week = "Week", - /** Month */ - Month = "Month", - /** The minimum allowed interval for Minute schedules is 15 minutes. */ - Minute = "Minute" +/** Known values of {@link JobProvisioningState} that the service accepts. */ +export enum KnownJobProvisioningState { + /** Failed */ + Failed = "Failed", + /** Succeeded */ + Succeeded = "Succeeded", + /** Suspended */ + Suspended = "Suspended", + /** Processing */ + Processing = "Processing", } /** - * Defines values for ScheduleFrequency. \ - * {@link KnownScheduleFrequency} can be used interchangeably with ScheduleFrequency, + * Defines values for JobProvisioningState. \ + * {@link KnownJobProvisioningState} can be used interchangeably with JobProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **OneTime** \ - * **Day** \ - * **Hour** \ - * **Week** \ - * **Month** \ - * **Minute**: The minimum allowed interval for Minute schedules is 15 minutes. + * **Failed** \ + * **Succeeded** \ + * **Suspended** \ + * **Processing** */ -export type ScheduleFrequency = string; +export type JobProvisioningState = string; -/** Known values of {@link ScheduleDay} that the service accepts. */ -export enum KnownScheduleDay { - /** Monday */ - Monday = "Monday", - /** Tuesday */ - Tuesday = "Tuesday", - /** Wednesday */ - Wednesday = "Wednesday", - /** Thursday */ - Thursday = "Thursday", - /** Friday */ - Friday = "Friday", - /** Saturday */ - Saturday = "Saturday", - /** Sunday */ - Sunday = "Sunday" +/** Known values of {@link JobStreamType} that the service accepts. */ +export enum KnownJobStreamType { + /** Progress */ + Progress = "Progress", + /** Output */ + Output = "Output", + /** Warning */ + Warning = "Warning", + /** Error */ + Error = "Error", + /** Debug */ + Debug = "Debug", + /** Verbose */ + Verbose = "Verbose", + /** Any */ + Any = "Any", } /** - * Defines values for ScheduleDay. \ - * {@link KnownScheduleDay} can be used interchangeably with ScheduleDay, + * Defines values for JobStreamType. \ + * {@link KnownJobStreamType} can be used interchangeably with JobStreamType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Monday** \ - * **Tuesday** \ - * **Wednesday** \ - * **Thursday** \ - * **Friday** \ - * **Saturday** \ - * **Sunday** + * **Progress** \ + * **Output** \ + * **Warning** \ + * **Error** \ + * **Debug** \ + * **Verbose** \ + * **Any** */ -export type ScheduleDay = string; +export type JobStreamType = string; -/** Known values of {@link DscConfigurationState} that the service accepts. */ -export enum KnownDscConfigurationState { - /** New */ - New = "New", - /** Edit */ - Edit = "Edit", - /** Published */ - Published = "Published" +/** Known values of {@link ModuleProvisioningState} that the service accepts. */ +export enum KnownModuleProvisioningState { + /** Created */ + Created = "Created", + /** Creating */ + Creating = "Creating", + /** StartingImportModuleRunbook */ + StartingImportModuleRunbook = "StartingImportModuleRunbook", + /** RunningImportModuleRunbook */ + RunningImportModuleRunbook = "RunningImportModuleRunbook", + /** ContentRetrieved */ + ContentRetrieved = "ContentRetrieved", + /** ContentDownloaded */ + ContentDownloaded = "ContentDownloaded", + /** ContentValidated */ + ContentValidated = "ContentValidated", + /** ConnectionTypeImported */ + ConnectionTypeImported = "ConnectionTypeImported", + /** ContentStored */ + ContentStored = "ContentStored", + /** ModuleDataStored */ + ModuleDataStored = "ModuleDataStored", + /** ActivitiesStored */ + ActivitiesStored = "ActivitiesStored", + /** ModuleImportRunbookComplete */ + ModuleImportRunbookComplete = "ModuleImportRunbookComplete", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Updating */ + Updating = "Updating", } /** - * Defines values for DscConfigurationState. \ - * {@link KnownDscConfigurationState} can be used interchangeably with DscConfigurationState, + * Defines values for ModuleProvisioningState. \ + * {@link KnownModuleProvisioningState} can be used interchangeably with ModuleProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **New** \ - * **Edit** \ - * **Published** + * **Created** \ + * **Creating** \ + * **StartingImportModuleRunbook** \ + * **RunningImportModuleRunbook** \ + * **ContentRetrieved** \ + * **ContentDownloaded** \ + * **ContentValidated** \ + * **ConnectionTypeImported** \ + * **ContentStored** \ + * **ModuleDataStored** \ + * **ActivitiesStored** \ + * **ModuleImportRunbookComplete** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Updating** */ -export type DscConfigurationState = string; +export type ModuleProvisioningState = string; /** Known values of {@link GraphRunbookType} that the service accepts. */ export enum KnownGraphRunbookType { /** GraphPowerShell */ GraphPowerShell = "GraphPowerShell", /** GraphPowerShellWorkflow */ - GraphPowerShellWorkflow = "GraphPowerShellWorkflow" + GraphPowerShellWorkflow = "GraphPowerShellWorkflow", } /** @@ -3126,68 +3305,65 @@ export enum KnownGraphRunbookType { */ export type GraphRunbookType = string; -/** Known values of {@link WindowsUpdateClasses} that the service accepts. */ -export enum KnownWindowsUpdateClasses { - /** Unclassified */ - Unclassified = "Unclassified", - /** Critical */ - Critical = "Critical", - /** Security */ - Security = "Security", - /** UpdateRollup */ - UpdateRollup = "UpdateRollup", - /** FeaturePack */ - FeaturePack = "FeaturePack", - /** ServicePack */ - ServicePack = "ServicePack", - /** Definition */ - Definition = "Definition", - /** Tools */ - Tools = "Tools", - /** Updates */ - Updates = "Updates" -} - -/** - * Defines values for WindowsUpdateClasses. \ - * {@link KnownWindowsUpdateClasses} can be used interchangeably with WindowsUpdateClasses, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unclassified** \ - * **Critical** \ - * **Security** \ - * **UpdateRollup** \ - * **FeaturePack** \ - * **ServicePack** \ - * **Definition** \ - * **Tools** \ - * **Updates** - */ -export type WindowsUpdateClasses = string; - -/** Known values of {@link LinuxUpdateClasses} that the service accepts. */ -export enum KnownLinuxUpdateClasses { - /** Unclassified */ - Unclassified = "Unclassified", - /** Critical */ - Critical = "Critical", - /** Security */ - Security = "Security", - /** Other */ - Other = "Other" +/** Known values of {@link PackageProvisioningState} that the service accepts. */ +export enum KnownPackageProvisioningState { + /** Created */ + Created = "Created", + /** Creating */ + Creating = "Creating", + /** StartingImportModuleRunbook */ + StartingImportModuleRunbook = "StartingImportModuleRunbook", + /** RunningImportModuleRunbook */ + RunningImportModuleRunbook = "RunningImportModuleRunbook", + /** ContentRetrieved */ + ContentRetrieved = "ContentRetrieved", + /** ContentDownloaded */ + ContentDownloaded = "ContentDownloaded", + /** ContentValidated */ + ContentValidated = "ContentValidated", + /** ConnectionTypeImported */ + ConnectionTypeImported = "ConnectionTypeImported", + /** ContentStored */ + ContentStored = "ContentStored", + /** ModuleDataStored */ + ModuleDataStored = "ModuleDataStored", + /** ActivitiesStored */ + ActivitiesStored = "ActivitiesStored", + /** ModuleImportRunbookComplete */ + ModuleImportRunbookComplete = "ModuleImportRunbookComplete", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Updating */ + Updating = "Updating", } /** - * Defines values for LinuxUpdateClasses. \ - * {@link KnownLinuxUpdateClasses} can be used interchangeably with LinuxUpdateClasses, + * Defines values for PackageProvisioningState. \ + * {@link KnownPackageProvisioningState} can be used interchangeably with PackageProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unclassified** \ - * **Critical** \ - * **Security** \ - * **Other** + * **Created** \ + * **Creating** \ + * **StartingImportModuleRunbook** \ + * **RunningImportModuleRunbook** \ + * **ContentRetrieved** \ + * **ContentDownloaded** \ + * **ContentValidated** \ + * **ConnectionTypeImported** \ + * **ContentStored** \ + * **ModuleDataStored** \ + * **ActivitiesStored** \ + * **ModuleImportRunbookComplete** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Updating** */ -export type LinuxUpdateClasses = string; +export type PackageProvisioningState = string; /** Known values of {@link HttpStatusCode} that the service accepts. */ export enum KnownHttpStatusCode { @@ -3284,7 +3460,7 @@ export enum KnownHttpStatusCode { /** GatewayTimeout */ GatewayTimeout = "GatewayTimeout", /** HttpVersionNotSupported */ - HttpVersionNotSupported = "HttpVersionNotSupported" + HttpVersionNotSupported = "HttpVersionNotSupported", } /** @@ -3359,7 +3535,11 @@ export enum KnownRunbookTypeEnum { /** Python2 */ Python2 = "Python2", /** Python3 */ - Python3 = "Python3" + Python3 = "Python3", + /** Python */ + Python = "Python", + /** PowerShell72 */ + PowerShell72 = "PowerShell72", } /** @@ -3374,7 +3554,9 @@ export enum KnownRunbookTypeEnum { * **GraphPowerShellWorkflow** \ * **GraphPowerShell** \ * **Python2** \ - * **Python3** + * **Python3** \ + * **Python** \ + * **PowerShell72** */ export type RunbookTypeEnum = string; @@ -3385,7 +3567,7 @@ export enum KnownRunbookState { /** Edit */ Edit = "Edit", /** Published */ - Published = "Published" + Published = "Published", } /** @@ -3399,59 +3581,105 @@ export enum KnownRunbookState { */ export type RunbookState = string; -/** Known values of {@link WorkerType} that the service accepts. */ -export enum KnownWorkerType { - /** HybridV1 */ - HybridV1 = "HybridV1", - /** HybridV2 */ - HybridV2 = "HybridV2" +/** Known values of {@link SourceType} that the service accepts. */ +export enum KnownSourceType { + /** VsoGit */ + VsoGit = "VsoGit", + /** VsoTfvc */ + VsoTfvc = "VsoTfvc", + /** GitHub */ + GitHub = "GitHub", +} + +/** + * Defines values for SourceType. \ + * {@link KnownSourceType} can be used interchangeably with SourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **VsoGit** \ + * **VsoTfvc** \ + * **GitHub** + */ +export type SourceType = string; + +/** Known values of {@link TokenType} that the service accepts. */ +export enum KnownTokenType { + /** PersonalAccessToken */ + PersonalAccessToken = "PersonalAccessToken", + /** Oauth */ + Oauth = "Oauth", +} + +/** + * Defines values for TokenType. \ + * {@link KnownTokenType} can be used interchangeably with TokenType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PersonalAccessToken** \ + * **Oauth** + */ +export type TokenType = string; + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Completed */ + Completed = "Completed", + /** Failed */ + Failed = "Failed", + /** Running */ + Running = "Running", +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Completed** \ + * **Failed** \ + * **Running** + */ +export type ProvisioningState = string; + +/** Known values of {@link SyncType} that the service accepts. */ +export enum KnownSyncType { + /** PartialSync */ + PartialSync = "PartialSync", + /** FullSync */ + FullSync = "FullSync", } /** - * Defines values for WorkerType. \ - * {@link KnownWorkerType} can be used interchangeably with WorkerType, + * Defines values for SyncType. \ + * {@link KnownSyncType} can be used interchangeably with SyncType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **HybridV1** \ - * **HybridV2** + * **PartialSync** \ + * **FullSync** */ -export type WorkerType = string; +export type SyncType = string; -/** Known values of {@link GroupTypeEnum} that the service accepts. */ -export enum KnownGroupTypeEnum { - /** User */ - User = "User", - /** System */ - System = "System" +/** Known values of {@link StreamType} that the service accepts. */ +export enum KnownStreamType { + /** Error */ + Error = "Error", + /** Output */ + Output = "Output", } /** - * Defines values for GroupTypeEnum. \ - * {@link KnownGroupTypeEnum} can be used interchangeably with GroupTypeEnum, + * Defines values for StreamType. \ + * {@link KnownStreamType} can be used interchangeably with StreamType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **System** + * **Error** \ + * **Output** */ -export type GroupTypeEnum = string; -/** Defines values for ModuleProvisioningState. */ -export type ModuleProvisioningState = - | "Created" - | "Creating" - | "StartingImportModuleRunbook" - | "RunningImportModuleRunbook" - | "ContentRetrieved" - | "ContentDownloaded" - | "ContentValidated" - | "ConnectionTypeImported" - | "ContentStored" - | "ModuleDataStored" - | "ActivitiesStored" - | "ModuleImportRunbookComplete" - | "Succeeded" - | "Failed" - | "Cancelled" - | "Updating"; +export type StreamType = string; +/** Defines values for OperatingSystemType. */ +export type OperatingSystemType = "Windows" | "Linux"; +/** Defines values for TagOperators. */ +export type TagOperators = "All" | "Any"; /** Defines values for EncryptionKeySourceType. */ export type EncryptionKeySourceType = | "Microsoft.Automation" @@ -3462,91 +3690,71 @@ export type ResourceIdentityType = | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; -/** Defines values for OperatingSystemType. */ -export type OperatingSystemType = "Windows" | "Linux"; -/** Defines values for TagOperators. */ -export type TagOperators = "All" | "Any"; /** Optional parameters. */ -export interface PrivateEndpointConnectionsListByAutomationAccountOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAutomationAccount operation. */ -export type PrivateEndpointConnectionsListByAutomationAccountResponse = PrivateEndpointConnectionListResult; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams +export interface NodeCountInformationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +export type NodeCountInformationGetResponse = NodeCounts; /** Optional parameters. */ -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams +export interface SoftwareUpdateConfigurationsCreateOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Identifies this specific client request. */ + clientRequestId?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +/** Contains response data for the create operation. */ +export type SoftwareUpdateConfigurationsCreateResponse = + SoftwareUpdateConfiguration; /** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteOptionalParams +export interface SoftwareUpdateConfigurationsGetByNameOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Identifies this specific client request. */ + clientRequestId?: string; } -/** Optional parameters. */ -export interface PrivateLinkResourcesAutomationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the automation operation. */ -export type PrivateLinkResourcesAutomationResponse = PrivateLinkResourceListResult; - -/** Optional parameters. */ -export interface Python2PackageDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface Python2PackageGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type Python2PackageGetResponse = Module; +/** Contains response data for the getByName operation. */ +export type SoftwareUpdateConfigurationsGetByNameResponse = + SoftwareUpdateConfiguration; /** Optional parameters. */ -export interface Python2PackageCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type Python2PackageCreateOrUpdateResponse = Module; +export interface SoftwareUpdateConfigurationsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} /** Optional parameters. */ -export interface Python2PackageUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SoftwareUpdateConfigurationsListOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; + /** The filter to apply on the operation. */ + filter?: string; +} -/** Contains response data for the update operation. */ -export type Python2PackageUpdateResponse = Module; +/** Contains response data for the list operation. */ +export type SoftwareUpdateConfigurationsListResponse = + SoftwareUpdateConfigurationListResult; /** Optional parameters. */ -export interface Python2PackageListByAutomationAccountOptionalParams +export interface DeletedAutomationAccountsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccount operation. */ -export type Python2PackageListByAutomationAccountResponse = ModuleListResult; +/** Contains response data for the listBySubscription operation. */ +export type DeletedAutomationAccountsListBySubscriptionResponse = + DeletedAutomationAccountListResult; /** Optional parameters. */ -export interface Python2PackageListByAutomationAccountNextOptionalParams +export interface PrivateLinkResourcesAutomationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type Python2PackageListByAutomationAccountNextResponse = ModuleListResult; +/** Contains response data for the automation operation. */ +export type PrivateLinkResourcesAutomationResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface AgentRegistrationInformationGetOptionalParams @@ -3560,7 +3768,8 @@ export interface AgentRegistrationInformationRegenerateKeyOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the regenerateKey operation. */ -export type AgentRegistrationInformationRegenerateKeyResponse = AgentRegistration; +export type AgentRegistrationInformationRegenerateKeyResponse = + AgentRegistration; /** Optional parameters. */ export interface DscNodeDeleteOptionalParams @@ -3634,427 +3843,583 @@ export interface NodeReportsListByNodeNextOptionalParams export type NodeReportsListByNodeNextResponse = DscNodeReportListResult; /** Optional parameters. */ -export interface DscNodeConfigurationDeleteOptionalParams +export interface AutomationAccountUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type AutomationAccountUpdateResponse = AutomationAccount; + +/** Optional parameters. */ +export interface AutomationAccountCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type AutomationAccountCreateOrUpdateResponse = AutomationAccount; + +/** Optional parameters. */ +export interface AutomationAccountDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DscNodeConfigurationGetOptionalParams +export interface AutomationAccountGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DscNodeConfigurationGetResponse = DscNodeConfiguration; +export type AutomationAccountGetResponse = AutomationAccount; /** Optional parameters. */ -export interface DscNodeConfigurationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface AutomationAccountListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type AutomationAccountListByResourceGroupResponse = + AutomationAccountListResult; /** Optional parameters. */ -export interface DscNodeConfigurationListByAutomationAccountOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; - /** The number of rows to skip. */ - skip?: number; - /** The number of rows to take. */ - top?: number; - /** Return total rows. */ - inlinecount?: string; -} +export interface AutomationAccountListOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccount operation. */ -export type DscNodeConfigurationListByAutomationAccountResponse = DscNodeConfigurationListResult; +/** Contains response data for the list operation. */ +export type AutomationAccountListResponse = AutomationAccountListResult; /** Optional parameters. */ -export interface DscNodeConfigurationListByAutomationAccountNextOptionalParams +export interface AutomationAccountListDeletedRunbooksOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type DscNodeConfigurationListByAutomationAccountNextResponse = DscNodeConfigurationListResult; +/** Contains response data for the listDeletedRunbooks operation. */ +export type AutomationAccountListDeletedRunbooksResponse = + DeletedRunbookListResult; /** Optional parameters. */ -export interface DscCompilationJobCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface AutomationAccountListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type DscCompilationJobCreateResponse = DscCompilationJob; +/** Contains response data for the listByResourceGroupNext operation. */ +export type AutomationAccountListByResourceGroupNextResponse = + AutomationAccountListResult; + +/** Optional parameters. */ +export interface AutomationAccountListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AutomationAccountListNextResponse = AutomationAccountListResult; /** Optional parameters. */ -export interface DscCompilationJobGetOptionalParams +export interface AutomationAccountListDeletedRunbooksNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DscCompilationJobGetResponse = DscCompilationJob; +/** Contains response data for the listDeletedRunbooksNext operation. */ +export type AutomationAccountListDeletedRunbooksNextResponse = + DeletedRunbookListResult; /** Optional parameters. */ -export interface DscCompilationJobListByAutomationAccountOptionalParams +export interface StatisticsListByAutomationAccountOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation. */ filter?: string; } /** Contains response data for the listByAutomationAccount operation. */ -export type DscCompilationJobListByAutomationAccountResponse = DscCompilationJobListResult; +export type StatisticsListByAutomationAccountResponse = StatisticsListResult; /** Optional parameters. */ -export interface DscCompilationJobGetStreamOptionalParams +export interface UsagesListByAutomationAccountOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getStream operation. */ -export type DscCompilationJobGetStreamResponse = JobStream; +/** Contains response data for the listByAutomationAccount operation. */ +export type UsagesListByAutomationAccountResponse = UsageListResult; /** Optional parameters. */ -export interface DscCompilationJobListByAutomationAccountNextOptionalParams +export interface KeysListByAutomationAccountOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type DscCompilationJobListByAutomationAccountNextResponse = DscCompilationJobListResult; +/** Contains response data for the listByAutomationAccount operation. */ +export type KeysListByAutomationAccountResponse = KeyListResult; /** Optional parameters. */ -export interface DscCompilationJobStreamListByJobOptionalParams +export interface CertificateDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type DscCompilationJobStreamListByJobResponse = JobStreamListResult; - /** Optional parameters. */ -export interface NodeCountInformationGetOptionalParams +export interface CertificateGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NodeCountInformationGetResponse = NodeCounts; +export type CertificateGetResponse = Certificate; /** Optional parameters. */ -export interface SourceControlCreateOrUpdateOptionalParams +export interface CertificateCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SourceControlCreateOrUpdateResponse = SourceControl; +export type CertificateCreateOrUpdateResponse = Certificate; /** Optional parameters. */ -export interface SourceControlUpdateOptionalParams +export interface CertificateUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type SourceControlUpdateResponse = SourceControl; +export type CertificateUpdateResponse = Certificate; /** Optional parameters. */ -export interface SourceControlDeleteOptionalParams +export interface CertificateListByAutomationAccountOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByAutomationAccount operation. */ +export type CertificateListByAutomationAccountResponse = CertificateListResult; + /** Optional parameters. */ -export interface SourceControlGetOptionalParams +export interface CertificateListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccountNext operation. */ +export type CertificateListByAutomationAccountNextResponse = + CertificateListResult; + +/** Optional parameters. */ +export interface ConnectionDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ConnectionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SourceControlGetResponse = SourceControl; +export type ConnectionGetResponse = Connection; /** Optional parameters. */ -export interface SourceControlListByAutomationAccountOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} +export interface ConnectionCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ConnectionCreateOrUpdateResponse = Connection; + +/** Optional parameters. */ +export interface ConnectionUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ConnectionUpdateResponse = Connection; + +/** Optional parameters. */ +export interface ConnectionListByAutomationAccountOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccount operation. */ -export type SourceControlListByAutomationAccountResponse = SourceControlListResult; +export type ConnectionListByAutomationAccountResponse = ConnectionListResult; /** Optional parameters. */ -export interface SourceControlListByAutomationAccountNextOptionalParams +export interface ConnectionListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type SourceControlListByAutomationAccountNextResponse = SourceControlListResult; +export type ConnectionListByAutomationAccountNextResponse = + ConnectionListResult; /** Optional parameters. */ -export interface SourceControlSyncJobCreateOptionalParams +export interface ConnectionTypeDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type SourceControlSyncJobCreateResponse = SourceControlSyncJob; - /** Optional parameters. */ -export interface SourceControlSyncJobGetOptionalParams +export interface ConnectionTypeGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SourceControlSyncJobGetResponse = SourceControlSyncJobById; +export type ConnectionTypeGetResponse = ConnectionType; /** Optional parameters. */ -export interface SourceControlSyncJobListByAutomationAccountOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} +export interface ConnectionTypeCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ConnectionTypeCreateOrUpdateResponse = ConnectionType; + +/** Optional parameters. */ +export interface ConnectionTypeListByAutomationAccountOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccount operation. */ -export type SourceControlSyncJobListByAutomationAccountResponse = SourceControlSyncJobListResult; +export type ConnectionTypeListByAutomationAccountResponse = + ConnectionTypeListResult; /** Optional parameters. */ -export interface SourceControlSyncJobListByAutomationAccountNextOptionalParams +export interface ConnectionTypeListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type SourceControlSyncJobListByAutomationAccountNextResponse = SourceControlSyncJobListResult; +export type ConnectionTypeListByAutomationAccountNextResponse = + ConnectionTypeListResult; /** Optional parameters. */ -export interface SourceControlSyncJobStreamsListBySyncJobOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} - -/** Contains response data for the listBySyncJob operation. */ -export type SourceControlSyncJobStreamsListBySyncJobResponse = SourceControlSyncJobStreamsListBySyncJob; +export interface CredentialDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SourceControlSyncJobStreamsGetOptionalParams +export interface CredentialGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SourceControlSyncJobStreamsGetResponse = SourceControlSyncJobStreamById; +export type CredentialGetResponse = Credential; /** Optional parameters. */ -export interface SourceControlSyncJobStreamsListBySyncJobNextOptionalParams +export interface CredentialCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySyncJobNext operation. */ -export type SourceControlSyncJobStreamsListBySyncJobNextResponse = SourceControlSyncJobStreamsListBySyncJob; +/** Contains response data for the createOrUpdate operation. */ +export type CredentialCreateOrUpdateResponse = Credential; /** Optional parameters. */ -export interface AutomationAccountUpdateOptionalParams +export interface CredentialUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type AutomationAccountUpdateResponse = AutomationAccount; +export type CredentialUpdateResponse = Credential; /** Optional parameters. */ -export interface AutomationAccountCreateOrUpdateOptionalParams +export interface CredentialListByAutomationAccountOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type AutomationAccountCreateOrUpdateResponse = AutomationAccount; +/** Contains response data for the listByAutomationAccount operation. */ +export type CredentialListByAutomationAccountResponse = CredentialListResult; /** Optional parameters. */ -export interface AutomationAccountDeleteOptionalParams +export interface CredentialListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByAutomationAccountNext operation. */ +export type CredentialListByAutomationAccountNextResponse = + CredentialListResult; + /** Optional parameters. */ -export interface AutomationAccountGetOptionalParams +export interface DscConfigurationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DscConfigurationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AutomationAccountGetResponse = AutomationAccount; +export type DscConfigurationGetResponse = DscConfiguration; /** Optional parameters. */ -export interface AutomationAccountListByResourceGroupOptionalParams +export interface DscConfigurationCreateOrUpdate$textOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type AutomationAccountListByResourceGroupResponse = AutomationAccountListResult; - /** Optional parameters. */ -export interface AutomationAccountListOptionalParams +export interface DscConfigurationCreateOrUpdate$jsonOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AutomationAccountListResponse = AutomationAccountListResult; +/** Contains response data for the createOrUpdate operation. */ +export type DscConfigurationCreateOrUpdateResponse = DscConfiguration; /** Optional parameters. */ -export interface AutomationAccountListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface DscConfigurationUpdate$textOptionalParams + extends coreClient.OperationOptions { + /** The create or update parameters for configuration. */ + parameters?: string; +} -/** Contains response data for the listByResourceGroupNext operation. */ -export type AutomationAccountListByResourceGroupNextResponse = AutomationAccountListResult; +/** Optional parameters. */ +export interface DscConfigurationUpdate$jsonOptionalParams + extends coreClient.OperationOptions { + /** The create or update parameters for configuration. */ + parameters?: DscConfigurationUpdateParameters; +} + +/** Contains response data for the update operation. */ +export type DscConfigurationUpdateResponse = DscConfiguration; /** Optional parameters. */ -export interface AutomationAccountListNextOptionalParams +export interface DscConfigurationGetContentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AutomationAccountListNextResponse = AutomationAccountListResult; +/** Contains response data for the getContent operation. */ +export type DscConfigurationGetContentResponse = { + /** The parsed response body. */ + body: coreRestPipeline.RequestBodyType; +}; /** Optional parameters. */ -export interface StatisticsListByAutomationAccountOptionalParams +export interface DscConfigurationListByAutomationAccountOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation. */ filter?: string; + /** The number of rows to skip. */ + skip?: number; + /** The number of rows to take. */ + top?: number; + /** Return total rows. */ + inlinecount?: string; } /** Contains response data for the listByAutomationAccount operation. */ -export type StatisticsListByAutomationAccountResponse = StatisticsListResult; +export type DscConfigurationListByAutomationAccountResponse = + DscConfigurationListResult; /** Optional parameters. */ -export interface UsagesListByAutomationAccountOptionalParams +export interface DscConfigurationListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccount operation. */ -export type UsagesListByAutomationAccountResponse = UsageListResult; +/** Contains response data for the listByAutomationAccountNext operation. */ +export type DscConfigurationListByAutomationAccountNextResponse = + DscConfigurationListResult; /** Optional parameters. */ -export interface KeysListByAutomationAccountOptionalParams +export interface DscNodeConfigurationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DscNodeConfigurationGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type DscNodeConfigurationGetResponse = DscNodeConfiguration; + +/** Optional parameters. */ +export interface DscNodeConfigurationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface DscNodeConfigurationListByAutomationAccountOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. */ + filter?: string; + /** The number of rows to skip. */ + skip?: number; + /** The number of rows to take. */ + top?: number; + /** Return total rows. */ + inlinecount?: string; +} + /** Contains response data for the listByAutomationAccount operation. */ -export type KeysListByAutomationAccountResponse = KeyListResult; +export type DscNodeConfigurationListByAutomationAccountResponse = + DscNodeConfigurationListResult; /** Optional parameters. */ -export interface CertificateDeleteOptionalParams +export interface DscNodeConfigurationListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccountNext operation. */ +export type DscNodeConfigurationListByAutomationAccountNextResponse = + DscNodeConfigurationListResult; + +/** Optional parameters. */ +export interface HybridRunbookWorkersDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface CertificateGetOptionalParams +export interface HybridRunbookWorkersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CertificateGetResponse = Certificate; +export type HybridRunbookWorkersGetResponse = HybridRunbookWorker; /** Optional parameters. */ -export interface CertificateCreateOrUpdateOptionalParams +export interface HybridRunbookWorkersCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type CertificateCreateOrUpdateResponse = Certificate; +/** Contains response data for the create operation. */ +export type HybridRunbookWorkersCreateResponse = HybridRunbookWorker; /** Optional parameters. */ -export interface CertificateUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface HybridRunbookWorkersPatchOptionalParams + extends coreClient.OperationOptions { + /** The create or update parameters for hybrid runbook worker. */ + hybridRunbookWorkerCreationParameters?: HybridRunbookWorkerCreateParameters; +} -/** Contains response data for the update operation. */ -export type CertificateUpdateResponse = Certificate; +/** Contains response data for the patch operation. */ +export type HybridRunbookWorkersPatchResponse = HybridRunbookWorker; /** Optional parameters. */ -export interface CertificateListByAutomationAccountOptionalParams +export interface HybridRunbookWorkersMoveOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccount operation. */ -export type CertificateListByAutomationAccountResponse = CertificateListResult; +/** Optional parameters. */ +export interface HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. */ + filter?: string; +} + +/** Contains response data for the listByHybridRunbookWorkerGroup operation. */ +export type HybridRunbookWorkersListByHybridRunbookWorkerGroupResponse = + HybridRunbookWorkersListResult; /** Optional parameters. */ -export interface CertificateListByAutomationAccountNextOptionalParams +export interface HybridRunbookWorkersListByHybridRunbookWorkerGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type CertificateListByAutomationAccountNextResponse = CertificateListResult; +/** Contains response data for the listByHybridRunbookWorkerGroupNext operation. */ +export type HybridRunbookWorkersListByHybridRunbookWorkerGroupNextResponse = + HybridRunbookWorkersListResult; /** Optional parameters. */ -export interface ConnectionDeleteOptionalParams +export interface HybridRunbookWorkerGroupDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ConnectionGetOptionalParams +export interface HybridRunbookWorkerGroupGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ConnectionGetResponse = Connection; +export type HybridRunbookWorkerGroupGetResponse = HybridRunbookWorkerGroup; /** Optional parameters. */ -export interface ConnectionCreateOrUpdateOptionalParams +export interface HybridRunbookWorkerGroupCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ConnectionCreateOrUpdateResponse = Connection; +/** Contains response data for the create operation. */ +export type HybridRunbookWorkerGroupCreateResponse = HybridRunbookWorkerGroup; /** Optional parameters. */ -export interface ConnectionUpdateOptionalParams +export interface HybridRunbookWorkerGroupUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ConnectionUpdateResponse = Connection; +export type HybridRunbookWorkerGroupUpdateResponse = HybridRunbookWorkerGroup; /** Optional parameters. */ -export interface ConnectionListByAutomationAccountOptionalParams - extends coreClient.OperationOptions {} +export interface HybridRunbookWorkerGroupListByAutomationAccountOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. */ + filter?: string; +} /** Contains response data for the listByAutomationAccount operation. */ -export type ConnectionListByAutomationAccountResponse = ConnectionListResult; +export type HybridRunbookWorkerGroupListByAutomationAccountResponse = + HybridRunbookWorkerGroupsListResult; /** Optional parameters. */ -export interface ConnectionListByAutomationAccountNextOptionalParams +export interface HybridRunbookWorkerGroupListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type ConnectionListByAutomationAccountNextResponse = ConnectionListResult; +export type HybridRunbookWorkerGroupListByAutomationAccountNextResponse = + HybridRunbookWorkerGroupsListResult; /** Optional parameters. */ -export interface ConnectionTypeDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface JobGetOutputOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} + +/** Contains response data for the getOutput operation. */ +export type JobGetOutputResponse = { + /** The parsed response body. */ + body: string; +}; /** Optional parameters. */ -export interface ConnectionTypeGetOptionalParams - extends coreClient.OperationOptions {} +export interface JobGetRunbookContentOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} + +/** Contains response data for the getRunbookContent operation. */ +export type JobGetRunbookContentResponse = { + /** The parsed response body. */ + body: string; +}; + +/** Optional parameters. */ +export interface JobSuspendOptionalParams extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} + +/** Optional parameters. */ +export interface JobStopOptionalParams extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} + +/** Optional parameters. */ +export interface JobGetOptionalParams extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} /** Contains response data for the get operation. */ -export type ConnectionTypeGetResponse = ConnectionType; +export type JobGetResponse = Job; /** Optional parameters. */ -export interface ConnectionTypeCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface JobCreateOptionalParams extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type ConnectionTypeCreateOrUpdateResponse = ConnectionType; +/** Contains response data for the create operation. */ +export type JobCreateResponse = Job; /** Optional parameters. */ -export interface ConnectionTypeListByAutomationAccountOptionalParams - extends coreClient.OperationOptions {} +export interface JobListByAutomationAccountOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; + /** The filter to apply on the operation. */ + filter?: string; +} /** Contains response data for the listByAutomationAccount operation. */ -export type ConnectionTypeListByAutomationAccountResponse = ConnectionTypeListResult; - -/** Optional parameters. */ -export interface ConnectionTypeListByAutomationAccountNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAutomationAccountNext operation. */ -export type ConnectionTypeListByAutomationAccountNextResponse = ConnectionTypeListResult; - -/** Optional parameters. */ -export interface CredentialDeleteOptionalParams - extends coreClient.OperationOptions {} +export type JobListByAutomationAccountResponse = JobListResultV2; /** Optional parameters. */ -export interface CredentialGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type CredentialGetResponse = Credential; +export interface JobResumeOptionalParams extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} /** Optional parameters. */ -export interface CredentialCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface JobListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type CredentialCreateOrUpdateResponse = Credential; +/** Contains response data for the listByAutomationAccountNext operation. */ +export type JobListByAutomationAccountNextResponse = JobListResultV2; /** Optional parameters. */ -export interface CredentialUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface JobStreamGetOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} -/** Contains response data for the update operation. */ -export type CredentialUpdateResponse = Credential; +/** Contains response data for the get operation. */ +export type JobStreamGetResponse = JobStream; /** Optional parameters. */ -export interface CredentialListByAutomationAccountOptionalParams - extends coreClient.OperationOptions {} +export interface JobStreamListByJobOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; + /** The filter to apply on the operation. */ + filter?: string; +} -/** Contains response data for the listByAutomationAccount operation. */ -export type CredentialListByAutomationAccountResponse = CredentialListResult; +/** Contains response data for the listByJob operation. */ +export type JobStreamListByJobResponse = JobStreamListResult; /** Optional parameters. */ -export interface CredentialListByAutomationAccountNextOptionalParams - extends coreClient.OperationOptions {} +export interface JobStreamListByJobNextOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type CredentialListByAutomationAccountNextResponse = CredentialListResult; +/** Contains response data for the listByJobNext operation. */ +export type JobStreamListByJobNextResponse = JobStreamListResult; /** Optional parameters. */ export interface JobScheduleDeleteOptionalParams @@ -4089,7 +4454,8 @@ export interface JobScheduleListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type JobScheduleListByAutomationAccountNextResponse = JobScheduleListResult; +export type JobScheduleListByAutomationAccountNextResponse = + JobScheduleListResult; /** Optional parameters. */ export interface LinkedWorkspaceGetOptionalParams @@ -4162,7 +4528,8 @@ export interface ObjectDataTypesListFieldsByModuleAndTypeOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listFieldsByModuleAndType operation. */ -export type ObjectDataTypesListFieldsByModuleAndTypeResponse = TypeFieldListResult; +export type ObjectDataTypesListFieldsByModuleAndTypeResponse = + TypeFieldListResult; /** Optional parameters. */ export interface ObjectDataTypesListFieldsByTypeOptionalParams @@ -4179,729 +4546,724 @@ export interface FieldsListByTypeOptionalParams export type FieldsListByTypeResponse = TypeFieldListResult; /** Optional parameters. */ -export interface ScheduleCreateOrUpdateOptionalParams +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface ConvertGraphRunbookContentOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the convertGraphRunbookContent operation. */ +export type ConvertGraphRunbookContentResponse = GraphicalRunbookContent; + +/** Optional parameters. */ +export interface PackageDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PackageGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PackageGetResponse = Package; + +/** Optional parameters. */ +export interface PackageCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ScheduleCreateOrUpdateResponse = Schedule; +export type PackageCreateOrUpdateResponse = Package; /** Optional parameters. */ -export interface ScheduleUpdateOptionalParams +export interface PackageUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ScheduleUpdateResponse = Schedule; +export type PackageUpdateResponse = Package; /** Optional parameters. */ -export interface ScheduleGetOptionalParams +export interface PackageListByRuntimeEnvironmentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ScheduleGetResponse = Schedule; +/** Contains response data for the listByRuntimeEnvironment operation. */ +export type PackageListByRuntimeEnvironmentResponse = PackageListResult; /** Optional parameters. */ -export interface ScheduleDeleteOptionalParams +export interface PackageListByRuntimeEnvironmentNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByRuntimeEnvironmentNext operation. */ +export type PackageListByRuntimeEnvironmentNextResponse = PackageListResult; + /** Optional parameters. */ -export interface ScheduleListByAutomationAccountOptionalParams +export interface PrivateEndpointConnectionsListByAutomationAccountOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccount operation. */ -export type ScheduleListByAutomationAccountResponse = ScheduleListResult; +export type PrivateEndpointConnectionsListByAutomationAccountResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface ScheduleListByAutomationAccountNextOptionalParams +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type ScheduleListByAutomationAccountNextResponse = ScheduleListResult; +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface VariableCreateOrUpdateOptionalParams +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = + PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type PrivateEndpointConnectionsDeleteResponse = + PrivateEndpointConnectionsDeleteHeaders; + +/** Optional parameters. */ +export interface Python2PackageDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface Python2PackageGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type Python2PackageGetResponse = Module; + +/** Optional parameters. */ +export interface Python2PackageCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type VariableCreateOrUpdateResponse = Variable; +export type Python2PackageCreateOrUpdateResponse = Module; /** Optional parameters. */ -export interface VariableUpdateOptionalParams +export interface Python2PackageUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type VariableUpdateResponse = Variable; +export type Python2PackageUpdateResponse = Module; /** Optional parameters. */ -export interface VariableDeleteOptionalParams +export interface Python2PackageListByAutomationAccountOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByAutomationAccount operation. */ +export type Python2PackageListByAutomationAccountResponse = ModuleListResult; + /** Optional parameters. */ -export interface VariableGetOptionalParams +export interface Python2PackageListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccountNext operation. */ +export type Python2PackageListByAutomationAccountNextResponse = + ModuleListResult; + +/** Optional parameters. */ +export interface Python3PackageDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface Python3PackageGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type VariableGetResponse = Variable; +export type Python3PackageGetResponse = Module; /** Optional parameters. */ -export interface VariableListByAutomationAccountOptionalParams +export interface Python3PackageCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type Python3PackageCreateOrUpdateResponse = Module; + +/** Optional parameters. */ +export interface Python3PackageUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type Python3PackageUpdateResponse = Module; + +/** Optional parameters. */ +export interface Python3PackageListByAutomationAccountOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccount operation. */ -export type VariableListByAutomationAccountResponse = VariableListResult; +export type Python3PackageListByAutomationAccountResponse = ModuleListResult; /** Optional parameters. */ -export interface VariableListByAutomationAccountNextOptionalParams +export interface Python3PackageListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type VariableListByAutomationAccountNextResponse = VariableListResult; +export type Python3PackageListByAutomationAccountNextResponse = + ModuleListResult; /** Optional parameters. */ -export interface WatcherCreateOrUpdateOptionalParams +export interface RunbookDraftGetContentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type WatcherCreateOrUpdateResponse = Watcher; +/** Contains response data for the getContent operation. */ +export type RunbookDraftGetContentResponse = { + /** The parsed response body. */ + body: coreRestPipeline.RequestBodyType; +}; /** Optional parameters. */ -export interface WatcherGetOptionalParams extends coreClient.OperationOptions {} +export interface RunbookDraftReplaceContentOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the get operation. */ -export type WatcherGetResponse = Watcher; +/** Contains response data for the replaceContent operation. */ +export type RunbookDraftReplaceContentResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always `undefined` in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always `undefined` in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; +}; /** Optional parameters. */ -export interface WatcherUpdateOptionalParams +export interface RunbookDraftGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type WatcherUpdateResponse = Watcher; +/** Contains response data for the get operation. */ +export type RunbookDraftGetResponse = RunbookDraft; /** Optional parameters. */ -export interface WatcherDeleteOptionalParams +export interface RunbookDraftUndoEditOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the undoEdit operation. */ +export type RunbookDraftUndoEditResponse = RunbookDraftUndoEditResult; + +/** Optional parameters. */ +export interface RunbookPublishOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the publish operation. */ +export type RunbookPublishResponse = RunbookPublishHeaders; + /** Optional parameters. */ -export interface WatcherStartOptionalParams +export interface RunbookGetContentOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface WatcherStopOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the getContent operation. */ +export type RunbookGetContentResponse = { + /** The parsed response body. */ + body: coreRestPipeline.RequestBodyType; +}; /** Optional parameters. */ -export interface WatcherListByAutomationAccountOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} +export interface RunbookGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccount operation. */ -export type WatcherListByAutomationAccountResponse = WatcherListResult; +/** Contains response data for the get operation. */ +export type RunbookGetResponse = Runbook; /** Optional parameters. */ -export interface WatcherListByAutomationAccountNextOptionalParams +export interface RunbookCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type WatcherListByAutomationAccountNextResponse = WatcherListResult; - -/** Optional parameters. */ -export interface DscConfigurationDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type RunbookCreateOrUpdateResponse = Runbook; /** Optional parameters. */ -export interface DscConfigurationGetOptionalParams +export interface RunbookUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DscConfigurationGetResponse = DscConfiguration; +/** Contains response data for the update operation. */ +export type RunbookUpdateResponse = Runbook; /** Optional parameters. */ -export interface DscConfigurationCreateOrUpdate$textOptionalParams +export interface RunbookDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DscConfigurationCreateOrUpdate$jsonOptionalParams +export interface RunbookListByAutomationAccountOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DscConfigurationCreateOrUpdateResponse = DscConfiguration; - -/** Optional parameters. */ -export interface DscConfigurationUpdate$textOptionalParams - extends coreClient.OperationOptions { - /** The create or update parameters for configuration. */ - parameters?: string; -} +/** Contains response data for the listByAutomationAccount operation. */ +export type RunbookListByAutomationAccountResponse = RunbookListResult; /** Optional parameters. */ -export interface DscConfigurationUpdate$jsonOptionalParams - extends coreClient.OperationOptions { - /** The create or update parameters for configuration. */ - parameters?: DscConfigurationUpdateParameters; -} +export interface RunbookListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DscConfigurationUpdateResponse = DscConfiguration; +/** Contains response data for the listByAutomationAccountNext operation. */ +export type RunbookListByAutomationAccountNextResponse = RunbookListResult; /** Optional parameters. */ -export interface DscConfigurationGetContentOptionalParams +export interface TestJobStreamsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getContent operation. */ -export type DscConfigurationGetContentResponse = { - /** The parsed response body. */ - body: string; -}; +/** Contains response data for the get operation. */ +export type TestJobStreamsGetResponse = JobStream; /** Optional parameters. */ -export interface DscConfigurationListByAutomationAccountOptionalParams +export interface TestJobStreamsListByTestJobOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation. */ filter?: string; - /** The number of rows to skip. */ - skip?: number; - /** The number of rows to take. */ - top?: number; - /** Return total rows. */ - inlinecount?: string; } -/** Contains response data for the listByAutomationAccount operation. */ -export type DscConfigurationListByAutomationAccountResponse = DscConfigurationListResult; +/** Contains response data for the listByTestJob operation. */ +export type TestJobStreamsListByTestJobResponse = JobStreamListResult; /** Optional parameters. */ -export interface DscConfigurationListByAutomationAccountNextOptionalParams +export interface TestJobStreamsListByTestJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type DscConfigurationListByAutomationAccountNextResponse = DscConfigurationListResult; +/** Contains response data for the listByTestJobNext operation. */ +export type TestJobStreamsListByTestJobNextResponse = JobStreamListResult; /** Optional parameters. */ -export interface JobGetOutputOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface TestJobCreateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getOutput operation. */ -export type JobGetOutputResponse = { - /** The parsed response body. */ - body: string; -}; +/** Contains response data for the create operation. */ +export type TestJobCreateResponse = TestJob; /** Optional parameters. */ -export interface JobGetRunbookContentOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface TestJobGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getRunbookContent operation. */ -export type JobGetRunbookContentResponse = { - /** The parsed response body. */ - body: string; -}; +/** Contains response data for the get operation. */ +export type TestJobGetResponse = TestJob; /** Optional parameters. */ -export interface JobSuspendOptionalParams extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface TestJobResumeOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobStopOptionalParams extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface TestJobStopOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobGetOptionalParams extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} - -/** Contains response data for the get operation. */ -export type JobGetResponse = Job; +export interface TestJobSuspendOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobCreateOptionalParams extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface RuntimeEnvironmentsUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type JobCreateResponse = Job; +/** Contains response data for the update operation. */ +export type RuntimeEnvironmentsUpdateResponse = RuntimeEnvironment; /** Optional parameters. */ -export interface JobListByAutomationAccountOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; - /** Identifies this specific client request. */ - clientRequestId?: string; -} - -/** Contains response data for the listByAutomationAccount operation. */ -export type JobListByAutomationAccountResponse = JobListResultV2; +export interface RuntimeEnvironmentsCreateOptionalParams + extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface JobResumeOptionalParams extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +/** Contains response data for the create operation. */ +export type RuntimeEnvironmentsCreateResponse = RuntimeEnvironment; /** Optional parameters. */ -export interface JobListByAutomationAccountNextOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} - -/** Contains response data for the listByAutomationAccountNext operation. */ -export type JobListByAutomationAccountNextResponse = JobListResultV2; +export interface RuntimeEnvironmentsDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JobStreamGetOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface RuntimeEnvironmentsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobStreamGetResponse = JobStream; +export type RuntimeEnvironmentsGetResponse = RuntimeEnvironment; /** Optional parameters. */ -export interface JobStreamListByJobOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface RuntimeEnvironmentsListByAutomationAccountOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByJob operation. */ -export type JobStreamListByJobResponse = JobStreamListResult; +/** Contains response data for the listByAutomationAccount operation. */ +export type RuntimeEnvironmentsListByAutomationAccountResponse = + RuntimeEnvironmentListResult; /** Optional parameters. */ -export interface JobStreamListByJobNextOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface RuntimeEnvironmentsListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByJobNext operation. */ -export type JobStreamListByJobNextResponse = JobStreamListResult; +/** Contains response data for the listByAutomationAccountNext operation. */ +export type RuntimeEnvironmentsListByAutomationAccountNextResponse = + RuntimeEnvironmentListResult; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface ScheduleCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ScheduleCreateOrUpdateResponse = Schedule; /** Optional parameters. */ -export interface ConvertGraphRunbookContentOptionalParams +export interface ScheduleUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the convertGraphRunbookContent operation. */ -export type ConvertGraphRunbookContentResponse = GraphicalRunbookContent; +/** Contains response data for the update operation. */ +export type ScheduleUpdateResponse = Schedule; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationsCreateOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface ScheduleGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type SoftwareUpdateConfigurationsCreateResponse = SoftwareUpdateConfiguration; +/** Contains response data for the get operation. */ +export type ScheduleGetResponse = Schedule; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationsGetByNameOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} - -/** Contains response data for the getByName operation. */ -export type SoftwareUpdateConfigurationsGetByNameResponse = SoftwareUpdateConfiguration; +export interface ScheduleDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SoftwareUpdateConfigurationsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface ScheduleListByAutomationAccountOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccount operation. */ +export type ScheduleListByAutomationAccountResponse = ScheduleListResult; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationsListOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface ScheduleListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SoftwareUpdateConfigurationsListResponse = SoftwareUpdateConfigurationListResult; +/** Contains response data for the listByAutomationAccountNext operation. */ +export type ScheduleListByAutomationAccountNextResponse = ScheduleListResult; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationRunsGetByIdOptionalParams +export interface SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams extends coreClient.OperationOptions { /** Identifies this specific client request. */ clientRequestId?: string; } /** Contains response data for the getById operation. */ -export type SoftwareUpdateConfigurationRunsGetByIdResponse = SoftwareUpdateConfigurationRun; +export type SoftwareUpdateConfigurationMachineRunsGetByIdResponse = + SoftwareUpdateConfigurationMachineRun; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationRunsListOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' */ - filter?: string; +export interface SoftwareUpdateConfigurationMachineRunsListOptionalParams + extends coreClient.OperationOptions { /** Identifies this specific client request. */ clientRequestId?: string; - /** Number of entries you skip before returning results */ + /** The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' */ + filter?: string; + /** number of entries you skip before returning results */ skip?: string; /** Maximum number of entries returned in the results collection */ top?: string; } /** Contains response data for the list operation. */ -export type SoftwareUpdateConfigurationRunsListResponse = SoftwareUpdateConfigurationRunListResult; +export type SoftwareUpdateConfigurationMachineRunsListResponse = + SoftwareUpdateConfigurationMachineRunListResult; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams +export interface SoftwareUpdateConfigurationRunsGetByIdOptionalParams extends coreClient.OperationOptions { /** Identifies this specific client request. */ clientRequestId?: string; } /** Contains response data for the getById operation. */ -export type SoftwareUpdateConfigurationMachineRunsGetByIdResponse = SoftwareUpdateConfigurationMachineRun; +export type SoftwareUpdateConfigurationRunsGetByIdResponse = + SoftwareUpdateConfigurationRun; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationMachineRunsListOptionalParams +export interface SoftwareUpdateConfigurationRunsListOptionalParams extends coreClient.OperationOptions { - /** The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' */ - filter?: string; /** Identifies this specific client request. */ clientRequestId?: string; - /** number of entries you skip before returning results */ + /** The filter to apply on the operation. You can use the following filters: 'properties/osType', 'properties/status', 'properties/startTime', and 'properties/softwareUpdateConfiguration/name' */ + filter?: string; + /** Number of entries you skip before returning results */ skip?: string; /** Maximum number of entries returned in the results collection */ top?: string; } /** Contains response data for the list operation. */ -export type SoftwareUpdateConfigurationMachineRunsListResponse = SoftwareUpdateConfigurationMachineRunListResult; +export type SoftwareUpdateConfigurationRunsListResponse = + SoftwareUpdateConfigurationRunListResult; /** Optional parameters. */ -export interface RunbookDraftGetContentOptionalParams +export interface SourceControlCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getContent operation. */ -export type RunbookDraftGetContentResponse = { - /** The parsed response body. */ - body: coreRestPipeline.RequestBodyType; -}; +/** Contains response data for the createOrUpdate operation. */ +export type SourceControlCreateOrUpdateResponse = SourceControl; /** Optional parameters. */ -export interface RunbookDraftReplaceContentOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface SourceControlUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the replaceContent operation. */ -export type RunbookDraftReplaceContentResponse = { - /** - * BROWSER ONLY - * - * The response body as a browser Blob. - * Always `undefined` in node.js. - */ - blobBody?: Promise; - /** - * NODEJS ONLY - * - * The response body as a node.js Readable stream. - * Always `undefined` in the browser. - */ - readableStreamBody?: NodeJS.ReadableStream; -}; +/** Contains response data for the update operation. */ +export type SourceControlUpdateResponse = SourceControl; /** Optional parameters. */ -export interface RunbookDraftGetOptionalParams +export interface SourceControlDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RunbookDraftGetResponse = RunbookDraft; - /** Optional parameters. */ -export interface RunbookDraftUndoEditOptionalParams +export interface SourceControlGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the undoEdit operation. */ -export type RunbookDraftUndoEditResponse = RunbookDraftUndoEditResult; +/** Contains response data for the get operation. */ +export type SourceControlGetResponse = SourceControl; /** Optional parameters. */ -export interface RunbookPublishOptionalParams +export interface SourceControlListByAutomationAccountOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The filter to apply on the operation. */ + filter?: string; } -/** Contains response data for the publish operation. */ -export type RunbookPublishResponse = RunbookPublishHeaders; +/** Contains response data for the listByAutomationAccount operation. */ +export type SourceControlListByAutomationAccountResponse = + SourceControlListResult; /** Optional parameters. */ -export interface RunbookGetContentOptionalParams +export interface SourceControlListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getContent operation. */ -export type RunbookGetContentResponse = { - /** The parsed response body. */ - body: coreRestPipeline.RequestBodyType; -}; - -/** Optional parameters. */ -export interface RunbookGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type RunbookGetResponse = Runbook; +/** Contains response data for the listByAutomationAccountNext operation. */ +export type SourceControlListByAutomationAccountNextResponse = + SourceControlListResult; /** Optional parameters. */ -export interface RunbookCreateOrUpdateOptionalParams +export interface SourceControlSyncJobCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type RunbookCreateOrUpdateResponse = Runbook; +/** Contains response data for the create operation. */ +export type SourceControlSyncJobCreateResponse = SourceControlSyncJob; /** Optional parameters. */ -export interface RunbookUpdateOptionalParams +export interface SourceControlSyncJobGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type RunbookUpdateResponse = Runbook; - -/** Optional parameters. */ -export interface RunbookDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type SourceControlSyncJobGetResponse = SourceControlSyncJobById; /** Optional parameters. */ -export interface RunbookListByAutomationAccountOptionalParams - extends coreClient.OperationOptions {} +export interface SourceControlSyncJobListByAutomationAccountOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. */ + filter?: string; +} /** Contains response data for the listByAutomationAccount operation. */ -export type RunbookListByAutomationAccountResponse = RunbookListResult; +export type SourceControlSyncJobListByAutomationAccountResponse = + SourceControlSyncJobListResult; /** Optional parameters. */ -export interface RunbookListByAutomationAccountNextOptionalParams +export interface SourceControlSyncJobListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type RunbookListByAutomationAccountNextResponse = RunbookListResult; - -/** Optional parameters. */ -export interface TestJobStreamsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type TestJobStreamsGetResponse = JobStream; +export type SourceControlSyncJobListByAutomationAccountNextResponse = + SourceControlSyncJobListResult; /** Optional parameters. */ -export interface TestJobStreamsListByTestJobOptionalParams +export interface SourceControlSyncJobStreamsListBySyncJobOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation. */ filter?: string; } -/** Contains response data for the listByTestJob operation. */ -export type TestJobStreamsListByTestJobResponse = JobStreamListResult; +/** Contains response data for the listBySyncJob operation. */ +export type SourceControlSyncJobStreamsListBySyncJobResponse = + SourceControlSyncJobStreamsListBySyncJob; /** Optional parameters. */ -export interface TestJobStreamsListByTestJobNextOptionalParams +export interface SourceControlSyncJobStreamsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTestJobNext operation. */ -export type TestJobStreamsListByTestJobNextResponse = JobStreamListResult; +/** Contains response data for the get operation. */ +export type SourceControlSyncJobStreamsGetResponse = + SourceControlSyncJobStreamById; /** Optional parameters. */ -export interface TestJobCreateOptionalParams +export interface SourceControlSyncJobStreamsListBySyncJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type TestJobCreateResponse = TestJob; +/** Contains response data for the listBySyncJobNext operation. */ +export type SourceControlSyncJobStreamsListBySyncJobNextResponse = + SourceControlSyncJobStreamsListBySyncJob; /** Optional parameters. */ -export interface TestJobGetOptionalParams extends coreClient.OperationOptions {} +export interface VariableCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TestJobGetResponse = TestJob; +/** Contains response data for the createOrUpdate operation. */ +export type VariableCreateOrUpdateResponse = Variable; /** Optional parameters. */ -export interface TestJobResumeOptionalParams +export interface VariableUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface TestJobStopOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type VariableUpdateResponse = Variable; /** Optional parameters. */ -export interface TestJobSuspendOptionalParams +export interface VariableDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface WebhookGenerateUriOptionalParams +export interface VariableGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateUri operation. */ -export type WebhookGenerateUriResponse = { - /** The parsed response body. */ - body: string; -}; +/** Contains response data for the get operation. */ +export type VariableGetResponse = Variable; /** Optional parameters. */ -export interface WebhookDeleteOptionalParams +export interface VariableListByAutomationAccountOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface WebhookGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type WebhookGetResponse = Webhook; +/** Contains response data for the listByAutomationAccount operation. */ +export type VariableListByAutomationAccountResponse = VariableListResult; /** Optional parameters. */ -export interface WebhookCreateOrUpdateOptionalParams +export interface VariableListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type WebhookCreateOrUpdateResponse = Webhook; +/** Contains response data for the listByAutomationAccountNext operation. */ +export type VariableListByAutomationAccountNextResponse = VariableListResult; /** Optional parameters. */ -export interface WebhookUpdateOptionalParams +export interface WatcherCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type WebhookUpdateResponse = Webhook; +/** Contains response data for the createOrUpdate operation. */ +export type WatcherCreateOrUpdateResponse = Watcher; /** Optional parameters. */ -export interface WebhookListByAutomationAccountOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} +export interface WatcherGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccount operation. */ -export type WebhookListByAutomationAccountResponse = WebhookListResult; +/** Contains response data for the get operation. */ +export type WatcherGetResponse = Watcher; /** Optional parameters. */ -export interface WebhookListByAutomationAccountNextOptionalParams +export interface WatcherUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type WebhookListByAutomationAccountNextResponse = WebhookListResult; - -/** Optional parameters. */ -export interface HybridRunbookWorkersDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type WatcherUpdateResponse = Watcher; /** Optional parameters. */ -export interface HybridRunbookWorkersGetOptionalParams +export interface WatcherDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type HybridRunbookWorkersGetResponse = HybridRunbookWorker; - /** Optional parameters. */ -export interface HybridRunbookWorkersCreateOptionalParams +export interface WatcherStartOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type HybridRunbookWorkersCreateResponse = HybridRunbookWorker; - /** Optional parameters. */ -export interface HybridRunbookWorkersMoveOptionalParams +export interface WatcherStopOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams +export interface WatcherListByAutomationAccountOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation. */ filter?: string; } -/** Contains response data for the listByHybridRunbookWorkerGroup operation. */ -export type HybridRunbookWorkersListByHybridRunbookWorkerGroupResponse = HybridRunbookWorkersListResult; +/** Contains response data for the listByAutomationAccount operation. */ +export type WatcherListByAutomationAccountResponse = WatcherListResult; /** Optional parameters. */ -export interface HybridRunbookWorkersListByHybridRunbookWorkerGroupNextOptionalParams +export interface WatcherListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHybridRunbookWorkerGroupNext operation. */ -export type HybridRunbookWorkersListByHybridRunbookWorkerGroupNextResponse = HybridRunbookWorkersListResult; +/** Contains response data for the listByAutomationAccountNext operation. */ +export type WatcherListByAutomationAccountNextResponse = WatcherListResult; /** Optional parameters. */ -export interface DeletedAutomationAccountsListBySubscriptionOptionalParams +export interface WebhookGenerateUriOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type DeletedAutomationAccountsListBySubscriptionResponse = DeletedAutomationAccountListResult; +/** Contains response data for the generateUri operation. */ +export type WebhookGenerateUriResponse = { + /** The parsed response body. */ + body: string; +}; /** Optional parameters. */ -export interface HybridRunbookWorkerGroupDeleteOptionalParams +export interface WebhookDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface HybridRunbookWorkerGroupGetOptionalParams - extends coreClient.OperationOptions {} +export interface WebhookGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type HybridRunbookWorkerGroupGetResponse = HybridRunbookWorkerGroup; +export type WebhookGetResponse = Webhook; /** Optional parameters. */ -export interface HybridRunbookWorkerGroupCreateOptionalParams +export interface WebhookCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type HybridRunbookWorkerGroupCreateResponse = HybridRunbookWorkerGroup; +/** Contains response data for the createOrUpdate operation. */ +export type WebhookCreateOrUpdateResponse = Webhook; /** Optional parameters. */ -export interface HybridRunbookWorkerGroupUpdateOptionalParams +export interface WebhookUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type HybridRunbookWorkerGroupUpdateResponse = HybridRunbookWorkerGroup; +export type WebhookUpdateResponse = Webhook; /** Optional parameters. */ -export interface HybridRunbookWorkerGroupListByAutomationAccountOptionalParams +export interface WebhookListByAutomationAccountOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation. */ filter?: string; } /** Contains response data for the listByAutomationAccount operation. */ -export type HybridRunbookWorkerGroupListByAutomationAccountResponse = HybridRunbookWorkerGroupsListResult; +export type WebhookListByAutomationAccountResponse = WebhookListResult; /** Optional parameters. */ -export interface HybridRunbookWorkerGroupListByAutomationAccountNextOptionalParams +export interface WebhookListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type HybridRunbookWorkerGroupListByAutomationAccountNextResponse = HybridRunbookWorkerGroupsListResult; +export type WebhookListByAutomationAccountNextResponse = WebhookListResult; /** Optional parameters. */ export interface AutomationClientOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; + /** Api Version */ + apiVersion?: string; /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/automation/arm-automation/src/models/mappers.ts b/sdk/automation/arm-automation/src/models/mappers.ts index 315d4b7ff40f..9500db985829 100644 --- a/sdk/automation/arm-automation/src/models/mappers.ts +++ b/sdk/automation/arm-automation/src/models/mappers.ts @@ -8,10 +8,10 @@ import * as coreClient from "@azure/core-client"; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const NodeCounts: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "NodeCounts", modelProperties: { value: { serializedName: "value", @@ -20,86 +20,56 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - } - } - } -}; - -export const PrivateEndpointProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointProperty", - modelProperties: { - id: { - serializedName: "id", + className: "NodeCount", + }, + }, + }, + }, + totalCount: { + serializedName: "totalCount", type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { +export const NodeCount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty", + className: "NodeCount", modelProperties: { - status: { - serializedName: "status", + name: { + serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "description", + properties: { + serializedName: "properties", type: { - name: "String" - } + name: "Composite", + className: "NodeCountProperties", + }, }, - actionsRequired: { - serializedName: "actionsRequired", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; -export const Resource: coreClient.CompositeMapper = { +export const NodeCountProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "NodeCountProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, + count: { + serializedName: "count", type: { - name: "String" - } + name: "Number", + }, }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -110,796 +80,692 @@ export const ErrorResponse: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentLink: coreClient.CompositeMapper = { +export const SoftwareUpdateConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContentLink", + className: "SoftwareUpdateConfiguration", modelProperties: { - uri: { - serializedName: "uri", + name: { + serializedName: "name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - contentHash: { - serializedName: "contentHash", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "ContentHash" - } + name: "String", + }, }, - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; - -export const ContentHash: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContentHash", - modelProperties: { - algorithm: { - serializedName: "algorithm", - required: true, + type: { + serializedName: "type", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - value: { - serializedName: "value", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ModuleErrorInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ModuleErrorInfo", - modelProperties: { - code: { - serializedName: "code", + updateConfiguration: { + serializedName: "properties.updateConfiguration", type: { - name: "String" - } + name: "Composite", + className: "UpdateConfiguration", + }, }, - message: { - serializedName: "message", + scheduleInfo: { + serializedName: "properties.scheduleInfo", type: { - name: "String" - } - } - } - } -}; - -export const PythonPackageCreateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PythonPackageCreateParameters", - modelProperties: { - tags: { - serializedName: "tags", + name: "Composite", + className: "SUCScheduleProperties", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - contentLink: { - serializedName: "properties.contentLink", + error: { + serializedName: "properties.error", type: { name: "Composite", - className: "ContentLink" - } - } - } - } -}; - -export const PythonPackageUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PythonPackageUpdateParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const ModuleListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ModuleListResult", - modelProperties: { - value: { - serializedName: "value", + className: "ErrorResponse", + }, + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Module" - } - } - } + name: "DateTime", + }, }, - nextLink: { - serializedName: "nextLink", + createdBy: { + serializedName: "properties.createdBy", + readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const AgentRegistration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentRegistration", - modelProperties: { - dscMetaConfiguration: { - serializedName: "dscMetaConfiguration", + name: "String", + }, + }, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, type: { - name: "String" - } + name: "DateTime", + }, }, - endpoint: { - serializedName: "endpoint", + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - keys: { - serializedName: "keys", + tasks: { + serializedName: "properties.tasks", type: { name: "Composite", - className: "AgentRegistrationKeys" - } + className: "SoftwareUpdateConfigurationTasks", + }, }, - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const AgentRegistrationKeys: coreClient.CompositeMapper = { +export const UpdateConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AgentRegistrationKeys", + className: "UpdateConfiguration", modelProperties: { - primary: { - serializedName: "primary", + operatingSystem: { + serializedName: "operatingSystem", + required: true, type: { - name: "String" - } + name: "Enum", + allowedValues: ["Windows", "Linux"], + }, }, - secondary: { - serializedName: "secondary", + windows: { + serializedName: "windows", type: { - name: "String" - } - } - } - } -}; - -export const AgentRegistrationRegenerateKeyParameter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AgentRegistrationRegenerateKeyParameter", - modelProperties: { - keyName: { - serializedName: "keyName", - required: true, + name: "Composite", + className: "WindowsProperties", + }, + }, + linux: { + serializedName: "linux", type: { - name: "String" - } - } - } - } -}; - -export const DscNodeExtensionHandlerAssociationProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DscNodeExtensionHandlerAssociationProperty", - modelProperties: { - name: { - serializedName: "name", + name: "Composite", + className: "LinuxProperties", + }, + }, + duration: { + serializedName: "duration", type: { - name: "String" - } + name: "TimeSpan", + }, }, - version: { - serializedName: "version", + azureVirtualMachines: { + serializedName: "azureVirtualMachines", type: { - name: "String" - } - } - } - } -}; - -export const DscNodeUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DscNodeUpdateParameters", - modelProperties: { - nodeId: { - serializedName: "nodeId", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + nonAzureComputerNames: { + serializedName: "nonAzureComputerNames", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - properties: { - serializedName: "properties", + targets: { + serializedName: "targets", type: { name: "Composite", - className: "DscNodeUpdateParametersProperties" - } - } - } - } + className: "TargetProperties", + }, + }, + }, + }, }; -export const DscNodeUpdateParametersProperties: coreClient.CompositeMapper = { +export const WindowsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscNodeUpdateParametersProperties", + className: "WindowsProperties", modelProperties: { - name: { - serializedName: "nodeConfiguration.name", + includedUpdateClassifications: { + serializedName: "includedUpdateClassifications", type: { - name: "String" - } - } - } - } -}; - -export const DscNodeListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DscNodeListResult", - modelProperties: { - value: { - serializedName: "value", + name: "String", + }, + }, + excludedKbNumbers: { + serializedName: "excludedKbNumbers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DscNode" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } + name: "String", + }, + }, + }, }, - totalCount: { - serializedName: "totalCount", - type: { - name: "Number" - } - } - } - } -}; - -export const DscNodeReportListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DscNodeReportListResult", - modelProperties: { - value: { - serializedName: "value", + includedKbNumbers: { + serializedName: "includedKbNumbers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DscNodeReport" - } - } - } + name: "String", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", + rebootSetting: { + serializedName: "rebootSetting", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DscNodeReport: coreClient.CompositeMapper = { +export const LinuxProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscNodeReport", + className: "LinuxProperties", modelProperties: { - endTime: { - serializedName: "endTime", - nullable: true, - type: { - name: "DateTime" - } - }, - lastModifiedTime: { - serializedName: "lastModifiedTime", - type: { - name: "DateTime" - } - }, - startTime: { - serializedName: "startTime", - nullable: true, - type: { - name: "DateTime" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - reportId: { - serializedName: "reportId", - type: { - name: "String" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - refreshMode: { - serializedName: "refreshMode", - type: { - name: "String" - } - }, - rebootRequested: { - serializedName: "rebootRequested", + includedPackageClassifications: { + serializedName: "includedPackageClassifications", type: { - name: "String" - } + name: "String", + }, }, - reportFormatVersion: { - serializedName: "reportFormatVersion", + excludedPackageNameMasks: { + serializedName: "excludedPackageNameMasks", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - configurationVersion: { - serializedName: "configurationVersion", + includedPackageNameMasks: { + serializedName: "includedPackageNameMasks", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - id: { - serializedName: "id", + rebootSetting: { + serializedName: "rebootSetting", type: { - name: "String" - } + name: "String", + }, }, - errors: { - serializedName: "errors", + }, + }, +}; + +export const TargetProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TargetProperties", + modelProperties: { + azureQueries: { + serializedName: "azureQueries", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DscReportError" - } - } - } - }, - resources: { - serializedName: "resources", + className: "AzureQueryProperties", + }, + }, + }, + }, + nonAzureQueries: { + serializedName: "nonAzureQueries", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DscReportResource" - } - } - } - }, - metaConfiguration: { - serializedName: "metaConfiguration", - type: { - name: "Composite", - className: "DscMetaConfiguration" - } - }, - hostName: { - serializedName: "hostName", - type: { - name: "String" - } + className: "NonAzureQueryProperties", + }, + }, + }, }, - iPV4Addresses: { - serializedName: "iPV4Addresses", + }, + }, +}; + +export const AzureQueryProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureQueryProperties", + modelProperties: { + scope: { + serializedName: "scope", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - iPV6Addresses: { - serializedName: "iPV6Addresses", + locations: { + serializedName: "locations", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - numberOfResources: { - serializedName: "numberOfResources", + tagSettings: { + serializedName: "tagSettings", type: { - name: "Number" - } + name: "Composite", + className: "TagSettingsProperties", + }, }, - rawErrors: { - serializedName: "rawErrors", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const DscReportError: coreClient.CompositeMapper = { +export const TagSettingsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscReportError", + className: "TagSettingsProperties", modelProperties: { - errorSource: { - serializedName: "errorSource", - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", + tags: { + serializedName: "tags", type: { - name: "String" - } + name: "Dictionary", + value: { + type: { name: "Sequence", element: { type: { name: "String" } } }, + }, + }, }, - errorCode: { - serializedName: "errorCode", + filterOperator: { + serializedName: "filterOperator", type: { - name: "String" - } + name: "Enum", + allowedValues: ["All", "Any"], + }, }, - errorMessage: { - serializedName: "errorMessage", + }, + }, +}; + +export const NonAzureQueryProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NonAzureQueryProperties", + modelProperties: { + functionAlias: { + serializedName: "functionAlias", type: { - name: "String" - } + name: "String", + }, }, - locale: { - serializedName: "locale", + workspaceId: { + serializedName: "workspaceId", type: { - name: "String" - } + name: "String", + }, }, - errorDetails: { - serializedName: "errorDetails", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const DscReportResource: coreClient.CompositeMapper = { +export const SUCScheduleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscReportResource", + className: "SUCScheduleProperties", modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - sourceInfo: { - serializedName: "sourceInfo", + startTime: { + serializedName: "startTime", type: { - name: "String" - } + name: "DateTime", + }, }, - dependsOn: { - serializedName: "dependsOn", + startTimeOffsetMinutes: { + serializedName: "startTimeOffsetMinutes", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DscReportResourceNavigation" - } - } - } + name: "Number", + }, }, - moduleName: { - serializedName: "moduleName", + expiryTime: { + serializedName: "expiryTime", + nullable: true, type: { - name: "String" - } + name: "DateTime", + }, }, - moduleVersion: { - serializedName: "moduleVersion", + expiryTimeOffsetMinutes: { + serializedName: "expiryTimeOffsetMinutes", type: { - name: "String" - } + name: "Number", + }, }, - resourceName: { - serializedName: "resourceName", + isEnabled: { + defaultValue: false, + serializedName: "isEnabled", type: { - name: "String" - } + name: "Boolean", + }, }, - error: { - serializedName: "error", + nextRun: { + serializedName: "nextRun", + nullable: true, type: { - name: "String" - } + name: "DateTime", + }, }, - status: { - serializedName: "status", + nextRunOffsetMinutes: { + serializedName: "nextRunOffsetMinutes", type: { - name: "String" - } + name: "Number", + }, }, - durationInSeconds: { - serializedName: "durationInSeconds", + interval: { + serializedName: "interval", type: { - name: "Number" - } + name: "Number", + }, }, - startDate: { - serializedName: "startDate", - type: { - name: "DateTime" - } - } - } - } -}; - -export const DscReportResourceNavigation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DscReportResourceNavigation", - modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - } - } - } -}; - -export const DscMetaConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DscMetaConfiguration", - modelProperties: { - configurationModeFrequencyMins: { - serializedName: "configurationModeFrequencyMins", + frequency: { + serializedName: "frequency", type: { - name: "Number" - } + name: "String", + }, }, - rebootNodeIfNeeded: { - serializedName: "rebootNodeIfNeeded", + timeZone: { + serializedName: "timeZone", type: { - name: "Boolean" - } + name: "String", + }, }, - configurationMode: { - serializedName: "configurationMode", + advancedSchedule: { + serializedName: "advancedSchedule", type: { - name: "String" - } + name: "Composite", + className: "AdvancedSchedule", + }, }, - actionAfterReboot: { - serializedName: "actionAfterReboot", + creationTime: { + serializedName: "creationTime", type: { - name: "String" - } + name: "DateTime", + }, }, - certificateId: { - serializedName: "certificateId", + lastModifiedTime: { + serializedName: "lastModifiedTime", type: { - name: "String" - } + name: "DateTime", + }, }, - refreshFrequencyMins: { - serializedName: "refreshFrequencyMins", + description: { + serializedName: "description", type: { - name: "Number" - } + name: "String", + }, }, - allowModuleOverwrite: { - serializedName: "allowModuleOverwrite", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const DscConfigurationAssociationProperty: coreClient.CompositeMapper = { +export const AdvancedSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscConfigurationAssociationProperty", + className: "AdvancedSchedule", modelProperties: { - name: { - serializedName: "name", + weekDays: { + serializedName: "weekDays", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + monthDays: { + serializedName: "monthDays", + type: { + name: "Sequence", + element: { + type: { + name: "Number", + }, + }, + }, + }, + monthlyOccurrences: { + serializedName: "monthlyOccurrences", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdvancedScheduleMonthlyOccurrence", + }, + }, + }, + }, + }, + }, }; -export const DscNodeConfigurationCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const AdvancedScheduleMonthlyOccurrence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscNodeConfigurationCreateOrUpdateParameters", + className: "AdvancedScheduleMonthlyOccurrence", modelProperties: { - name: { - serializedName: "name", + occurrence: { + serializedName: "occurrence", type: { - name: "String" - } + name: "Number", + }, }, - tags: { - serializedName: "tags", + day: { + serializedName: "day", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - source: { - serializedName: "properties.source", + }, + }, +}; + +export const SoftwareUpdateConfigurationTasks: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationTasks", + modelProperties: { + preTask: { + serializedName: "preTask", type: { name: "Composite", - className: "ContentSource" - } + className: "TaskProperties", + }, }, - configuration: { - serializedName: "properties.configuration", + postTask: { + serializedName: "postTask", type: { name: "Composite", - className: "DscConfigurationAssociationProperty" - } + className: "TaskProperties", + }, }, - incrementNodeConfigurationBuild: { - serializedName: "properties.incrementNodeConfigurationBuild", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const ContentSource: coreClient.CompositeMapper = { +export const TaskProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContentSource", + className: "TaskProperties", modelProperties: { - hash: { - serializedName: "hash", + parameters: { + serializedName: "parameters", type: { - name: "Composite", - className: "ContentHash" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - type: { - serializedName: "type", + source: { + serializedName: "source", type: { - name: "String" - } + name: "String", + }, }, - value: { - serializedName: "value", - type: { - name: "String" - } + }, + }, +}; + +export const SoftwareUpdateConfigurationListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationCollectionItem", + }, + }, + }, + }, }, - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const SoftwareUpdateConfigurationCollectionItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationCollectionItem", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + updateConfiguration: { + serializedName: "properties.updateConfiguration", + type: { + name: "Composite", + className: "UpdateConfiguration", + }, + }, + tasks: { + serializedName: "properties.tasks", + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationTasks", + }, + }, + frequency: { + serializedName: "properties.frequency", + type: { + name: "String", + }, + }, + startTime: { + serializedName: "properties.startTime", + type: { + name: "DateTime", + }, + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + nextRun: { + serializedName: "properties.nextRun", + nullable: true, + type: { + name: "DateTime", + }, + }, + }, + }, + }; -export const DscNodeConfigurationListResult: coreClient.CompositeMapper = { +export const DeletedAutomationAccountListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscNodeConfigurationListResult", + className: "DeletedAutomationAccountListResult", modelProperties: { value: { serializedName: "value", @@ -908,79 +774,77 @@ export const DscNodeConfigurationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DscNodeConfiguration" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } + className: "DeletedAutomationAccount", + }, + }, + }, }, - totalCount: { - serializedName: "totalCount", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const DscCompilationJobCreateParameters: coreClient.CompositeMapper = { +export const DeletedAutomationAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscCompilationJobCreateParameters", + className: "DeletedAutomationAccount", modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, + }, + type: { + serializedName: "type", + type: { + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - tags: { - serializedName: "tags", + automationAccountResourceId: { + serializedName: "properties.automationAccountResourceId", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - configuration: { - serializedName: "properties.configuration", + automationAccountId: { + serializedName: "properties.automationAccountId", type: { - name: "Composite", - className: "DscConfigurationAssociationProperty" - } + name: "String", + }, }, - parameters: { - serializedName: "properties.parameters", + locationPropertiesLocation: { + serializedName: "properties.location", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - incrementNodeConfigurationBuild: { - serializedName: "properties.incrementNodeConfigurationBuild", + deletionTime: { + serializedName: "properties.deletionTime", + readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const DscCompilationJobListResult: coreClient.CompositeMapper = { +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscCompilationJobListResult", + className: "PrivateLinkResourceListResult", modelProperties: { value: { serializedName: "value", @@ -989,319 +853,265 @@ export const DscCompilationJobListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DscCompilationJob" - } - } - } + className: "PrivateLinkResource", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const JobStreamListResult: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStreamListResult", + className: "Resource", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobStream" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + systemData: { + serializedName: "systemData", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "SystemData", + }, + }, + }, + }, }; -export const JobStream: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobStream", + className: "SystemData", modelProperties: { - id: { - serializedName: "id", + createdBy: { + serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, - jobStreamId: { - serializedName: "properties.jobStreamId", + createdByType: { + serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, - time: { - serializedName: "properties.time", + createdAt: { + serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, - streamType: { - serializedName: "properties.streamType", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, - streamText: { - serializedName: "properties.streamText", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, - summary: { - serializedName: "properties.summary", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "String" - } + name: "DateTime", + }, }, - value: { - serializedName: "properties.value", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - } - } - } + }, + }, }; -export const NodeCounts: coreClient.CompositeMapper = { +export const AgentRegistration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeCounts", + className: "AgentRegistration", modelProperties: { - value: { - serializedName: "value", + dscMetaConfiguration: { + serializedName: "dscMetaConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NodeCount" - } - } - } + name: "String", + }, }, - totalCount: { - serializedName: "totalCount", - type: { - name: "Number" - } - } - } - } -}; - -export const NodeCount: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NodeCount", - modelProperties: { - name: { - serializedName: "name", + endpoint: { + serializedName: "endpoint", type: { - name: "String" - } + name: "String", + }, }, - properties: { - serializedName: "properties", + keys: { + serializedName: "keys", type: { name: "Composite", - className: "NodeCountProperties" - } - } - } - } -}; - -export const NodeCountProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NodeCountProperties", - modelProperties: { - count: { - serializedName: "count", + className: "AgentRegistrationKeys", + }, + }, + id: { + serializedName: "id", type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SourceControlCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const AgentRegistrationKeys: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlCreateOrUpdateParameters", + className: "AgentRegistrationKeys", modelProperties: { - repoUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.repoUrl", + primary: { + serializedName: "primary", type: { - name: "String" - } - }, - branch: { - constraints: { - MaxLength: 255 + name: "String", }, - serializedName: "properties.branch", - type: { - name: "String" - } }, - folderPath: { - constraints: { - MaxLength: 255 - }, - serializedName: "properties.folderPath", + secondary: { + serializedName: "secondary", type: { - name: "String" - } + name: "String", + }, }, - autoSync: { - serializedName: "properties.autoSync", - type: { - name: "Boolean" - } + }, + }, +}; + +export const AgentRegistrationRegenerateKeyParameter: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AgentRegistrationRegenerateKeyParameter", + modelProperties: { + keyName: { + serializedName: "keyName", + required: true, + type: { + name: "String", + }, + }, }, - publishRunbook: { - serializedName: "properties.publishRunbook", - type: { - name: "Boolean" - } + }, + }; + +export const DscNodeExtensionHandlerAssociationProperty: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DscNodeExtensionHandlerAssociationProperty", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + version: { + serializedName: "version", + type: { + name: "String", + }, + }, }, - sourceType: { - serializedName: "properties.sourceType", + }, + }; + +export const DscNodeUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DscNodeUpdateParameters", + modelProperties: { + nodeId: { + serializedName: "nodeId", type: { - name: "String" - } + name: "String", + }, }, - securityToken: { - serializedName: "properties.securityToken", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "SourceControlSecurityTokenProperties" - } - }, - description: { - constraints: { - MaxLength: 512 + className: "DscNodeUpdateParametersProperties", }, - serializedName: "properties.description", - type: { - name: "String" - } - } - } - } + }, + }, + }, }; -export const SourceControlSecurityTokenProperties: coreClient.CompositeMapper = { +export const DscNodeUpdateParametersProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlSecurityTokenProperties", + className: "DscNodeUpdateParametersProperties", modelProperties: { - accessToken: { - constraints: { - MaxLength: 1024 - }, - serializedName: "accessToken", + name: { + serializedName: "nodeConfiguration.name", type: { - name: "String" - } - }, - refreshToken: { - constraints: { - MaxLength: 1024 + name: "String", }, - serializedName: "refreshToken", - type: { - name: "String" - } }, - tokenType: { - serializedName: "tokenType", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const SourceControlUpdateParameters: coreClient.CompositeMapper = { +export const DscNodeListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlUpdateParameters", + className: "DscNodeListResult", modelProperties: { - branch: { - serializedName: "properties.branch", - type: { - name: "String" - } - }, - folderPath: { - serializedName: "properties.folderPath", - type: { - name: "String" - } - }, - autoSync: { - serializedName: "properties.autoSync", + value: { + serializedName: "value", type: { - name: "Boolean" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscNode", + }, + }, + }, }, - publishRunbook: { - serializedName: "properties.publishRunbook", + nextLink: { + serializedName: "nextLink", type: { - name: "Boolean" - } + name: "String", + }, }, - securityToken: { - serializedName: "properties.securityToken", + totalCount: { + serializedName: "totalCount", type: { - name: "Composite", - className: "SourceControlSecurityTokenProperties" - } + name: "Number", + }, }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const SourceControlListResult: coreClient.CompositeMapper = { +export const DscNodeReportListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlListResult", + className: "DscNodeReportListResult", modelProperties: { value: { serializedName: "value", @@ -1310,322 +1120,353 @@ export const SourceControlListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SourceControl" - } - } - } + className: "DscNodeReport", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SourceControlSyncJobCreateParameters: coreClient.CompositeMapper = { +export const DscNodeReport: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlSyncJobCreateParameters", + className: "DscNodeReport", modelProperties: { - commitId: { - serializedName: "properties.commitId", - required: true, + endTime: { + serializedName: "endTime", + nullable: true, type: { - name: "String" - } - } - } - } -}; - -export const SourceControlSyncJob: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SourceControlSyncJob", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + name: "DateTime", + }, + }, + lastModifiedTime: { + serializedName: "lastModifiedTime", + type: { + name: "DateTime", + }, + }, + startTime: { + serializedName: "startTime", + nullable: true, type: { - name: "String" - } + name: "DateTime", + }, }, type: { serializedName: "type", - readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - id: { - serializedName: "id", - readOnly: true, + reportId: { + serializedName: "reportId", type: { - name: "String" - } + name: "String", + }, }, - sourceControlSyncJobId: { - serializedName: "properties.sourceControlSyncJobId", + status: { + serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + refreshMode: { + serializedName: "refreshMode", type: { - name: "DateTime" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", + rebootRequested: { + serializedName: "rebootRequested", type: { - name: "String" - } + name: "String", + }, }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - nullable: true, + reportFormatVersion: { + serializedName: "reportFormatVersion", type: { - name: "DateTime" - } + name: "String", + }, }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - nullable: true, + configurationVersion: { + serializedName: "configurationVersion", type: { - name: "DateTime" - } + name: "String", + }, }, - syncType: { - serializedName: "properties.syncType", - type: { - name: "String" - } - } - } - } -}; - -export const SourceControlSyncJobById: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SourceControlSyncJobById", - modelProperties: { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, - sourceControlSyncJobId: { - serializedName: "properties.sourceControlSyncJobId", + errors: { + serializedName: "errors", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscReportError", + }, + }, + }, }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + resources: { + serializedName: "resources", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscReportResource", + }, + }, + }, }, - provisioningState: { - serializedName: "properties.provisioningState", + metaConfiguration: { + serializedName: "metaConfiguration", type: { - name: "String" - } + name: "Composite", + className: "DscMetaConfiguration", + }, }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - nullable: true, + hostName: { + serializedName: "hostName", type: { - name: "DateTime" - } + name: "String", + }, }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - nullable: true, + iPV4Addresses: { + serializedName: "iPV4Addresses", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - syncType: { - serializedName: "properties.syncType", + iPV6Addresses: { + serializedName: "iPV6Addresses", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - exception: { - serializedName: "properties.exception", + numberOfResources: { + serializedName: "numberOfResources", + type: { + name: "Number", + }, + }, + rawErrors: { + serializedName: "rawErrors", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SourceControlSyncJobListResult: coreClient.CompositeMapper = { +export const DscReportError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlSyncJobListResult", + className: "DscReportError", modelProperties: { - value: { - serializedName: "value", + errorSource: { + serializedName: "errorSource", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SourceControlSyncJob" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", + resourceId: { + serializedName: "resourceId", + type: { + name: "String", + }, + }, + errorCode: { + serializedName: "errorCode", + type: { + name: "String", + }, + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String", + }, + }, + locale: { + serializedName: "locale", + type: { + name: "String", + }, + }, + errorDetails: { + serializedName: "errorDetails", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SourceControlSyncJobStreamsListBySyncJob: coreClient.CompositeMapper = { +export const DscReportResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlSyncJobStreamsListBySyncJob", + className: "DscReportResource", modelProperties: { - value: { - serializedName: "value", + resourceId: { + serializedName: "resourceId", + type: { + name: "String", + }, + }, + sourceInfo: { + serializedName: "sourceInfo", + type: { + name: "String", + }, + }, + dependsOn: { + serializedName: "dependsOn", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SourceControlSyncJobStream" - } - } - } + className: "DscReportResourceNavigation", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + moduleName: { + serializedName: "moduleName", + type: { + name: "String", + }, + }, + moduleVersion: { + serializedName: "moduleVersion", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", type: { - name: "String" - } - } - } - } -}; - -export const SourceControlSyncJobStream: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SourceControlSyncJobStream", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, + name: "String", + }, + }, + error: { + serializedName: "error", type: { - name: "String" - } + name: "String", + }, }, - sourceControlSyncJobStreamId: { - serializedName: "properties.sourceControlSyncJobStreamId", + status: { + serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, - summary: { - serializedName: "properties.summary", + durationInSeconds: { + serializedName: "durationInSeconds", type: { - name: "String" - } + name: "Number", + }, }, - time: { - serializedName: "properties.time", - readOnly: true, - nullable: true, + startDate: { + serializedName: "startDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, - streamType: { - serializedName: "properties.streamType", + }, + }, +}; + +export const DscReportResourceNavigation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DscReportResourceNavigation", + modelProperties: { + resourceId: { + serializedName: "resourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SourceControlSyncJobStreamById: coreClient.CompositeMapper = { +export const DscMetaConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlSyncJobStreamById", + className: "DscMetaConfiguration", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + configurationModeFrequencyMins: { + serializedName: "configurationModeFrequencyMins", type: { - name: "String" - } + name: "Number", + }, }, - sourceControlSyncJobStreamId: { - serializedName: "properties.sourceControlSyncJobStreamId", + rebootNodeIfNeeded: { + serializedName: "rebootNodeIfNeeded", type: { - name: "String" - } + name: "Boolean", + }, }, - summary: { - serializedName: "properties.summary", + configurationMode: { + serializedName: "configurationMode", type: { - name: "String" - } + name: "String", + }, }, - time: { - serializedName: "properties.time", - readOnly: true, - nullable: true, + actionAfterReboot: { + serializedName: "actionAfterReboot", type: { - name: "DateTime" - } + name: "String", + }, }, - streamType: { - serializedName: "properties.streamType", + certificateId: { + serializedName: "certificateId", type: { - name: "String" - } + name: "String", + }, }, - streamText: { - serializedName: "properties.streamText", + refreshFrequencyMins: { + serializedName: "refreshFrequencyMins", type: { - name: "String" - } + name: "Number", + }, }, - value: { - serializedName: "properties.value", + allowModuleOverwrite: { + serializedName: "allowModuleOverwrite", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AutomationAccountUpdateParameters: coreClient.CompositeMapper = { @@ -1636,57 +1477,57 @@ export const AutomationAccountUpdateParameters: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "Identity" - } + className: "Identity", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "properties.sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -1698,23 +1539,23 @@ export const Sku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const EncryptionProperties: coreClient.CompositeMapper = { @@ -1726,25 +1567,25 @@ export const EncryptionProperties: coreClient.CompositeMapper = { serializedName: "keyVaultProperties", type: { name: "Composite", - className: "KeyVaultProperties" - } + className: "KeyVaultProperties", + }, }, keySource: { serializedName: "keySource", type: { name: "Enum", - allowedValues: ["Microsoft.Automation", "Microsoft.Keyvault"] - } + allowedValues: ["Microsoft.Automation", "Microsoft.Keyvault"], + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "EncryptionPropertiesIdentity" - } - } - } - } + className: "EncryptionPropertiesIdentity", + }, + }, + }, + }, }; export const KeyVaultProperties: coreClient.CompositeMapper = { @@ -1755,23 +1596,23 @@ export const KeyVaultProperties: coreClient.CompositeMapper = { keyvaultUri: { serializedName: "keyvaultUri", type: { - name: "String" - } + name: "String", + }, }, keyName: { serializedName: "keyName", type: { - name: "String" - } + name: "String", + }, }, keyVersion: { serializedName: "keyVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionPropertiesIdentity: coreClient.CompositeMapper = { @@ -1783,11 +1624,11 @@ export const EncryptionPropertiesIdentity: coreClient.CompositeMapper = { serializedName: "userAssignedIdentity", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const Identity: coreClient.CompositeMapper = { @@ -1799,15 +1640,15 @@ export const Identity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", @@ -1817,9 +1658,9 @@ export const Identity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -1828,145 +1669,143 @@ export const Identity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: - "ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties" - } - } - } - } - } - } + className: "UserAssignedIdentitiesProperties", + }, + }, + }, + }, + }, + }, }; -export const ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties: coreClient.CompositeMapper = { +export const UserAssignedIdentitiesProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties", + className: "UserAssignedIdentitiesProperties", modelProperties: { principalId: { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String" - } + name: "String", + }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } + }, + }, }; -export const AutomationAccountCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const PrivateEndpointProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationAccountCreateOrUpdateParameters", + className: "PrivateEndpointProperty", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "Identity" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - sku: { - serializedName: "properties.sku", + id: { + serializedName: "id", type: { - name: "Composite", - className: "Sku" - } + name: "String", + }, }, - encryption: { - serializedName: "properties.encryption", - type: { - name: "Composite", - className: "EncryptionProperties" - } + }, + }, +}; + +export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, + type: { + name: "String", + }, + }, }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "Boolean" - } + }, + }; + +export const AutomationAccountCreateOrUpdateParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AutomationAccountCreateOrUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + sku: { + serializedName: "properties.sku", + type: { + name: "Composite", + className: "Sku", + }, + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionProperties", + }, + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "Boolean", + }, + }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean", + }, + }, }, - disableLocalAuth: { - serializedName: "properties.disableLocalAuth", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }; export const AutomationAccountListResult: coreClient.CompositeMapper = { type: { @@ -1980,19 +1819,19 @@ export const AutomationAccountListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AutomationAccount" - } - } - } + className: "AutomationAccount", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StatisticsListResult: coreClient.CompositeMapper = { @@ -2007,13 +1846,13 @@ export const StatisticsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Statistics" - } - } - } - } - } - } + className: "Statistics", + }, + }, + }, + }, + }, + }, }; export const Statistics: coreClient.CompositeMapper = { @@ -2025,40 +1864,40 @@ export const Statistics: coreClient.CompositeMapper = { serializedName: "counterProperty", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, counterValue: { serializedName: "counterValue", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "endTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UsageListResult: coreClient.CompositeMapper = { @@ -2073,13 +1912,13 @@ export const UsageListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Usage" - } - } - } - } - } - } + className: "Usage", + }, + }, + }, + }, + }, + }, }; export const Usage: coreClient.CompositeMapper = { @@ -2090,42 +1929,42 @@ export const Usage: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { name: "Composite", - className: "UsageCounterName" - } + className: "UsageCounterName", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, currentValue: { serializedName: "currentValue", type: { - name: "Number" - } + name: "Number", + }, }, limit: { serializedName: "limit", type: { - name: "Number" - } + name: "Number", + }, }, throttleStatus: { serializedName: "throttleStatus", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UsageCounterName: coreClient.CompositeMapper = { @@ -2136,17 +1975,17 @@ export const UsageCounterName: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, localizedValue: { serializedName: "localizedValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyListResult: coreClient.CompositeMapper = { @@ -2161,43 +2000,134 @@ export const KeyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Key" - } - } - } - } - } - } + className: "Key", + }, + }, + }, + }, + }, + }, +}; + +export const Key: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Key", + modelProperties: { + keyName: { + serializedName: "KeyName", + readOnly: true, + type: { + name: "String", + }, + }, + permissions: { + serializedName: "Permissions", + readOnly: true, + type: { + name: "String", + }, + }, + value: { + serializedName: "Value", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const DeletedRunbookListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeletedRunbookListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeletedRunbook", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const Key: coreClient.CompositeMapper = { +export const DeletedRunbook: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Key", + className: "DeletedRunbook", modelProperties: { - keyName: { - serializedName: "KeyName", - readOnly: true, + id: { + serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, - permissions: { - serializedName: "Permissions", - readOnly: true, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, - value: { - serializedName: "Value", - readOnly: true, + runbookId: { + serializedName: "properties.runbookId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + runbookType: { + serializedName: "properties.runbookType", + type: { + name: "String", + }, + }, + runtime: { + serializedName: "properties.runtime", + type: { + name: "String", + }, + }, + runtimeEnvironment: { + serializedName: "properties.runtimeEnvironment", + nullable: true, + type: { + name: "String", + }, + }, + creationTime: { + serializedName: "properties.creationTime", + type: { + name: "DateTime", + }, + }, + deletionTime: { + serializedName: "properties.deletionTime", + type: { + name: "DateTime", + }, + }, + }, + }, }; export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { @@ -2209,36 +2139,36 @@ export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, base64Value: { serializedName: "properties.base64Value", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, isExportable: { serializedName: "properties.isExportable", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const CertificateUpdateParameters: coreClient.CompositeMapper = { @@ -2249,17 +2179,17 @@ export const CertificateUpdateParameters: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateListResult: coreClient.CompositeMapper = { @@ -2274,19 +2204,19 @@ export const CertificateListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Certificate" - } - } - } + className: "Certificate", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConnectionTypeAssociationProperty: coreClient.CompositeMapper = { @@ -2297,11 +2227,11 @@ export const ConnectionTypeAssociationProperty: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConnectionCreateOrUpdateParameters: coreClient.CompositeMapper = { @@ -2313,31 +2243,31 @@ export const ConnectionCreateOrUpdateParameters: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, connectionType: { serializedName: "properties.connectionType", type: { name: "Composite", - className: "ConnectionTypeAssociationProperty" - } + className: "ConnectionTypeAssociationProperty", + }, }, fieldDefinitionValues: { serializedName: "properties.fieldDefinitionValues", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ConnectionUpdateParameters: coreClient.CompositeMapper = { @@ -2348,30 +2278,277 @@ export const ConnectionUpdateParameters: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, fieldDefinitionValues: { serializedName: "properties.fieldDefinitionValues", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionListResult", + className: "ConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Connection", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ConnectionType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectionType", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + isGlobal: { + serializedName: "properties.isGlobal", + type: { + name: "Boolean", + }, + }, + fieldDefinitions: { + serializedName: "properties.fieldDefinitions", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "FieldDefinition" } }, + }, + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime", + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const FieldDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FieldDefinition", + modelProperties: { + isEncrypted: { + serializedName: "isEncrypted", + type: { + name: "Boolean", + }, + }, + isOptional: { + serializedName: "isOptional", + type: { + name: "Boolean", + }, + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ConnectionTypeCreateOrUpdateParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ConnectionTypeCreateOrUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + isGlobal: { + serializedName: "properties.isGlobal", + type: { + name: "Boolean", + }, + }, + fieldDefinitions: { + serializedName: "properties.fieldDefinitions", + required: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "FieldDefinition" }, + }, + }, + }, + }, + }, + }; + +export const ConnectionTypeListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectionTypeListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectionType", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CredentialCreateOrUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialCreateOrUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + userName: { + serializedName: "properties.userName", + required: true, + type: { + name: "String", + }, + }, + password: { + serializedName: "properties.password", + required: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CredentialUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + userName: { + serializedName: "properties.userName", + type: { + name: "String", + }, + }, + password: { + serializedName: "properties.password", + type: { + name: "String", + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CredentialListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialListResult", modelProperties: { value: { serializedName: "value", @@ -2380,146 +2557,237 @@ export const ConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Connection" - } - } - } + className: "Credential", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ConnectionType: coreClient.CompositeMapper = { +export const DscConfigurationParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionType", + className: "DscConfigurationParameter", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + type: { + serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, - name: { - serializedName: "name", - readOnly: true, + isMandatory: { + serializedName: "isMandatory", type: { - name: "String" - } + name: "Boolean", + }, }, - type: { - serializedName: "type", - readOnly: true, + position: { + serializedName: "position", type: { - name: "String" - } + name: "Number", + }, }, - isGlobal: { - serializedName: "properties.isGlobal", + defaultValue: { + serializedName: "defaultValue", type: { - name: "Boolean" - } + name: "String", + }, }, - fieldDefinitions: { - serializedName: "properties.fieldDefinitions", - readOnly: true, + }, + }, +}; + +export const ContentSource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContentSource", + modelProperties: { + hash: { + serializedName: "hash", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "FieldDefinition" } } - } + name: "Composite", + className: "ContentHash", + }, }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + type: { + serializedName: "type", type: { - name: "DateTime" - } + name: "String", + }, }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + value: { + serializedName: "value", type: { - name: "DateTime" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", + version: { + serializedName: "version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const FieldDefinition: coreClient.CompositeMapper = { +export const ContentHash: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FieldDefinition", + className: "ContentHash", modelProperties: { - isEncrypted: { - serializedName: "isEncrypted", - type: { - name: "Boolean" - } - }, - isOptional: { - serializedName: "isOptional", + algorithm: { + serializedName: "algorithm", + required: true, type: { - name: "Boolean" - } + name: "String", + }, }, - type: { - serializedName: "type", + value: { + serializedName: "value", required: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const DscConfigurationCreateOrUpdateParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DscConfigurationCreateOrUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + logVerbose: { + serializedName: "properties.logVerbose", + type: { + name: "Boolean", + }, + }, + logProgress: { + serializedName: "properties.logProgress", + type: { + name: "Boolean", + }, + }, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "ContentSource", + }, + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "DscConfigurationParameter", + }, + }, + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ConnectionTypeCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const DscConfigurationUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionTypeCreateOrUpdateParameters", + className: "DscConfigurationUpdateParameters", modelProperties: { name: { serializedName: "name", - required: true, type: { - name: "String" - } + name: "String", + }, }, - isGlobal: { - serializedName: "properties.isGlobal", + tags: { + serializedName: "tags", type: { - name: "Boolean" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - fieldDefinitions: { - serializedName: "properties.fieldDefinitions", - required: true, + logVerbose: { + serializedName: "properties.logVerbose", + type: { + name: "Boolean", + }, + }, + logProgress: { + serializedName: "properties.logProgress", + type: { + name: "Boolean", + }, + }, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "ContentSource", + }, + }, + parameters: { + serializedName: "properties.parameters", type: { name: "Dictionary", - value: { type: { name: "Composite", className: "FieldDefinition" } } - } - } - } - } + value: { + type: { name: "Composite", className: "DscConfigurationParameter" }, + }, + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + }, + }, }; -export const ConnectionTypeListResult: coreClient.CompositeMapper = { +export const DscConfigurationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectionTypeListResult", + className: "DscConfigurationListResult", modelProperties: { value: { serializedName: "value", @@ -2528,94 +2796,159 @@ export const ConnectionTypeListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConnectionType" - } - } - } + className: "DscConfiguration", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + totalCount: { + serializedName: "totalCount", + type: { + name: "Number", + }, + }, + }, + }, }; -export const CredentialCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const DscConfigurationAssociationProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CredentialCreateOrUpdateParameters", + className: "DscConfigurationAssociationProperty", modelProperties: { name: { serializedName: "name", - required: true, type: { - name: "String" - } + name: "String", + }, }, - userName: { - serializedName: "properties.userName", - required: true, + }, + }, +}; + +export const DscNodeConfigurationCreateOrUpdateParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DscNodeConfigurationCreateOrUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "ContentSource", + }, + }, + configuration: { + serializedName: "properties.configuration", + type: { + name: "Composite", + className: "DscConfigurationAssociationProperty", + }, + }, + incrementNodeConfigurationBuild: { + serializedName: "properties.incrementNodeConfigurationBuild", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const DscNodeConfigurationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DscNodeConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscNodeConfiguration", + }, + }, + }, }, - password: { - serializedName: "properties.password", - required: true, + nextLink: { + serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", + totalCount: { + serializedName: "totalCount", type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const CredentialUpdateParameters: coreClient.CompositeMapper = { +export const HybridRunbookWorkerCreateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CredentialUpdateParameters", + className: "HybridRunbookWorkerCreateParameters", modelProperties: { name: { serializedName: "name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - userName: { - serializedName: "properties.userName", + vmResourceId: { + serializedName: "properties.vmResourceId", type: { - name: "String" - } + name: "String", + }, }, - password: { - serializedName: "properties.password", + }, + }, +}; + +export const HybridRunbookWorkerMoveParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HybridRunbookWorkerMoveParameters", + modelProperties: { + hybridRunbookWorkerGroupName: { + serializedName: "hybridRunbookWorkerGroupName", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const CredentialListResult: coreClient.CompositeMapper = { +export const HybridRunbookWorkersListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CredentialListResult", + className: "HybridRunbookWorkersListResult", modelProperties: { value: { serializedName: "value", @@ -2624,97 +2957,84 @@ export const CredentialListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Credential" - } - } - } + className: "HybridRunbookWorker", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const JobSchedule: coreClient.CompositeMapper = { +export const RunAsCredentialAssociationProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobSchedule", + className: "RunAsCredentialAssociationProperty", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, name: { serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - jobScheduleId: { - serializedName: "properties.jobScheduleId", - type: { - name: "String" - } - }, - schedule: { - serializedName: "properties.schedule", - type: { - name: "Composite", - className: "ScheduleAssociationProperty" - } - }, - runbook: { - serializedName: "properties.runbook", - type: { - name: "Composite", - className: "RunbookAssociationProperty" - } - }, - runOn: { - serializedName: "properties.runOn", - type: { - name: "String" - } - }, - parameters: { - serializedName: "properties.parameters", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const HybridRunbookWorkerGroupCreateOrUpdateParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "HybridRunbookWorkerGroupCreateOrUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + credential: { + serializedName: "properties.credential", + type: { + name: "Composite", + className: "RunAsCredentialAssociationProperty", + }, + }, + }, + }, + }; -export const ScheduleAssociationProperty: coreClient.CompositeMapper = { +export const HybridRunbookWorkerGroupsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleAssociationProperty", + className: "HybridRunbookWorkerGroupsListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HybridRunbookWorkerGroup", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunbookAssociationProperty: coreClient.CompositeMapper = { @@ -2725,53 +3045,61 @@ export const RunbookAssociationProperty: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const JobScheduleCreateParameters: coreClient.CompositeMapper = { +export const JobRuntimeEnvironment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleCreateParameters", + className: "JobRuntimeEnvironment", modelProperties: { - schedule: { - serializedName: "properties.schedule", + runtimeEnvironmentName: { + serializedName: "runtimeEnvironmentName", type: { - name: "Composite", - className: "ScheduleAssociationProperty" - } + name: "String", + }, }, + }, + }, +}; + +export const JobCreateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobCreateParameters", + modelProperties: { runbook: { serializedName: "properties.runbook", type: { name: "Composite", - className: "RunbookAssociationProperty" - } - }, - runOn: { - serializedName: "properties.runOn", - type: { - name: "String" - } + className: "RunbookAssociationProperty", + }, }, parameters: { serializedName: "properties.parameters", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + runOn: { + serializedName: "properties.runOn", + type: { + name: "String", + }, + }, + }, + }, }; -export const JobScheduleListResult: coreClient.CompositeMapper = { +export const JobListResultV2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleListResult", + className: "JobListResultV2", modelProperties: { value: { serializedName: "value", @@ -2780,346 +3108,222 @@ export const JobScheduleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobSchedule" - } - } - } + className: "JobCollectionItem", + }, + }, + }, }, nextLink: { serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const LinkedWorkspace: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkedWorkspace", - modelProperties: { - id: { - serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const Activity: coreClient.CompositeMapper = { +export const JobStream: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Activity", + className: "JobStream", modelProperties: { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, - name: { - serializedName: "name", - readOnly: true, + jobStreamId: { + serializedName: "properties.jobStreamId", type: { - name: "String" - } + name: "String", + }, }, - definition: { - serializedName: "properties.definition", + time: { + serializedName: "properties.time", type: { - name: "String" - } + name: "DateTime", + }, }, - parameterSets: { - serializedName: "properties.parameterSets", + streamType: { + serializedName: "properties.streamType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActivityParameterSet" - } - } - } + name: "String", + }, }, - outputTypes: { - serializedName: "properties.outputTypes", + streamText: { + serializedName: "properties.streamText", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActivityOutputType" - } - } - } + name: "String", + }, }, - creationTime: { - serializedName: "properties.creationTime", + summary: { + serializedName: "properties.summary", + nullable: true, type: { - name: "DateTime" - } + name: "String", + }, }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + value: { + serializedName: "properties.value", type: { - name: "DateTime" - } + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ActivityParameterSet: coreClient.CompositeMapper = { +export const JobStreamListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActivityParameterSet", + className: "JobStreamListResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ActivityParameter" - } - } - } - } - } - } -}; - -export const ActivityParameter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActivityParameter", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - isMandatory: { - serializedName: "isMandatory", - type: { - name: "Boolean" - } - }, - isDynamic: { - serializedName: "isDynamic", - type: { - name: "Boolean" - } - }, - position: { - serializedName: "position", - type: { - name: "Number" - } - }, - valueFromPipeline: { - serializedName: "valueFromPipeline", - type: { - name: "Boolean" - } - }, - valueFromPipelineByPropertyName: { - serializedName: "valueFromPipelineByPropertyName", - type: { - name: "Boolean" - } - }, - valueFromRemainingArguments: { - serializedName: "valueFromRemainingArguments", - type: { - name: "Boolean" - } + className: "JobStream", + }, + }, + }, }, - description: { - serializedName: "description", + nextLink: { + serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - validationSet: { - serializedName: "validationSet", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActivityParameterValidationSet" - } - } - } - } - } - } + }, + }, }; -export const ActivityParameterValidationSet: coreClient.CompositeMapper = { +export const JobSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActivityParameterValidationSet", + className: "JobSchedule", modelProperties: { - memberValue: { - serializedName: "memberValue", + id: { + serializedName: "id", + readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const ActivityOutputType: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActivityOutputType", - modelProperties: { + name: "String", + }, + }, name: { serializedName: "name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", + readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const ActivityListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActivityListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Activity" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", + jobScheduleId: { + serializedName: "properties.jobScheduleId", type: { - name: "String" - } - } - } - } -}; - -export const ModuleCreateOrUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ModuleCreateOrUpdateParameters", - modelProperties: { - name: { - serializedName: "name", + name: "String", + }, + }, + schedule: { + serializedName: "properties.schedule", type: { - name: "String" - } + name: "Composite", + className: "ScheduleAssociationProperty", + }, }, - location: { - serializedName: "location", + runbook: { + serializedName: "properties.runbook", type: { - name: "String" - } + name: "Composite", + className: "RunbookAssociationProperty", + }, }, - tags: { - serializedName: "tags", + runOn: { + serializedName: "properties.runOn", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - contentLink: { - serializedName: "properties.contentLink", + parameters: { + serializedName: "properties.parameters", type: { - name: "Composite", - className: "ContentLink" - } - } - } - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; -export const ModuleUpdateParameters: coreClient.CompositeMapper = { +export const ScheduleAssociationProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModuleUpdateParameters", + className: "ScheduleAssociationProperty", modelProperties: { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - location: { - serializedName: "location", + }, + }, +}; + +export const JobScheduleCreateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleCreateParameters", + modelProperties: { + schedule: { + serializedName: "properties.schedule", type: { - name: "String" - } + name: "Composite", + className: "ScheduleAssociationProperty", + }, }, - tags: { - serializedName: "tags", + runbook: { + serializedName: "properties.runbook", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "Composite", + className: "RunbookAssociationProperty", + }, }, - contentLink: { - serializedName: "properties.contentLink", + runOn: { + serializedName: "properties.runOn", type: { - name: "Composite", - className: "ContentLink" - } - } - } - } + name: "String", + }, + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; -export const TypeFieldListResult: coreClient.CompositeMapper = { +export const JobScheduleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TypeFieldListResult", + className: "JobScheduleListResult", modelProperties: { value: { serializedName: "value", @@ -3128,329 +3332,249 @@ export const TypeFieldListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TypeField" - } - } - } - } - } - } + className: "JobSchedule", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const TypeField: coreClient.CompositeMapper = { +export const LinkedWorkspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TypeField", + className: "LinkedWorkspace", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - type: { - serializedName: "type", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ScheduleCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const Activity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleCreateOrUpdateParameters", + className: "Activity", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - startTime: { - serializedName: "properties.startTime", - required: true, - type: { - name: "DateTime" - } - }, - expiryTime: { - serializedName: "properties.expiryTime", - nullable: true, - type: { - name: "DateTime" - } - }, - interval: { - serializedName: "properties.interval", - type: { - name: "any" - } - }, - frequency: { - serializedName: "properties.frequency", - required: true, + id: { + serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, - timeZone: { - serializedName: "properties.timeZone", + name: { + serializedName: "name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - advancedSchedule: { - serializedName: "properties.advancedSchedule", - type: { - name: "Composite", - className: "AdvancedSchedule" - } - } - } - } -}; - -export const AdvancedSchedule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdvancedSchedule", - modelProperties: { - weekDays: { - serializedName: "weekDays", + definition: { + serializedName: "properties.definition", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - monthDays: { - serializedName: "monthDays", + parameterSets: { + serializedName: "properties.parameterSets", type: { name: "Sequence", element: { type: { - name: "Number" - } - } - } + name: "Composite", + className: "ActivityParameterSet", + }, + }, + }, }, - monthlyOccurrences: { - serializedName: "monthlyOccurrences", + outputTypes: { + serializedName: "properties.outputTypes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AdvancedScheduleMonthlyOccurrence" - } - } - } - } - } - } -}; - -export const AdvancedScheduleMonthlyOccurrence: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdvancedScheduleMonthlyOccurrence", - modelProperties: { - occurrence: { - serializedName: "occurrence", - type: { - name: "Number" - } + className: "ActivityOutputType", + }, + }, + }, }, - day: { - serializedName: "day", + creationTime: { + serializedName: "properties.creationTime", type: { - name: "String" - } - } - } - } -}; - -export const ScheduleUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScheduleUpdateParameters", - modelProperties: { - name: { - serializedName: "name", + name: "DateTime", + }, + }, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", type: { - name: "String" - } + name: "DateTime", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const ScheduleListResult: coreClient.CompositeMapper = { +export const ActivityParameterSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleListResult", + className: "ActivityParameterSet", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + parameters: { + serializedName: "parameters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Schedule" - } - } - } + className: "ActivityParameter", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const VariableCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const ActivityParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VariableCreateOrUpdateParameters", + className: "ActivityParameter", modelProperties: { name: { serializedName: "name", - required: true, type: { - name: "String" - } + name: "String", + }, }, - value: { - serializedName: "properties.value", + type: { + serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", + isMandatory: { + serializedName: "isMandatory", type: { - name: "String" - } + name: "Boolean", + }, }, - isEncrypted: { - serializedName: "properties.isEncrypted", + isDynamic: { + serializedName: "isDynamic", type: { - name: "Boolean" - } - } - } - } -}; - -export const VariableUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VariableUpdateParameters", - modelProperties: { - name: { - serializedName: "name", + name: "Boolean", + }, + }, + position: { + serializedName: "position", + type: { + name: "Number", + }, + }, + valueFromPipeline: { + serializedName: "valueFromPipeline", type: { - name: "String" - } + name: "Boolean", + }, }, - value: { - serializedName: "properties.value", + valueFromPipelineByPropertyName: { + serializedName: "valueFromPipelineByPropertyName", + type: { + name: "Boolean", + }, + }, + valueFromRemainingArguments: { + serializedName: "valueFromRemainingArguments", type: { - name: "String" - } + name: "Boolean", + }, }, description: { - serializedName: "properties.description", + serializedName: "description", type: { - name: "String" - } - } - } - } -}; - -export const VariableListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VariableListResult", - modelProperties: { - value: { - serializedName: "value", + name: "String", + }, + }, + validationSet: { + serializedName: "validationSet", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Variable" - } - } - } + className: "ActivityParameterValidationSet", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", + }, + }, +}; + +export const ActivityParameterValidationSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActivityParameterValidationSet", + modelProperties: { + memberValue: { + serializedName: "memberValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const WatcherUpdateParameters: coreClient.CompositeMapper = { +export const ActivityOutputType: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WatcherUpdateParameters", + className: "ActivityOutputType", modelProperties: { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - executionFrequencyInSeconds: { - serializedName: "properties.executionFrequencyInSeconds", + type: { + serializedName: "type", type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const WatcherListResult: coreClient.CompositeMapper = { +export const ActivityListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WatcherListResult", + className: "ActivityListResult", modelProperties: { value: { serializedName: "value", @@ -3459,176 +3583,146 @@ export const WatcherListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Watcher" - } - } - } + className: "Activity", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DscConfigurationParameter: coreClient.CompositeMapper = { +export const ContentLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscConfigurationParameter", + className: "ContentLink", modelProperties: { - type: { - serializedName: "type", + uri: { + serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, - isMandatory: { - serializedName: "isMandatory", + contentHash: { + serializedName: "contentHash", type: { - name: "Boolean" - } + name: "Composite", + className: "ContentHash", + }, }, - position: { - serializedName: "position", + version: { + serializedName: "version", type: { - name: "Number" - } + name: "String", + }, }, - defaultValue: { - serializedName: "defaultValue", + }, + }, +}; + +export const ModuleErrorInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModuleErrorInfo", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DscConfigurationCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const ModuleCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscConfigurationCreateOrUpdateParameters", + className: "ModuleCreateOrUpdateParameters", modelProperties: { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - }, - logVerbose: { - serializedName: "properties.logVerbose", - type: { - name: "Boolean" - } - }, - logProgress: { - serializedName: "properties.logProgress", - type: { - name: "Boolean" - } + value: { type: { name: "String" } }, + }, }, - source: { - serializedName: "properties.source", + contentLink: { + serializedName: "properties.contentLink", type: { name: "Composite", - className: "ContentSource" - } - }, - parameters: { - serializedName: "properties.parameters", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "DscConfigurationParameter" } - } - } + className: "ContentLink", + }, }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const DscConfigurationUpdateParameters: coreClient.CompositeMapper = { +export const ModuleUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscConfigurationUpdateParameters", + className: "ModuleUpdateParameters", modelProperties: { name: { serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - }, - logVerbose: { - serializedName: "properties.logVerbose", - type: { - name: "Boolean" - } - }, - logProgress: { - serializedName: "properties.logProgress", - type: { - name: "Boolean" - } + value: { type: { name: "String" } }, + }, }, - source: { - serializedName: "properties.source", + contentLink: { + serializedName: "properties.contentLink", type: { name: "Composite", - className: "ContentSource" - } - }, - parameters: { - serializedName: "properties.parameters", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "DscConfigurationParameter" } - } - } + className: "ContentLink", + }, }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const DscConfigurationListResult: coreClient.CompositeMapper = { +export const ModuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscConfigurationListResult", + className: "ModuleListResult", modelProperties: { value: { serializedName: "value", @@ -3637,82 +3731,61 @@ export const DscConfigurationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DscConfiguration" - } - } - } + className: "Module", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - totalCount: { - serializedName: "totalCount", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const JobCreateParameters: coreClient.CompositeMapper = { +export const TypeFieldListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobCreateParameters", + className: "TypeFieldListResult", modelProperties: { - runbook: { - serializedName: "properties.runbook", - type: { - name: "Composite", - className: "RunbookAssociationProperty" - } - }, - parameters: { - serializedName: "properties.parameters", + value: { + serializedName: "value", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TypeField", + }, + }, + }, }, - runOn: { - serializedName: "properties.runOn", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const JobListResultV2: coreClient.CompositeMapper = { +export const TypeField: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListResultV2", + className: "TypeField", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobCollectionItem" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + type: { + serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -3727,13 +3800,13 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } - } - } - } + className: "Operation", + }, + }, + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -3744,18 +3817,31 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - } - } - } + className: "OperationDisplay", + }, + }, + origin: { + serializedName: "origin", + type: { + name: "String", + }, + }, + serviceSpecification: { + serializedName: "properties.serviceSpecification", + type: { + name: "Composite", + className: "OperationPropertiesFormatServiceSpecification", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -3763,26 +3849,165 @@ export const OperationDisplay: coreClient.CompositeMapper = { name: "Composite", className: "OperationDisplay", modelProperties: { - provider: { - serializedName: "provider", + provider: { + serializedName: "provider", + type: { + name: "String", + }, + }, + resource: { + serializedName: "resource", + type: { + name: "String", + }, + }, + operation: { + serializedName: "operation", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationPropertiesFormatServiceSpecification: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "OperationPropertiesFormatServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification", + }, + }, + }, + }, + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification", + }, + }, + }, + }, + }, + }, + }; + +export const MetricSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + type: { + name: "String", + }, + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String", + }, + }, + unit: { + serializedName: "unit", + type: { + name: "String", + }, + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String", + }, + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Dimension", + }, + }, + }, + }, + }, + }, +}; + +export const Dimension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Dimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const LogSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - resource: { - serializedName: "resource", + displayName: { + serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, - operation: { - serializedName: "operation", + blobDuration: { + serializedName: "blobDuration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GraphicalRunbookContent: coreClient.CompositeMapper = { @@ -3794,18 +4019,18 @@ export const GraphicalRunbookContent: coreClient.CompositeMapper = { serializedName: "rawContent", type: { name: "Composite", - className: "RawGraphicalRunbookContent" - } + className: "RawGraphicalRunbookContent", + }, }, graphRunbookJson: { serializedName: "graphRunbookJson", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RawGraphicalRunbookContent: coreClient.CompositeMapper = { @@ -3816,534 +4041,420 @@ export const RawGraphicalRunbookContent: coreClient.CompositeMapper = { schemaVersion: { serializedName: "schemaVersion", type: { - name: "String" - } + name: "String", + }, }, runbookDefinition: { serializedName: "runbookDefinition", type: { - name: "String" - } + name: "String", + }, }, runbookType: { serializedName: "runbookType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SoftwareUpdateConfiguration: coreClient.CompositeMapper = { +export const PackageErrorInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfiguration", + className: "PackageErrorInfo", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, + code: { + serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, - updateConfiguration: { - serializedName: "properties.updateConfiguration", + message: { + serializedName: "message", type: { - name: "Composite", - className: "UpdateConfiguration" - } + name: "String", + }, }, - scheduleInfo: { - serializedName: "properties.scheduleInfo", + }, + }, +}; + +export const PackageCreateOrUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PackageCreateOrUpdateParameters", + modelProperties: { + allOf: { + serializedName: "allOf", type: { name: "Composite", - className: "SUCScheduleProperties" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } + className: "TrackedResource", + }, }, - error: { - serializedName: "properties.error", + contentLink: { + serializedName: "properties.contentLink", type: { name: "Composite", - className: "ErrorResponse" - } - }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - createdBy: { - serializedName: "properties.createdBy", - readOnly: true, - type: { - name: "String" - } - }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "properties.lastModifiedBy", - readOnly: true, - type: { - name: "String" - } + className: "ContentLink", + }, }, - tasks: { - serializedName: "properties.tasks", - type: { - name: "Composite", - className: "SoftwareUpdateConfigurationTasks" - } - } - } - } + }, + }, }; -export const UpdateConfiguration: coreClient.CompositeMapper = { +export const PackageUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateConfiguration", + className: "PackageUpdateParameters", modelProperties: { - operatingSystem: { - serializedName: "operatingSystem", - required: true, - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - windows: { - serializedName: "windows", + allOf: { + serializedName: "allOf", type: { name: "Composite", - className: "WindowsProperties" - } + className: "TrackedResource", + }, }, - linux: { - serializedName: "linux", + contentLink: { + serializedName: "properties.contentLink", type: { name: "Composite", - className: "LinuxProperties" - } - }, - duration: { - serializedName: "duration", - type: { - name: "TimeSpan" - } + className: "ContentLink", + }, }, - azureVirtualMachines: { - serializedName: "azureVirtualMachines", + }, + }, +}; + +export const PackageListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PackageListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "Package", + }, + }, + }, }, - nonAzureComputerNames: { - serializedName: "nonAzureComputerNames", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - targets: { - serializedName: "targets", - type: { - name: "Composite", - className: "TargetProperties" - } - } - } - } + }, + }, }; -export const WindowsProperties: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WindowsProperties", + className: "PrivateEndpointConnectionListResult", modelProperties: { - includedUpdateClassifications: { - serializedName: "includedUpdateClassifications", - type: { - name: "String" - } - }, - excludedKbNumbers: { - serializedName: "excludedKbNumbers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - includedKbNumbers: { - serializedName: "includedKbNumbers", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "PrivateEndpointConnection", + }, + }, + }, }, - rebootSetting: { - serializedName: "rebootSetting", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const LinuxProperties: coreClient.CompositeMapper = { +export const PythonPackageCreateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinuxProperties", + className: "PythonPackageCreateParameters", modelProperties: { - includedPackageClassifications: { - serializedName: "includedPackageClassifications", - type: { - name: "String" - } - }, - excludedPackageNameMasks: { - serializedName: "excludedPackageNameMasks", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - includedPackageNameMasks: { - serializedName: "includedPackageNameMasks", + contentLink: { + serializedName: "properties.contentLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Composite", + className: "ContentLink", + }, }, - rebootSetting: { - serializedName: "rebootSetting", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const TargetProperties: coreClient.CompositeMapper = { +export const PythonPackageUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetProperties", + className: "PythonPackageUpdateParameters", modelProperties: { - azureQueries: { - serializedName: "azureQueries", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureQueryProperties" - } - } - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - nonAzureQueries: { - serializedName: "nonAzureQueries", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NonAzureQueryProperties" - } - } - } - } - } - } + }, + }, }; -export const AzureQueryProperties: coreClient.CompositeMapper = { +export const RunbookDraft: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureQueryProperties", + className: "RunbookDraft", modelProperties: { - scope: { - serializedName: "scope", + inEdit: { + serializedName: "inEdit", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Boolean", + }, }, - locations: { - serializedName: "locations", + draftContentLink: { + serializedName: "draftContentLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Composite", + className: "ContentLink", + }, }, - tagSettings: { - serializedName: "tagSettings", + creationTime: { + serializedName: "creationTime", type: { - name: "Composite", - className: "TagSettingsProperties" - } - } - } - } -}; - -export const TagSettingsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TagSettingsProperties", - modelProperties: { - tags: { - serializedName: "tags", + name: "DateTime", + }, + }, + lastModifiedTime: { + serializedName: "lastModifiedTime", + type: { + name: "DateTime", + }, + }, + parameters: { + serializedName: "parameters", type: { name: "Dictionary", - value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } - } + value: { type: { name: "Composite", className: "RunbookParameter" } }, + }, }, - filterOperator: { - serializedName: "filterOperator", + outputTypes: { + serializedName: "outputTypes", type: { - name: "Enum", - allowedValues: ["All", "Any"] - } - } - } - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, }; -export const NonAzureQueryProperties: coreClient.CompositeMapper = { +export const RunbookParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NonAzureQueryProperties", + className: "RunbookParameter", modelProperties: { - functionAlias: { - serializedName: "functionAlias", + type: { + serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, - workspaceId: { - serializedName: "workspaceId", + isMandatory: { + serializedName: "isMandatory", + type: { + name: "Boolean", + }, + }, + position: { + serializedName: "position", + type: { + name: "Number", + }, + }, + defaultValue: { + serializedName: "defaultValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SUCScheduleProperties: coreClient.CompositeMapper = { +export const RunbookDraftUndoEditResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SUCScheduleProperties", + className: "RunbookDraftUndoEditResult", modelProperties: { - startTime: { - serializedName: "startTime", + statusCode: { + serializedName: "statusCode", type: { - name: "DateTime" - } + name: "String", + }, }, - startTimeOffsetMinutes: { - serializedName: "startTimeOffsetMinutes", - readOnly: true, + requestId: { + serializedName: "requestId", type: { - name: "Number" - } + name: "String", + }, }, - expiryTime: { - serializedName: "expiryTime", - nullable: true, + }, + }, +}; + +export const RunbookCreateOrUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunbookCreateOrUpdateParameters", + modelProperties: { + name: { + serializedName: "name", type: { - name: "DateTime" - } + name: "String", + }, }, - expiryTimeOffsetMinutes: { - serializedName: "expiryTimeOffsetMinutes", + location: { + serializedName: "location", type: { - name: "Number" - } + name: "String", + }, }, - isEnabled: { - defaultValue: false, - serializedName: "isEnabled", + tags: { + serializedName: "tags", type: { - name: "Boolean" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - nextRun: { - serializedName: "nextRun", - nullable: true, + logVerbose: { + serializedName: "properties.logVerbose", type: { - name: "DateTime" - } + name: "Boolean", + }, }, - nextRunOffsetMinutes: { - serializedName: "nextRunOffsetMinutes", + logProgress: { + serializedName: "properties.logProgress", type: { - name: "Number" - } + name: "Boolean", + }, }, - interval: { - serializedName: "interval", + runtimeEnvironment: { + serializedName: "properties.runtimeEnvironment", type: { - name: "Number" - } + name: "String", + }, }, - frequency: { - serializedName: "frequency", + runbookType: { + serializedName: "properties.runbookType", + required: true, type: { - name: "String" - } + name: "String", + }, }, - timeZone: { - serializedName: "timeZone", + draft: { + serializedName: "properties.draft", type: { - name: "String" - } + name: "Composite", + className: "RunbookDraft", + }, }, - advancedSchedule: { - serializedName: "advancedSchedule", + publishContentLink: { + serializedName: "properties.publishContentLink", type: { name: "Composite", - className: "AdvancedSchedule" - } + className: "ContentLink", + }, }, - creationTime: { - serializedName: "creationTime", + description: { + serializedName: "properties.description", type: { - name: "DateTime" - } + name: "String", + }, }, - lastModifiedTime: { - serializedName: "lastModifiedTime", + logActivityTrace: { + serializedName: "properties.logActivityTrace", type: { - name: "DateTime" - } + name: "Number", + }, }, - description: { - serializedName: "description", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const SoftwareUpdateConfigurationTasks: coreClient.CompositeMapper = { +export const RunbookUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationTasks", + className: "RunbookUpdateParameters", modelProperties: { - preTask: { - serializedName: "preTask", + name: { + serializedName: "name", type: { - name: "Composite", - className: "TaskProperties" - } + name: "String", + }, }, - postTask: { - serializedName: "postTask", + location: { + serializedName: "location", type: { - name: "Composite", - className: "TaskProperties" - } - } - } - } -}; - -export const TaskProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TaskProperties", - modelProperties: { - parameters: { - serializedName: "parameters", + name: "String", + }, + }, + tags: { + serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, - source: { - serializedName: "source", + description: { + serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + logVerbose: { + serializedName: "properties.logVerbose", + type: { + name: "Boolean", + }, + }, + logProgress: { + serializedName: "properties.logProgress", + type: { + name: "Boolean", + }, + }, + logActivityTrace: { + serializedName: "properties.logActivityTrace", + type: { + name: "Number", + }, + }, + }, + }, }; -export const SoftwareUpdateConfigurationListResult: coreClient.CompositeMapper = { +export const RunbookListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationListResult", + className: "RunbookListResult", modelProperties: { value: { serializedName: "value", @@ -4352,277 +4463,271 @@ export const SoftwareUpdateConfigurationListResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "SoftwareUpdateConfigurationCollectionItem" - } - } - } - } - } - } + className: "Runbook", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const SoftwareUpdateConfigurationCollectionItem: coreClient.CompositeMapper = { +export const TestJobCreateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationCollectionItem", + className: "TestJobCreateParameters", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - updateConfiguration: { - serializedName: "properties.updateConfiguration", - type: { - name: "Composite", - className: "UpdateConfiguration" - } - }, - tasks: { - serializedName: "properties.tasks", - type: { - name: "Composite", - className: "SoftwareUpdateConfigurationTasks" - } - }, - frequency: { - serializedName: "properties.frequency", - type: { - name: "String" - } - }, - startTime: { - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + parameters: { + serializedName: "parameters", type: { - name: "DateTime" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, + runOn: { + serializedName: "runOn", type: { - name: "DateTime" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + runtimeEnvironment: { + serializedName: "runtimeEnvironment", type: { - name: "String" - } + name: "String", + }, }, - nextRun: { - serializedName: "properties.nextRun", - nullable: true, - type: { - name: "DateTime" - } - } - } - } + }, + }, }; -export const SoftwareUpdateConfigurationRun: coreClient.CompositeMapper = { +export const TestJob: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationRun", + className: "TestJob", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - softwareUpdateConfiguration: { - serializedName: "properties.softwareUpdateConfiguration", + creationTime: { + serializedName: "creationTime", type: { - name: "Composite", - className: "UpdateConfigurationNavigation" - } + name: "DateTime", + }, }, status: { - serializedName: "properties.status", - readOnly: true, + serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, - configuredDuration: { - serializedName: "properties.configuredDuration", - readOnly: true, + statusDetails: { + serializedName: "statusDetails", type: { - name: "String" - } + name: "String", + }, }, - osType: { - serializedName: "properties.osType", - readOnly: true, + runOn: { + serializedName: "runOn", type: { - name: "String" - } + name: "String", + }, }, startTime: { - serializedName: "properties.startTime", - readOnly: true, + serializedName: "startTime", + nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { - serializedName: "properties.endTime", - readOnly: true, + serializedName: "endTime", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, - computerCount: { - serializedName: "properties.computerCount", - readOnly: true, + exception: { + serializedName: "exception", type: { - name: "Number" - } + name: "String", + }, }, - failedCount: { - serializedName: "properties.failedCount", - readOnly: true, + lastModifiedTime: { + serializedName: "lastModifiedTime", type: { - name: "Number" - } + name: "DateTime", + }, }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + lastStatusModifiedTime: { + serializedName: "lastStatusModifiedTime", + nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, - createdBy: { - serializedName: "properties.createdBy", - readOnly: true, + parameters: { + serializedName: "parameters", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, + logActivityTrace: { + serializedName: "logActivityTrace", type: { - name: "DateTime" - } + name: "Number", + }, }, - lastModifiedBy: { - serializedName: "properties.lastModifiedBy", - readOnly: true, + }, + }, +}; + +export const RuntimeEnvironmentUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuntimeEnvironmentUpdateParameters", + modelProperties: { + systemData: { + serializedName: "systemData", type: { - name: "String" - } + name: "Composite", + className: "SystemData", + }, }, - tasks: { - serializedName: "properties.tasks", + defaultPackages: { + serializedName: "properties.defaultPackages", type: { - name: "Composite", - className: "SoftwareUpdateConfigurationRunTasks" - } - } - } - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; -export const UpdateConfigurationNavigation: coreClient.CompositeMapper = { +export const RuntimeEnvironmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateConfigurationNavigation", + className: "RuntimeEnvironmentListResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuntimeEnvironment", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SoftwareUpdateConfigurationRunTasks: coreClient.CompositeMapper = { +export const ScheduleCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationRunTasks", + className: "ScheduleCreateOrUpdateParameters", modelProperties: { - preTask: { - serializedName: "preTask", + name: { + serializedName: "name", + required: true, type: { - name: "Composite", - className: "SoftwareUpdateConfigurationRunTaskProperties" - } + name: "String", + }, }, - postTask: { - serializedName: "postTask", + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + startTime: { + serializedName: "properties.startTime", + required: true, + type: { + name: "DateTime", + }, + }, + expiryTime: { + serializedName: "properties.expiryTime", + nullable: true, + type: { + name: "DateTime", + }, + }, + interval: { + serializedName: "properties.interval", + type: { + name: "any", + }, + }, + frequency: { + serializedName: "properties.frequency", + required: true, + type: { + name: "String", + }, + }, + timeZone: { + serializedName: "properties.timeZone", + type: { + name: "String", + }, + }, + advancedSchedule: { + serializedName: "properties.advancedSchedule", type: { name: "Composite", - className: "SoftwareUpdateConfigurationRunTaskProperties" - } - } - } - } + className: "AdvancedSchedule", + }, + }, + }, + }, }; -export const SoftwareUpdateConfigurationRunTaskProperties: coreClient.CompositeMapper = { +export const ScheduleUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationRunTaskProperties", + className: "ScheduleUpdateParameters", modelProperties: { - status: { - serializedName: "status", + name: { + serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - source: { - serializedName: "source", + description: { + serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - jobId: { - serializedName: "jobId", + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "String" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const SoftwareUpdateConfigurationRunListResult: coreClient.CompositeMapper = { +export const ScheduleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationRunListResult", + className: "ScheduleListResult", modelProperties: { value: { serializedName: "value", @@ -4631,435 +4736,744 @@ export const SoftwareUpdateConfigurationRunListResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "SoftwareUpdateConfigurationRun" - } - } - } + className: "Schedule", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const SoftwareUpdateConfigurationMachineRun: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationMachineRun", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + targetComputer: { + serializedName: "properties.targetComputer", + readOnly: true, + type: { + name: "String", + }, + }, + targetComputerType: { + serializedName: "properties.targetComputerType", + readOnly: true, + type: { + name: "String", + }, + }, + softwareUpdateConfiguration: { + serializedName: "properties.softwareUpdateConfiguration", + type: { + name: "Composite", + className: "UpdateConfigurationNavigation", + }, + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String", + }, + }, + osType: { + serializedName: "properties.osType", + readOnly: true, + type: { + name: "String", + }, + }, + correlationId: { + serializedName: "properties.correlationId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + sourceComputerId: { + serializedName: "properties.sourceComputerId", + readOnly: true, + type: { + name: "Uuid", + }, + }, + startTime: { + serializedName: "properties.startTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + endTime: { + serializedName: "properties.endTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime", + }, + }, + configuredDuration: { + serializedName: "properties.configuredDuration", + readOnly: true, + type: { + name: "String", + }, + }, + job: { + serializedName: "properties.job", + type: { + name: "Composite", + className: "JobNavigation", + }, + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + createdBy: { + serializedName: "properties.createdBy", + readOnly: true, + type: { + name: "String", + }, + }, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", + readOnly: true, + type: { + name: "String", + }, + }, + error: { + serializedName: "properties.error", + type: { + name: "Composite", + className: "ErrorResponse", + }, + }, + }, + }, + }; -export const SoftwareUpdateConfigurationMachineRun: coreClient.CompositeMapper = { +export const UpdateConfigurationNavigation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationMachineRun", + className: "UpdateConfigurationNavigation", modelProperties: { name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, + }, + }, +}; + +export const JobNavigation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobNavigation", + modelProperties: { id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + }, + }, +}; + +export const SoftwareUpdateConfigurationMachineRunListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationMachineRunListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationMachineRun", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - targetComputer: { - serializedName: "properties.targetComputer", + }, + }; + +export const SoftwareUpdateConfigurationRun: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationRun", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - targetComputerType: { - serializedName: "properties.targetComputerType", + id: { + serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, softwareUpdateConfiguration: { serializedName: "properties.softwareUpdateConfiguration", type: { name: "Composite", - className: "UpdateConfigurationNavigation" - } + className: "UpdateConfigurationNavigation", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } - }, - osType: { - serializedName: "properties.osType", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, - correlationId: { - serializedName: "properties.correlationId", + configuredDuration: { + serializedName: "properties.configuredDuration", readOnly: true, type: { - name: "Uuid" - } + name: "String", + }, }, - sourceComputerId: { - serializedName: "properties.sourceComputerId", + osType: { + serializedName: "properties.osType", readOnly: true, type: { - name: "Uuid" - } + name: "String", + }, }, startTime: { serializedName: "properties.startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "properties.endTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, - configuredDuration: { - serializedName: "properties.configuredDuration", + computerCount: { + serializedName: "properties.computerCount", readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, - job: { - serializedName: "properties.job", + failedCount: { + serializedName: "properties.failedCount", + readOnly: true, type: { - name: "Composite", - className: "JobNavigation" - } + name: "Number", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, createdBy: { serializedName: "properties.createdBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "properties.lastModifiedBy", readOnly: true, type: { - name: "String" - } - }, - error: { - serializedName: "properties.error", - type: { - name: "Composite", - className: "ErrorResponse" - } - } - } - } -}; - -export const JobNavigation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobNavigation", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const SoftwareUpdateConfigurationMachineRunListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SoftwareUpdateConfigurationMachineRunListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SoftwareUpdateConfigurationMachineRun" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", + tasks: { + serializedName: "properties.tasks", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "SoftwareUpdateConfigurationRunTasks", + }, + }, + }, + }, }; -export const RunbookDraft: coreClient.CompositeMapper = { +export const SoftwareUpdateConfigurationRunTasks: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookDraft", + className: "SoftwareUpdateConfigurationRunTasks", modelProperties: { - inEdit: { - serializedName: "inEdit", + preTask: { + serializedName: "preTask", type: { - name: "Boolean" - } + name: "Composite", + className: "SoftwareUpdateConfigurationRunTaskProperties", + }, }, - draftContentLink: { - serializedName: "draftContentLink", + postTask: { + serializedName: "postTask", type: { name: "Composite", - className: "ContentLink" - } + className: "SoftwareUpdateConfigurationRunTaskProperties", + }, }, - creationTime: { - serializedName: "creationTime", - type: { - name: "DateTime" - } + }, + }, +}; + +export const SoftwareUpdateConfigurationRunTaskProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationRunTaskProperties", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + source: { + serializedName: "source", + type: { + name: "String", + }, + }, + jobId: { + serializedName: "jobId", + type: { + name: "String", + }, + }, }, - lastModifiedTime: { - serializedName: "lastModifiedTime", - type: { - name: "DateTime" - } + }, + }; + +export const SoftwareUpdateConfigurationRunListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationRunListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationRun", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - parameters: { - serializedName: "parameters", - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "RunbookParameter" } } - } + }, + }; + +export const SourceControlCreateOrUpdateParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SourceControlCreateOrUpdateParameters", + modelProperties: { + repoUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.repoUrl", + type: { + name: "String", + }, + }, + branch: { + constraints: { + MaxLength: 255, + }, + serializedName: "properties.branch", + type: { + name: "String", + }, + }, + folderPath: { + constraints: { + MaxLength: 255, + }, + serializedName: "properties.folderPath", + type: { + name: "String", + }, + }, + autoSync: { + serializedName: "properties.autoSync", + type: { + name: "Boolean", + }, + }, + publishRunbook: { + serializedName: "properties.publishRunbook", + type: { + name: "Boolean", + }, + }, + sourceType: { + serializedName: "properties.sourceType", + type: { + name: "String", + }, + }, + securityToken: { + serializedName: "properties.securityToken", + type: { + name: "Composite", + className: "SourceControlSecurityTokenProperties", + }, + }, + description: { + constraints: { + MaxLength: 512, + }, + serializedName: "properties.description", + type: { + name: "String", + }, + }, }, - outputTypes: { - serializedName: "outputTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + }, + }; + +export const SourceControlSecurityTokenProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SourceControlSecurityTokenProperties", + modelProperties: { + accessToken: { + constraints: { + MaxLength: 1024, + }, + serializedName: "accessToken", + type: { + name: "String", + }, + }, + refreshToken: { + constraints: { + MaxLength: 1024, + }, + serializedName: "refreshToken", + type: { + name: "String", + }, + }, + tokenType: { + serializedName: "tokenType", + type: { + name: "String", + }, + }, + }, + }, + }; -export const RunbookParameter: coreClient.CompositeMapper = { +export const SourceControlUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookParameter", + className: "SourceControlUpdateParameters", modelProperties: { - type: { - serializedName: "type", + branch: { + serializedName: "properties.branch", type: { - name: "String" - } + name: "String", + }, }, - isMandatory: { - serializedName: "isMandatory", + folderPath: { + serializedName: "properties.folderPath", type: { - name: "Boolean" - } + name: "String", + }, }, - position: { - serializedName: "position", + autoSync: { + serializedName: "properties.autoSync", + type: { + name: "Boolean", + }, + }, + publishRunbook: { + serializedName: "properties.publishRunbook", type: { - name: "Number" - } + name: "Boolean", + }, }, - defaultValue: { - serializedName: "defaultValue", + securityToken: { + serializedName: "properties.securityToken", + type: { + name: "Composite", + className: "SourceControlSecurityTokenProperties", + }, + }, + description: { + serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const RunbookDraftUndoEditResult: coreClient.CompositeMapper = { +export const SourceControlListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookDraftUndoEditResult", + className: "SourceControlListResult", modelProperties: { - statusCode: { - serializedName: "statusCode", + value: { + serializedName: "value", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceControl", + }, + }, + }, }, - requestId: { - serializedName: "requestId", + nextLink: { + serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const SourceControlSyncJobCreateParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SourceControlSyncJobCreateParameters", + modelProperties: { + commitId: { + serializedName: "properties.commitId", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; -export const RunbookCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const SourceControlSyncJob: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookCreateOrUpdateParameters", + className: "SourceControlSyncJob", modelProperties: { name: { serializedName: "name", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - location: { - serializedName: "location", + type: { + serializedName: "type", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - tags: { - serializedName: "tags", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - logVerbose: { - serializedName: "properties.logVerbose", + sourceControlSyncJobId: { + serializedName: "properties.sourceControlSyncJobId", type: { - name: "Boolean" - } + name: "String", + }, }, - logProgress: { - serializedName: "properties.logProgress", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Boolean" - } + name: "DateTime", + }, }, - runbookType: { - serializedName: "properties.runbookType", - required: true, + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - draft: { - serializedName: "properties.draft", + startTime: { + serializedName: "properties.startTime", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "RunbookDraft" - } + name: "DateTime", + }, }, - publishContentLink: { - serializedName: "properties.publishContentLink", + endTime: { + serializedName: "properties.endTime", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "ContentLink" - } + name: "DateTime", + }, }, - description: { - serializedName: "properties.description", + syncType: { + serializedName: "properties.syncType", type: { - name: "String" - } + name: "String", + }, }, - logActivityTrace: { - serializedName: "properties.logActivityTrace", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const RunbookUpdateParameters: coreClient.CompositeMapper = { +export const SourceControlSyncJobById: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookUpdateParameters", + className: "SourceControlSyncJobById", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, - location: { - serializedName: "location", + sourceControlSyncJobId: { + serializedName: "properties.sourceControlSyncJobId", type: { - name: "String" - } + name: "String", + }, }, - tags: { - serializedName: "tags", + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "DateTime", + }, }, - description: { - serializedName: "properties.description", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - logVerbose: { - serializedName: "properties.logVerbose", + startTime: { + serializedName: "properties.startTime", + readOnly: true, + nullable: true, type: { - name: "Boolean" - } + name: "DateTime", + }, }, - logProgress: { - serializedName: "properties.logProgress", + endTime: { + serializedName: "properties.endTime", + readOnly: true, + nullable: true, type: { - name: "Boolean" - } + name: "DateTime", + }, }, - logActivityTrace: { - serializedName: "properties.logActivityTrace", + syncType: { + serializedName: "properties.syncType", + type: { + name: "String", + }, + }, + exception: { + serializedName: "properties.exception", type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const RunbookListResult: coreClient.CompositeMapper = { +export const SourceControlSyncJobListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookListResult", + className: "SourceControlSyncJobListResult", modelProperties: { value: { serializedName: "value", @@ -5068,220 +5482,214 @@ export const RunbookListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Runbook" - } - } - } + className: "SourceControlSyncJob", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const SourceControlSyncJobStreamsListBySyncJob: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SourceControlSyncJobStreamsListBySyncJob", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceControlSyncJobStream", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; -export const TestJobCreateParameters: coreClient.CompositeMapper = { +export const SourceControlSyncJobStream: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TestJobCreateParameters", + className: "SourceControlSyncJobStream", modelProperties: { - parameters: { - serializedName: "parameters", + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + sourceControlSyncJobStreamId: { + serializedName: "properties.sourceControlSyncJobStreamId", + type: { + name: "String", + }, + }, + summary: { + serializedName: "properties.summary", + type: { + name: "String", + }, + }, + time: { + serializedName: "properties.time", + readOnly: true, + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "DateTime", + }, }, - runOn: { - serializedName: "runOn", + streamType: { + serializedName: "properties.streamType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TestJob: coreClient.CompositeMapper = { +export const SourceControlSyncJobStreamById: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TestJob", + className: "SourceControlSyncJobStreamById", modelProperties: { - creationTime: { - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - statusDetails: { - serializedName: "statusDetails", + id: { + serializedName: "id", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, - runOn: { - serializedName: "runOn", + sourceControlSyncJobStreamId: { + serializedName: "properties.sourceControlSyncJobStreamId", type: { - name: "String" - } + name: "String", + }, }, - startTime: { - serializedName: "startTime", - nullable: true, + summary: { + serializedName: "properties.summary", type: { - name: "DateTime" - } + name: "String", + }, }, - endTime: { - serializedName: "endTime", + time: { + serializedName: "properties.time", + readOnly: true, nullable: true, type: { - name: "DateTime" - } - }, - exception: { - serializedName: "exception", - type: { - name: "String" - } + name: "DateTime", + }, }, - lastModifiedTime: { - serializedName: "lastModifiedTime", + streamType: { + serializedName: "properties.streamType", type: { - name: "DateTime" - } + name: "String", + }, }, - lastStatusModifiedTime: { - serializedName: "lastStatusModifiedTime", - nullable: true, + streamText: { + serializedName: "properties.streamText", type: { - name: "DateTime" - } + name: "String", + }, }, - parameters: { - serializedName: "parameters", + value: { + serializedName: "properties.value", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, }, - logActivityTrace: { - serializedName: "logActivityTrace", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const WebhookCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const VariableCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebhookCreateOrUpdateParameters", + className: "VariableCreateOrUpdateParameters", modelProperties: { name: { serializedName: "name", required: true, type: { - name: "String" - } - }, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - }, - uri: { - serializedName: "properties.uri", - type: { - name: "String" - } + name: "String", + }, }, - expiryTime: { - serializedName: "properties.expiryTime", + value: { + serializedName: "properties.value", type: { - name: "DateTime" - } + name: "String", + }, }, - parameters: { - serializedName: "properties.parameters", + description: { + serializedName: "properties.description", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - runbook: { - serializedName: "properties.runbook", + isEncrypted: { + serializedName: "properties.isEncrypted", type: { - name: "Composite", - className: "RunbookAssociationProperty" - } + name: "Boolean", + }, }, - runOn: { - serializedName: "properties.runOn", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const WebhookUpdateParameters: coreClient.CompositeMapper = { +export const VariableUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebhookUpdateParameters", + className: "VariableUpdateParameters", modelProperties: { name: { serializedName: "name", type: { - name: "String" - } - }, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - }, - runOn: { - serializedName: "properties.runOn", - type: { - name: "String" - } + name: "String", + }, }, - parameters: { - serializedName: "properties.parameters", + value: { + serializedName: "properties.value", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const WebhookListResult: coreClient.CompositeMapper = { +export const VariableListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebhookListResult", + className: "VariableListResult", modelProperties: { value: { serializedName: "value", @@ -5290,61 +5698,46 @@ export const WebhookListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Webhook" - } - } - } + className: "Variable", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const HybridRunbookWorkerCreateParameters: coreClient.CompositeMapper = { +export const WatcherUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HybridRunbookWorkerCreateParameters", + className: "WatcherUpdateParameters", modelProperties: { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, - vmResourceId: { - serializedName: "properties.vmResourceId", - type: { - name: "String" - } - } - } - } -}; - -export const HybridRunbookWorkerMoveParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HybridRunbookWorkerMoveParameters", - modelProperties: { - hybridRunbookWorkerGroupName: { - serializedName: "hybridRunbookWorkerGroupName", + executionFrequencyInSeconds: { + serializedName: "properties.executionFrequencyInSeconds", type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const HybridRunbookWorkersListResult: coreClient.CompositeMapper = { +export const WatcherListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HybridRunbookWorkersListResult", + className: "WatcherListResult", modelProperties: { value: { serializedName: "value", @@ -5353,235 +5746,221 @@ export const HybridRunbookWorkersListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "HybridRunbookWorker" - } - } - } + className: "Watcher", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const DeletedAutomationAccountListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeletedAutomationAccountListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeletedAutomationAccount" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DeletedAutomationAccount: coreClient.CompositeMapper = { +export const WebhookCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeletedAutomationAccount", + className: "WebhookCreateOrUpdateParameters", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, name: { serializedName: "name", + required: true, type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } + name: "String", + }, }, - automationAccountResourceId: { - serializedName: "properties.automationAccountResourceId", + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "String" - } + name: "Boolean", + }, }, - automationAccountId: { - serializedName: "properties.automationAccountId", + uri: { + serializedName: "properties.uri", type: { - name: "String" - } + name: "String", + }, }, - locationPropertiesLocation: { - serializedName: "properties.location", + expiryTime: { + serializedName: "properties.expiryTime", type: { - name: "String" - } + name: "DateTime", + }, }, - deletionTime: { - serializedName: "properties.deletionTime", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -export const RunAsCredentialAssociationProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RunAsCredentialAssociationProperty", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const HybridRunbookWorkerGroupCreateOrUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HybridRunbookWorkerGroupCreateOrUpdateParameters", - modelProperties: { - name: { - serializedName: "name", + parameters: { + serializedName: "properties.parameters", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - credential: { - serializedName: "properties.credential", + runbook: { + serializedName: "properties.runbook", type: { name: "Composite", - className: "RunAsCredentialAssociationProperty" - } - } - } - } -}; - -export const HybridRunbookWorkerGroupsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HybridRunbookWorkerGroupsListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HybridRunbookWorkerGroup" - } - } - } + className: "RunbookAssociationProperty", + }, }, - nextLink: { - serializedName: "nextLink", + runOn: { + serializedName: "properties.runOn", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const RunbookCreateOrUpdateDraftProperties: coreClient.CompositeMapper = { +export const WebhookUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookCreateOrUpdateDraftProperties", + className: "WebhookUpdateParameters", modelProperties: { - logVerbose: { - serializedName: "logVerbose", + name: { + serializedName: "name", type: { - name: "Boolean" - } + name: "String", + }, }, - logProgress: { - serializedName: "logProgress", + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, - runbookType: { - serializedName: "runbookType", - required: true, + runOn: { + serializedName: "properties.runOn", type: { - name: "String" - } + name: "String", + }, }, - draft: { - serializedName: "draft", + parameters: { + serializedName: "properties.parameters", type: { - name: "Composite", - className: "RunbookDraft" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, description: { - serializedName: "description", + serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - logActivityTrace: { - serializedName: "logActivityTrace", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const RunbookCreateOrUpdateDraftParameters: coreClient.CompositeMapper = { +export const WebhookListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookCreateOrUpdateDraftParameters", + className: "WebhookListResult", modelProperties: { - runbookContent: { - serializedName: "runbookContent", - required: true, + value: { + serializedName: "value", type: { - name: "String" - } - } - } - } -}; + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Webhook", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RunbookCreateOrUpdateDraftProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RunbookCreateOrUpdateDraftProperties", + modelProperties: { + logVerbose: { + serializedName: "logVerbose", + type: { + name: "Boolean", + }, + }, + logProgress: { + serializedName: "logProgress", + type: { + name: "Boolean", + }, + }, + runtimeEnvironment: { + serializedName: "runtimeEnvironment", + type: { + name: "String", + }, + }, + runbookType: { + serializedName: "runbookType", + required: true, + type: { + name: "String", + }, + }, + draft: { + serializedName: "draft", + type: { + name: "Composite", + className: "RunbookDraft", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + logActivityTrace: { + serializedName: "logActivityTrace", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const RunbookCreateOrUpdateDraftParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RunbookCreateOrUpdateDraftParameters", + modelProperties: { + runbookContent: { + serializedName: "runbookContent", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -5594,17 +5973,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 Watcher: coreClient.CompositeMapper = { @@ -5616,525 +5996,224 @@ export const Watcher: coreClient.CompositeMapper = { etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, executionFrequencyInSeconds: { serializedName: "properties.executionFrequencyInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, scriptName: { serializedName: "properties.scriptName", type: { - name: "String" - } + name: "String", + }, }, scriptParameters: { serializedName: "properties.scriptParameters", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, scriptRunOn: { serializedName: "properties.scriptRunOn", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } - }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "properties.lastModifiedBy", - readOnly: true, - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - } - } - } -}; - -export const HybridRunbookWorker: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HybridRunbookWorker", - modelProperties: { - ...Resource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - ip: { - serializedName: "properties.ip", - type: { - name: "String" - } - }, - registeredDateTime: { - serializedName: "properties.registeredDateTime", - type: { - name: "DateTime" - } - }, - lastSeenDateTime: { - serializedName: "properties.lastSeenDateTime", - type: { - name: "DateTime" - } - }, - vmResourceId: { - serializedName: "properties.vmResourceId", - type: { - name: "String" - } - }, - workerType: { - serializedName: "properties.workerType", - type: { - name: "String" - } - }, - workerName: { - serializedName: "properties.workerName", - type: { - name: "String" - } - } - } - } -}; - -export const HybridRunbookWorkerGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HybridRunbookWorkerGroup", - modelProperties: { - ...Resource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - groupType: { - serializedName: "properties.groupType", - type: { - name: "String" - } - }, - credential: { - serializedName: "properties.credential", - type: { - name: "Composite", - className: "RunAsCredentialAssociationProperty" - } - } - } - } -}; - -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointProperty" - } - }, - groupIds: { - serializedName: "properties.groupIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" - } - } - } - } -}; - -export const PrivateLinkResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - type: { - name: "String" - } - }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const DscNode: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DscNode", - modelProperties: { - ...ProxyResource.type.modelProperties, - lastSeen: { - serializedName: "properties.lastSeen", - type: { - name: "DateTime" - } - }, - registrationTime: { - serializedName: "properties.registrationTime", - type: { - name: "DateTime" - } - }, - ip: { - serializedName: "properties.ip", - type: { - name: "String" - } - }, - accountId: { - serializedName: "properties.accountId", - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - type: { - name: "String" - } - }, - nodeId: { - serializedName: "properties.nodeId", - type: { - name: "String" - } - }, - etag: { - serializedName: "properties.etag", - type: { - name: "String" - } - }, - totalCount: { - serializedName: "properties.totalCount", - type: { - name: "Number" - } - }, - extensionHandler: { - serializedName: "properties.extensionHandler", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DscNodeExtensionHandlerAssociationProperty" - } - } - } - }, - namePropertiesNodeConfigurationName: { - serializedName: "properties.nodeConfiguration.name", - nullable: true, - type: { - name: "String" - } - } - } - } -}; - -export const DscNodeConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DscNodeConfiguration", - modelProperties: { - ...ProxyResource.type.modelProperties, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - type: { - name: "DateTime" - } - }, - creationTime: { - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - }, - configuration: { - serializedName: "properties.configuration", - type: { - name: "Composite", - className: "DscConfigurationAssociationProperty" - } + name: "DateTime", + }, }, - source: { - serializedName: "properties.source", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + readOnly: true, type: { - name: "String" - } + name: "DateTime", + }, }, - nodeCount: { - serializedName: "properties.nodeCount", + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", + readOnly: true, type: { - name: "Number" - } + name: "String", + }, }, - incrementNodeConfigurationBuild: { - serializedName: "properties.incrementNodeConfigurationBuild", + description: { + serializedName: "properties.description", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DscCompilationJob: coreClient.CompositeMapper = { +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscCompilationJob", + className: "PrivateLinkResource", modelProperties: { ...ProxyResource.type.modelProperties, - configuration: { - serializedName: "properties.configuration", + groupId: { + serializedName: "properties.groupId", + readOnly: true, type: { - name: "Composite", - className: "DscConfigurationAssociationProperty" - } + name: "String", + }, }, - startedBy: { - serializedName: "properties.startedBy", + requiredMembers: { + serializedName: "properties.requiredMembers", readOnly: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - jobId: { - serializedName: "properties.jobId", - readOnly: true, + }, + }, +}; + +export const DscNode: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DscNode", + modelProperties: { + ...ProxyResource.type.modelProperties, + lastSeen: { + serializedName: "properties.lastSeen", type: { - name: "Uuid" - } + name: "DateTime", + }, }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + registrationTime: { + serializedName: "properties.registrationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", + ip: { + serializedName: "properties.ip", type: { - name: "String" - } + name: "String", + }, }, - runOn: { - serializedName: "properties.runOn", + accountId: { + serializedName: "properties.accountId", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", type: { - name: "String" - } - }, - statusDetails: { - serializedName: "properties.statusDetails", - type: { - name: "String" - } + name: "String", + }, }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - nullable: true, + nodeId: { + serializedName: "properties.nodeId", type: { - name: "DateTime" - } + name: "String", + }, }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - nullable: true, + etag: { + serializedName: "properties.etag", type: { - name: "DateTime" - } + name: "String", + }, }, - exception: { - serializedName: "properties.exception", - readOnly: true, + totalCount: { + serializedName: "properties.totalCount", type: { - name: "String" - } + name: "Number", + }, }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, + extensionHandler: { + serializedName: "properties.extensionHandler", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscNodeExtensionHandlerAssociationProperty", + }, + }, + }, }, - lastStatusModifiedTime: { - serializedName: "properties.lastStatusModifiedTime", - readOnly: true, + namePropertiesNodeConfigurationName: { + serializedName: "properties.nodeConfiguration.name", nullable: true, type: { - name: "DateTime" - } + name: "String", + }, }, - parameters: { - serializedName: "properties.parameters", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + }, + }, }; -export const SourceControl: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControl", + className: "PrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - repoUrl: { - serializedName: "properties.repoUrl", - type: { - name: "String" - } - }, - branch: { - serializedName: "properties.branch", - type: { - name: "String" - } - }, - folderPath: { - serializedName: "properties.folderPath", - type: { - name: "String" - } - }, - autoSync: { - serializedName: "properties.autoSync", - type: { - name: "Boolean" - } - }, - publishRunbook: { - serializedName: "properties.publishRunbook", - type: { - name: "Boolean" - } - }, - sourceType: { - serializedName: "properties.sourceType", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "String" - } + name: "Composite", + className: "PrivateEndpointProperty", + }, }, - description: { - serializedName: "properties.description", + groupIds: { + serializedName: "properties.groupIds", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - creationTime: { - serializedName: "properties.creationTime", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "DateTime" - } + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + }, }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - type: { - name: "DateTime" - } - } - } - } + }, + }, }; export const Certificate: coreClient.CompositeMapper = { @@ -6147,45 +6226,45 @@ export const Certificate: coreClient.CompositeMapper = { serializedName: "properties.thumbprint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expiryTime: { serializedName: "properties.expiryTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, isExportable: { serializedName: "properties.isExportable", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Connection: coreClient.CompositeMapper = { @@ -6198,39 +6277,39 @@ export const Connection: coreClient.CompositeMapper = { serializedName: "properties.connectionType", type: { name: "Composite", - className: "ConnectionTypeAssociationProperty" - } + className: "ConnectionTypeAssociationProperty", + }, }, fieldDefinitionValues: { serializedName: "properties.fieldDefinitionValues", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Credential: coreClient.CompositeMapper = { @@ -6243,171 +6322,78 @@ export const Credential: coreClient.CompositeMapper = { serializedName: "properties.userName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const Schedule: coreClient.CompositeMapper = { +export const DscNodeConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Schedule", + className: "DscNodeConfiguration", modelProperties: { ...ProxyResource.type.modelProperties, - startTime: { - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - startTimeOffsetMinutes: { - serializedName: "properties.startTimeOffsetMinutes", - readOnly: true, - type: { - name: "Number" - } - }, - expiryTime: { - serializedName: "properties.expiryTime", - nullable: true, - type: { - name: "DateTime" - } - }, - expiryTimeOffsetMinutes: { - serializedName: "properties.expiryTimeOffsetMinutes", - type: { - name: "Number" - } - }, - isEnabled: { - defaultValue: false, - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - }, - nextRun: { - serializedName: "properties.nextRun", - nullable: true, - type: { - name: "DateTime" - } - }, - nextRunOffsetMinutes: { - serializedName: "properties.nextRunOffsetMinutes", - type: { - name: "Number" - } - }, - interval: { - serializedName: "properties.interval", - type: { - name: "any" - } - }, - frequency: { - serializedName: "properties.frequency", - type: { - name: "String" - } - }, - timeZone: { - serializedName: "properties.timeZone", - type: { - name: "String" - } - }, - advancedSchedule: { - serializedName: "properties.advancedSchedule", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", type: { - name: "Composite", - className: "AdvancedSchedule" - } + name: "DateTime", + }, }, creationTime: { serializedName: "properties.creationTime", type: { - name: "DateTime" - } - }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - type: { - name: "DateTime" - } + name: "DateTime", + }, }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - } - } - } -}; - -export const Variable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Variable", - modelProperties: { - ...ProxyResource.type.modelProperties, - value: { - serializedName: "properties.value", + configuration: { + serializedName: "properties.configuration", type: { - name: "String" - } + name: "Composite", + className: "DscConfigurationAssociationProperty", + }, }, - isEncrypted: { - serializedName: "properties.isEncrypted", - nullable: true, + source: { + serializedName: "properties.source", type: { - name: "Boolean" - } + name: "String", + }, }, - creationTime: { - serializedName: "properties.creationTime", + nodeCount: { + serializedName: "properties.nodeCount", type: { - name: "DateTime" - } + name: "Number", + }, }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + incrementNodeConfigurationBuild: { + serializedName: "properties.incrementNodeConfigurationBuild", type: { - name: "DateTime" - } + name: "Boolean", + }, }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - } - } - } + }, + }, }; export const Job: coreClient.CompositeMapper = { @@ -6420,94 +6406,102 @@ export const Job: coreClient.CompositeMapper = { serializedName: "properties.runbook", type: { name: "Composite", - className: "RunbookAssociationProperty" - } + className: "RunbookAssociationProperty", + }, }, startedBy: { serializedName: "properties.startedBy", type: { - name: "String" - } + name: "String", + }, }, runOn: { serializedName: "properties.runOn", type: { - name: "String" - } + name: "String", + }, + }, + jobRuntimeEnvironment: { + serializedName: "properties.jobRuntimeEnvironment", + type: { + name: "Composite", + className: "JobRuntimeEnvironment", + }, }, jobId: { serializedName: "properties.jobId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, creationTime: { serializedName: "properties.creationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, status: { serializedName: "properties.status", type: { - name: "String" - } + name: "String", + }, }, statusDetails: { serializedName: "properties.statusDetails", type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "properties.startTime", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "properties.endTime", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, exception: { serializedName: "properties.exception", type: { - name: "String" - } + name: "String", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastStatusModifiedTime: { serializedName: "properties.lastStatusModifiedTime", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, parameters: { serializedName: "properties.parameters", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, provisioningState: { serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const JobCollectionItem: coreClient.CompositeMapper = { @@ -6520,251 +6514,368 @@ export const JobCollectionItem: coreClient.CompositeMapper = { serializedName: "properties.runbook", type: { name: "Composite", - className: "RunbookAssociationProperty" - } + className: "RunbookAssociationProperty", + }, }, jobId: { serializedName: "properties.jobId", readOnly: true, type: { - name: "Uuid" - } + name: "Uuid", + }, + }, + startedBy: { + serializedName: "properties.startedBy", + readOnly: true, + nullable: true, + type: { + name: "String", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "properties.startTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "properties.endTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + jobRuntimeEnvironment: { + serializedName: "properties.jobRuntimeEnvironment", + type: { + name: "Composite", + className: "JobRuntimeEnvironment", + }, }, runOn: { serializedName: "properties.runOn", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const Webhook: coreClient.CompositeMapper = { +export const Schedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Webhook", + className: "Schedule", modelProperties: { ...ProxyResource.type.modelProperties, - isEnabled: { - defaultValue: false, - serializedName: "properties.isEnabled", + startTime: { + serializedName: "properties.startTime", type: { - name: "Boolean" - } + name: "DateTime", + }, }, - uri: { - serializedName: "properties.uri", + startTimeOffsetMinutes: { + serializedName: "properties.startTimeOffsetMinutes", + readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, expiryTime: { serializedName: "properties.expiryTime", + nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, - lastInvokedTime: { - serializedName: "properties.lastInvokedTime", + expiryTimeOffsetMinutes: { + serializedName: "properties.expiryTimeOffsetMinutes", + type: { + name: "Number", + }, + }, + isEnabled: { + defaultValue: false, + serializedName: "properties.isEnabled", + type: { + name: "Boolean", + }, + }, + nextRun: { + serializedName: "properties.nextRun", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, - parameters: { - serializedName: "properties.parameters", + nextRunOffsetMinutes: { + serializedName: "properties.nextRunOffsetMinutes", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "Number", + }, }, - runbook: { - serializedName: "properties.runbook", + interval: { + serializedName: "properties.interval", type: { - name: "Composite", - className: "RunbookAssociationProperty" - } + name: "any", + }, }, - runOn: { - serializedName: "properties.runOn", + frequency: { + serializedName: "properties.frequency", + type: { + name: "String", + }, + }, + timeZone: { + serializedName: "properties.timeZone", + type: { + name: "String", + }, + }, + advancedSchedule: { + serializedName: "properties.advancedSchedule", type: { - name: "String" - } + name: "Composite", + className: "AdvancedSchedule", + }, }, creationTime: { serializedName: "properties.creationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, - lastModifiedBy: { - serializedName: "properties.lastModifiedBy", + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SourceControl: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SourceControl", + modelProperties: { + ...ProxyResource.type.modelProperties, + repoUrl: { + serializedName: "properties.repoUrl", + type: { + name: "String", + }, + }, + branch: { + serializedName: "properties.branch", + type: { + name: "String", + }, + }, + folderPath: { + serializedName: "properties.folderPath", + type: { + name: "String", + }, + }, + autoSync: { + serializedName: "properties.autoSync", + type: { + name: "Boolean", + }, + }, + publishRunbook: { + serializedName: "properties.publishRunbook", + type: { + name: "Boolean", + }, + }, + sourceType: { + serializedName: "properties.sourceType", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + creationTime: { + serializedName: "properties.creationTime", + type: { + name: "DateTime", + }, + }, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime", + }, + }, + }, + }, }; -export const Module: coreClient.CompositeMapper = { +export const Variable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Module", + className: "Variable", modelProperties: { - ...TrackedResource.type.modelProperties, - etag: { - serializedName: "etag", + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, - isGlobal: { - serializedName: "properties.isGlobal", + isEncrypted: { + serializedName: "properties.isEncrypted", + nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, - version: { - serializedName: "properties.version", + creationTime: { + serializedName: "properties.creationTime", type: { - name: "String" - } + name: "DateTime", + }, }, - sizeInBytes: { - serializedName: "properties.sizeInBytes", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", type: { - name: "Number" - } + name: "DateTime", + }, }, - activityCount: { - serializedName: "properties.activityCount", + description: { + serializedName: "properties.description", type: { - name: "Number" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", + }, + }, +}; + +export const Webhook: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Webhook", + modelProperties: { + ...ProxyResource.type.modelProperties, + isEnabled: { + defaultValue: false, + serializedName: "properties.isEnabled", type: { - name: "Enum", - allowedValues: [ - "Created", - "Creating", - "StartingImportModuleRunbook", - "RunningImportModuleRunbook", - "ContentRetrieved", - "ContentDownloaded", - "ContentValidated", - "ConnectionTypeImported", - "ContentStored", - "ModuleDataStored", - "ActivitiesStored", - "ModuleImportRunbookComplete", - "Succeeded", - "Failed", - "Cancelled", - "Updating" - ] - } + name: "Boolean", + }, }, - contentLink: { - serializedName: "properties.contentLink", + uri: { + serializedName: "properties.uri", type: { - name: "Composite", - className: "ContentLink" - } + name: "String", + }, }, - error: { - serializedName: "properties.error", + expiryTime: { + serializedName: "properties.expiryTime", + type: { + name: "DateTime", + }, + }, + lastInvokedTime: { + serializedName: "properties.lastInvokedTime", + nullable: true, + type: { + name: "DateTime", + }, + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + runbook: { + serializedName: "properties.runbook", type: { name: "Composite", - className: "ModuleErrorInfo" - } + className: "RunbookAssociationProperty", + }, + }, + runOn: { + serializedName: "properties.runOn", + type: { + name: "String", + }, }, creationTime: { serializedName: "properties.creationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", type: { - name: "DateTime" - } + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", + type: { + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - isComposite: { - serializedName: "properties.isComposite", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; export const AutomationAccount: coreClient.CompositeMapper = { @@ -6776,69 +6887,62 @@ export const AutomationAccount: coreClient.CompositeMapper = { etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "Identity" - } - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } + className: "Identity", + }, }, sku: { serializedName: "properties.sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, lastModifiedBy: { serializedName: "properties.lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -6847,31 +6951,31 @@ export const AutomationAccount: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, disableLocalAuth: { serializedName: "properties.disableLocalAuth", type: { - name: "Boolean" - } + name: "Boolean", + }, }, automationHybridServiceUrl: { serializedName: "properties.automationHybridServiceUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DscConfiguration: coreClient.CompositeMapper = { @@ -6883,77 +6987,286 @@ export const DscConfiguration: coreClient.CompositeMapper = { etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { defaultValue: "Succeeded", isConstant: true, serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, jobCount: { serializedName: "properties.jobCount", type: { - name: "Number" - } + name: "Number", + }, }, parameters: { serializedName: "properties.parameters", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "DscConfigurationParameter" } - } - } + type: { name: "Composite", className: "DscConfigurationParameter" }, + }, + }, }, source: { serializedName: "properties.source", type: { name: "Composite", - className: "ContentSource" - } + className: "ContentSource", + }, }, state: { serializedName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, logVerbose: { serializedName: "properties.logVerbose", type: { - name: "Boolean" - } + name: "Boolean", + }, }, creationTime: { serializedName: "properties.creationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, nodeConfigurationCount: { serializedName: "properties.nodeConfigurationCount", type: { - name: "Number" - } + name: "Number", + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const HybridRunbookWorker: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HybridRunbookWorker", + modelProperties: { + ...TrackedResource.type.modelProperties, + ip: { + serializedName: "properties.ip", + type: { + name: "String", + }, + }, + registeredDateTime: { + serializedName: "properties.registeredDateTime", + type: { + name: "DateTime", + }, + }, + lastSeenDateTime: { + serializedName: "properties.lastSeenDateTime", + type: { + name: "DateTime", + }, + }, + vmResourceId: { + serializedName: "properties.vmResourceId", + type: { + name: "String", + }, + }, + workerType: { + serializedName: "properties.workerType", + type: { + name: "String", + }, + }, + workerName: { + serializedName: "properties.workerName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const HybridRunbookWorkerGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HybridRunbookWorkerGroup", + modelProperties: { + ...TrackedResource.type.modelProperties, + groupType: { + serializedName: "properties.groupType", + type: { + name: "String", + }, + }, + credential: { + serializedName: "properties.credential", + type: { + name: "Composite", + className: "RunAsCredentialAssociationProperty", + }, + }, + }, + }, +}; + +export const Module: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Module", + modelProperties: { + ...TrackedResource.type.modelProperties, + etag: { + serializedName: "etag", + type: { + name: "String", + }, + }, + isGlobal: { + serializedName: "properties.isGlobal", + type: { + name: "Boolean", + }, + }, + version: { + serializedName: "properties.version", + type: { + name: "String", + }, + }, + sizeInBytes: { + serializedName: "properties.sizeInBytes", + type: { + name: "Number", + }, + }, + activityCount: { + serializedName: "properties.activityCount", + type: { + name: "Number", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String", + }, + }, + contentLink: { + serializedName: "properties.contentLink", + type: { + name: "Composite", + className: "ContentLink", + }, + }, + error: { + serializedName: "properties.error", + type: { + name: "Composite", + className: "ModuleErrorInfo", + }, + }, + creationTime: { + serializedName: "properties.creationTime", + type: { + name: "DateTime", + }, + }, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + isComposite: { + serializedName: "properties.isComposite", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const Package: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Package", + modelProperties: { + ...TrackedResource.type.modelProperties, + default: { + serializedName: "properties.default", + type: { + name: "Boolean", + }, + }, + version: { + serializedName: "properties.version", + type: { + name: "String", + }, + }, + sizeInBytes: { + serializedName: "properties.sizeInBytes", + type: { + name: "Number", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + contentLink: { + serializedName: "properties.contentLink", + type: { + name: "Composite", + className: "ContentLink", + }, + }, + error: { + serializedName: "properties.error", + type: { + name: "Composite", + className: "PackageErrorInfo", + }, + }, + allOf: { + serializedName: "properties.allOf", + type: { + name: "Composite", + className: "SystemData", + }, + }, + }, + }, }; export const Runbook: coreClient.CompositeMapper = { @@ -6965,58 +7278,64 @@ export const Runbook: coreClient.CompositeMapper = { etag: { serializedName: "etag", type: { - name: "String" - } + name: "String", + }, + }, + runtimeEnvironment: { + serializedName: "properties.runtimeEnvironment", + type: { + name: "String", + }, }, runbookType: { serializedName: "properties.runbookType", type: { - name: "String" - } + name: "String", + }, }, publishContentLink: { serializedName: "properties.publishContentLink", type: { name: "Composite", - className: "ContentLink" - } + className: "ContentLink", + }, }, state: { serializedName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, logVerbose: { serializedName: "properties.logVerbose", type: { - name: "Boolean" - } + name: "Boolean", + }, }, logProgress: { serializedName: "properties.logProgress", type: { - name: "Boolean" - } + name: "Boolean", + }, }, logActivityTrace: { serializedName: "properties.logActivityTrace", type: { - name: "Number" - } + name: "Number", + }, }, jobCount: { serializedName: "properties.jobCount", type: { - name: "Number" - } + name: "Number", + }, }, parameters: { serializedName: "properties.parameters", type: { name: "Dictionary", - value: { type: { name: "Composite", className: "RunbookParameter" } } - } + value: { type: { name: "Composite", className: "RunbookParameter" } }, + }, }, outputTypes: { serializedName: "properties.outputTypes", @@ -7024,54 +7343,105 @@ export const Runbook: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, draft: { serializedName: "properties.draft", type: { name: "Composite", - className: "RunbookDraft" - } + className: "RunbookDraft", + }, }, provisioningState: { defaultValue: "Succeeded", isConstant: true, serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, lastModifiedBy: { serializedName: "properties.lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, creationTime: { serializedName: "properties.creationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "properties.lastModifiedTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; +export const RuntimeEnvironment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuntimeEnvironment", + modelProperties: { + ...TrackedResource.type.modelProperties, + defaultPackages: { + serializedName: "properties.defaultPackages", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + language: { + serializedName: "properties.runtime.language", + type: { + name: "String", + }, + }, + version: { + serializedName: "properties.runtime.version", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionsDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + export const RunbookDraftReplaceContentHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7080,11 +7450,11 @@ export const RunbookDraftReplaceContentHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunbookPublishHeaders: coreClient.CompositeMapper = { @@ -7095,9 +7465,9 @@ export const RunbookPublishHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/automation/arm-automation/src/models/parameters.ts b/sdk/automation/arm-automation/src/models/parameters.ts index d301b423cf1d..4fadd296315f 100644 --- a/sdk/automation/arm-automation/src/models/parameters.ts +++ b/sdk/automation/arm-automation/src/models/parameters.ts @@ -9,19 +9,12 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { - PrivateEndpointConnection as PrivateEndpointConnectionMapper, - PythonPackageCreateParameters as PythonPackageCreateParametersMapper, - PythonPackageUpdateParameters as PythonPackageUpdateParametersMapper, + SoftwareUpdateConfiguration as SoftwareUpdateConfigurationMapper, AgentRegistrationRegenerateKeyParameter as AgentRegistrationRegenerateKeyParameterMapper, DscNodeUpdateParameters as DscNodeUpdateParametersMapper, - DscNodeConfigurationCreateOrUpdateParameters as DscNodeConfigurationCreateOrUpdateParametersMapper, - DscCompilationJobCreateParameters as DscCompilationJobCreateParametersMapper, - SourceControlCreateOrUpdateParameters as SourceControlCreateOrUpdateParametersMapper, - SourceControlUpdateParameters as SourceControlUpdateParametersMapper, - SourceControlSyncJobCreateParameters as SourceControlSyncJobCreateParametersMapper, AutomationAccountUpdateParameters as AutomationAccountUpdateParametersMapper, AutomationAccountCreateOrUpdateParameters as AutomationAccountCreateOrUpdateParametersMapper, CertificateCreateOrUpdateParameters as CertificateCreateOrUpdateParametersMapper, @@ -31,28 +24,38 @@ import { ConnectionTypeCreateOrUpdateParameters as ConnectionTypeCreateOrUpdateParametersMapper, CredentialCreateOrUpdateParameters as CredentialCreateOrUpdateParametersMapper, CredentialUpdateParameters as CredentialUpdateParametersMapper, + DscConfigurationCreateOrUpdateParameters as DscConfigurationCreateOrUpdateParametersMapper, + DscConfigurationUpdateParameters as DscConfigurationUpdateParametersMapper, + DscNodeConfigurationCreateOrUpdateParameters as DscNodeConfigurationCreateOrUpdateParametersMapper, + HybridRunbookWorkerCreateParameters as HybridRunbookWorkerCreateParametersMapper, + HybridRunbookWorkerMoveParameters as HybridRunbookWorkerMoveParametersMapper, + HybridRunbookWorkerGroupCreateOrUpdateParameters as HybridRunbookWorkerGroupCreateOrUpdateParametersMapper, + JobCreateParameters as JobCreateParametersMapper, JobScheduleCreateParameters as JobScheduleCreateParametersMapper, ModuleCreateOrUpdateParameters as ModuleCreateOrUpdateParametersMapper, ModuleUpdateParameters as ModuleUpdateParametersMapper, + GraphicalRunbookContent as GraphicalRunbookContentMapper, + PackageCreateOrUpdateParameters as PackageCreateOrUpdateParametersMapper, + PackageUpdateParameters as PackageUpdateParametersMapper, + PrivateEndpointConnection as PrivateEndpointConnectionMapper, + PythonPackageCreateParameters as PythonPackageCreateParametersMapper, + PythonPackageUpdateParameters as PythonPackageUpdateParametersMapper, + RunbookCreateOrUpdateParameters as RunbookCreateOrUpdateParametersMapper, + RunbookUpdateParameters as RunbookUpdateParametersMapper, + TestJobCreateParameters as TestJobCreateParametersMapper, + RuntimeEnvironmentUpdateParameters as RuntimeEnvironmentUpdateParametersMapper, + RuntimeEnvironment as RuntimeEnvironmentMapper, ScheduleCreateOrUpdateParameters as ScheduleCreateOrUpdateParametersMapper, ScheduleUpdateParameters as ScheduleUpdateParametersMapper, + SourceControlCreateOrUpdateParameters as SourceControlCreateOrUpdateParametersMapper, + SourceControlUpdateParameters as SourceControlUpdateParametersMapper, + SourceControlSyncJobCreateParameters as SourceControlSyncJobCreateParametersMapper, VariableCreateOrUpdateParameters as VariableCreateOrUpdateParametersMapper, VariableUpdateParameters as VariableUpdateParametersMapper, Watcher as WatcherMapper, WatcherUpdateParameters as WatcherUpdateParametersMapper, - DscConfigurationCreateOrUpdateParameters as DscConfigurationCreateOrUpdateParametersMapper, - DscConfigurationUpdateParameters as DscConfigurationUpdateParametersMapper, - JobCreateParameters as JobCreateParametersMapper, - GraphicalRunbookContent as GraphicalRunbookContentMapper, - SoftwareUpdateConfiguration as SoftwareUpdateConfigurationMapper, - RunbookCreateOrUpdateParameters as RunbookCreateOrUpdateParametersMapper, - RunbookUpdateParameters as RunbookUpdateParametersMapper, - TestJobCreateParameters as TestJobCreateParametersMapper, WebhookCreateOrUpdateParameters as WebhookCreateOrUpdateParametersMapper, WebhookUpdateParameters as WebhookUpdateParametersMapper, - HybridRunbookWorkerCreateParameters as HybridRunbookWorkerCreateParametersMapper, - HybridRunbookWorkerMoveParameters as HybridRunbookWorkerMoveParametersMapper, - HybridRunbookWorkerGroupCreateOrUpdateParameters as HybridRunbookWorkerGroupCreateOrUpdateParametersMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -62,9 +65,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -73,21 +76,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - serializedName: "subscriptionId", - required: true, - type: { - name: "String" - } - } + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { @@ -96,48 +88,59 @@ export const resourceGroupName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[-\\w\\._]+$"), MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", +export const automationAccountName: OperationURLParameter = { + parameterPath: "automationAccountName", mapper: { - defaultValue: "2020-01-13-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "automationAccountName", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const automationAccountName: OperationURLParameter = { - parameterPath: "automationAccountName", +export const countType: OperationURLParameter = { + parameterPath: "countType", mapper: { - serializedName: "automationAccountName", + serializedName: "countType", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", mapper: { - serializedName: "privateEndpointConnectionName", + serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2024-10-23", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -147,52 +150,50 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: SoftwareUpdateConfigurationMapper, }; -export const packageName: OperationURLParameter = { - parameterPath: "packageName", +export const softwareUpdateConfigurationName: OperationURLParameter = { + parameterPath: "softwareUpdateConfigurationName", mapper: { - serializedName: "packageName", + serializedName: "softwareUpdateConfigurationName", required: true, type: { - name: "String" - } - } -}; - -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: PythonPackageCreateParametersMapper + name: "String", + }, + }, }; -export const parameters2: OperationParameter = { - parameterPath: "parameters", - mapper: PythonPackageUpdateParametersMapper +export const clientRequestId: OperationParameter = { + parameterPath: ["options", "clientRequestId"], + mapper: { + serializedName: "clientRequestId", + type: { + name: "String", + }, + }, }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const filter: OperationQueryParameter = { + parameterPath: ["options", "filter"], mapper: { - serializedName: "nextLink", - required: true, + serializedName: "$filter", type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true }; -export const parameters3: OperationParameter = { +export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: AgentRegistrationRegenerateKeyParameterMapper + mapper: AgentRegistrationRegenerateKeyParameterMapper, }; export const nodeId: OperationURLParameter = { @@ -201,24 +202,14 @@ export const nodeId: OperationURLParameter = { serializedName: "nodeId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const dscNodeUpdateParameters: OperationParameter = { parameterPath: "dscNodeUpdateParameters", - mapper: DscNodeUpdateParametersMapper -}; - -export const filter: OperationQueryParameter = { - parameterPath: ["options", "filter"], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } + mapper: DscNodeUpdateParametersMapper, }; export const skip: OperationQueryParameter = { @@ -226,9 +217,9 @@ export const skip: OperationQueryParameter = { mapper: { serializedName: "$skip", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const top: OperationQueryParameter = { @@ -236,9 +227,9 @@ export const top: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const inlinecount: OperationQueryParameter = { @@ -246,155 +237,56 @@ export const inlinecount: OperationQueryParameter = { mapper: { serializedName: "$inlinecount", type: { - name: "String" - } - } -}; - -export const reportId: OperationURLParameter = { - parameterPath: "reportId", - mapper: { - serializedName: "reportId", - required: true, - type: { - name: "String" - } - } -}; - -export const nodeConfigurationName: OperationURLParameter = { - parameterPath: "nodeConfigurationName", - mapper: { - serializedName: "nodeConfigurationName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters4: OperationParameter = { - parameterPath: "parameters", - mapper: DscNodeConfigurationCreateOrUpdateParametersMapper -}; - -export const parameters5: OperationParameter = { - parameterPath: "parameters", - mapper: DscCompilationJobCreateParametersMapper -}; - -export const compilationJobName: OperationURLParameter = { - parameterPath: "compilationJobName", - mapper: { - serializedName: "compilationJobName", - required: true, - type: { - name: "String" - } - } -}; - -export const jobId: OperationURLParameter = { - parameterPath: "jobId", - mapper: { - serializedName: "jobId", - required: true, - type: { - name: "Uuid" - } - } -}; - -export const jobStreamId: OperationURLParameter = { - parameterPath: "jobStreamId", - mapper: { - serializedName: "jobStreamId", - required: true, - type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const countType: OperationURLParameter = { - parameterPath: "countType", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - serializedName: "countType", + serializedName: "nextLink", required: true, type: { - name: "String" - } - } -}; - -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: SourceControlCreateOrUpdateParametersMapper + name: "String", + }, + }, + skipEncoding: true, }; -export const sourceControlName: OperationURLParameter = { - parameterPath: "sourceControlName", +export const reportId: OperationURLParameter = { + parameterPath: "reportId", mapper: { - serializedName: "sourceControlName", + serializedName: "reportId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters7: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: SourceControlUpdateParametersMapper + mapper: AutomationAccountUpdateParametersMapper, }; -export const parameters8: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: SourceControlSyncJobCreateParametersMapper -}; - -export const sourceControlSyncJobId: OperationURLParameter = { - parameterPath: "sourceControlSyncJobId", - mapper: { - serializedName: "sourceControlSyncJobId", - required: true, - type: { - name: "Uuid" - } - } + mapper: AutomationAccountCreateOrUpdateParametersMapper, }; -export const streamId: OperationURLParameter = { - parameterPath: "streamId", +export const automationAccountName1: OperationURLParameter = { + parameterPath: "automationAccountName", mapper: { - serializedName: "streamId", + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z-_0-9]*$"), + }, + serializedName: "automationAccountName", required: true, type: { - name: "String" - } - } -}; - -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: AutomationAccountUpdateParametersMapper -}; - -export const apiVersion1: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-06-22", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const parameters10: OperationParameter = { - parameterPath: "parameters", - mapper: AutomationAccountCreateOrUpdateParametersMapper + name: "String", + }, + }, }; export const certificateName: OperationURLParameter = { @@ -403,19 +295,19 @@ export const certificateName: OperationURLParameter = { serializedName: "certificateName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters11: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: CertificateCreateOrUpdateParametersMapper + mapper: CertificateCreateOrUpdateParametersMapper, }; -export const parameters12: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: CertificateUpdateParametersMapper + mapper: CertificateUpdateParametersMapper, }; export const connectionName: OperationURLParameter = { @@ -424,19 +316,19 @@ export const connectionName: OperationURLParameter = { serializedName: "connectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters13: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: ConnectionCreateOrUpdateParametersMapper + mapper: ConnectionCreateOrUpdateParametersMapper, }; -export const parameters14: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: ConnectionUpdateParametersMapper + mapper: ConnectionUpdateParametersMapper, }; export const connectionTypeName: OperationURLParameter = { @@ -445,14 +337,14 @@ export const connectionTypeName: OperationURLParameter = { serializedName: "connectionTypeName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters15: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: ConnectionTypeCreateOrUpdateParametersMapper + mapper: ConnectionTypeCreateOrUpdateParametersMapper, }; export const credentialName: OperationURLParameter = { @@ -461,333 +353,434 @@ export const credentialName: OperationURLParameter = { serializedName: "credentialName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters16: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: CredentialCreateOrUpdateParametersMapper + mapper: CredentialCreateOrUpdateParametersMapper, }; -export const parameters17: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: CredentialUpdateParametersMapper + mapper: CredentialUpdateParametersMapper, }; -export const jobScheduleId: OperationURLParameter = { - parameterPath: "jobScheduleId", +export const configurationName: OperationURLParameter = { + parameterPath: "configurationName", mapper: { - serializedName: "jobScheduleId", + serializedName: "configurationName", required: true, type: { - name: "Uuid" - } - } + name: "String", + }, + }, }; -export const parameters18: OperationParameter = { - parameterPath: "parameters", - mapper: JobScheduleCreateParametersMapper +export const contentType1: OperationParameter = { + parameterPath: "contentType", + mapper: { + defaultValue: "text/plain; charset=utf-8", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String", + }, + }, }; -export const moduleName: OperationURLParameter = { - parameterPath: "moduleName", +export const parameters11: OperationParameter = { + parameterPath: "parameters", mapper: { - serializedName: "moduleName", + serializedName: "parameters", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const activityName: OperationURLParameter = { - parameterPath: "activityName", +export const accept1: OperationParameter = { + parameterPath: "accept", mapper: { - serializedName: "activityName", - required: true, + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters19: OperationParameter = { - parameterPath: "parameters", - mapper: ModuleCreateOrUpdateParametersMapper +export const contentType2: OperationParameter = { + parameterPath: "contentType", + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String", + }, + }, }; -export const parameters20: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: ModuleUpdateParametersMapper + mapper: DscConfigurationCreateOrUpdateParametersMapper, }; -export const typeName: OperationURLParameter = { - parameterPath: "typeName", +export const parameters13: OperationParameter = { + parameterPath: ["options", "parameters"], mapper: { - serializedName: "typeName", - required: true, + serializedName: "parameters", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters21: OperationParameter = { - parameterPath: "parameters", - mapper: ScheduleCreateOrUpdateParametersMapper +export const parameters14: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: DscConfigurationUpdateParametersMapper, }; -export const scheduleName: OperationURLParameter = { - parameterPath: "scheduleName", +export const accept2: OperationParameter = { + parameterPath: "accept", mapper: { - serializedName: "scheduleName", + defaultValue: "text/powershell", + isConstant: true, + serializedName: "Accept", + type: { + name: "String", + }, + }, +}; + +export const nodeConfigurationName: OperationURLParameter = { + parameterPath: "nodeConfigurationName", + mapper: { + serializedName: "nodeConfigurationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters22: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: ScheduleUpdateParametersMapper + mapper: DscNodeConfigurationCreateOrUpdateParametersMapper, }; -export const parameters23: OperationParameter = { - parameterPath: "parameters", - mapper: VariableCreateOrUpdateParametersMapper +export const hybridRunbookWorkerGroupName: OperationURLParameter = { + parameterPath: "hybridRunbookWorkerGroupName", + mapper: { + serializedName: "hybridRunbookWorkerGroupName", + required: true, + type: { + name: "String", + }, + }, }; -export const variableName: OperationURLParameter = { - parameterPath: "variableName", +export const hybridRunbookWorkerId: OperationURLParameter = { + parameterPath: "hybridRunbookWorkerId", mapper: { - serializedName: "variableName", + serializedName: "hybridRunbookWorkerId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters24: OperationParameter = { - parameterPath: "parameters", - mapper: VariableUpdateParametersMapper +export const hybridRunbookWorkerCreationParameters: OperationParameter = { + parameterPath: "hybridRunbookWorkerCreationParameters", + mapper: HybridRunbookWorkerCreateParametersMapper, }; -export const parameters25: OperationParameter = { - parameterPath: "parameters", - mapper: WatcherMapper +export const hybridRunbookWorkerCreationParameters1: OperationParameter = { + parameterPath: ["options", "hybridRunbookWorkerCreationParameters"], + mapper: HybridRunbookWorkerCreateParametersMapper, }; -export const watcherName: OperationURLParameter = { - parameterPath: "watcherName", +export const hybridRunbookWorkerMoveParameters: OperationParameter = { + parameterPath: "hybridRunbookWorkerMoveParameters", + mapper: HybridRunbookWorkerMoveParametersMapper, +}; + +export const hybridRunbookWorkerGroupCreationParameters: OperationParameter = { + parameterPath: "hybridRunbookWorkerGroupCreationParameters", + mapper: HybridRunbookWorkerGroupCreateOrUpdateParametersMapper, +}; + +export const hybridRunbookWorkerGroupUpdationParameters: OperationParameter = { + parameterPath: "hybridRunbookWorkerGroupUpdationParameters", + mapper: HybridRunbookWorkerGroupCreateOrUpdateParametersMapper, +}; + +export const accept3: OperationParameter = { + parameterPath: "accept", mapper: { - serializedName: "watcherName", + defaultValue: "text/plain", + isConstant: true, + serializedName: "Accept", + type: { + name: "String", + }, + }, +}; + +export const jobName: OperationURLParameter = { + parameterPath: "jobName", + mapper: { + serializedName: "jobName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters26: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", - mapper: WatcherUpdateParametersMapper + mapper: JobCreateParametersMapper, }; -export const configurationName: OperationURLParameter = { - parameterPath: "configurationName", +export const jobStreamId: OperationURLParameter = { + parameterPath: "jobStreamId", mapper: { - serializedName: "configurationName", + serializedName: "jobStreamId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const apiVersion2: OperationQueryParameter = { - parameterPath: "apiVersion", +export const jobScheduleId: OperationURLParameter = { + parameterPath: "jobScheduleId", mapper: { - defaultValue: "2019-06-01", - isConstant: true, - serializedName: "api-version", + serializedName: "jobScheduleId", + required: true, type: { - name: "String" - } - } + name: "Uuid", + }, + }, }; -export const contentType1: OperationParameter = { - parameterPath: "contentType", - mapper: { - defaultValue: "text/plain; charset=utf-8", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } +export const parameters17: OperationParameter = { + parameterPath: "parameters", + mapper: JobScheduleCreateParametersMapper, }; -export const parameters27: OperationParameter = { - parameterPath: "parameters", +export const moduleName: OperationURLParameter = { + parameterPath: "moduleName", mapper: { - serializedName: "parameters", + serializedName: "moduleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const accept1: OperationParameter = { - parameterPath: "accept", +export const activityName: OperationURLParameter = { + parameterPath: "activityName", mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Accept", + serializedName: "activityName", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const contentType2: OperationParameter = { - parameterPath: "contentType", - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } +export const parameters18: OperationParameter = { + parameterPath: "parameters", + mapper: ModuleCreateOrUpdateParametersMapper, }; -export const parameters28: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: DscConfigurationCreateOrUpdateParametersMapper + mapper: ModuleUpdateParametersMapper, }; -export const parameters29: OperationParameter = { - parameterPath: ["options", "parameters"], +export const typeName: OperationURLParameter = { + parameterPath: "typeName", mapper: { - serializedName: "parameters", + serializedName: "typeName", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters30: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: DscConfigurationUpdateParametersMapper +export const parameters20: OperationParameter = { + parameterPath: "parameters", + mapper: GraphicalRunbookContentMapper, }; -export const accept2: OperationParameter = { - parameterPath: "accept", +export const resourceGroupName1: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - defaultValue: "text/powershell", - isConstant: true, - serializedName: "Accept", + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const accept3: OperationParameter = { - parameterPath: "accept", +export const runtimeEnvironmentName: OperationURLParameter = { + parameterPath: "runtimeEnvironmentName", mapper: { - defaultValue: "text/plain", - isConstant: true, - serializedName: "Accept", + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z-_0-9]*$"), + }, + serializedName: "runtimeEnvironmentName", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const jobName: OperationURLParameter = { - parameterPath: "jobName", +export const packageName: OperationURLParameter = { + parameterPath: "packageName", mapper: { - serializedName: "jobName", + serializedName: "packageName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const clientRequestId: OperationParameter = { - parameterPath: ["options", "clientRequestId"], +export const parameters21: OperationParameter = { + parameterPath: "parameters", + mapper: PackageCreateOrUpdateParametersMapper, +}; + +export const parameters22: OperationParameter = { + parameterPath: "parameters", + mapper: PackageUpdateParametersMapper, +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", mapper: { - serializedName: "clientRequestId", + serializedName: "privateEndpointConnectionName", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters31: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", - mapper: JobCreateParametersMapper + mapper: PrivateEndpointConnectionMapper, }; -export const parameters32: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", - mapper: GraphicalRunbookContentMapper + mapper: PythonPackageCreateParametersMapper, }; -export const parameters33: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", - mapper: SoftwareUpdateConfigurationMapper + mapper: PythonPackageUpdateParametersMapper, }; -export const softwareUpdateConfigurationName: OperationURLParameter = { - parameterPath: "softwareUpdateConfigurationName", +export const runbookName: OperationURLParameter = { + parameterPath: "runbookName", mapper: { - serializedName: "softwareUpdateConfigurationName", + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z-_0-9]*$"), + }, + serializedName: "runbookName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const softwareUpdateConfigurationRunId: OperationURLParameter = { - parameterPath: "softwareUpdateConfigurationRunId", +export const contentType3: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - serializedName: "softwareUpdateConfigurationRunId", - required: true, + defaultValue: "text/powershell", + isConstant: true, + serializedName: "Content-Type", type: { - name: "Uuid" - } - } + name: "String", + }, + }, }; -export const skip1: OperationQueryParameter = { - parameterPath: ["options", "skip"], +export const runbookContent: OperationParameter = { + parameterPath: "runbookContent", mapper: { - serializedName: "$skip", + serializedName: "runbookContent", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const top1: OperationQueryParameter = { - parameterPath: ["options", "top"], +export const parameters26: OperationParameter = { + parameterPath: "parameters", + mapper: RunbookCreateOrUpdateParametersMapper, +}; + +export const parameters27: OperationParameter = { + parameterPath: "parameters", + mapper: RunbookUpdateParametersMapper, +}; + +export const parameters28: OperationParameter = { + parameterPath: "parameters", + mapper: TestJobCreateParametersMapper, +}; + +export const parameters29: OperationParameter = { + parameterPath: "parameters", + mapper: RuntimeEnvironmentUpdateParametersMapper, +}; + +export const parameters30: OperationParameter = { + parameterPath: "parameters", + mapper: RuntimeEnvironmentMapper, +}; + +export const parameters31: OperationParameter = { + parameterPath: "parameters", + mapper: ScheduleCreateOrUpdateParametersMapper, +}; + +export const scheduleName: OperationURLParameter = { + parameterPath: "scheduleName", mapper: { - serializedName: "$top", + serializedName: "scheduleName", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const parameters32: OperationParameter = { + parameterPath: "parameters", + mapper: ScheduleUpdateParametersMapper, }; export const softwareUpdateConfigurationMachineRunId: OperationURLParameter = { @@ -796,167 +789,149 @@ export const softwareUpdateConfigurationMachineRunId: OperationURLParameter = { serializedName: "softwareUpdateConfigurationMachineRunId", required: true, type: { - name: "Uuid" - } - } + name: "Uuid", + }, + }, }; -export const runbookName: OperationURLParameter = { - parameterPath: "runbookName", +export const skip1: OperationQueryParameter = { + parameterPath: ["options", "skip"], mapper: { - serializedName: "runbookName", - required: true, + serializedName: "$skip", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const apiVersion3: OperationQueryParameter = { - parameterPath: "apiVersion", +export const top1: OperationQueryParameter = { + parameterPath: ["options", "top"], mapper: { - defaultValue: "2018-06-30", - isConstant: true, - serializedName: "api-version", + serializedName: "$top", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const contentType3: OperationParameter = { - parameterPath: ["options", "contentType"], +export const softwareUpdateConfigurationRunId: OperationURLParameter = { + parameterPath: "softwareUpdateConfigurationRunId", mapper: { - defaultValue: "text/powershell", - isConstant: true, - serializedName: "Content-Type", + serializedName: "softwareUpdateConfigurationRunId", + required: true, type: { - name: "String" - } - } + name: "Uuid", + }, + }, }; -export const runbookContent: OperationParameter = { - parameterPath: "runbookContent", +export const parameters33: OperationParameter = { + parameterPath: "parameters", + mapper: SourceControlCreateOrUpdateParametersMapper, +}; + +export const sourceControlName: OperationURLParameter = { + parameterPath: "sourceControlName", mapper: { - serializedName: "runbookContent", + serializedName: "sourceControlName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters34: OperationParameter = { parameterPath: "parameters", - mapper: RunbookCreateOrUpdateParametersMapper + mapper: SourceControlUpdateParametersMapper, }; export const parameters35: OperationParameter = { parameterPath: "parameters", - mapper: RunbookUpdateParametersMapper + mapper: SourceControlSyncJobCreateParametersMapper, }; -export const parameters36: OperationParameter = { - parameterPath: "parameters", - mapper: TestJobCreateParametersMapper +export const sourceControlSyncJobId: OperationURLParameter = { + parameterPath: "sourceControlSyncJobId", + mapper: { + serializedName: "sourceControlSyncJobId", + required: true, + type: { + name: "Uuid", + }, + }, }; -export const apiVersion4: OperationQueryParameter = { - parameterPath: "apiVersion", +export const streamId: OperationURLParameter = { + parameterPath: "streamId", mapper: { - defaultValue: "2015-10-31", - isConstant: true, - serializedName: "api-version", + serializedName: "streamId", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const webhookName: OperationURLParameter = { - parameterPath: "webhookName", +export const parameters36: OperationParameter = { + parameterPath: "parameters", + mapper: VariableCreateOrUpdateParametersMapper, +}; + +export const variableName: OperationURLParameter = { + parameterPath: "variableName", mapper: { - serializedName: "webhookName", + serializedName: "variableName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters37: OperationParameter = { parameterPath: "parameters", - mapper: WebhookCreateOrUpdateParametersMapper + mapper: VariableUpdateParametersMapper, }; export const parameters38: OperationParameter = { parameterPath: "parameters", - mapper: WebhookUpdateParametersMapper -}; - -export const hybridRunbookWorkerGroupName: OperationURLParameter = { - parameterPath: "hybridRunbookWorkerGroupName", - mapper: { - serializedName: "hybridRunbookWorkerGroupName", - required: true, - type: { - name: "String" - } - } + mapper: WatcherMapper, }; -export const hybridRunbookWorkerId: OperationURLParameter = { - parameterPath: "hybridRunbookWorkerId", +export const watcherName: OperationURLParameter = { + parameterPath: "watcherName", mapper: { - serializedName: "hybridRunbookWorkerId", + serializedName: "watcherName", required: true, type: { - name: "String" - } - } -}; - -export const hybridRunbookWorkerCreationParameters: OperationParameter = { - parameterPath: "hybridRunbookWorkerCreationParameters", - mapper: HybridRunbookWorkerCreateParametersMapper -}; - -export const hybridRunbookWorkerMoveParameters: OperationParameter = { - parameterPath: "hybridRunbookWorkerMoveParameters", - mapper: HybridRunbookWorkerMoveParametersMapper + name: "String", + }, + }, }; -export const apiVersion5: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-01-31", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } +export const parameters39: OperationParameter = { + parameterPath: "parameters", + mapper: WatcherUpdateParametersMapper, }; -export const apiVersion6: OperationQueryParameter = { - parameterPath: "apiVersion", +export const webhookName: OperationURLParameter = { + parameterPath: "webhookName", mapper: { - defaultValue: "2022-02-22", - isConstant: true, - serializedName: "api-version", + serializedName: "webhookName", + required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const hybridRunbookWorkerGroupCreationParameters: OperationParameter = { - parameterPath: "hybridRunbookWorkerGroupCreationParameters", - mapper: HybridRunbookWorkerGroupCreateOrUpdateParametersMapper +export const parameters40: OperationParameter = { + parameterPath: "parameters", + mapper: WebhookCreateOrUpdateParametersMapper, }; -export const hybridRunbookWorkerGroupUpdationParameters: OperationParameter = { - parameterPath: "hybridRunbookWorkerGroupUpdationParameters", - mapper: HybridRunbookWorkerGroupCreateOrUpdateParametersMapper +export const parameters41: OperationParameter = { + parameterPath: "parameters", + mapper: WebhookUpdateParametersMapper, }; diff --git a/sdk/automation/arm-automation/src/operations/activityOperations.ts b/sdk/automation/arm-automation/src/operations/activityOperations.ts index b5463718b333..1b5b9890bd74 100644 --- a/sdk/automation/arm-automation/src/operations/activityOperations.ts +++ b/sdk/automation/arm-automation/src/operations/activityOperations.ts @@ -20,7 +20,7 @@ import { ActivityListByModuleResponse, ActivityGetOptionalParams, ActivityGetResponse, - ActivityListByModuleNextResponse + ActivityListByModuleNextResponse, } from "../models"; /// @@ -47,13 +47,13 @@ export class ActivityOperationsImpl implements ActivityOperations { resourceGroupName: string, automationAccountName: string, moduleName: string, - options?: ActivityListByModuleOptionalParams + options?: ActivityListByModuleOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByModulePagingAll( resourceGroupName, automationAccountName, moduleName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class ActivityOperationsImpl implements ActivityOperations { automationAccountName, moduleName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class ActivityOperationsImpl implements ActivityOperations { automationAccountName: string, moduleName: string, options?: ActivityListByModuleOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ActivityListByModuleResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class ActivityOperationsImpl implements ActivityOperations { resourceGroupName, automationAccountName, moduleName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class ActivityOperationsImpl implements ActivityOperations { automationAccountName, moduleName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,13 +117,13 @@ export class ActivityOperationsImpl implements ActivityOperations { resourceGroupName: string, automationAccountName: string, moduleName: string, - options?: ActivityListByModuleOptionalParams + options?: ActivityListByModuleOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByModulePagingPage( resourceGroupName, automationAccountName, moduleName, - options + options, )) { yield* page; } @@ -142,7 +142,7 @@ export class ActivityOperationsImpl implements ActivityOperations { automationAccountName: string, moduleName: string, activityName: string, - options?: ActivityGetOptionalParams + options?: ActivityGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -150,9 +150,9 @@ export class ActivityOperationsImpl implements ActivityOperations { automationAccountName, moduleName, activityName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -167,11 +167,11 @@ export class ActivityOperationsImpl implements ActivityOperations { resourceGroupName: string, automationAccountName: string, moduleName: string, - options?: ActivityListByModuleOptionalParams + options?: ActivityListByModuleOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, moduleName, options }, - listByModuleOperationSpec + listByModuleOperationSpec, ); } @@ -188,7 +188,7 @@ export class ActivityOperationsImpl implements ActivityOperations { automationAccountName: string, moduleName: string, nextLink: string, - options?: ActivityListByModuleNextOptionalParams + options?: ActivityListByModuleNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -196,9 +196,9 @@ export class ActivityOperationsImpl implements ActivityOperations { automationAccountName, moduleName, nextLink, - options + options, }, - listByModuleNextOperationSpec + listByModuleNextOperationSpec, ); } } @@ -206,71 +206,69 @@ export class ActivityOperationsImpl implements ActivityOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities/{activityName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities/{activityName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Activity + bodyMapper: Mappers.Activity, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.moduleName, - Parameters.activityName + Parameters.activityName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByModuleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ActivityListResult + bodyMapper: Mappers.ActivityListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.moduleName + Parameters.subscriptionId, + Parameters.moduleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByModuleNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ActivityListResult + bodyMapper: Mappers.ActivityListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.moduleName + Parameters.moduleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/agentRegistrationInformation.ts b/sdk/automation/arm-automation/src/operations/agentRegistrationInformation.ts index 5d14ebac1a5a..d829e2db62ec 100644 --- a/sdk/automation/arm-automation/src/operations/agentRegistrationInformation.ts +++ b/sdk/automation/arm-automation/src/operations/agentRegistrationInformation.ts @@ -16,12 +16,13 @@ import { AgentRegistrationInformationGetResponse, AgentRegistrationRegenerateKeyParameter, AgentRegistrationInformationRegenerateKeyOptionalParams, - AgentRegistrationInformationRegenerateKeyResponse + AgentRegistrationInformationRegenerateKeyResponse, } from "../models"; /** Class containing AgentRegistrationInformation operations. */ export class AgentRegistrationInformationImpl - implements AgentRegistrationInformation { + implements AgentRegistrationInformation +{ private readonly client: AutomationClient; /** @@ -41,11 +42,11 @@ export class AgentRegistrationInformationImpl get( resourceGroupName: string, automationAccountName: string, - options?: AgentRegistrationInformationGetOptionalParams + options?: AgentRegistrationInformationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - getOperationSpec + getOperationSpec, ); } @@ -60,11 +61,11 @@ export class AgentRegistrationInformationImpl resourceGroupName: string, automationAccountName: string, parameters: AgentRegistrationRegenerateKeyParameter, - options?: AgentRegistrationInformationRegenerateKeyOptionalParams + options?: AgentRegistrationInformationRegenerateKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, parameters, options }, - regenerateKeyOperationSpec + regenerateKeyOperationSpec, ); } } @@ -72,48 +73,46 @@ export class AgentRegistrationInformationImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AgentRegistration + bodyMapper: Mappers.AgentRegistration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation/regenerateKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation/regenerateKey", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AgentRegistration + bodyMapper: Mappers.AgentRegistration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/automationAccountOperations.ts b/sdk/automation/arm-automation/src/operations/automationAccountOperations.ts index 94af04491465..a14986d6a63f 100644 --- a/sdk/automation/arm-automation/src/operations/automationAccountOperations.ts +++ b/sdk/automation/arm-automation/src/operations/automationAccountOperations.ts @@ -21,6 +21,10 @@ import { AutomationAccountListNextOptionalParams, AutomationAccountListOptionalParams, AutomationAccountListResponse, + DeletedRunbook, + AutomationAccountListDeletedRunbooksNextOptionalParams, + AutomationAccountListDeletedRunbooksOptionalParams, + AutomationAccountListDeletedRunbooksResponse, AutomationAccountUpdateParameters, AutomationAccountUpdateOptionalParams, AutomationAccountUpdateResponse, @@ -31,13 +35,15 @@ import { AutomationAccountGetOptionalParams, AutomationAccountGetResponse, AutomationAccountListByResourceGroupNextResponse, - AutomationAccountListNextResponse + AutomationAccountListNextResponse, + AutomationAccountListDeletedRunbooksNextResponse, } from "../models"; /// /** Class containing AutomationAccountOperations operations. */ export class AutomationAccountOperationsImpl - implements AutomationAccountOperations { + implements AutomationAccountOperations +{ private readonly client: AutomationClient; /** @@ -55,7 +61,7 @@ export class AutomationAccountOperationsImpl */ public listByResourceGroup( resourceGroupName: string, - options?: AutomationAccountListByResourceGroupOptionalParams + options?: AutomationAccountListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -72,16 +78,16 @@ export class AutomationAccountOperationsImpl return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: AutomationAccountListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AutomationAccountListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +102,7 @@ export class AutomationAccountOperationsImpl result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,11 +113,11 @@ export class AutomationAccountOperationsImpl private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: AutomationAccountListByResourceGroupOptionalParams + options?: AutomationAccountListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -122,7 +128,7 @@ export class AutomationAccountOperationsImpl * @param options The options parameters. */ public list( - options?: AutomationAccountListOptionalParams + options?: AutomationAccountListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -137,13 +143,13 @@ export class AutomationAccountOperationsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: AutomationAccountListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AutomationAccountListResponse; let continuationToken = settings?.continuationToken; @@ -164,13 +170,97 @@ export class AutomationAccountOperationsImpl } private async *listPagingAll( - options?: AutomationAccountListOptionalParams + options?: AutomationAccountListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; } } + /** + * Retrieve the deleted runbooks for an automation account. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The options parameters. + */ + public listDeletedRunbooks( + resourceGroupName: string, + automationAccountName: string, + options?: AutomationAccountListDeletedRunbooksOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listDeletedRunbooksPagingAll( + resourceGroupName, + automationAccountName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listDeletedRunbooksPagingPage( + resourceGroupName, + automationAccountName, + options, + settings, + ); + }, + }; + } + + private async *listDeletedRunbooksPagingPage( + resourceGroupName: string, + automationAccountName: string, + options?: AutomationAccountListDeletedRunbooksOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: AutomationAccountListDeletedRunbooksResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listDeletedRunbooks( + resourceGroupName, + automationAccountName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listDeletedRunbooksNext( + resourceGroupName, + automationAccountName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listDeletedRunbooksPagingAll( + resourceGroupName: string, + automationAccountName: string, + options?: AutomationAccountListDeletedRunbooksOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listDeletedRunbooksPagingPage( + resourceGroupName, + automationAccountName, + options, + )) { + yield* page; + } + } + /** * Update an automation account. * @param resourceGroupName Name of an Azure Resource group. @@ -182,11 +272,11 @@ export class AutomationAccountOperationsImpl resourceGroupName: string, automationAccountName: string, parameters: AutomationAccountUpdateParameters, - options?: AutomationAccountUpdateOptionalParams + options?: AutomationAccountUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -201,11 +291,11 @@ export class AutomationAccountOperationsImpl resourceGroupName: string, automationAccountName: string, parameters: AutomationAccountCreateOrUpdateParameters, - options?: AutomationAccountCreateOrUpdateOptionalParams + options?: AutomationAccountCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -218,11 +308,11 @@ export class AutomationAccountOperationsImpl delete( resourceGroupName: string, automationAccountName: string, - options?: AutomationAccountDeleteOptionalParams + options?: AutomationAccountDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -235,11 +325,11 @@ export class AutomationAccountOperationsImpl get( resourceGroupName: string, automationAccountName: string, - options?: AutomationAccountGetOptionalParams + options?: AutomationAccountGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - getOperationSpec + getOperationSpec, ); } @@ -250,11 +340,11 @@ export class AutomationAccountOperationsImpl */ private _listByResourceGroup( resourceGroupName: string, - options?: AutomationAccountListByResourceGroupOptionalParams + options?: AutomationAccountListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -263,11 +353,28 @@ export class AutomationAccountOperationsImpl * @param options The options parameters. */ private _list( - options?: AutomationAccountListOptionalParams + options?: AutomationAccountListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } + /** + * Retrieve the deleted runbooks for an automation account. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The options parameters. + */ + private _listDeletedRunbooks( + resourceGroupName: string, + automationAccountName: string, + options?: AutomationAccountListDeletedRunbooksOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, automationAccountName, options }, + listDeletedRunbooksOperationSpec, + ); + } + /** * ListByResourceGroupNext * @param resourceGroupName Name of an Azure Resource group. @@ -277,11 +384,11 @@ export class AutomationAccountOperationsImpl private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: AutomationAccountListByResourceGroupNextOptionalParams + options?: AutomationAccountListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -292,11 +399,30 @@ export class AutomationAccountOperationsImpl */ private _listNext( nextLink: string, - options?: AutomationAccountListNextOptionalParams + options?: AutomationAccountListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, + ); + } + + /** + * ListDeletedRunbooksNext + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nextLink The nextLink from the previous successful call to the ListDeletedRunbooks method. + * @param options The options parameters. + */ + private _listDeletedRunbooksNext( + resourceGroupName: string, + automationAccountName: string, + nextLink: string, + options?: AutomationAccountListDeletedRunbooksNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, automationAccountName, nextLink, options }, + listDeletedRunbooksNextOperationSpec, ); } } @@ -304,173 +430,209 @@ export class AutomationAccountOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.AutomationAccount + bodyMapper: Mappers.AutomationAccount, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters9, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AutomationAccount + bodyMapper: Mappers.AutomationAccount, }, 201: { - bodyMapper: Mappers.AutomationAccount + bodyMapper: Mappers.AutomationAccount, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AutomationAccount + bodyMapper: Mappers.AutomationAccount, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AutomationAccountListResult + bodyMapper: Mappers.AutomationAccountListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.resourceGroupName ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AutomationAccountListResult + bodyMapper: Mappers.AutomationAccountListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const listDeletedRunbooksOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listDeletedRunbooks", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DeletedRunbookListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.automationAccountName1, + ], + headerParameters: [Parameters.accept], + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AutomationAccountListResult + bodyMapper: Mappers.AutomationAccountListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AutomationAccountListResult + bodyMapper: Mappers.AutomationAccountListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listDeletedRunbooksNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DeletedRunbookListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.automationAccountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/certificateOperations.ts b/sdk/automation/arm-automation/src/operations/certificateOperations.ts index 9b29deb63b1e..18ae0e99c5eb 100644 --- a/sdk/automation/arm-automation/src/operations/certificateOperations.ts +++ b/sdk/automation/arm-automation/src/operations/certificateOperations.ts @@ -27,7 +27,7 @@ import { CertificateUpdateParameters, CertificateUpdateOptionalParams, CertificateUpdateResponse, - CertificateListByAutomationAccountNextResponse + CertificateListByAutomationAccountNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class CertificateOperationsImpl implements CertificateOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: CertificateListByAutomationAccountOptionalParams + options?: CertificateListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, automationAccountName: string, options?: CertificateListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CertificateListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class CertificateOperationsImpl implements CertificateOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class CertificateOperationsImpl implements CertificateOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: CertificateListByAutomationAccountOptionalParams + options?: CertificateListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, automationAccountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, certificateName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -157,11 +157,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, automationAccountName: string, certificateName: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, certificateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -178,7 +178,7 @@ export class CertificateOperationsImpl implements CertificateOperations { automationAccountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOrUpdateOptionalParams + options?: CertificateCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -186,9 +186,9 @@ export class CertificateOperationsImpl implements CertificateOperations { automationAccountName, certificateName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -205,7 +205,7 @@ export class CertificateOperationsImpl implements CertificateOperations { automationAccountName: string, certificateName: string, parameters: CertificateUpdateParameters, - options?: CertificateUpdateOptionalParams + options?: CertificateUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -213,9 +213,9 @@ export class CertificateOperationsImpl implements CertificateOperations { automationAccountName, certificateName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -228,11 +228,11 @@ export class CertificateOperationsImpl implements CertificateOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: CertificateListByAutomationAccountOptionalParams + options?: CertificateListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -248,11 +248,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: CertificateListByAutomationAccountNextOptionalParams + options?: CertificateListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -260,142 +260,137 @@ export class CertificateOperationsImpl implements CertificateOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.certificateName + Parameters.subscriptionId, + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Certificate + bodyMapper: Mappers.Certificate, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.certificateName + Parameters.subscriptionId, + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Certificate + bodyMapper: Mappers.Certificate, }, 201: { - bodyMapper: Mappers.Certificate + bodyMapper: Mappers.Certificate, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.certificateName + Parameters.subscriptionId, + Parameters.certificateName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Certificate + bodyMapper: Mappers.Certificate, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.certificateName + Parameters.subscriptionId, + Parameters.certificateName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateListResult + bodyMapper: Mappers.CertificateListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateListResult + bodyMapper: Mappers.CertificateListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/connectionOperations.ts b/sdk/automation/arm-automation/src/operations/connectionOperations.ts index f6ef180cab1d..0cae15203d53 100644 --- a/sdk/automation/arm-automation/src/operations/connectionOperations.ts +++ b/sdk/automation/arm-automation/src/operations/connectionOperations.ts @@ -27,7 +27,7 @@ import { ConnectionUpdateParameters, ConnectionUpdateOptionalParams, ConnectionUpdateResponse, - ConnectionListByAutomationAccountNextResponse + ConnectionListByAutomationAccountNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class ConnectionOperationsImpl implements ConnectionOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ConnectionListByAutomationAccountOptionalParams + options?: ConnectionListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class ConnectionOperationsImpl implements ConnectionOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class ConnectionOperationsImpl implements ConnectionOperations { resourceGroupName: string, automationAccountName: string, options?: ConnectionListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConnectionListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class ConnectionOperationsImpl implements ConnectionOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class ConnectionOperationsImpl implements ConnectionOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class ConnectionOperationsImpl implements ConnectionOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: ConnectionListByAutomationAccountOptionalParams + options?: ConnectionListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ConnectionOperationsImpl implements ConnectionOperations { resourceGroupName: string, automationAccountName: string, connectionName: string, - options?: ConnectionDeleteOptionalParams + options?: ConnectionDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, connectionName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -157,11 +157,11 @@ export class ConnectionOperationsImpl implements ConnectionOperations { resourceGroupName: string, automationAccountName: string, connectionName: string, - options?: ConnectionGetOptionalParams + options?: ConnectionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, connectionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -178,7 +178,7 @@ export class ConnectionOperationsImpl implements ConnectionOperations { automationAccountName: string, connectionName: string, parameters: ConnectionCreateOrUpdateParameters, - options?: ConnectionCreateOrUpdateOptionalParams + options?: ConnectionCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -186,9 +186,9 @@ export class ConnectionOperationsImpl implements ConnectionOperations { automationAccountName, connectionName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -205,7 +205,7 @@ export class ConnectionOperationsImpl implements ConnectionOperations { automationAccountName: string, connectionName: string, parameters: ConnectionUpdateParameters, - options?: ConnectionUpdateOptionalParams + options?: ConnectionUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -213,9 +213,9 @@ export class ConnectionOperationsImpl implements ConnectionOperations { automationAccountName, connectionName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -228,11 +228,11 @@ export class ConnectionOperationsImpl implements ConnectionOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ConnectionListByAutomationAccountOptionalParams + options?: ConnectionListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -248,11 +248,11 @@ export class ConnectionOperationsImpl implements ConnectionOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: ConnectionListByAutomationAccountNextOptionalParams + options?: ConnectionListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -260,143 +260,138 @@ export class ConnectionOperationsImpl implements ConnectionOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.connectionName + Parameters.subscriptionId, + Parameters.connectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Connection + bodyMapper: Mappers.Connection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.connectionName + Parameters.subscriptionId, + Parameters.connectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Connection + bodyMapper: Mappers.Connection, }, 201: { - bodyMapper: Mappers.Connection + bodyMapper: Mappers.Connection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.connectionName + Parameters.subscriptionId, + Parameters.connectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Connection + bodyMapper: Mappers.Connection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.connectionName + Parameters.subscriptionId, + Parameters.connectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConnectionListResult + bodyMapper: Mappers.ConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConnectionListResult + bodyMapper: Mappers.ConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/connectionTypeOperations.ts b/sdk/automation/arm-automation/src/operations/connectionTypeOperations.ts index 268684b10ca1..44d51eb4c9a5 100644 --- a/sdk/automation/arm-automation/src/operations/connectionTypeOperations.ts +++ b/sdk/automation/arm-automation/src/operations/connectionTypeOperations.ts @@ -24,7 +24,7 @@ import { ConnectionTypeCreateOrUpdateParameters, ConnectionTypeCreateOrUpdateOptionalParams, ConnectionTypeCreateOrUpdateResponse, - ConnectionTypeListByAutomationAccountNextResponse + ConnectionTypeListByAutomationAccountNextResponse, } from "../models"; /// @@ -49,12 +49,12 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ConnectionTypeListByAutomationAccountOptionalParams + options?: ConnectionTypeListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { resourceGroupName: string, automationAccountName: string, options?: ConnectionTypeListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConnectionTypeListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -101,7 +101,7 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +113,12 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: ConnectionTypeListByAutomationAccountOptionalParams + options?: ConnectionTypeListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -135,11 +135,11 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { resourceGroupName: string, automationAccountName: string, connectionTypeName: string, - options?: ConnectionTypeDeleteOptionalParams + options?: ConnectionTypeDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, connectionTypeName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -154,11 +154,11 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { resourceGroupName: string, automationAccountName: string, connectionTypeName: string, - options?: ConnectionTypeGetOptionalParams + options?: ConnectionTypeGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, connectionTypeName, options }, - getOperationSpec + getOperationSpec, ); } @@ -175,7 +175,7 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { automationAccountName: string, connectionTypeName: string, parameters: ConnectionTypeCreateOrUpdateParameters, - options?: ConnectionTypeCreateOrUpdateOptionalParams + options?: ConnectionTypeCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -183,9 +183,9 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { automationAccountName, connectionTypeName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -198,11 +198,11 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ConnectionTypeListByAutomationAccountOptionalParams + options?: ConnectionTypeListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -218,11 +218,11 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: ConnectionTypeListByAutomationAccountNextOptionalParams + options?: ConnectionTypeListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -230,115 +230,111 @@ export class ConnectionTypeOperationsImpl implements ConnectionTypeOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.connectionTypeName + Parameters.subscriptionId, + Parameters.connectionTypeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConnectionType + bodyMapper: Mappers.ConnectionType, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.connectionTypeName + Parameters.subscriptionId, + Parameters.connectionTypeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.ConnectionType + bodyMapper: Mappers.ConnectionType, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.connectionTypeName + Parameters.subscriptionId, + Parameters.connectionTypeName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConnectionTypeListResult + bodyMapper: Mappers.ConnectionTypeListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConnectionTypeListResult + bodyMapper: Mappers.ConnectionTypeListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/credentialOperations.ts b/sdk/automation/arm-automation/src/operations/credentialOperations.ts index 7cc2fce5de09..7839d25529fa 100644 --- a/sdk/automation/arm-automation/src/operations/credentialOperations.ts +++ b/sdk/automation/arm-automation/src/operations/credentialOperations.ts @@ -27,7 +27,7 @@ import { CredentialUpdateParameters, CredentialUpdateOptionalParams, CredentialUpdateResponse, - CredentialListByAutomationAccountNextResponse + CredentialListByAutomationAccountNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class CredentialOperationsImpl implements CredentialOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: CredentialListByAutomationAccountOptionalParams + options?: CredentialListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class CredentialOperationsImpl implements CredentialOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class CredentialOperationsImpl implements CredentialOperations { resourceGroupName: string, automationAccountName: string, options?: CredentialListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CredentialListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class CredentialOperationsImpl implements CredentialOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class CredentialOperationsImpl implements CredentialOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class CredentialOperationsImpl implements CredentialOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: CredentialListByAutomationAccountOptionalParams + options?: CredentialListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class CredentialOperationsImpl implements CredentialOperations { resourceGroupName: string, automationAccountName: string, credentialName: string, - options?: CredentialDeleteOptionalParams + options?: CredentialDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, credentialName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -157,11 +157,11 @@ export class CredentialOperationsImpl implements CredentialOperations { resourceGroupName: string, automationAccountName: string, credentialName: string, - options?: CredentialGetOptionalParams + options?: CredentialGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, credentialName, options }, - getOperationSpec + getOperationSpec, ); } @@ -178,7 +178,7 @@ export class CredentialOperationsImpl implements CredentialOperations { automationAccountName: string, credentialName: string, parameters: CredentialCreateOrUpdateParameters, - options?: CredentialCreateOrUpdateOptionalParams + options?: CredentialCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -186,9 +186,9 @@ export class CredentialOperationsImpl implements CredentialOperations { automationAccountName, credentialName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -205,7 +205,7 @@ export class CredentialOperationsImpl implements CredentialOperations { automationAccountName: string, credentialName: string, parameters: CredentialUpdateParameters, - options?: CredentialUpdateOptionalParams + options?: CredentialUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -213,9 +213,9 @@ export class CredentialOperationsImpl implements CredentialOperations { automationAccountName, credentialName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -228,11 +228,11 @@ export class CredentialOperationsImpl implements CredentialOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: CredentialListByAutomationAccountOptionalParams + options?: CredentialListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -248,11 +248,11 @@ export class CredentialOperationsImpl implements CredentialOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: CredentialListByAutomationAccountNextOptionalParams + options?: CredentialListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -260,136 +260,131 @@ export class CredentialOperationsImpl implements CredentialOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.credentialName + Parameters.subscriptionId, + Parameters.credentialName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Credential + bodyMapper: Mappers.Credential, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.credentialName + Parameters.subscriptionId, + Parameters.credentialName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Credential + bodyMapper: Mappers.Credential, }, 201: { - bodyMapper: Mappers.Credential + bodyMapper: Mappers.Credential, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.credentialName + Parameters.subscriptionId, + Parameters.credentialName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Credential + bodyMapper: Mappers.Credential, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.credentialName + Parameters.subscriptionId, + Parameters.credentialName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CredentialListResult - } + bodyMapper: Mappers.CredentialListResult, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CredentialListResult - } + bodyMapper: Mappers.CredentialListResult, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/deletedAutomationAccounts.ts b/sdk/automation/arm-automation/src/operations/deletedAutomationAccounts.ts index 4da9a8dfbcd6..206720da3011 100644 --- a/sdk/automation/arm-automation/src/operations/deletedAutomationAccounts.ts +++ b/sdk/automation/arm-automation/src/operations/deletedAutomationAccounts.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { AutomationClient } from "../automationClient"; import { DeletedAutomationAccountsListBySubscriptionOptionalParams, - DeletedAutomationAccountsListBySubscriptionResponse + DeletedAutomationAccountsListBySubscriptionResponse, } from "../models"; /** Class containing DeletedAutomationAccounts operations. */ export class DeletedAutomationAccountsImpl - implements DeletedAutomationAccounts { + implements DeletedAutomationAccounts +{ private readonly client: AutomationClient; /** @@ -34,11 +35,11 @@ export class DeletedAutomationAccountsImpl * @param options The options parameters. */ listBySubscription( - options?: DeletedAutomationAccountsListBySubscriptionOptionalParams + options?: DeletedAutomationAccountsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } } @@ -46,19 +47,18 @@ export class DeletedAutomationAccountsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedAutomationAccountListResult + bodyMapper: Mappers.DeletedAutomationAccountListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/dscCompilationJobOperations.ts b/sdk/automation/arm-automation/src/operations/dscCompilationJobOperations.ts deleted file mode 100644 index ed2a9d1da488..000000000000 --- a/sdk/automation/arm-automation/src/operations/dscCompilationJobOperations.ts +++ /dev/null @@ -1,437 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DscCompilationJobOperations } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AutomationClient } from "../automationClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - DscCompilationJob, - DscCompilationJobListByAutomationAccountNextOptionalParams, - DscCompilationJobListByAutomationAccountOptionalParams, - DscCompilationJobListByAutomationAccountResponse, - DscCompilationJobCreateParameters, - DscCompilationJobCreateOptionalParams, - DscCompilationJobCreateResponse, - DscCompilationJobGetOptionalParams, - DscCompilationJobGetResponse, - DscCompilationJobGetStreamOptionalParams, - DscCompilationJobGetStreamResponse, - DscCompilationJobListByAutomationAccountNextResponse -} from "../models"; - -/// -/** Class containing DscCompilationJobOperations operations. */ -export class DscCompilationJobOperationsImpl - implements DscCompilationJobOperations { - private readonly client: AutomationClient; - - /** - * Initialize a new instance of the class DscCompilationJobOperations class. - * @param client Reference to the service client - */ - constructor(client: AutomationClient) { - this.client = client; - } - - /** - * Retrieve a list of dsc compilation jobs. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param options The options parameters. - */ - public listByAutomationAccount( - resourceGroupName: string, - automationAccountName: string, - options?: DscCompilationJobListByAutomationAccountOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByAutomationAccountPagingAll( - resourceGroupName, - automationAccountName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByAutomationAccountPagingPage( - resourceGroupName, - automationAccountName, - options, - settings - ); - } - }; - } - - private async *listByAutomationAccountPagingPage( - resourceGroupName: string, - automationAccountName: string, - options?: DscCompilationJobListByAutomationAccountOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: DscCompilationJobListByAutomationAccountResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByAutomationAccount( - resourceGroupName, - automationAccountName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByAutomationAccountNext( - resourceGroupName, - automationAccountName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByAutomationAccountPagingAll( - resourceGroupName: string, - automationAccountName: string, - options?: DscCompilationJobListByAutomationAccountOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByAutomationAccountPagingPage( - resourceGroupName, - automationAccountName, - options - )) { - yield* page; - } - } - - /** - * Creates the Dsc compilation job of the configuration. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param compilationJobName The DSC configuration Id. - * @param parameters The parameters supplied to the create compilation job operation. - * @param options The options parameters. - */ - async beginCreate( - resourceGroupName: string, - automationAccountName: string, - compilationJobName: string, - parameters: DscCompilationJobCreateParameters, - options?: DscCompilationJobCreateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DscCompilationJobCreateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { - resourceGroupName, - automationAccountName, - compilationJobName, - parameters, - options - }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Creates the Dsc compilation job of the configuration. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param compilationJobName The DSC configuration Id. - * @param parameters The parameters supplied to the create compilation job operation. - * @param options The options parameters. - */ - async beginCreateAndWait( - resourceGroupName: string, - automationAccountName: string, - compilationJobName: string, - parameters: DscCompilationJobCreateParameters, - options?: DscCompilationJobCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( - resourceGroupName, - automationAccountName, - compilationJobName, - parameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Retrieve the Dsc configuration compilation job identified by job id. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param compilationJobName The DSC configuration Id. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - automationAccountName: string, - compilationJobName: string, - options?: DscCompilationJobGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, automationAccountName, compilationJobName, options }, - getOperationSpec - ); - } - - /** - * Retrieve a list of dsc compilation jobs. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param options The options parameters. - */ - private _listByAutomationAccount( - resourceGroupName: string, - automationAccountName: string, - options?: DscCompilationJobListByAutomationAccountOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec - ); - } - - /** - * Retrieve the job stream identified by job stream id. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param jobId The job id. - * @param jobStreamId The job stream id. - * @param options The options parameters. - */ - getStream( - resourceGroupName: string, - automationAccountName: string, - jobId: string, - jobStreamId: string, - options?: DscCompilationJobGetStreamOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, automationAccountName, jobId, jobStreamId, options }, - getStreamOperationSpec - ); - } - - /** - * ListByAutomationAccountNext - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount - * method. - * @param options The options parameters. - */ - private _listByAutomationAccountNext( - resourceGroupName: string, - automationAccountName: string, - nextLink: string, - options?: DscCompilationJobListByAutomationAccountNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.DscCompilationJob - }, - 201: { - bodyMapper: Mappers.DscCompilationJob - }, - 202: { - bodyMapper: Mappers.DscCompilationJob - }, - 204: { - bodyMapper: Mappers.DscCompilationJob - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.automationAccountName, - Parameters.compilationJobName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DscCompilationJob - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.automationAccountName, - Parameters.compilationJobName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DscCompilationJobListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.automationAccountName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getStreamOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.JobStream - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.automationAccountName, - Parameters.jobId, - Parameters.jobStreamId - ], - headerParameters: [Parameters.accept], - serializer -}; -const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DscCompilationJobListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.automationAccountName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/automation/arm-automation/src/operations/dscCompilationJobStream.ts b/sdk/automation/arm-automation/src/operations/dscCompilationJobStream.ts deleted file mode 100644 index bb380f018112..000000000000 --- a/sdk/automation/arm-automation/src/operations/dscCompilationJobStream.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { DscCompilationJobStream } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AutomationClient } from "../automationClient"; -import { - DscCompilationJobStreamListByJobOptionalParams, - DscCompilationJobStreamListByJobResponse -} from "../models"; - -/** Class containing DscCompilationJobStream operations. */ -export class DscCompilationJobStreamImpl implements DscCompilationJobStream { - private readonly client: AutomationClient; - - /** - * Initialize a new instance of the class DscCompilationJobStream class. - * @param client Reference to the service client - */ - constructor(client: AutomationClient) { - this.client = client; - } - - /** - * Retrieve all the job streams for the compilation Job. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param jobId The job id. - * @param options The options parameters. - */ - listByJob( - resourceGroupName: string, - automationAccountName: string, - jobId: string, - options?: DscCompilationJobStreamListByJobOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, automationAccountName, jobId, options }, - listByJobOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByJobOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.JobStreamListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.automationAccountName, - Parameters.jobId - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/automation/arm-automation/src/operations/dscConfigurationOperations.ts b/sdk/automation/arm-automation/src/operations/dscConfigurationOperations.ts index 2b7147a69094..7ae0a7324033 100644 --- a/sdk/automation/arm-automation/src/operations/dscConfigurationOperations.ts +++ b/sdk/automation/arm-automation/src/operations/dscConfigurationOperations.ts @@ -30,13 +30,14 @@ import { DscConfigurationUpdateResponse, DscConfigurationGetContentOptionalParams, DscConfigurationGetContentResponse, - DscConfigurationListByAutomationAccountNextResponse + DscConfigurationListByAutomationAccountNextResponse, } from "../models"; /// /** Class containing DscConfigurationOperations operations. */ export class DscConfigurationOperationsImpl - implements DscConfigurationOperations { + implements DscConfigurationOperations +{ private readonly client: AutomationClient; /** @@ -56,12 +57,12 @@ export class DscConfigurationOperationsImpl public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: DscConfigurationListByAutomationAccountOptionalParams + options?: DscConfigurationListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class DscConfigurationOperationsImpl resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class DscConfigurationOperationsImpl resourceGroupName: string, automationAccountName: string, options?: DscConfigurationListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DscConfigurationListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class DscConfigurationOperationsImpl result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class DscConfigurationOperationsImpl resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class DscConfigurationOperationsImpl private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: DscConfigurationListByAutomationAccountOptionalParams + options?: DscConfigurationListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -142,11 +143,11 @@ export class DscConfigurationOperationsImpl resourceGroupName: string, automationAccountName: string, configurationName: string, - options?: DscConfigurationDeleteOptionalParams + options?: DscConfigurationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, configurationName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -161,11 +162,11 @@ export class DscConfigurationOperationsImpl resourceGroupName: string, automationAccountName: string, configurationName: string, - options?: DscConfigurationGetOptionalParams + options?: DscConfigurationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, configurationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -184,7 +185,7 @@ export class DscConfigurationOperationsImpl configurationName: string, contentType: "text/plain; charset=utf-8", parameters: string, - options?: DscConfigurationCreateOrUpdate$textOptionalParams + options?: DscConfigurationCreateOrUpdate$textOptionalParams, ): Promise; /** * Create the configuration identified by configuration name. @@ -201,7 +202,7 @@ export class DscConfigurationOperationsImpl configurationName: string, contentType: "application/json", parameters: DscConfigurationCreateOrUpdateParameters, - options?: DscConfigurationCreateOrUpdate$jsonOptionalParams + options?: DscConfigurationCreateOrUpdate$jsonOptionalParams, ): Promise; /** * Create the configuration identified by configuration name. @@ -215,7 +216,7 @@ export class DscConfigurationOperationsImpl string, "text/plain; charset=utf-8", string, - DscConfigurationCreateOrUpdate$textOptionalParams? + DscConfigurationCreateOrUpdate$textOptionalParams?, ] | [ string, @@ -223,7 +224,7 @@ export class DscConfigurationOperationsImpl string, "application/json", DscConfigurationCreateOrUpdateParameters, - DscConfigurationCreateOrUpdate$jsonOptionalParams? + DscConfigurationCreateOrUpdate$jsonOptionalParams?, ] ): Promise { let operationSpec: coreClient.OperationSpec; @@ -237,7 +238,7 @@ export class DscConfigurationOperationsImpl configurationName: args[2], contentType: args[3], parameters: args[4], - options: args[5] + options: args[5], }; options = args[5]; } else if (args[3] === "application/json") { @@ -248,12 +249,12 @@ export class DscConfigurationOperationsImpl configurationName: args[2], contentType: args[3], parameters: args[4], - options: args[5] + options: args[5], }; options = args[5]; } else { throw new TypeError( - `"contentType" must be a valid value but instead was "${args[3]}".` + `"contentType" must be a valid value but instead was "${args[3]}".`, ); } operationArguments.options = options || {}; @@ -273,7 +274,7 @@ export class DscConfigurationOperationsImpl automationAccountName: string, configurationName: string, contentType: "text/plain; charset=utf-8", - options?: DscConfigurationUpdate$textOptionalParams + options?: DscConfigurationUpdate$textOptionalParams, ): Promise; /** * Create the configuration identified by configuration name. @@ -288,7 +289,7 @@ export class DscConfigurationOperationsImpl automationAccountName: string, configurationName: string, contentType: "application/json", - options?: DscConfigurationUpdate$jsonOptionalParams + options?: DscConfigurationUpdate$jsonOptionalParams, ): Promise; /** * Create the configuration identified by configuration name. @@ -301,14 +302,14 @@ export class DscConfigurationOperationsImpl string, string, "text/plain; charset=utf-8", - DscConfigurationUpdate$textOptionalParams? + DscConfigurationUpdate$textOptionalParams?, ] | [ string, string, string, "application/json", - DscConfigurationUpdate$jsonOptionalParams? + DscConfigurationUpdate$jsonOptionalParams?, ] ): Promise { let operationSpec: coreClient.OperationSpec; @@ -321,7 +322,7 @@ export class DscConfigurationOperationsImpl automationAccountName: args[1], configurationName: args[2], contentType: args[3], - options: args[4] + options: args[4], }; options = args[4]; } else if (args[3] === "application/json") { @@ -331,12 +332,12 @@ export class DscConfigurationOperationsImpl automationAccountName: args[1], configurationName: args[2], contentType: args[3], - options: args[4] + options: args[4], }; options = args[4]; } else { throw new TypeError( - `"contentType" must be a valid value but instead was "${args[3]}".` + `"contentType" must be a valid value but instead was "${args[3]}".`, ); } operationArguments.options = options || {}; @@ -354,11 +355,11 @@ export class DscConfigurationOperationsImpl resourceGroupName: string, automationAccountName: string, configurationName: string, - options?: DscConfigurationGetContentOptionalParams + options?: DscConfigurationGetContentOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, configurationName, options }, - getContentOperationSpec + getContentOperationSpec, ); } @@ -371,11 +372,11 @@ export class DscConfigurationOperationsImpl private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: DscConfigurationListByAutomationAccountOptionalParams + options?: DscConfigurationListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -391,11 +392,11 @@ export class DscConfigurationOperationsImpl resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: DscConfigurationListByAutomationAccountNextOptionalParams + options?: DscConfigurationListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -403,231 +404,223 @@ export class DscConfigurationOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.configurationName + Parameters.subscriptionId, + Parameters.configurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscConfiguration + bodyMapper: Mappers.DscConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.configurationName + Parameters.subscriptionId, + Parameters.configurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdate$textOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DscConfiguration + bodyMapper: Mappers.DscConfiguration, }, 201: { - bodyMapper: Mappers.DscConfiguration + bodyMapper: Mappers.DscConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters27, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.configurationName + Parameters.subscriptionId, + Parameters.configurationName, ], headerParameters: [ Parameters.accept, Parameters.contentType1, - Parameters.accept1 + Parameters.accept1, ], mediaType: "text", - serializer + serializer, }; const createOrUpdate$jsonOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DscConfiguration + bodyMapper: Mappers.DscConfiguration, }, 201: { - bodyMapper: Mappers.DscConfiguration + bodyMapper: Mappers.DscConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters28, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.configurationName + Parameters.subscriptionId, + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType2], mediaType: "json", - serializer + serializer, }; const update$textOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DscConfiguration + bodyMapper: Mappers.DscConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters29, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.configurationName + Parameters.subscriptionId, + Parameters.configurationName, ], headerParameters: [ Parameters.accept, Parameters.contentType1, - Parameters.accept1 + Parameters.accept1, ], mediaType: "text", - serializer + serializer, }; const update$jsonOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DscConfiguration + bodyMapper: Mappers.DscConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.configurationName + Parameters.subscriptionId, + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType2], mediaType: "json", - serializer + serializer, }; const getContentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}/content", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}/content", httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "String" } } + bodyMapper: { type: { name: "Stream" } }, }, - default: {} + default: {}, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.configurationName + Parameters.subscriptionId, + Parameters.configurationName, ], headerParameters: [Parameters.accept2], - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscConfigurationListResult + bodyMapper: Mappers.DscConfigurationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.skip, Parameters.top, Parameters.inlinecount, - Parameters.apiVersion2 ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscConfigurationListResult + bodyMapper: Mappers.DscConfigurationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/dscNodeConfigurationOperations.ts b/sdk/automation/arm-automation/src/operations/dscNodeConfigurationOperations.ts index 7f9165ddc4a8..e21feb52d07e 100644 --- a/sdk/automation/arm-automation/src/operations/dscNodeConfigurationOperations.ts +++ b/sdk/automation/arm-automation/src/operations/dscNodeConfigurationOperations.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AutomationClient } from "../automationClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DscNodeConfiguration, DscNodeConfigurationListByAutomationAccountNextOptionalParams, @@ -25,13 +29,14 @@ import { DscNodeConfigurationGetResponse, DscNodeConfigurationCreateOrUpdateParameters, DscNodeConfigurationCreateOrUpdateOptionalParams, - DscNodeConfigurationListByAutomationAccountNextResponse + DscNodeConfigurationListByAutomationAccountNextResponse, } from "../models"; /// /** Class containing DscNodeConfigurationOperations operations. */ export class DscNodeConfigurationOperationsImpl - implements DscNodeConfigurationOperations { + implements DscNodeConfigurationOperations +{ private readonly client: AutomationClient; /** @@ -51,12 +56,12 @@ export class DscNodeConfigurationOperationsImpl public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: DscNodeConfigurationListByAutomationAccountOptionalParams + options?: DscNodeConfigurationListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -73,9 +78,9 @@ export class DscNodeConfigurationOperationsImpl resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +88,7 @@ export class DscNodeConfigurationOperationsImpl resourceGroupName: string, automationAccountName: string, options?: DscNodeConfigurationListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DscNodeConfigurationListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +96,7 @@ export class DscNodeConfigurationOperationsImpl result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -103,7 +108,7 @@ export class DscNodeConfigurationOperationsImpl resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,12 +120,12 @@ export class DscNodeConfigurationOperationsImpl private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: DscNodeConfigurationListByAutomationAccountOptionalParams + options?: DscNodeConfigurationListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -137,16 +142,16 @@ export class DscNodeConfigurationOperationsImpl resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, - options?: DscNodeConfigurationDeleteOptionalParams + options?: DscNodeConfigurationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nodeConfigurationName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -161,16 +166,16 @@ export class DscNodeConfigurationOperationsImpl resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, - options?: DscNodeConfigurationGetOptionalParams + options?: DscNodeConfigurationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nodeConfigurationName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -187,25 +192,24 @@ export class DscNodeConfigurationOperationsImpl automationAccountName: string, nodeConfigurationName: string, parameters: DscNodeConfigurationCreateOrUpdateParameters, - options?: DscNodeConfigurationCreateOrUpdateOptionalParams - ): Promise, void>> { + options?: DscNodeConfigurationCreateOrUpdateOptionalParams, + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -214,8 +218,8 @@ export class DscNodeConfigurationOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -223,25 +227,25 @@ export class DscNodeConfigurationOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, automationAccountName, nodeConfigurationName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -260,14 +264,14 @@ export class DscNodeConfigurationOperationsImpl automationAccountName: string, nodeConfigurationName: string, parameters: DscNodeConfigurationCreateOrUpdateParameters, - options?: DscNodeConfigurationCreateOrUpdateOptionalParams + options?: DscNodeConfigurationCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, automationAccountName, nodeConfigurationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -281,11 +285,11 @@ export class DscNodeConfigurationOperationsImpl private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: DscNodeConfigurationListByAutomationAccountOptionalParams + options?: DscNodeConfigurationListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -301,11 +305,11 @@ export class DscNodeConfigurationOperationsImpl resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: DscNodeConfigurationListByAutomationAccountNextOptionalParams + options?: DscNodeConfigurationListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -313,52 +317,49 @@ export class DscNodeConfigurationOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nodeConfigurationName + Parameters.subscriptionId, + Parameters.nodeConfigurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscNodeConfiguration + bodyMapper: Mappers.DscNodeConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nodeConfigurationName + Parameters.subscriptionId, + Parameters.nodeConfigurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}", httpMethod: "PUT", responses: { 200: {}, @@ -366,68 +367,67 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nodeConfigurationName + Parameters.subscriptionId, + Parameters.nodeConfigurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscNodeConfigurationListResult + bodyMapper: Mappers.DscNodeConfigurationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.skip, Parameters.top, - Parameters.inlinecount + Parameters.inlinecount, ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscNodeConfigurationListResult + bodyMapper: Mappers.DscNodeConfigurationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/dscNodeOperations.ts b/sdk/automation/arm-automation/src/operations/dscNodeOperations.ts index 41b672927ae6..1e40086dbdb9 100644 --- a/sdk/automation/arm-automation/src/operations/dscNodeOperations.ts +++ b/sdk/automation/arm-automation/src/operations/dscNodeOperations.ts @@ -24,7 +24,7 @@ import { DscNodeUpdateParameters, DscNodeUpdateOptionalParams, DscNodeUpdateResponse, - DscNodeListByAutomationAccountNextResponse + DscNodeListByAutomationAccountNextResponse, } from "../models"; /// @@ -49,12 +49,12 @@ export class DscNodeOperationsImpl implements DscNodeOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: DscNodeListByAutomationAccountOptionalParams + options?: DscNodeListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class DscNodeOperationsImpl implements DscNodeOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class DscNodeOperationsImpl implements DscNodeOperations { resourceGroupName: string, automationAccountName: string, options?: DscNodeListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DscNodeListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class DscNodeOperationsImpl implements DscNodeOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -101,7 +101,7 @@ export class DscNodeOperationsImpl implements DscNodeOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +113,12 @@ export class DscNodeOperationsImpl implements DscNodeOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: DscNodeListByAutomationAccountOptionalParams + options?: DscNodeListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -135,11 +135,11 @@ export class DscNodeOperationsImpl implements DscNodeOperations { resourceGroupName: string, automationAccountName: string, nodeId: string, - options?: DscNodeDeleteOptionalParams + options?: DscNodeDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nodeId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -154,11 +154,11 @@ export class DscNodeOperationsImpl implements DscNodeOperations { resourceGroupName: string, automationAccountName: string, nodeId: string, - options?: DscNodeGetOptionalParams + options?: DscNodeGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nodeId, options }, - getOperationSpec + getOperationSpec, ); } @@ -175,7 +175,7 @@ export class DscNodeOperationsImpl implements DscNodeOperations { automationAccountName: string, nodeId: string, dscNodeUpdateParameters: DscNodeUpdateParameters, - options?: DscNodeUpdateOptionalParams + options?: DscNodeUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -183,9 +183,9 @@ export class DscNodeOperationsImpl implements DscNodeOperations { automationAccountName, nodeId, dscNodeUpdateParameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -198,11 +198,11 @@ export class DscNodeOperationsImpl implements DscNodeOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: DscNodeListByAutomationAccountOptionalParams + options?: DscNodeListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -218,11 +218,11 @@ export class DscNodeOperationsImpl implements DscNodeOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: DscNodeListByAutomationAccountNextOptionalParams + options?: DscNodeListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -230,120 +230,116 @@ export class DscNodeOperationsImpl implements DscNodeOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nodeId + Parameters.subscriptionId, + Parameters.nodeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscNode + bodyMapper: Mappers.DscNode, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nodeId + Parameters.subscriptionId, + Parameters.nodeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DscNode + bodyMapper: Mappers.DscNode, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.dscNodeUpdateParameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nodeId + Parameters.subscriptionId, + Parameters.nodeId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscNodeListResult + bodyMapper: Mappers.DscNodeListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.skip, Parameters.top, - Parameters.inlinecount + Parameters.inlinecount, ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscNodeListResult + bodyMapper: Mappers.DscNodeListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/fields.ts b/sdk/automation/arm-automation/src/operations/fields.ts index 0cdb65497d0a..0be4dac3b369 100644 --- a/sdk/automation/arm-automation/src/operations/fields.ts +++ b/sdk/automation/arm-automation/src/operations/fields.ts @@ -15,7 +15,7 @@ import { AutomationClient } from "../automationClient"; import { TypeField, FieldsListByTypeOptionalParams, - FieldsListByTypeResponse + FieldsListByTypeResponse, } from "../models"; /// @@ -44,14 +44,14 @@ export class FieldsImpl implements Fields { automationAccountName: string, moduleName: string, typeName: string, - options?: FieldsListByTypeOptionalParams + options?: FieldsListByTypeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTypePagingAll( resourceGroupName, automationAccountName, moduleName, typeName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class FieldsImpl implements Fields { moduleName, typeName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class FieldsImpl implements Fields { moduleName: string, typeName: string, options?: FieldsListByTypeOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: FieldsListByTypeResponse; result = await this._listByType( @@ -90,7 +90,7 @@ export class FieldsImpl implements Fields { automationAccountName, moduleName, typeName, - options + options, ); yield result.value || []; } @@ -100,14 +100,14 @@ export class FieldsImpl implements Fields { automationAccountName: string, moduleName: string, typeName: string, - options?: FieldsListByTypeOptionalParams + options?: FieldsListByTypeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTypePagingPage( resourceGroupName, automationAccountName, moduleName, typeName, - options + options, )) { yield* page; } @@ -126,7 +126,7 @@ export class FieldsImpl implements Fields { automationAccountName: string, moduleName: string, typeName: string, - options?: FieldsListByTypeOptionalParams + options?: FieldsListByTypeOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -134,9 +134,9 @@ export class FieldsImpl implements Fields { automationAccountName, moduleName, typeName, - options + options, }, - listByTypeOperationSpec + listByTypeOperationSpec, ); } } @@ -144,26 +144,25 @@ export class FieldsImpl implements Fields { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByTypeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/types/{typeName}/fields", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/types/{typeName}/fields", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TypeFieldListResult + bodyMapper: Mappers.TypeFieldListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.moduleName, - Parameters.typeName + Parameters.typeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/hybridRunbookWorkerGroupOperations.ts b/sdk/automation/arm-automation/src/operations/hybridRunbookWorkerGroupOperations.ts index a6056ee48e92..27eab83e33d8 100644 --- a/sdk/automation/arm-automation/src/operations/hybridRunbookWorkerGroupOperations.ts +++ b/sdk/automation/arm-automation/src/operations/hybridRunbookWorkerGroupOperations.ts @@ -26,13 +26,14 @@ import { HybridRunbookWorkerGroupCreateResponse, HybridRunbookWorkerGroupUpdateOptionalParams, HybridRunbookWorkerGroupUpdateResponse, - HybridRunbookWorkerGroupListByAutomationAccountNextResponse + HybridRunbookWorkerGroupListByAutomationAccountNextResponse, } from "../models"; /// /** Class containing HybridRunbookWorkerGroupOperations operations. */ export class HybridRunbookWorkerGroupOperationsImpl - implements HybridRunbookWorkerGroupOperations { + implements HybridRunbookWorkerGroupOperations +{ private readonly client: AutomationClient; /** @@ -52,12 +53,12 @@ export class HybridRunbookWorkerGroupOperationsImpl public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: HybridRunbookWorkerGroupListByAutomationAccountOptionalParams + options?: HybridRunbookWorkerGroupListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -74,9 +75,9 @@ export class HybridRunbookWorkerGroupOperationsImpl resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +85,7 @@ export class HybridRunbookWorkerGroupOperationsImpl resourceGroupName: string, automationAccountName: string, options?: HybridRunbookWorkerGroupListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: HybridRunbookWorkerGroupListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +93,7 @@ export class HybridRunbookWorkerGroupOperationsImpl result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +105,7 @@ export class HybridRunbookWorkerGroupOperationsImpl resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +117,12 @@ export class HybridRunbookWorkerGroupOperationsImpl private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: HybridRunbookWorkerGroupListByAutomationAccountOptionalParams + options?: HybridRunbookWorkerGroupListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -138,16 +139,16 @@ export class HybridRunbookWorkerGroupOperationsImpl resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, - options?: HybridRunbookWorkerGroupDeleteOptionalParams + options?: HybridRunbookWorkerGroupDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -162,16 +163,16 @@ export class HybridRunbookWorkerGroupOperationsImpl resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, - options?: HybridRunbookWorkerGroupGetOptionalParams + options?: HybridRunbookWorkerGroupGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -189,7 +190,7 @@ export class HybridRunbookWorkerGroupOperationsImpl automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerGroupCreationParameters: HybridRunbookWorkerGroupCreateOrUpdateParameters, - options?: HybridRunbookWorkerGroupCreateOptionalParams + options?: HybridRunbookWorkerGroupCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -197,9 +198,9 @@ export class HybridRunbookWorkerGroupOperationsImpl automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerGroupCreationParameters, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -216,7 +217,7 @@ export class HybridRunbookWorkerGroupOperationsImpl automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerGroupUpdationParameters: HybridRunbookWorkerGroupCreateOrUpdateParameters, - options?: HybridRunbookWorkerGroupUpdateOptionalParams + options?: HybridRunbookWorkerGroupUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -224,9 +225,9 @@ export class HybridRunbookWorkerGroupOperationsImpl automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerGroupUpdationParameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -239,11 +240,11 @@ export class HybridRunbookWorkerGroupOperationsImpl private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: HybridRunbookWorkerGroupListByAutomationAccountOptionalParams + options?: HybridRunbookWorkerGroupListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -259,11 +260,11 @@ export class HybridRunbookWorkerGroupOperationsImpl resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: HybridRunbookWorkerGroupListByAutomationAccountNextOptionalParams + options?: HybridRunbookWorkerGroupListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -271,139 +272,137 @@ export class HybridRunbookWorkerGroupOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.hybridRunbookWorkerGroupName + Parameters.subscriptionId, + Parameters.hybridRunbookWorkerGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.HybridRunbookWorkerGroup + bodyMapper: Mappers.HybridRunbookWorkerGroup, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.hybridRunbookWorkerGroupName + Parameters.subscriptionId, + Parameters.hybridRunbookWorkerGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.HybridRunbookWorkerGroup + bodyMapper: Mappers.HybridRunbookWorkerGroup, + }, + 201: { + bodyMapper: Mappers.HybridRunbookWorkerGroup, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.hybridRunbookWorkerGroupCreationParameters, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.hybridRunbookWorkerGroupName + Parameters.subscriptionId, + Parameters.hybridRunbookWorkerGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.HybridRunbookWorkerGroup + bodyMapper: Mappers.HybridRunbookWorkerGroup, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.hybridRunbookWorkerGroupUpdationParameters, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.hybridRunbookWorkerGroupName + Parameters.subscriptionId, + Parameters.hybridRunbookWorkerGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.HybridRunbookWorkerGroupsListResult + bodyMapper: Mappers.HybridRunbookWorkerGroupsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.HybridRunbookWorkerGroupsListResult + bodyMapper: Mappers.HybridRunbookWorkerGroupsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/hybridRunbookWorkers.ts b/sdk/automation/arm-automation/src/operations/hybridRunbookWorkers.ts index 194528afe681..aab077ebdb95 100644 --- a/sdk/automation/arm-automation/src/operations/hybridRunbookWorkers.ts +++ b/sdk/automation/arm-automation/src/operations/hybridRunbookWorkers.ts @@ -24,9 +24,11 @@ import { HybridRunbookWorkerCreateParameters, HybridRunbookWorkersCreateOptionalParams, HybridRunbookWorkersCreateResponse, + HybridRunbookWorkersPatchOptionalParams, + HybridRunbookWorkersPatchResponse, HybridRunbookWorkerMoveParameters, HybridRunbookWorkersMoveOptionalParams, - HybridRunbookWorkersListByHybridRunbookWorkerGroupNextResponse + HybridRunbookWorkersListByHybridRunbookWorkerGroupNextResponse, } from "../models"; /// @@ -53,13 +55,13 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, - options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams + options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByHybridRunbookWorkerGroupPagingAll( resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, - options + options, ); return { next() { @@ -77,9 +79,9 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { automationAccountName, hybridRunbookWorkerGroupName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +90,7 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { automationAccountName: string, hybridRunbookWorkerGroupName: string, options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: HybridRunbookWorkersListByHybridRunbookWorkerGroupResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +99,7 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +112,7 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { automationAccountName, hybridRunbookWorkerGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,13 +125,13 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, - options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams + options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByHybridRunbookWorkerGroupPagingPage( resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, - options + options, )) { yield* page; } @@ -148,7 +150,7 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, - options?: HybridRunbookWorkersDeleteOptionalParams + options?: HybridRunbookWorkersDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -156,9 +158,9 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -175,7 +177,7 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, - options?: HybridRunbookWorkersGetOptionalParams + options?: HybridRunbookWorkersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -183,9 +185,9 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -205,7 +207,7 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, hybridRunbookWorkerCreationParameters: HybridRunbookWorkerCreateParameters, - options?: HybridRunbookWorkersCreateOptionalParams + options?: HybridRunbookWorkersCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -214,9 +216,36 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters, - options + options, }, - createOperationSpec + createOperationSpec, + ); + } + + /** + * Update a hybrid runbook worker. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param hybridRunbookWorkerId The hybrid runbook worker id + * @param options The options parameters. + */ + patch( + resourceGroupName: string, + automationAccountName: string, + hybridRunbookWorkerGroupName: string, + hybridRunbookWorkerId: string, + options?: HybridRunbookWorkersPatchOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + hybridRunbookWorkerGroupName, + hybridRunbookWorkerId, + options, + }, + patchOperationSpec, ); } @@ -235,7 +264,7 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, hybridRunbookWorkerMoveParameters: HybridRunbookWorkerMoveParameters, - options?: HybridRunbookWorkersMoveOptionalParams + options?: HybridRunbookWorkersMoveOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -244,9 +273,9 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerMoveParameters, - options + options, }, - moveOperationSpec + moveOperationSpec, ); } @@ -261,16 +290,16 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, - options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams + options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, - options + options, }, - listByHybridRunbookWorkerGroupOperationSpec + listByHybridRunbookWorkerGroupOperationSpec, ); } @@ -288,7 +317,7 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { automationAccountName: string, hybridRunbookWorkerGroupName: string, nextLink: string, - options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupNextOptionalParams + options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -296,9 +325,9 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { automationAccountName, hybridRunbookWorkerGroupName, nextLink, - options + options, }, - listByHybridRunbookWorkerGroupNextOperationSpec + listByHybridRunbookWorkerGroupNextOperationSpec, ); } } @@ -306,144 +335,168 @@ export class HybridRunbookWorkersImpl implements HybridRunbookWorkers { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.hybridRunbookWorkerGroupName, - Parameters.hybridRunbookWorkerId + Parameters.hybridRunbookWorkerId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.HybridRunbookWorker + bodyMapper: Mappers.HybridRunbookWorker, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.hybridRunbookWorkerGroupName, - Parameters.hybridRunbookWorkerId + Parameters.hybridRunbookWorkerId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.HybridRunbookWorker + bodyMapper: Mappers.HybridRunbookWorker, + }, + 201: { + bodyMapper: Mappers.HybridRunbookWorker, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.hybridRunbookWorkerCreationParameters, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.hybridRunbookWorkerGroupName, - Parameters.hybridRunbookWorkerId + Parameters.hybridRunbookWorkerId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; -const moveOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}/move", - httpMethod: "POST", +const patchOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}", + httpMethod: "PATCH", responses: { - 200: {}, + 200: { + bodyMapper: Mappers.HybridRunbookWorker, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.hybridRunbookWorkerMoveParameters, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.hybridRunbookWorkerCreationParameters1, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.hybridRunbookWorkerGroupName, - Parameters.hybridRunbookWorkerId + Parameters.hybridRunbookWorkerId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; -const listByHybridRunbookWorkerGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers", - httpMethod: "GET", +const moveOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}/move", + httpMethod: "POST", responses: { - 200: { - bodyMapper: Mappers.HybridRunbookWorkersListResult - }, + 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion1], + requestBody: Parameters.hybridRunbookWorkerMoveParameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.hybridRunbookWorkerGroupName + Parameters.subscriptionId, + Parameters.hybridRunbookWorkerGroupName, + Parameters.hybridRunbookWorkerId, ], - headerParameters: [Parameters.accept], - serializer + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; -const listByHybridRunbookWorkerGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", +const listByHybridRunbookWorkerGroupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.HybridRunbookWorkersListResult + bodyMapper: Mappers.HybridRunbookWorkersListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink, - Parameters.hybridRunbookWorkerGroupName + Parameters.subscriptionId, + Parameters.hybridRunbookWorkerGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const listByHybridRunbookWorkerGroupNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.HybridRunbookWorkersListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.hybridRunbookWorkerGroupName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/automation/arm-automation/src/operations/index.ts b/sdk/automation/arm-automation/src/operations/index.ts index e21e65d7c700..7e36eaaeb776 100644 --- a/sdk/automation/arm-automation/src/operations/index.ts +++ b/sdk/automation/arm-automation/src/operations/index.ts @@ -6,19 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./privateEndpointConnections"; +export * from "./nodeCountInformation"; +export * from "./softwareUpdateConfigurations"; +export * from "./deletedAutomationAccounts"; export * from "./privateLinkResources"; -export * from "./python2Package"; export * from "./agentRegistrationInformation"; export * from "./dscNodeOperations"; export * from "./nodeReports"; -export * from "./dscNodeConfigurationOperations"; -export * from "./dscCompilationJobOperations"; -export * from "./dscCompilationJobStream"; -export * from "./nodeCountInformation"; -export * from "./sourceControlOperations"; -export * from "./sourceControlSyncJobOperations"; -export * from "./sourceControlSyncJobStreams"; export * from "./automationAccountOperations"; export * from "./statisticsOperations"; export * from "./usages"; @@ -27,27 +21,34 @@ export * from "./certificateOperations"; export * from "./connectionOperations"; export * from "./connectionTypeOperations"; export * from "./credentialOperations"; +export * from "./dscConfigurationOperations"; +export * from "./dscNodeConfigurationOperations"; +export * from "./hybridRunbookWorkers"; +export * from "./hybridRunbookWorkerGroupOperations"; +export * from "./jobOperations"; +export * from "./jobStreamOperations"; export * from "./jobScheduleOperations"; export * from "./linkedWorkspaceOperations"; export * from "./activityOperations"; export * from "./moduleOperations"; export * from "./objectDataTypes"; export * from "./fields"; -export * from "./scheduleOperations"; -export * from "./variableOperations"; -export * from "./watcherOperations"; -export * from "./dscConfigurationOperations"; -export * from "./jobOperations"; -export * from "./jobStreamOperations"; export * from "./operations"; -export * from "./softwareUpdateConfigurations"; -export * from "./softwareUpdateConfigurationRuns"; -export * from "./softwareUpdateConfigurationMachineRuns"; +export * from "./packageOperations"; +export * from "./privateEndpointConnections"; +export * from "./python2Package"; +export * from "./python3Package"; export * from "./runbookDraftOperations"; export * from "./runbookOperations"; export * from "./testJobStreams"; export * from "./testJobOperations"; +export * from "./runtimeEnvironments"; +export * from "./scheduleOperations"; +export * from "./softwareUpdateConfigurationMachineRuns"; +export * from "./softwareUpdateConfigurationRuns"; +export * from "./sourceControlOperations"; +export * from "./sourceControlSyncJobOperations"; +export * from "./sourceControlSyncJobStreams"; +export * from "./variableOperations"; +export * from "./watcherOperations"; export * from "./webhookOperations"; -export * from "./hybridRunbookWorkers"; -export * from "./deletedAutomationAccounts"; -export * from "./hybridRunbookWorkerGroupOperations"; diff --git a/sdk/automation/arm-automation/src/operations/jobOperations.ts b/sdk/automation/arm-automation/src/operations/jobOperations.ts index 0ba95fd40634..3055585002df 100644 --- a/sdk/automation/arm-automation/src/operations/jobOperations.ts +++ b/sdk/automation/arm-automation/src/operations/jobOperations.ts @@ -30,7 +30,7 @@ import { JobCreateOptionalParams, JobCreateResponse, JobResumeOptionalParams, - JobListByAutomationAccountNextResponse + JobListByAutomationAccountNextResponse, } from "../models"; /// @@ -55,12 +55,12 @@ export class JobOperationsImpl implements JobOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: JobListByAutomationAccountOptionalParams + options?: JobListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class JobOperationsImpl implements JobOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class JobOperationsImpl implements JobOperations { resourceGroupName: string, automationAccountName: string, options?: JobListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: JobListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class JobOperationsImpl implements JobOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class JobOperationsImpl implements JobOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,12 +119,12 @@ export class JobOperationsImpl implements JobOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: JobListByAutomationAccountOptionalParams + options?: JobListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class JobOperationsImpl implements JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobGetOutputOptionalParams + options?: JobGetOutputOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, jobName, options }, - getOutputOperationSpec + getOutputOperationSpec, ); } @@ -160,11 +160,11 @@ export class JobOperationsImpl implements JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobGetRunbookContentOptionalParams + options?: JobGetRunbookContentOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, jobName, options }, - getRunbookContentOperationSpec + getRunbookContentOperationSpec, ); } @@ -179,11 +179,11 @@ export class JobOperationsImpl implements JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobSuspendOptionalParams + options?: JobSuspendOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, jobName, options }, - suspendOperationSpec + suspendOperationSpec, ); } @@ -198,11 +198,11 @@ export class JobOperationsImpl implements JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobStopOptionalParams + options?: JobStopOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, jobName, options }, - stopOperationSpec + stopOperationSpec, ); } @@ -217,11 +217,11 @@ export class JobOperationsImpl implements JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobGetOptionalParams + options?: JobGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, jobName, options }, - getOperationSpec + getOperationSpec, ); } @@ -238,7 +238,7 @@ export class JobOperationsImpl implements JobOperations { automationAccountName: string, jobName: string, parameters: JobCreateParameters, - options?: JobCreateOptionalParams + options?: JobCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -246,9 +246,9 @@ export class JobOperationsImpl implements JobOperations { automationAccountName, jobName, parameters, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -261,11 +261,11 @@ export class JobOperationsImpl implements JobOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: JobListByAutomationAccountOptionalParams + options?: JobListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -280,11 +280,11 @@ export class JobOperationsImpl implements JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobResumeOptionalParams + options?: JobResumeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, jobName, options }, - resumeOperationSpec + resumeOperationSpec, ); } @@ -300,11 +300,11 @@ export class JobOperationsImpl implements JobOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: JobListByAutomationAccountNextOptionalParams + options?: JobListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -312,202 +312,194 @@ export class JobOperationsImpl implements JobOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOutputOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/output", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/output", httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "String" } } + bodyMapper: { type: { name: "String" } }, }, - default: {} + default: {}, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobName + Parameters.subscriptionId, + Parameters.jobName, ], - headerParameters: [Parameters.accept3, Parameters.clientRequestId], - serializer + headerParameters: [Parameters.clientRequestId, Parameters.accept3], + serializer, }; const getRunbookContentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/runbookContent", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/runbookContent", httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "String" } } + bodyMapper: { type: { name: "String" } }, }, - default: {} + default: {}, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobName + Parameters.subscriptionId, + Parameters.jobName, ], - headerParameters: [Parameters.accept2, Parameters.clientRequestId], - serializer + headerParameters: [Parameters.clientRequestId, Parameters.accept2], + serializer, }; const suspendOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/suspend", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/suspend", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobName + Parameters.subscriptionId, + Parameters.jobName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/stop", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/stop", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobName + Parameters.subscriptionId, + Parameters.jobName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Job + bodyMapper: Mappers.Job, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobName + Parameters.subscriptionId, + Parameters.jobName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.Job + bodyMapper: Mappers.Job, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters31, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobName + Parameters.subscriptionId, + Parameters.jobName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.clientRequestId + Parameters.clientRequestId, ], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobListResultV2 + bodyMapper: Mappers.JobListResultV2, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const resumeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/resume", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/resume", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobName + Parameters.subscriptionId, + Parameters.jobName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobListResultV2 + bodyMapper: Mappers.JobListResultV2, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/jobScheduleOperations.ts b/sdk/automation/arm-automation/src/operations/jobScheduleOperations.ts index 3d6e54affa52..e212806d38b4 100644 --- a/sdk/automation/arm-automation/src/operations/jobScheduleOperations.ts +++ b/sdk/automation/arm-automation/src/operations/jobScheduleOperations.ts @@ -24,7 +24,7 @@ import { JobScheduleCreateParameters, JobScheduleCreateOptionalParams, JobScheduleCreateResponse, - JobScheduleListByAutomationAccountNextResponse + JobScheduleListByAutomationAccountNextResponse, } from "../models"; /// @@ -49,12 +49,12 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: JobScheduleListByAutomationAccountOptionalParams + options?: JobScheduleListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { resourceGroupName: string, automationAccountName: string, options?: JobScheduleListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: JobScheduleListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -101,7 +101,7 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +113,12 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: JobScheduleListByAutomationAccountOptionalParams + options?: JobScheduleListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -135,11 +135,11 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { resourceGroupName: string, automationAccountName: string, jobScheduleId: string, - options?: JobScheduleDeleteOptionalParams + options?: JobScheduleDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, jobScheduleId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -154,11 +154,11 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { resourceGroupName: string, automationAccountName: string, jobScheduleId: string, - options?: JobScheduleGetOptionalParams + options?: JobScheduleGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, jobScheduleId, options }, - getOperationSpec + getOperationSpec, ); } @@ -175,7 +175,7 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { automationAccountName: string, jobScheduleId: string, parameters: JobScheduleCreateParameters, - options?: JobScheduleCreateOptionalParams + options?: JobScheduleCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -183,9 +183,9 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { automationAccountName, jobScheduleId, parameters, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -198,11 +198,11 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: JobScheduleListByAutomationAccountOptionalParams + options?: JobScheduleListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -218,11 +218,11 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: JobScheduleListByAutomationAccountNextOptionalParams + options?: JobScheduleListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -230,114 +230,110 @@ export class JobScheduleOperationsImpl implements JobScheduleOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobScheduleId + Parameters.subscriptionId, + Parameters.jobScheduleId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobSchedule + bodyMapper: Mappers.JobSchedule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobScheduleId + Parameters.subscriptionId, + Parameters.jobScheduleId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.JobSchedule + bodyMapper: Mappers.JobSchedule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobScheduleId + Parameters.subscriptionId, + Parameters.jobScheduleId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobScheduleListResult + bodyMapper: Mappers.JobScheduleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobScheduleListResult + bodyMapper: Mappers.JobScheduleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/jobStreamOperations.ts b/sdk/automation/arm-automation/src/operations/jobStreamOperations.ts index a197bac837b8..24de4e9ff10e 100644 --- a/sdk/automation/arm-automation/src/operations/jobStreamOperations.ts +++ b/sdk/automation/arm-automation/src/operations/jobStreamOperations.ts @@ -20,7 +20,7 @@ import { JobStreamListByJobResponse, JobStreamGetOptionalParams, JobStreamGetResponse, - JobStreamListByJobNextResponse + JobStreamListByJobNextResponse, } from "../models"; /// @@ -47,13 +47,13 @@ export class JobStreamOperationsImpl implements JobStreamOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobStreamListByJobOptionalParams + options?: JobStreamListByJobOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByJobPagingAll( resourceGroupName, automationAccountName, jobName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class JobStreamOperationsImpl implements JobStreamOperations { automationAccountName, jobName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class JobStreamOperationsImpl implements JobStreamOperations { automationAccountName: string, jobName: string, options?: JobStreamListByJobOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: JobStreamListByJobResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class JobStreamOperationsImpl implements JobStreamOperations { resourceGroupName, automationAccountName, jobName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class JobStreamOperationsImpl implements JobStreamOperations { automationAccountName, jobName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,13 +117,13 @@ export class JobStreamOperationsImpl implements JobStreamOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobStreamListByJobOptionalParams + options?: JobStreamListByJobOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByJobPagingPage( resourceGroupName, automationAccountName, jobName, - options + options, )) { yield* page; } @@ -142,7 +142,7 @@ export class JobStreamOperationsImpl implements JobStreamOperations { automationAccountName: string, jobName: string, jobStreamId: string, - options?: JobStreamGetOptionalParams + options?: JobStreamGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -150,9 +150,9 @@ export class JobStreamOperationsImpl implements JobStreamOperations { automationAccountName, jobName, jobStreamId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -167,11 +167,11 @@ export class JobStreamOperationsImpl implements JobStreamOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobStreamListByJobOptionalParams + options?: JobStreamListByJobOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, jobName, options }, - listByJobOperationSpec + listByJobOperationSpec, ); } @@ -188,11 +188,11 @@ export class JobStreamOperationsImpl implements JobStreamOperations { automationAccountName: string, jobName: string, nextLink: string, - options?: JobStreamListByJobNextOptionalParams + options?: JobStreamListByJobNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, jobName, nextLink, options }, - listByJobNextOperationSpec + listByJobNextOperationSpec, ); } } @@ -200,71 +200,69 @@ export class JobStreamOperationsImpl implements JobStreamOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/streams/{jobStreamId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/streams/{jobStreamId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobStream + bodyMapper: Mappers.JobStream, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.jobName, Parameters.jobStreamId, - Parameters.jobName ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByJobOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/streams", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/streams", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobStreamListResult + bodyMapper: Mappers.JobStreamListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.jobName + Parameters.subscriptionId, + Parameters.jobName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listByJobNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobStreamListResult + bodyMapper: Mappers.JobStreamListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.jobName + Parameters.jobName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/keys.ts b/sdk/automation/arm-automation/src/operations/keys.ts index 5accae27f965..57f5012dd89e 100644 --- a/sdk/automation/arm-automation/src/operations/keys.ts +++ b/sdk/automation/arm-automation/src/operations/keys.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { AutomationClient } from "../automationClient"; import { KeysListByAutomationAccountOptionalParams, - KeysListByAutomationAccountResponse + KeysListByAutomationAccountResponse, } from "../models"; /** Class containing Keys operations. */ @@ -37,11 +37,11 @@ export class KeysImpl implements Keys { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: KeysListByAutomationAccountOptionalParams + options?: KeysListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } } @@ -49,24 +49,23 @@ export class KeysImpl implements Keys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.KeyListResult + bodyMapper: Mappers.KeyListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/linkedWorkspaceOperations.ts b/sdk/automation/arm-automation/src/operations/linkedWorkspaceOperations.ts index 7c2ac66f4779..680a9e40eab8 100644 --- a/sdk/automation/arm-automation/src/operations/linkedWorkspaceOperations.ts +++ b/sdk/automation/arm-automation/src/operations/linkedWorkspaceOperations.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { AutomationClient } from "../automationClient"; import { LinkedWorkspaceGetOptionalParams, - LinkedWorkspaceGetResponse + LinkedWorkspaceGetResponse, } from "../models"; /** Class containing LinkedWorkspaceOperations operations. */ export class LinkedWorkspaceOperationsImpl - implements LinkedWorkspaceOperations { + implements LinkedWorkspaceOperations +{ private readonly client: AutomationClient; /** @@ -38,11 +39,11 @@ export class LinkedWorkspaceOperationsImpl get( resourceGroupName: string, automationAccountName: string, - options?: LinkedWorkspaceGetOptionalParams + options?: LinkedWorkspaceGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -50,24 +51,23 @@ export class LinkedWorkspaceOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/linkedWorkspace", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/linkedWorkspace", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LinkedWorkspace + bodyMapper: Mappers.LinkedWorkspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/moduleOperations.ts b/sdk/automation/arm-automation/src/operations/moduleOperations.ts index 498b9fc66618..8de534ef71f5 100644 --- a/sdk/automation/arm-automation/src/operations/moduleOperations.ts +++ b/sdk/automation/arm-automation/src/operations/moduleOperations.ts @@ -27,7 +27,7 @@ import { ModuleUpdateParameters, ModuleUpdateOptionalParams, ModuleUpdateResponse, - ModuleListByAutomationAccountNextResponse + ModuleListByAutomationAccountNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class ModuleOperationsImpl implements ModuleOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ModuleListByAutomationAccountOptionalParams + options?: ModuleListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class ModuleOperationsImpl implements ModuleOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class ModuleOperationsImpl implements ModuleOperations { resourceGroupName: string, automationAccountName: string, options?: ModuleListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ModuleListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class ModuleOperationsImpl implements ModuleOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class ModuleOperationsImpl implements ModuleOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class ModuleOperationsImpl implements ModuleOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: ModuleListByAutomationAccountOptionalParams + options?: ModuleListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ModuleOperationsImpl implements ModuleOperations { resourceGroupName: string, automationAccountName: string, moduleName: string, - options?: ModuleDeleteOptionalParams + options?: ModuleDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, moduleName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -157,11 +157,11 @@ export class ModuleOperationsImpl implements ModuleOperations { resourceGroupName: string, automationAccountName: string, moduleName: string, - options?: ModuleGetOptionalParams + options?: ModuleGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, moduleName, options }, - getOperationSpec + getOperationSpec, ); } @@ -178,7 +178,7 @@ export class ModuleOperationsImpl implements ModuleOperations { automationAccountName: string, moduleName: string, parameters: ModuleCreateOrUpdateParameters, - options?: ModuleCreateOrUpdateOptionalParams + options?: ModuleCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -186,9 +186,9 @@ export class ModuleOperationsImpl implements ModuleOperations { automationAccountName, moduleName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -205,7 +205,7 @@ export class ModuleOperationsImpl implements ModuleOperations { automationAccountName: string, moduleName: string, parameters: ModuleUpdateParameters, - options?: ModuleUpdateOptionalParams + options?: ModuleUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -213,9 +213,9 @@ export class ModuleOperationsImpl implements ModuleOperations { automationAccountName, moduleName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -228,11 +228,11 @@ export class ModuleOperationsImpl implements ModuleOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ModuleListByAutomationAccountOptionalParams + options?: ModuleListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -248,11 +248,11 @@ export class ModuleOperationsImpl implements ModuleOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: ModuleListByAutomationAccountNextOptionalParams + options?: ModuleListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -260,142 +260,137 @@ export class ModuleOperationsImpl implements ModuleOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.moduleName + Parameters.subscriptionId, + Parameters.moduleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Module + bodyMapper: Mappers.Module, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.moduleName + Parameters.subscriptionId, + Parameters.moduleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Module + bodyMapper: Mappers.Module, }, 201: { - bodyMapper: Mappers.Module + bodyMapper: Mappers.Module, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.moduleName + Parameters.subscriptionId, + Parameters.moduleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Module + bodyMapper: Mappers.Module, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.moduleName + Parameters.subscriptionId, + Parameters.moduleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ModuleListResult + bodyMapper: Mappers.ModuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ModuleListResult + bodyMapper: Mappers.ModuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/nodeCountInformation.ts b/sdk/automation/arm-automation/src/operations/nodeCountInformation.ts index 1e538232cb8b..210f38035f96 100644 --- a/sdk/automation/arm-automation/src/operations/nodeCountInformation.ts +++ b/sdk/automation/arm-automation/src/operations/nodeCountInformation.ts @@ -14,7 +14,7 @@ import { AutomationClient } from "../automationClient"; import { CountType, NodeCountInformationGetOptionalParams, - NodeCountInformationGetResponse + NodeCountInformationGetResponse, } from "../models"; /** Class containing NodeCountInformation operations. */ @@ -40,11 +40,11 @@ export class NodeCountInformationImpl implements NodeCountInformation { resourceGroupName: string, automationAccountName: string, countType: CountType, - options?: NodeCountInformationGetOptionalParams + options?: NodeCountInformationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, countType, options }, - getOperationSpec + getOperationSpec, ); } } @@ -52,25 +52,24 @@ export class NodeCountInformationImpl implements NodeCountInformation { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NodeCounts + bodyMapper: Mappers.NodeCounts, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.countType + Parameters.countType, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/nodeReports.ts b/sdk/automation/arm-automation/src/operations/nodeReports.ts index a3df38b60d77..263d4f9a6d33 100644 --- a/sdk/automation/arm-automation/src/operations/nodeReports.ts +++ b/sdk/automation/arm-automation/src/operations/nodeReports.ts @@ -22,7 +22,7 @@ import { NodeReportsGetResponse, NodeReportsGetContentOptionalParams, NodeReportsGetContentResponse, - NodeReportsListByNodeNextResponse + NodeReportsListByNodeNextResponse, } from "../models"; /// @@ -49,13 +49,13 @@ export class NodeReportsImpl implements NodeReports { resourceGroupName: string, automationAccountName: string, nodeId: string, - options?: NodeReportsListByNodeOptionalParams + options?: NodeReportsListByNodeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByNodePagingAll( resourceGroupName, automationAccountName, nodeId, - options + options, ); return { next() { @@ -73,9 +73,9 @@ export class NodeReportsImpl implements NodeReports { automationAccountName, nodeId, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class NodeReportsImpl implements NodeReports { automationAccountName: string, nodeId: string, options?: NodeReportsListByNodeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NodeReportsListByNodeResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class NodeReportsImpl implements NodeReports { resourceGroupName, automationAccountName, nodeId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class NodeReportsImpl implements NodeReports { automationAccountName, nodeId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,13 +119,13 @@ export class NodeReportsImpl implements NodeReports { resourceGroupName: string, automationAccountName: string, nodeId: string, - options?: NodeReportsListByNodeOptionalParams + options?: NodeReportsListByNodeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByNodePagingPage( resourceGroupName, automationAccountName, nodeId, - options + options, )) { yield* page; } @@ -142,11 +142,11 @@ export class NodeReportsImpl implements NodeReports { resourceGroupName: string, automationAccountName: string, nodeId: string, - options?: NodeReportsListByNodeOptionalParams + options?: NodeReportsListByNodeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nodeId, options }, - listByNodeOperationSpec + listByNodeOperationSpec, ); } @@ -163,11 +163,11 @@ export class NodeReportsImpl implements NodeReports { automationAccountName: string, nodeId: string, reportId: string, - options?: NodeReportsGetOptionalParams + options?: NodeReportsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nodeId, reportId, options }, - getOperationSpec + getOperationSpec, ); } @@ -184,11 +184,11 @@ export class NodeReportsImpl implements NodeReports { automationAccountName: string, nodeId: string, reportId: string, - options?: NodeReportsGetContentOptionalParams + options?: NodeReportsGetContentOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nodeId, reportId, options }, - getContentOperationSpec + getContentOperationSpec, ); } @@ -205,11 +205,11 @@ export class NodeReportsImpl implements NodeReports { automationAccountName: string, nodeId: string, nextLink: string, - options?: NodeReportsListByNodeNextOptionalParams + options?: NodeReportsListByNodeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nodeId, nextLink, options }, - listByNodeNextOperationSpec + listByNodeNextOperationSpec, ); } } @@ -217,97 +217,94 @@ export class NodeReportsImpl implements NodeReports { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNodeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscNodeReportListResult + bodyMapper: Mappers.DscNodeReportListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nodeId + Parameters.subscriptionId, + Parameters.nodeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscNodeReport + bodyMapper: Mappers.DscNodeReport, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.nodeId, - Parameters.reportId + Parameters.reportId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getContentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}/content", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}/content", httpMethod: "GET", responses: { 200: { bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.nodeId, - Parameters.reportId + Parameters.reportId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByNodeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DscNodeReportListResult + bodyMapper: Mappers.DscNodeReportListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.nodeId, Parameters.nextLink, - Parameters.nodeId ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/objectDataTypes.ts b/sdk/automation/arm-automation/src/operations/objectDataTypes.ts index 3589aaa86a67..2072126ae658 100644 --- a/sdk/automation/arm-automation/src/operations/objectDataTypes.ts +++ b/sdk/automation/arm-automation/src/operations/objectDataTypes.ts @@ -17,7 +17,7 @@ import { ObjectDataTypesListFieldsByModuleAndTypeOptionalParams, ObjectDataTypesListFieldsByModuleAndTypeResponse, ObjectDataTypesListFieldsByTypeOptionalParams, - ObjectDataTypesListFieldsByTypeResponse + ObjectDataTypesListFieldsByTypeResponse, } from "../models"; /// @@ -46,14 +46,14 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { automationAccountName: string, moduleName: string, typeName: string, - options?: ObjectDataTypesListFieldsByModuleAndTypeOptionalParams + options?: ObjectDataTypesListFieldsByModuleAndTypeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listFieldsByModuleAndTypePagingAll( resourceGroupName, automationAccountName, moduleName, typeName, - options + options, ); return { next() { @@ -72,9 +72,9 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { moduleName, typeName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { moduleName: string, typeName: string, options?: ObjectDataTypesListFieldsByModuleAndTypeOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ObjectDataTypesListFieldsByModuleAndTypeResponse; result = await this._listFieldsByModuleAndType( @@ -92,7 +92,7 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { automationAccountName, moduleName, typeName, - options + options, ); yield result.value || []; } @@ -102,14 +102,14 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { automationAccountName: string, moduleName: string, typeName: string, - options?: ObjectDataTypesListFieldsByModuleAndTypeOptionalParams + options?: ObjectDataTypesListFieldsByModuleAndTypeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listFieldsByModuleAndTypePagingPage( resourceGroupName, automationAccountName, moduleName, typeName, - options + options, )) { yield* page; } @@ -126,13 +126,13 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { resourceGroupName: string, automationAccountName: string, typeName: string, - options?: ObjectDataTypesListFieldsByTypeOptionalParams + options?: ObjectDataTypesListFieldsByTypeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listFieldsByTypePagingAll( resourceGroupName, automationAccountName, typeName, - options + options, ); return { next() { @@ -150,9 +150,9 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { automationAccountName, typeName, options, - settings + settings, ); - } + }, }; } @@ -161,14 +161,14 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { automationAccountName: string, typeName: string, options?: ObjectDataTypesListFieldsByTypeOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ObjectDataTypesListFieldsByTypeResponse; result = await this._listFieldsByType( resourceGroupName, automationAccountName, typeName, - options + options, ); yield result.value || []; } @@ -177,13 +177,13 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { resourceGroupName: string, automationAccountName: string, typeName: string, - options?: ObjectDataTypesListFieldsByTypeOptionalParams + options?: ObjectDataTypesListFieldsByTypeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listFieldsByTypePagingPage( resourceGroupName, automationAccountName, typeName, - options + options, )) { yield* page; } @@ -202,7 +202,7 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { automationAccountName: string, moduleName: string, typeName: string, - options?: ObjectDataTypesListFieldsByModuleAndTypeOptionalParams + options?: ObjectDataTypesListFieldsByModuleAndTypeOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -210,9 +210,9 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { automationAccountName, moduleName, typeName, - options + options, }, - listFieldsByModuleAndTypeOperationSpec + listFieldsByModuleAndTypeOperationSpec, ); } @@ -227,11 +227,11 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { resourceGroupName: string, automationAccountName: string, typeName: string, - options?: ObjectDataTypesListFieldsByTypeOptionalParams + options?: ObjectDataTypesListFieldsByTypeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, typeName, options }, - listFieldsByTypeOperationSpec + listFieldsByTypeOperationSpec, ); } } @@ -239,49 +239,47 @@ export class ObjectDataTypesImpl implements ObjectDataTypes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listFieldsByModuleAndTypeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/objectDataTypes/{typeName}/fields", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/objectDataTypes/{typeName}/fields", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TypeFieldListResult + bodyMapper: Mappers.TypeFieldListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.moduleName, - Parameters.typeName + Parameters.typeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listFieldsByTypeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/objectDataTypes/{typeName}/fields", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/objectDataTypes/{typeName}/fields", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TypeFieldListResult + bodyMapper: Mappers.TypeFieldListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.typeName + Parameters.subscriptionId, + Parameters.typeName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/operations.ts b/sdk/automation/arm-automation/src/operations/operations.ts index 8fb1e3195eaa..b0bf2c8357f8 100644 --- a/sdk/automation/arm-automation/src/operations/operations.ts +++ b/sdk/automation/arm-automation/src/operations/operations.ts @@ -15,7 +15,7 @@ import { AutomationClient } from "../automationClient"; 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.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/packageOperations.ts b/sdk/automation/arm-automation/src/operations/packageOperations.ts new file mode 100644 index 000000000000..43c126bd57b5 --- /dev/null +++ b/sdk/automation/arm-automation/src/operations/packageOperations.ts @@ -0,0 +1,449 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { PackageOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClient } from "../automationClient"; +import { + Package, + PackageListByRuntimeEnvironmentNextOptionalParams, + PackageListByRuntimeEnvironmentOptionalParams, + PackageListByRuntimeEnvironmentResponse, + PackageDeleteOptionalParams, + PackageGetOptionalParams, + PackageGetResponse, + PackageCreateOrUpdateParameters, + PackageCreateOrUpdateOptionalParams, + PackageCreateOrUpdateResponse, + PackageUpdateParameters, + PackageUpdateOptionalParams, + PackageUpdateResponse, + PackageListByRuntimeEnvironmentNextResponse, +} from "../models"; + +/// +/** Class containing PackageOperations operations. */ +export class PackageOperationsImpl implements PackageOperations { + private readonly client: AutomationClient; + + /** + * Initialize a new instance of the class PackageOperations class. + * @param client Reference to the service client + */ + constructor(client: AutomationClient) { + this.client = client; + } + + /** + * Retrieve the a list of Packages + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param options The options parameters. + */ + public listByRuntimeEnvironment( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + options?: PackageListByRuntimeEnvironmentOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByRuntimeEnvironmentPagingAll( + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByRuntimeEnvironmentPagingPage( + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + options, + settings, + ); + }, + }; + } + + private async *listByRuntimeEnvironmentPagingPage( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + options?: PackageListByRuntimeEnvironmentOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PackageListByRuntimeEnvironmentResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByRuntimeEnvironment( + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByRuntimeEnvironmentNext( + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByRuntimeEnvironmentPagingAll( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + options?: PackageListByRuntimeEnvironmentOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByRuntimeEnvironmentPagingPage( + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + options, + )) { + yield* page; + } + } + + /** + * Delete the package by name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param packageName The Package name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + packageName: string, + options?: PackageDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + packageName, + options, + }, + deleteOperationSpec, + ); + } + + /** + * Retrieve the Package identified by Package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param packageName The Package name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + packageName: string, + options?: PackageGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + packageName, + options, + }, + getOperationSpec, + ); + } + + /** + * Create or update the package identified by package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param packageName The name of Package. + * @param parameters The create or update parameters for Package. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + packageName: string, + parameters: PackageCreateOrUpdateParameters, + options?: PackageCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + packageName, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Update the Package identified by Package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param packageName The name of Package. + * @param parameters The update parameters for Package. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + packageName: string, + parameters: PackageUpdateParameters, + options?: PackageUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + packageName, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Retrieve the a list of Packages + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param options The options parameters. + */ + private _listByRuntimeEnvironment( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + options?: PackageListByRuntimeEnvironmentOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + options, + }, + listByRuntimeEnvironmentOperationSpec, + ); + } + + /** + * ListByRuntimeEnvironmentNext + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param nextLink The nextLink from the previous successful call to the ListByRuntimeEnvironment + * method. + * @param options The options parameters. + */ + private _listByRuntimeEnvironmentNext( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + nextLink: string, + options?: PackageListByRuntimeEnvironmentNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + nextLink, + options, + }, + listByRuntimeEnvironmentNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.resourceGroupName1, + Parameters.runtimeEnvironmentName, + Parameters.packageName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Package, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.runtimeEnvironmentName, + Parameters.packageName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Package, + }, + 201: { + bodyMapper: Mappers.Package, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.runtimeEnvironmentName, + Parameters.packageName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.Package, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.runtimeEnvironmentName, + Parameters.packageName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listByRuntimeEnvironmentOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PackageListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.runtimeEnvironmentName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByRuntimeEnvironmentNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PackageListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.runtimeEnvironmentName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/automation/arm-automation/src/operations/privateEndpointConnections.ts b/sdk/automation/arm-automation/src/operations/privateEndpointConnections.ts index 6eff4bab621e..a69ca2d5c06d 100644 --- a/sdk/automation/arm-automation/src/operations/privateEndpointConnections.ts +++ b/sdk/automation/arm-automation/src/operations/privateEndpointConnections.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AutomationClient } from "../automationClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListByAutomationAccountOptionalParams, @@ -22,13 +26,15 @@ import { PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsDeleteOptionalParams, + PrivateEndpointConnectionsDeleteResponse, } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl - implements PrivateEndpointConnections { + implements PrivateEndpointConnections +{ private readonly client: AutomationClient; /** @@ -48,12 +54,12 @@ export class PrivateEndpointConnectionsImpl public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams + options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -70,9 +76,9 @@ export class PrivateEndpointConnectionsImpl resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -80,13 +86,13 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, automationAccountName: string, options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionsListByAutomationAccountResponse; result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); yield result.value || []; } @@ -94,12 +100,12 @@ export class PrivateEndpointConnectionsImpl private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams + options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -114,11 +120,11 @@ export class PrivateEndpointConnectionsImpl private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams + options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -133,16 +139,16 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -159,30 +165,29 @@ export class PrivateEndpointConnectionsImpl automationAccountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionsCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -191,8 +196,8 @@ export class PrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -200,25 +205,28 @@ export class PrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, automationAccountName, privateEndpointConnectionName, parameters, - options + options, }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -237,14 +245,14 @@ export class PrivateEndpointConnectionsImpl automationAccountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, automationAccountName, privateEndpointConnectionName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -260,25 +268,29 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>> { + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PrivateEndpointConnectionsDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { + spec: coreClient.OperationSpec, + ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -287,8 +299,8 @@ export class PrivateEndpointConnectionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -296,24 +308,27 @@ export class PrivateEndpointConnectionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, automationAccountName, privateEndpointConnectionName, - options + options, }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -330,13 +345,13 @@ export class PrivateEndpointConnectionsImpl resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise { const poller = await this.beginDelete( resourceGroupName, automationAccountName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -345,99 +360,103 @@ export class PrivateEndpointConnectionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult - } + bodyMapper: Mappers.PrivateEndpointConnectionListResult, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection - } + bodyMapper: Mappers.PrivateEndpointConnection, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.privateEndpointConnectionName + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.privateEndpointConnectionName + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + 201: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + 202: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, + 204: { + headersMapper: Mappers.PrivateEndpointConnectionsDeleteHeaders, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.privateEndpointConnectionName + Parameters.subscriptionId, + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/privateLinkResources.ts b/sdk/automation/arm-automation/src/operations/privateLinkResources.ts index 9a194254c174..7c87e3e1dc33 100644 --- a/sdk/automation/arm-automation/src/operations/privateLinkResources.ts +++ b/sdk/automation/arm-automation/src/operations/privateLinkResources.ts @@ -15,7 +15,7 @@ import { AutomationClient } from "../automationClient"; import { PrivateLinkResource, PrivateLinkResourcesAutomationOptionalParams, - PrivateLinkResourcesAutomationResponse + PrivateLinkResourcesAutomationResponse, } from "../models"; /// @@ -40,12 +40,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { public listAutomation( resourceGroupName: string, automationAccountName: string, - options?: PrivateLinkResourcesAutomationOptionalParams + options?: PrivateLinkResourcesAutomationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.automationPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -62,9 +62,9 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -72,13 +72,13 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { resourceGroupName: string, automationAccountName: string, options?: PrivateLinkResourcesAutomationOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkResourcesAutomationResponse; result = await this._automation( resourceGroupName, automationAccountName, - options + options, ); yield result.value || []; } @@ -86,12 +86,12 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { private async *automationPagingAll( resourceGroupName: string, automationAccountName: string, - options?: PrivateLinkResourcesAutomationOptionalParams + options?: PrivateLinkResourcesAutomationOptionalParams, ): AsyncIterableIterator { for await (const page of this.automationPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -106,11 +106,11 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { private _automation( resourceGroupName: string, automationAccountName: string, - options?: PrivateLinkResourcesAutomationOptionalParams + options?: PrivateLinkResourcesAutomationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - automationOperationSpec + automationOperationSpec, ); } } @@ -118,21 +118,20 @@ export class PrivateLinkResourcesImpl implements PrivateLinkResources { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const automationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - } + bodyMapper: Mappers.PrivateLinkResourceListResult, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/python2Package.ts b/sdk/automation/arm-automation/src/operations/python2Package.ts index 8d94134249c5..aa9037556980 100644 --- a/sdk/automation/arm-automation/src/operations/python2Package.ts +++ b/sdk/automation/arm-automation/src/operations/python2Package.ts @@ -27,7 +27,7 @@ import { PythonPackageUpdateParameters, Python2PackageUpdateOptionalParams, Python2PackageUpdateResponse, - Python2PackageListByAutomationAccountNextResponse + Python2PackageListByAutomationAccountNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class Python2PackageImpl implements Python2Package { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: Python2PackageListByAutomationAccountOptionalParams + options?: Python2PackageListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class Python2PackageImpl implements Python2Package { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class Python2PackageImpl implements Python2Package { resourceGroupName: string, automationAccountName: string, options?: Python2PackageListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: Python2PackageListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class Python2PackageImpl implements Python2Package { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class Python2PackageImpl implements Python2Package { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class Python2PackageImpl implements Python2Package { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: Python2PackageListByAutomationAccountOptionalParams + options?: Python2PackageListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class Python2PackageImpl implements Python2Package { resourceGroupName: string, automationAccountName: string, packageName: string, - options?: Python2PackageDeleteOptionalParams + options?: Python2PackageDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, packageName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -157,11 +157,11 @@ export class Python2PackageImpl implements Python2Package { resourceGroupName: string, automationAccountName: string, packageName: string, - options?: Python2PackageGetOptionalParams + options?: Python2PackageGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, packageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -178,7 +178,7 @@ export class Python2PackageImpl implements Python2Package { automationAccountName: string, packageName: string, parameters: PythonPackageCreateParameters, - options?: Python2PackageCreateOrUpdateOptionalParams + options?: Python2PackageCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -186,9 +186,9 @@ export class Python2PackageImpl implements Python2Package { automationAccountName, packageName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -205,7 +205,7 @@ export class Python2PackageImpl implements Python2Package { automationAccountName: string, packageName: string, parameters: PythonPackageUpdateParameters, - options?: Python2PackageUpdateOptionalParams + options?: Python2PackageUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -213,9 +213,9 @@ export class Python2PackageImpl implements Python2Package { automationAccountName, packageName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -228,11 +228,11 @@ export class Python2PackageImpl implements Python2Package { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: Python2PackageListByAutomationAccountOptionalParams + options?: Python2PackageListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -248,11 +248,11 @@ export class Python2PackageImpl implements Python2Package { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: Python2PackageListByAutomationAccountNextOptionalParams + options?: Python2PackageListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -260,142 +260,137 @@ export class Python2PackageImpl implements Python2Package { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.packageName + Parameters.subscriptionId, + Parameters.packageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Module + bodyMapper: Mappers.Module, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.packageName + Parameters.subscriptionId, + Parameters.packageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Module + bodyMapper: Mappers.Module, }, 201: { - bodyMapper: Mappers.Module + bodyMapper: Mappers.Module, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.packageName + Parameters.subscriptionId, + Parameters.packageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Module + bodyMapper: Mappers.Module, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.packageName + Parameters.subscriptionId, + Parameters.packageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ModuleListResult + bodyMapper: Mappers.ModuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ModuleListResult + bodyMapper: Mappers.ModuleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/python3Package.ts b/sdk/automation/arm-automation/src/operations/python3Package.ts new file mode 100644 index 000000000000..85bd14485414 --- /dev/null +++ b/sdk/automation/arm-automation/src/operations/python3Package.ts @@ -0,0 +1,397 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Python3Package } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClient } from "../automationClient"; +import { + Module, + Python3PackageListByAutomationAccountNextOptionalParams, + Python3PackageListByAutomationAccountOptionalParams, + Python3PackageListByAutomationAccountResponse, + Python3PackageDeleteOptionalParams, + Python3PackageGetOptionalParams, + Python3PackageGetResponse, + PythonPackageCreateParameters, + Python3PackageCreateOrUpdateOptionalParams, + Python3PackageCreateOrUpdateResponse, + PythonPackageUpdateParameters, + Python3PackageUpdateOptionalParams, + Python3PackageUpdateResponse, + Python3PackageListByAutomationAccountNextResponse, +} from "../models"; + +/// +/** Class containing Python3Package operations. */ +export class Python3PackageImpl implements Python3Package { + private readonly client: AutomationClient; + + /** + * Initialize a new instance of the class Python3Package class. + * @param client Reference to the service client + */ + constructor(client: AutomationClient) { + this.client = client; + } + + /** + * Retrieve a list of python 3 packages. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The options parameters. + */ + public listByAutomationAccount( + resourceGroupName: string, + automationAccountName: string, + options?: Python3PackageListByAutomationAccountOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByAutomationAccountPagingAll( + resourceGroupName, + automationAccountName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByAutomationAccountPagingPage( + resourceGroupName, + automationAccountName, + options, + settings, + ); + }, + }; + } + + private async *listByAutomationAccountPagingPage( + resourceGroupName: string, + automationAccountName: string, + options?: Python3PackageListByAutomationAccountOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: Python3PackageListByAutomationAccountResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByAutomationAccount( + resourceGroupName, + automationAccountName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByAutomationAccountNext( + resourceGroupName, + automationAccountName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByAutomationAccountPagingAll( + resourceGroupName: string, + automationAccountName: string, + options?: Python3PackageListByAutomationAccountOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByAutomationAccountPagingPage( + resourceGroupName, + automationAccountName, + options, + )) { + yield* page; + } + } + + /** + * Delete the python 3 package by name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param packageName The python package name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + automationAccountName: string, + packageName: string, + options?: Python3PackageDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, automationAccountName, packageName, options }, + deleteOperationSpec, + ); + } + + /** + * Retrieve the python 3 package identified by package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param packageName The python package name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + automationAccountName: string, + packageName: string, + options?: Python3PackageGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, automationAccountName, packageName, options }, + getOperationSpec, + ); + } + + /** + * Create or Update the python 3 package identified by package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param packageName The name of python package. + * @param parameters The create or update parameters for python package. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + automationAccountName: string, + packageName: string, + parameters: PythonPackageCreateParameters, + options?: Python3PackageCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + packageName, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Update the python 3 package identified by package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param packageName The name of python package. + * @param parameters The update parameters for python package. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + automationAccountName: string, + packageName: string, + parameters: PythonPackageUpdateParameters, + options?: Python3PackageUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + packageName, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Retrieve a list of python 3 packages. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The options parameters. + */ + private _listByAutomationAccount( + resourceGroupName: string, + automationAccountName: string, + options?: Python3PackageListByAutomationAccountOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, automationAccountName, options }, + listByAutomationAccountOperationSpec, + ); + } + + /** + * ListByAutomationAccountNext + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount + * method. + * @param options The options parameters. + */ + private _listByAutomationAccountNext( + resourceGroupName: string, + automationAccountName: string, + nextLink: string, + options?: Python3PackageListByAutomationAccountNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, automationAccountName, nextLink, options }, + listByAutomationAccountNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.packageName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Module, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.packageName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Module, + }, + 201: { + bodyMapper: Mappers.Module, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.packageName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.Module, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.packageName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModuleListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModuleListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/automation/arm-automation/src/operations/runbookDraftOperations.ts b/sdk/automation/arm-automation/src/operations/runbookDraftOperations.ts index f5ac4e27fbdc..ffe2dff66419 100644 --- a/sdk/automation/arm-automation/src/operations/runbookDraftOperations.ts +++ b/sdk/automation/arm-automation/src/operations/runbookDraftOperations.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AutomationClient } from "../automationClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { RunbookDraftGetContentOptionalParams, RunbookDraftGetContentResponse, @@ -21,7 +25,7 @@ import { RunbookDraftGetOptionalParams, RunbookDraftGetResponse, RunbookDraftUndoEditOptionalParams, - RunbookDraftUndoEditResponse + RunbookDraftUndoEditResponse, } from "../models"; /** Class containing RunbookDraftOperations operations. */ @@ -47,11 +51,11 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookDraftGetContentOptionalParams + options?: RunbookDraftGetContentOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - getContentOperationSpec + getContentOperationSpec, ); } @@ -60,7 +64,7 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { * @param resourceGroupName Name of an Azure Resource group. * @param automationAccountName The name of the automation account. * @param runbookName The runbook name. - * @param runbookContent The runbook draft content. + * @param runbookContent The runbook draft content. * @param options The options parameters. */ async beginReplaceContent( @@ -68,30 +72,29 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { automationAccountName: string, runbookName: string, runbookContent: string, - options?: RunbookDraftReplaceContentOptionalParams + options?: RunbookDraftReplaceContentOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, RunbookDraftReplaceContentResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -100,8 +103,8 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -109,25 +112,29 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, automationAccountName, runbookName, runbookContent, - options + options, }, - replaceContentOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: replaceContentOperationSpec, + }); + const poller = await createHttpPoller< + RunbookDraftReplaceContentResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -138,7 +145,7 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { * @param resourceGroupName Name of an Azure Resource group. * @param automationAccountName The name of the automation account. * @param runbookName The runbook name. - * @param runbookContent The runbook draft content. + * @param runbookContent The runbook draft content. * @param options The options parameters. */ async beginReplaceContentAndWait( @@ -146,14 +153,14 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { automationAccountName: string, runbookName: string, runbookContent: string, - options?: RunbookDraftReplaceContentOptionalParams + options?: RunbookDraftReplaceContentOptionalParams, ): Promise { const poller = await this.beginReplaceContent( resourceGroupName, automationAccountName, runbookName, runbookContent, - options + options, ); return poller.pollUntilDone(); } @@ -169,11 +176,11 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookDraftGetOptionalParams + options?: RunbookDraftGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - getOperationSpec + getOperationSpec, ); } @@ -188,11 +195,11 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookDraftUndoEditOptionalParams + options?: RunbookDraftUndoEditOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - undoEditOperationSpec + undoEditOperationSpec, ); } } @@ -200,103 +207,111 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getContentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content", httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "Stream" } } + bodyMapper: { type: { name: "Stream" } }, }, - default: {} + default: {}, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept2], - serializer + serializer, }; const replaceContentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content", httpMethod: "PUT", responses: { 200: { - bodyMapper: { type: { name: "Stream" }, serializedName: "parsedResponse" } + bodyMapper: { + type: { name: "Stream" }, + serializedName: "parsedResponse", + }, }, 201: { - bodyMapper: { type: { name: "Stream" }, serializedName: "parsedResponse" } + bodyMapper: { + type: { name: "Stream" }, + serializedName: "parsedResponse", + }, }, 202: { - bodyMapper: { type: { name: "Stream" }, serializedName: "parsedResponse" } + bodyMapper: { + type: { name: "Stream" }, + serializedName: "parsedResponse", + }, }, 204: { - bodyMapper: { type: { name: "Stream" }, serializedName: "parsedResponse" } + bodyMapper: { + type: { name: "Stream" }, + serializedName: "parsedResponse", + }, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.runbookContent, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept1, Parameters.contentType3], mediaType: "text", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunbookDraft + bodyMapper: Mappers.RunbookDraft, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const undoEditOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/undoEdit", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/undoEdit", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RunbookDraftUndoEditResult + bodyMapper: Mappers.RunbookDraftUndoEditResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/runbookOperations.ts b/sdk/automation/arm-automation/src/operations/runbookOperations.ts index f8581ea627d8..113ca0a4f857 100644 --- a/sdk/automation/arm-automation/src/operations/runbookOperations.ts +++ b/sdk/automation/arm-automation/src/operations/runbookOperations.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AutomationClient } from "../automationClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Runbook, RunbookListByAutomationAccountNextOptionalParams, @@ -33,7 +37,7 @@ import { RunbookUpdateOptionalParams, RunbookUpdateResponse, RunbookDeleteOptionalParams, - RunbookListByAutomationAccountNextResponse + RunbookListByAutomationAccountNextResponse, } from "../models"; /// @@ -58,12 +62,12 @@ export class RunbookOperationsImpl implements RunbookOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: RunbookListByAutomationAccountOptionalParams + options?: RunbookListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -80,9 +84,9 @@ export class RunbookOperationsImpl implements RunbookOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +94,7 @@ export class RunbookOperationsImpl implements RunbookOperations { resourceGroupName: string, automationAccountName: string, options?: RunbookListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RunbookListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +102,7 @@ export class RunbookOperationsImpl implements RunbookOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +114,7 @@ export class RunbookOperationsImpl implements RunbookOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +126,12 @@ export class RunbookOperationsImpl implements RunbookOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: RunbookListByAutomationAccountOptionalParams + options?: RunbookListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -144,30 +148,29 @@ export class RunbookOperationsImpl implements RunbookOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookPublishOptionalParams + options?: RunbookPublishOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, RunbookPublishResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -176,8 +179,8 @@ export class RunbookOperationsImpl implements RunbookOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -185,19 +188,22 @@ export class RunbookOperationsImpl implements RunbookOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, automationAccountName, runbookName, options }, - publishOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, automationAccountName, runbookName, options }, + spec: publishOperationSpec, + }); + const poller = await createHttpPoller< + RunbookPublishResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -214,13 +220,13 @@ export class RunbookOperationsImpl implements RunbookOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookPublishOptionalParams + options?: RunbookPublishOptionalParams, ): Promise { const poller = await this.beginPublish( resourceGroupName, automationAccountName, runbookName, - options + options, ); return poller.pollUntilDone(); } @@ -236,11 +242,11 @@ export class RunbookOperationsImpl implements RunbookOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookGetContentOptionalParams + options?: RunbookGetContentOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - getContentOperationSpec + getContentOperationSpec, ); } @@ -255,11 +261,11 @@ export class RunbookOperationsImpl implements RunbookOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookGetOptionalParams + options?: RunbookGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - getOperationSpec + getOperationSpec, ); } @@ -277,7 +283,7 @@ export class RunbookOperationsImpl implements RunbookOperations { automationAccountName: string, runbookName: string, parameters: RunbookCreateOrUpdateParameters, - options?: RunbookCreateOrUpdateOptionalParams + options?: RunbookCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -285,9 +291,9 @@ export class RunbookOperationsImpl implements RunbookOperations { automationAccountName, runbookName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -304,7 +310,7 @@ export class RunbookOperationsImpl implements RunbookOperations { automationAccountName: string, runbookName: string, parameters: RunbookUpdateParameters, - options?: RunbookUpdateOptionalParams + options?: RunbookUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -312,9 +318,9 @@ export class RunbookOperationsImpl implements RunbookOperations { automationAccountName, runbookName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -329,11 +335,11 @@ export class RunbookOperationsImpl implements RunbookOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookDeleteOptionalParams + options?: RunbookDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -346,11 +352,11 @@ export class RunbookOperationsImpl implements RunbookOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: RunbookListByAutomationAccountOptionalParams + options?: RunbookListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -366,11 +372,11 @@ export class RunbookOperationsImpl implements RunbookOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: RunbookListByAutomationAccountNextOptionalParams + options?: RunbookListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -378,196 +384,189 @@ export class RunbookOperationsImpl implements RunbookOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const publishOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/publish", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/publish", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.RunbookPublishHeaders + headersMapper: Mappers.RunbookPublishHeaders, }, 201: { - headersMapper: Mappers.RunbookPublishHeaders + headersMapper: Mappers.RunbookPublishHeaders, }, 202: { - headersMapper: Mappers.RunbookPublishHeaders + headersMapper: Mappers.RunbookPublishHeaders, }, 204: { - headersMapper: Mappers.RunbookPublishHeaders + headersMapper: Mappers.RunbookPublishHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getContentOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/content", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/content", httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "Stream" } } + bodyMapper: { type: { name: "Stream" } }, }, - default: {} + default: {}, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept2], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Runbook + bodyMapper: Mappers.Runbook, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Runbook + bodyMapper: Mappers.Runbook, }, 201: { - bodyMapper: Mappers.Runbook + bodyMapper: Mappers.Runbook, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters34, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters26, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Runbook + bodyMapper: Mappers.Runbook, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters35, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters27, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunbookListResult + bodyMapper: Mappers.RunbookListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunbookListResult + bodyMapper: Mappers.RunbookListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/runtimeEnvironments.ts b/sdk/automation/arm-automation/src/operations/runtimeEnvironments.ts new file mode 100644 index 000000000000..172e0bb945d4 --- /dev/null +++ b/sdk/automation/arm-automation/src/operations/runtimeEnvironments.ts @@ -0,0 +1,406 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RuntimeEnvironments } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClient } from "../automationClient"; +import { + RuntimeEnvironment, + RuntimeEnvironmentsListByAutomationAccountNextOptionalParams, + RuntimeEnvironmentsListByAutomationAccountOptionalParams, + RuntimeEnvironmentsListByAutomationAccountResponse, + RuntimeEnvironmentUpdateParameters, + RuntimeEnvironmentsUpdateOptionalParams, + RuntimeEnvironmentsUpdateResponse, + RuntimeEnvironmentsCreateOptionalParams, + RuntimeEnvironmentsCreateResponse, + RuntimeEnvironmentsDeleteOptionalParams, + RuntimeEnvironmentsGetOptionalParams, + RuntimeEnvironmentsGetResponse, + RuntimeEnvironmentsListByAutomationAccountNextResponse, +} from "../models"; + +/// +/** Class containing RuntimeEnvironments operations. */ +export class RuntimeEnvironmentsImpl implements RuntimeEnvironments { + private readonly client: AutomationClient; + + /** + * Initialize a new instance of the class RuntimeEnvironments class. + * @param client Reference to the service client + */ + constructor(client: AutomationClient) { + this.client = client; + } + + /** + * Retrieve a list of RuntimeEnvironments. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The options parameters. + */ + public listByAutomationAccount( + resourceGroupName: string, + automationAccountName: string, + options?: RuntimeEnvironmentsListByAutomationAccountOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByAutomationAccountPagingAll( + resourceGroupName, + automationAccountName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByAutomationAccountPagingPage( + resourceGroupName, + automationAccountName, + options, + settings, + ); + }, + }; + } + + private async *listByAutomationAccountPagingPage( + resourceGroupName: string, + automationAccountName: string, + options?: RuntimeEnvironmentsListByAutomationAccountOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: RuntimeEnvironmentsListByAutomationAccountResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByAutomationAccount( + resourceGroupName, + automationAccountName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByAutomationAccountNext( + resourceGroupName, + automationAccountName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByAutomationAccountPagingAll( + resourceGroupName: string, + automationAccountName: string, + options?: RuntimeEnvironmentsListByAutomationAccountOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByAutomationAccountPagingPage( + resourceGroupName, + automationAccountName, + options, + )) { + yield* page; + } + } + + /** + * Update an Runtime Environment. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param parameters Parameters supplied to the Runtime Environment + * @param options The options parameters. + */ + update( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + parameters: RuntimeEnvironmentUpdateParameters, + options?: RuntimeEnvironmentsUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Create or update Runtime Environment + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param parameters Parameters supplied to the create the runtime environment. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + parameters: RuntimeEnvironment, + options?: RuntimeEnvironmentsCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + parameters, + options, + }, + createOperationSpec, + ); + } + + /** + * Delete the Runtime Environment. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + options?: RuntimeEnvironmentsDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + options, + }, + deleteOperationSpec, + ); + } + + /** + * Get information about the Runtime Environment + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + options?: RuntimeEnvironmentsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runtimeEnvironmentName, + options, + }, + getOperationSpec, + ); + } + + /** + * Retrieve a list of RuntimeEnvironments. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The options parameters. + */ + private _listByAutomationAccount( + resourceGroupName: string, + automationAccountName: string, + options?: RuntimeEnvironmentsListByAutomationAccountOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, automationAccountName, options }, + listByAutomationAccountOperationSpec, + ); + } + + /** + * ListByAutomationAccountNext + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount + * method. + * @param options The options parameters. + */ + private _listByAutomationAccountNext( + resourceGroupName: string, + automationAccountName: string, + nextLink: string, + options?: RuntimeEnvironmentsListByAutomationAccountNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, automationAccountName, nextLink, options }, + listByAutomationAccountNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.RuntimeEnvironment, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.runtimeEnvironmentName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RuntimeEnvironment, + }, + 201: { + bodyMapper: Mappers.RuntimeEnvironment, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters30, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.runtimeEnvironmentName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.runtimeEnvironmentName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RuntimeEnvironment, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.runtimeEnvironmentName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RuntimeEnvironmentListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RuntimeEnvironmentListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/automation/arm-automation/src/operations/scheduleOperations.ts b/sdk/automation/arm-automation/src/operations/scheduleOperations.ts index 772207aeefb6..78160cdbc7b9 100644 --- a/sdk/automation/arm-automation/src/operations/scheduleOperations.ts +++ b/sdk/automation/arm-automation/src/operations/scheduleOperations.ts @@ -27,7 +27,7 @@ import { ScheduleGetOptionalParams, ScheduleGetResponse, ScheduleDeleteOptionalParams, - ScheduleListByAutomationAccountNextResponse + ScheduleListByAutomationAccountNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class ScheduleOperationsImpl implements ScheduleOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ScheduleListByAutomationAccountOptionalParams + options?: ScheduleListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class ScheduleOperationsImpl implements ScheduleOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class ScheduleOperationsImpl implements ScheduleOperations { resourceGroupName: string, automationAccountName: string, options?: ScheduleListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ScheduleListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class ScheduleOperationsImpl implements ScheduleOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class ScheduleOperationsImpl implements ScheduleOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class ScheduleOperationsImpl implements ScheduleOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: ScheduleListByAutomationAccountOptionalParams + options?: ScheduleListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -140,7 +140,7 @@ export class ScheduleOperationsImpl implements ScheduleOperations { automationAccountName: string, scheduleName: string, parameters: ScheduleCreateOrUpdateParameters, - options?: ScheduleCreateOrUpdateOptionalParams + options?: ScheduleCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -148,9 +148,9 @@ export class ScheduleOperationsImpl implements ScheduleOperations { automationAccountName, scheduleName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -167,7 +167,7 @@ export class ScheduleOperationsImpl implements ScheduleOperations { automationAccountName: string, scheduleName: string, parameters: ScheduleUpdateParameters, - options?: ScheduleUpdateOptionalParams + options?: ScheduleUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +175,9 @@ export class ScheduleOperationsImpl implements ScheduleOperations { automationAccountName, scheduleName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -192,11 +192,11 @@ export class ScheduleOperationsImpl implements ScheduleOperations { resourceGroupName: string, automationAccountName: string, scheduleName: string, - options?: ScheduleGetOptionalParams + options?: ScheduleGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, scheduleName, options }, - getOperationSpec + getOperationSpec, ); } @@ -211,11 +211,11 @@ export class ScheduleOperationsImpl implements ScheduleOperations { resourceGroupName: string, automationAccountName: string, scheduleName: string, - options?: ScheduleDeleteOptionalParams + options?: ScheduleDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, scheduleName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -228,11 +228,11 @@ export class ScheduleOperationsImpl implements ScheduleOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ScheduleListByAutomationAccountOptionalParams + options?: ScheduleListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -248,11 +248,11 @@ export class ScheduleOperationsImpl implements ScheduleOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: ScheduleListByAutomationAccountNextOptionalParams + options?: ScheduleListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -260,143 +260,138 @@ export class ScheduleOperationsImpl implements ScheduleOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Schedule + bodyMapper: Mappers.Schedule, }, 201: { - bodyMapper: Mappers.Schedule + bodyMapper: Mappers.Schedule, }, 409: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.scheduleName + Parameters.subscriptionId, + Parameters.scheduleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Schedule + bodyMapper: Mappers.Schedule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.scheduleName + Parameters.subscriptionId, + Parameters.scheduleName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Schedule + bodyMapper: Mappers.Schedule, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.scheduleName + Parameters.subscriptionId, + Parameters.scheduleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.scheduleName + Parameters.subscriptionId, + Parameters.scheduleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ScheduleListResult + bodyMapper: Mappers.ScheduleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ScheduleListResult + bodyMapper: Mappers.ScheduleListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationMachineRuns.ts b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationMachineRuns.ts index 69d1727fef82..2451fffbf27b 100644 --- a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationMachineRuns.ts +++ b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationMachineRuns.ts @@ -15,12 +15,13 @@ import { SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams, SoftwareUpdateConfigurationMachineRunsGetByIdResponse, SoftwareUpdateConfigurationMachineRunsListOptionalParams, - SoftwareUpdateConfigurationMachineRunsListResponse + SoftwareUpdateConfigurationMachineRunsListResponse, } from "../models"; /** Class containing SoftwareUpdateConfigurationMachineRuns operations. */ export class SoftwareUpdateConfigurationMachineRunsImpl - implements SoftwareUpdateConfigurationMachineRuns { + implements SoftwareUpdateConfigurationMachineRuns +{ private readonly client: AutomationClient; /** @@ -43,16 +44,16 @@ export class SoftwareUpdateConfigurationMachineRunsImpl resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, - options?: SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams + options?: SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, softwareUpdateConfigurationMachineRunId, - options + options, }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -65,11 +66,11 @@ export class SoftwareUpdateConfigurationMachineRunsImpl list( resourceGroupName: string, automationAccountName: string, - options?: SoftwareUpdateConfigurationMachineRunsListOptionalParams + options?: SoftwareUpdateConfigurationMachineRunsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -77,52 +78,50 @@ export class SoftwareUpdateConfigurationMachineRunsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SoftwareUpdateConfigurationMachineRun + bodyMapper: Mappers.SoftwareUpdateConfigurationMachineRun, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.softwareUpdateConfigurationMachineRunId + Parameters.subscriptionId, + Parameters.softwareUpdateConfigurationMachineRunId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SoftwareUpdateConfigurationMachineRunListResult + bodyMapper: Mappers.SoftwareUpdateConfigurationMachineRunListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, - Parameters.apiVersion2, Parameters.skip1, - Parameters.top1 + Parameters.top1, ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationRuns.ts b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationRuns.ts index 9808f359a031..e45cf754ed08 100644 --- a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationRuns.ts +++ b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationRuns.ts @@ -15,12 +15,13 @@ import { SoftwareUpdateConfigurationRunsGetByIdOptionalParams, SoftwareUpdateConfigurationRunsGetByIdResponse, SoftwareUpdateConfigurationRunsListOptionalParams, - SoftwareUpdateConfigurationRunsListResponse + SoftwareUpdateConfigurationRunsListResponse, } from "../models"; /** Class containing SoftwareUpdateConfigurationRuns operations. */ export class SoftwareUpdateConfigurationRunsImpl - implements SoftwareUpdateConfigurationRuns { + implements SoftwareUpdateConfigurationRuns +{ private readonly client: AutomationClient; /** @@ -42,16 +43,16 @@ export class SoftwareUpdateConfigurationRunsImpl resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, - options?: SoftwareUpdateConfigurationRunsGetByIdOptionalParams + options?: SoftwareUpdateConfigurationRunsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, softwareUpdateConfigurationRunId, - options + options, }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -64,11 +65,11 @@ export class SoftwareUpdateConfigurationRunsImpl list( resourceGroupName: string, automationAccountName: string, - options?: SoftwareUpdateConfigurationRunsListOptionalParams + options?: SoftwareUpdateConfigurationRunsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -76,52 +77,50 @@ export class SoftwareUpdateConfigurationRunsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SoftwareUpdateConfigurationRun + bodyMapper: Mappers.SoftwareUpdateConfigurationRun, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.softwareUpdateConfigurationRunId + Parameters.subscriptionId, + Parameters.softwareUpdateConfigurationRunId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SoftwareUpdateConfigurationRunListResult + bodyMapper: Mappers.SoftwareUpdateConfigurationRunListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, - Parameters.apiVersion2, Parameters.skip1, - Parameters.top1 + Parameters.top1, ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurations.ts b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurations.ts index a0c58b6f0b47..a88a511f0b15 100644 --- a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurations.ts +++ b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurations.ts @@ -19,12 +19,13 @@ import { SoftwareUpdateConfigurationsGetByNameResponse, SoftwareUpdateConfigurationsDeleteOptionalParams, SoftwareUpdateConfigurationsListOptionalParams, - SoftwareUpdateConfigurationsListResponse + SoftwareUpdateConfigurationsListResponse, } from "../models"; /** Class containing SoftwareUpdateConfigurations operations. */ export class SoftwareUpdateConfigurationsImpl - implements SoftwareUpdateConfigurations { + implements SoftwareUpdateConfigurations +{ private readonly client: AutomationClient; /** @@ -48,7 +49,7 @@ export class SoftwareUpdateConfigurationsImpl automationAccountName: string, softwareUpdateConfigurationName: string, parameters: SoftwareUpdateConfiguration, - options?: SoftwareUpdateConfigurationsCreateOptionalParams + options?: SoftwareUpdateConfigurationsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -56,9 +57,9 @@ export class SoftwareUpdateConfigurationsImpl automationAccountName, softwareUpdateConfigurationName, parameters, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -73,16 +74,16 @@ export class SoftwareUpdateConfigurationsImpl resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, - options?: SoftwareUpdateConfigurationsGetByNameOptionalParams + options?: SoftwareUpdateConfigurationsGetByNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, softwareUpdateConfigurationName, - options + options, }, - getByNameOperationSpec + getByNameOperationSpec, ); } @@ -97,16 +98,16 @@ export class SoftwareUpdateConfigurationsImpl resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, - options?: SoftwareUpdateConfigurationsDeleteOptionalParams + options?: SoftwareUpdateConfigurationsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, softwareUpdateConfigurationName, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -119,11 +120,11 @@ export class SoftwareUpdateConfigurationsImpl list( resourceGroupName: string, automationAccountName: string, - options?: SoftwareUpdateConfigurationsListOptionalParams + options?: SoftwareUpdateConfigurationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -131,101 +132,97 @@ export class SoftwareUpdateConfigurationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SoftwareUpdateConfiguration + bodyMapper: Mappers.SoftwareUpdateConfiguration, }, 201: { - bodyMapper: Mappers.SoftwareUpdateConfiguration + bodyMapper: Mappers.SoftwareUpdateConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters33, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.softwareUpdateConfigurationName + Parameters.subscriptionId, + Parameters.softwareUpdateConfigurationName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.clientRequestId + Parameters.clientRequestId, ], mediaType: "json", - serializer + serializer, }; const getByNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SoftwareUpdateConfiguration + bodyMapper: Mappers.SoftwareUpdateConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.softwareUpdateConfigurationName + Parameters.subscriptionId, + Parameters.softwareUpdateConfigurationName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.softwareUpdateConfigurationName + Parameters.subscriptionId, + Parameters.softwareUpdateConfigurationName, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SoftwareUpdateConfigurationListResult + bodyMapper: Mappers.SoftwareUpdateConfigurationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.clientRequestId], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/sourceControlOperations.ts b/sdk/automation/arm-automation/src/operations/sourceControlOperations.ts index c8686db1a851..d2d39dea23c7 100644 --- a/sdk/automation/arm-automation/src/operations/sourceControlOperations.ts +++ b/sdk/automation/arm-automation/src/operations/sourceControlOperations.ts @@ -27,7 +27,7 @@ import { SourceControlDeleteOptionalParams, SourceControlGetOptionalParams, SourceControlGetResponse, - SourceControlListByAutomationAccountNextResponse + SourceControlListByAutomationAccountNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class SourceControlOperationsImpl implements SourceControlOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: SourceControlListByAutomationAccountOptionalParams + options?: SourceControlListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class SourceControlOperationsImpl implements SourceControlOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class SourceControlOperationsImpl implements SourceControlOperations { resourceGroupName: string, automationAccountName: string, options?: SourceControlListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SourceControlListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class SourceControlOperationsImpl implements SourceControlOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class SourceControlOperationsImpl implements SourceControlOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class SourceControlOperationsImpl implements SourceControlOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: SourceControlListByAutomationAccountOptionalParams + options?: SourceControlListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -140,7 +140,7 @@ export class SourceControlOperationsImpl implements SourceControlOperations { automationAccountName: string, sourceControlName: string, parameters: SourceControlCreateOrUpdateParameters, - options?: SourceControlCreateOrUpdateOptionalParams + options?: SourceControlCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -148,9 +148,9 @@ export class SourceControlOperationsImpl implements SourceControlOperations { automationAccountName, sourceControlName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -167,7 +167,7 @@ export class SourceControlOperationsImpl implements SourceControlOperations { automationAccountName: string, sourceControlName: string, parameters: SourceControlUpdateParameters, - options?: SourceControlUpdateOptionalParams + options?: SourceControlUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +175,9 @@ export class SourceControlOperationsImpl implements SourceControlOperations { automationAccountName, sourceControlName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -192,11 +192,11 @@ export class SourceControlOperationsImpl implements SourceControlOperations { resourceGroupName: string, automationAccountName: string, sourceControlName: string, - options?: SourceControlDeleteOptionalParams + options?: SourceControlDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, sourceControlName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -211,11 +211,11 @@ export class SourceControlOperationsImpl implements SourceControlOperations { resourceGroupName: string, automationAccountName: string, sourceControlName: string, - options?: SourceControlGetOptionalParams + options?: SourceControlGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, sourceControlName, options }, - getOperationSpec + getOperationSpec, ); } @@ -228,11 +228,11 @@ export class SourceControlOperationsImpl implements SourceControlOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: SourceControlListByAutomationAccountOptionalParams + options?: SourceControlListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -248,11 +248,11 @@ export class SourceControlOperationsImpl implements SourceControlOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: SourceControlListByAutomationAccountNextOptionalParams + options?: SourceControlListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -260,142 +260,137 @@ export class SourceControlOperationsImpl implements SourceControlOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SourceControl + bodyMapper: Mappers.SourceControl, }, 201: { - bodyMapper: Mappers.SourceControl + bodyMapper: Mappers.SourceControl, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.sourceControlName + Parameters.subscriptionId, + Parameters.sourceControlName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SourceControl + bodyMapper: Mappers.SourceControl, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.sourceControlName + Parameters.subscriptionId, + Parameters.sourceControlName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.sourceControlName + Parameters.subscriptionId, + Parameters.sourceControlName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SourceControl + bodyMapper: Mappers.SourceControl, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.sourceControlName + Parameters.subscriptionId, + Parameters.sourceControlName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SourceControlListResult + bodyMapper: Mappers.SourceControlListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SourceControlListResult + bodyMapper: Mappers.SourceControlListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/sourceControlSyncJobOperations.ts b/sdk/automation/arm-automation/src/operations/sourceControlSyncJobOperations.ts index 5cf9024d3dfe..73a6318c6184 100644 --- a/sdk/automation/arm-automation/src/operations/sourceControlSyncJobOperations.ts +++ b/sdk/automation/arm-automation/src/operations/sourceControlSyncJobOperations.ts @@ -23,13 +23,14 @@ import { SourceControlSyncJobCreateResponse, SourceControlSyncJobGetOptionalParams, SourceControlSyncJobGetResponse, - SourceControlSyncJobListByAutomationAccountNextResponse + SourceControlSyncJobListByAutomationAccountNextResponse, } from "../models"; /// /** Class containing SourceControlSyncJobOperations operations. */ export class SourceControlSyncJobOperationsImpl - implements SourceControlSyncJobOperations { + implements SourceControlSyncJobOperations +{ private readonly client: AutomationClient; /** @@ -51,13 +52,13 @@ export class SourceControlSyncJobOperationsImpl resourceGroupName: string, automationAccountName: string, sourceControlName: string, - options?: SourceControlSyncJobListByAutomationAccountOptionalParams + options?: SourceControlSyncJobListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, sourceControlName, - options + options, ); return { next() { @@ -75,9 +76,9 @@ export class SourceControlSyncJobOperationsImpl automationAccountName, sourceControlName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +87,7 @@ export class SourceControlSyncJobOperationsImpl automationAccountName: string, sourceControlName: string, options?: SourceControlSyncJobListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SourceControlSyncJobListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +96,7 @@ export class SourceControlSyncJobOperationsImpl resourceGroupName, automationAccountName, sourceControlName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class SourceControlSyncJobOperationsImpl automationAccountName, sourceControlName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,13 +122,13 @@ export class SourceControlSyncJobOperationsImpl resourceGroupName: string, automationAccountName: string, sourceControlName: string, - options?: SourceControlSyncJobListByAutomationAccountOptionalParams + options?: SourceControlSyncJobListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, sourceControlName, - options + options, )) { yield* page; } @@ -148,7 +149,7 @@ export class SourceControlSyncJobOperationsImpl sourceControlName: string, sourceControlSyncJobId: string, parameters: SourceControlSyncJobCreateParameters, - options?: SourceControlSyncJobCreateOptionalParams + options?: SourceControlSyncJobCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -157,9 +158,9 @@ export class SourceControlSyncJobOperationsImpl sourceControlName, sourceControlSyncJobId, parameters, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -176,7 +177,7 @@ export class SourceControlSyncJobOperationsImpl automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, - options?: SourceControlSyncJobGetOptionalParams + options?: SourceControlSyncJobGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -184,9 +185,9 @@ export class SourceControlSyncJobOperationsImpl automationAccountName, sourceControlName, sourceControlSyncJobId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -201,11 +202,11 @@ export class SourceControlSyncJobOperationsImpl resourceGroupName: string, automationAccountName: string, sourceControlName: string, - options?: SourceControlSyncJobListByAutomationAccountOptionalParams + options?: SourceControlSyncJobListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, sourceControlName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -223,7 +224,7 @@ export class SourceControlSyncJobOperationsImpl automationAccountName: string, sourceControlName: string, nextLink: string, - options?: SourceControlSyncJobListByAutomationAccountNextOptionalParams + options?: SourceControlSyncJobListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -231,9 +232,9 @@ export class SourceControlSyncJobOperationsImpl automationAccountName, sourceControlName, nextLink, - options + options, }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -241,97 +242,94 @@ export class SourceControlSyncJobOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.SourceControlSyncJob + bodyMapper: Mappers.SourceControlSyncJob, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.sourceControlName, - Parameters.sourceControlSyncJobId + Parameters.sourceControlSyncJobId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SourceControlSyncJobById + bodyMapper: Mappers.SourceControlSyncJobById, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.sourceControlName, - Parameters.sourceControlSyncJobId + Parameters.sourceControlSyncJobId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SourceControlSyncJobListResult + bodyMapper: Mappers.SourceControlSyncJobListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.sourceControlName + Parameters.subscriptionId, + Parameters.sourceControlName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SourceControlSyncJobListResult + bodyMapper: Mappers.SourceControlSyncJobListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.sourceControlName + Parameters.sourceControlName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/sourceControlSyncJobStreams.ts b/sdk/automation/arm-automation/src/operations/sourceControlSyncJobStreams.ts index 1e4c71d7e192..846cde3073df 100644 --- a/sdk/automation/arm-automation/src/operations/sourceControlSyncJobStreams.ts +++ b/sdk/automation/arm-automation/src/operations/sourceControlSyncJobStreams.ts @@ -20,13 +20,14 @@ import { SourceControlSyncJobStreamsListBySyncJobResponse, SourceControlSyncJobStreamsGetOptionalParams, SourceControlSyncJobStreamsGetResponse, - SourceControlSyncJobStreamsListBySyncJobNextResponse + SourceControlSyncJobStreamsListBySyncJobNextResponse, } from "../models"; /// /** Class containing SourceControlSyncJobStreams operations. */ export class SourceControlSyncJobStreamsImpl - implements SourceControlSyncJobStreams { + implements SourceControlSyncJobStreams +{ private readonly client: AutomationClient; /** @@ -50,14 +51,14 @@ export class SourceControlSyncJobStreamsImpl automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, - options?: SourceControlSyncJobStreamsListBySyncJobOptionalParams + options?: SourceControlSyncJobStreamsListBySyncJobOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySyncJobPagingAll( resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, - options + options, ); return { next() { @@ -76,9 +77,9 @@ export class SourceControlSyncJobStreamsImpl sourceControlName, sourceControlSyncJobId, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class SourceControlSyncJobStreamsImpl sourceControlName: string, sourceControlSyncJobId: string, options?: SourceControlSyncJobStreamsListBySyncJobOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SourceControlSyncJobStreamsListBySyncJobResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class SourceControlSyncJobStreamsImpl automationAccountName, sourceControlName, sourceControlSyncJobId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +113,7 @@ export class SourceControlSyncJobStreamsImpl sourceControlName, sourceControlSyncJobId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,14 +127,14 @@ export class SourceControlSyncJobStreamsImpl automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, - options?: SourceControlSyncJobStreamsListBySyncJobOptionalParams + options?: SourceControlSyncJobStreamsListBySyncJobOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySyncJobPagingPage( resourceGroupName, automationAccountName, sourceControlName, sourceControlSyncJobId, - options + options, )) { yield* page; } @@ -152,7 +153,7 @@ export class SourceControlSyncJobStreamsImpl automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, - options?: SourceControlSyncJobStreamsListBySyncJobOptionalParams + options?: SourceControlSyncJobStreamsListBySyncJobOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -160,9 +161,9 @@ export class SourceControlSyncJobStreamsImpl automationAccountName, sourceControlName, sourceControlSyncJobId, - options + options, }, - listBySyncJobOperationSpec + listBySyncJobOperationSpec, ); } @@ -181,7 +182,7 @@ export class SourceControlSyncJobStreamsImpl sourceControlName: string, sourceControlSyncJobId: string, streamId: string, - options?: SourceControlSyncJobStreamsGetOptionalParams + options?: SourceControlSyncJobStreamsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -190,9 +191,9 @@ export class SourceControlSyncJobStreamsImpl sourceControlName, sourceControlSyncJobId, streamId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -211,7 +212,7 @@ export class SourceControlSyncJobStreamsImpl sourceControlName: string, sourceControlSyncJobId: string, nextLink: string, - options?: SourceControlSyncJobStreamsListBySyncJobNextOptionalParams + options?: SourceControlSyncJobStreamsListBySyncJobNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -220,9 +221,9 @@ export class SourceControlSyncJobStreamsImpl sourceControlName, sourceControlSyncJobId, nextLink, - options + options, }, - listBySyncJobNextOperationSpec + listBySyncJobNextOperationSpec, ); } } @@ -230,74 +231,72 @@ export class SourceControlSyncJobStreamsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySyncJobOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}/streams", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}/streams", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SourceControlSyncJobStreamsListBySyncJob + bodyMapper: Mappers.SourceControlSyncJobStreamsListBySyncJob, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.sourceControlName, - Parameters.sourceControlSyncJobId + Parameters.sourceControlSyncJobId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}/streams/{streamId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}/streams/{streamId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SourceControlSyncJobStreamById + bodyMapper: Mappers.SourceControlSyncJobStreamById, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.sourceControlName, Parameters.sourceControlSyncJobId, - Parameters.streamId + Parameters.streamId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySyncJobNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SourceControlSyncJobStreamsListBySyncJob + bodyMapper: Mappers.SourceControlSyncJobStreamsListBySyncJob, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.sourceControlName, - Parameters.sourceControlSyncJobId + Parameters.sourceControlSyncJobId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/statisticsOperations.ts b/sdk/automation/arm-automation/src/operations/statisticsOperations.ts index 5ae8a49848af..e07d03cc3afd 100644 --- a/sdk/automation/arm-automation/src/operations/statisticsOperations.ts +++ b/sdk/automation/arm-automation/src/operations/statisticsOperations.ts @@ -15,7 +15,7 @@ import { AutomationClient } from "../automationClient"; import { Statistics, StatisticsListByAutomationAccountOptionalParams, - StatisticsListByAutomationAccountResponse + StatisticsListByAutomationAccountResponse, } from "../models"; /// @@ -40,12 +40,12 @@ export class StatisticsOperationsImpl implements StatisticsOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: StatisticsListByAutomationAccountOptionalParams + options?: StatisticsListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -62,9 +62,9 @@ export class StatisticsOperationsImpl implements StatisticsOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -72,13 +72,13 @@ export class StatisticsOperationsImpl implements StatisticsOperations { resourceGroupName: string, automationAccountName: string, options?: StatisticsListByAutomationAccountOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: StatisticsListByAutomationAccountResponse; result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); yield result.value || []; } @@ -86,12 +86,12 @@ export class StatisticsOperationsImpl implements StatisticsOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: StatisticsListByAutomationAccountOptionalParams + options?: StatisticsListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -106,11 +106,11 @@ export class StatisticsOperationsImpl implements StatisticsOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: StatisticsListByAutomationAccountOptionalParams + options?: StatisticsListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } } @@ -118,24 +118,23 @@ export class StatisticsOperationsImpl implements StatisticsOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/statistics", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/statistics", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.StatisticsListResult + bodyMapper: Mappers.StatisticsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/testJobOperations.ts b/sdk/automation/arm-automation/src/operations/testJobOperations.ts index d8eeb5adff61..3ab9d52d1978 100644 --- a/sdk/automation/arm-automation/src/operations/testJobOperations.ts +++ b/sdk/automation/arm-automation/src/operations/testJobOperations.ts @@ -19,7 +19,7 @@ import { TestJobGetResponse, TestJobResumeOptionalParams, TestJobStopOptionalParams, - TestJobSuspendOptionalParams + TestJobSuspendOptionalParams, } from "../models"; /** Class containing TestJobOperations operations. */ @@ -47,7 +47,7 @@ export class TestJobOperationsImpl implements TestJobOperations { automationAccountName: string, runbookName: string, parameters: TestJobCreateParameters, - options?: TestJobCreateOptionalParams + options?: TestJobCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -55,9 +55,9 @@ export class TestJobOperationsImpl implements TestJobOperations { automationAccountName, runbookName, parameters, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -72,11 +72,11 @@ export class TestJobOperationsImpl implements TestJobOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobGetOptionalParams + options?: TestJobGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - getOperationSpec + getOperationSpec, ); } @@ -91,11 +91,11 @@ export class TestJobOperationsImpl implements TestJobOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobResumeOptionalParams + options?: TestJobResumeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - resumeOperationSpec + resumeOperationSpec, ); } @@ -110,11 +110,11 @@ export class TestJobOperationsImpl implements TestJobOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobStopOptionalParams + options?: TestJobStopOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - stopOperationSpec + stopOperationSpec, ); } @@ -129,11 +129,11 @@ export class TestJobOperationsImpl implements TestJobOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobSuspendOptionalParams + options?: TestJobSuspendOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - suspendOperationSpec + suspendOperationSpec, ); } } @@ -141,113 +141,108 @@ export class TestJobOperationsImpl implements TestJobOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.TestJob + bodyMapper: Mappers.TestJob, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters36, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters28, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TestJob + bodyMapper: Mappers.TestJob, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const resumeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/resume", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/resume", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/stop", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/stop", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const suspendOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/suspend", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/suspend", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/testJobStreams.ts b/sdk/automation/arm-automation/src/operations/testJobStreams.ts index b7599b8ce713..f407b404bd05 100644 --- a/sdk/automation/arm-automation/src/operations/testJobStreams.ts +++ b/sdk/automation/arm-automation/src/operations/testJobStreams.ts @@ -20,7 +20,7 @@ import { TestJobStreamsListByTestJobResponse, TestJobStreamsGetOptionalParams, TestJobStreamsGetResponse, - TestJobStreamsListByTestJobNextResponse + TestJobStreamsListByTestJobNextResponse, } from "../models"; /// @@ -47,13 +47,13 @@ export class TestJobStreamsImpl implements TestJobStreams { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobStreamsListByTestJobOptionalParams + options?: TestJobStreamsListByTestJobOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTestJobPagingAll( resourceGroupName, automationAccountName, runbookName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class TestJobStreamsImpl implements TestJobStreams { automationAccountName, runbookName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class TestJobStreamsImpl implements TestJobStreams { automationAccountName: string, runbookName: string, options?: TestJobStreamsListByTestJobOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TestJobStreamsListByTestJobResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class TestJobStreamsImpl implements TestJobStreams { resourceGroupName, automationAccountName, runbookName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class TestJobStreamsImpl implements TestJobStreams { automationAccountName, runbookName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,13 +117,13 @@ export class TestJobStreamsImpl implements TestJobStreams { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobStreamsListByTestJobOptionalParams + options?: TestJobStreamsListByTestJobOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTestJobPagingPage( resourceGroupName, automationAccountName, runbookName, - options + options, )) { yield* page; } @@ -142,7 +142,7 @@ export class TestJobStreamsImpl implements TestJobStreams { automationAccountName: string, runbookName: string, jobStreamId: string, - options?: TestJobStreamsGetOptionalParams + options?: TestJobStreamsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -150,9 +150,9 @@ export class TestJobStreamsImpl implements TestJobStreams { automationAccountName, runbookName, jobStreamId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -167,11 +167,11 @@ export class TestJobStreamsImpl implements TestJobStreams { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobStreamsListByTestJobOptionalParams + options?: TestJobStreamsListByTestJobOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, runbookName, options }, - listByTestJobOperationSpec + listByTestJobOperationSpec, ); } @@ -188,7 +188,7 @@ export class TestJobStreamsImpl implements TestJobStreams { automationAccountName: string, runbookName: string, nextLink: string, - options?: TestJobStreamsListByTestJobNextOptionalParams + options?: TestJobStreamsListByTestJobNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -196,9 +196,9 @@ export class TestJobStreamsImpl implements TestJobStreams { automationAccountName, runbookName, nextLink, - options + options, }, - listByTestJobNextOperationSpec + listByTestJobNextOperationSpec, ); } } @@ -206,71 +206,69 @@ export class TestJobStreamsImpl implements TestJobStreams { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams/{jobStreamId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams/{jobStreamId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobStream + bodyMapper: Mappers.JobStream, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.jobStreamId, - Parameters.runbookName + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTestJobOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobStreamListResult + bodyMapper: Mappers.JobStreamListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.runbookName + Parameters.subscriptionId, + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTestJobNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.JobStreamListResult + bodyMapper: Mappers.JobStreamListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.runbookName + Parameters.runbookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/usages.ts b/sdk/automation/arm-automation/src/operations/usages.ts index e72b12d709e6..c2dca235e71b 100644 --- a/sdk/automation/arm-automation/src/operations/usages.ts +++ b/sdk/automation/arm-automation/src/operations/usages.ts @@ -15,7 +15,7 @@ import { AutomationClient } from "../automationClient"; import { Usage, UsagesListByAutomationAccountOptionalParams, - UsagesListByAutomationAccountResponse + UsagesListByAutomationAccountResponse, } from "../models"; /// @@ -40,12 +40,12 @@ export class UsagesImpl implements Usages { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: UsagesListByAutomationAccountOptionalParams + options?: UsagesListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -62,9 +62,9 @@ export class UsagesImpl implements Usages { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -72,13 +72,13 @@ export class UsagesImpl implements Usages { resourceGroupName: string, automationAccountName: string, options?: UsagesListByAutomationAccountOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: UsagesListByAutomationAccountResponse; result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); yield result.value || []; } @@ -86,12 +86,12 @@ export class UsagesImpl implements Usages { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: UsagesListByAutomationAccountOptionalParams + options?: UsagesListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -106,11 +106,11 @@ export class UsagesImpl implements Usages { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: UsagesListByAutomationAccountOptionalParams + options?: UsagesListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } } @@ -118,24 +118,23 @@ export class UsagesImpl implements Usages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/usages", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/usages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UsageListResult + bodyMapper: Mappers.UsageListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/variableOperations.ts b/sdk/automation/arm-automation/src/operations/variableOperations.ts index 204e0dff0486..a1d59d41d9b0 100644 --- a/sdk/automation/arm-automation/src/operations/variableOperations.ts +++ b/sdk/automation/arm-automation/src/operations/variableOperations.ts @@ -27,7 +27,7 @@ import { VariableDeleteOptionalParams, VariableGetOptionalParams, VariableGetResponse, - VariableListByAutomationAccountNextResponse + VariableListByAutomationAccountNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class VariableOperationsImpl implements VariableOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: VariableListByAutomationAccountOptionalParams + options?: VariableListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class VariableOperationsImpl implements VariableOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class VariableOperationsImpl implements VariableOperations { resourceGroupName: string, automationAccountName: string, options?: VariableListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VariableListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class VariableOperationsImpl implements VariableOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class VariableOperationsImpl implements VariableOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class VariableOperationsImpl implements VariableOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: VariableListByAutomationAccountOptionalParams + options?: VariableListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -140,7 +140,7 @@ export class VariableOperationsImpl implements VariableOperations { automationAccountName: string, variableName: string, parameters: VariableCreateOrUpdateParameters, - options?: VariableCreateOrUpdateOptionalParams + options?: VariableCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -148,9 +148,9 @@ export class VariableOperationsImpl implements VariableOperations { automationAccountName, variableName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -167,7 +167,7 @@ export class VariableOperationsImpl implements VariableOperations { automationAccountName: string, variableName: string, parameters: VariableUpdateParameters, - options?: VariableUpdateOptionalParams + options?: VariableUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +175,9 @@ export class VariableOperationsImpl implements VariableOperations { automationAccountName, variableName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -192,11 +192,11 @@ export class VariableOperationsImpl implements VariableOperations { resourceGroupName: string, automationAccountName: string, variableName: string, - options?: VariableDeleteOptionalParams + options?: VariableDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, variableName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -211,11 +211,11 @@ export class VariableOperationsImpl implements VariableOperations { resourceGroupName: string, automationAccountName: string, variableName: string, - options?: VariableGetOptionalParams + options?: VariableGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, variableName, options }, - getOperationSpec + getOperationSpec, ); } @@ -228,11 +228,11 @@ export class VariableOperationsImpl implements VariableOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: VariableListByAutomationAccountOptionalParams + options?: VariableListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -248,11 +248,11 @@ export class VariableOperationsImpl implements VariableOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: VariableListByAutomationAccountNextOptionalParams + options?: VariableListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -260,142 +260,137 @@ export class VariableOperationsImpl implements VariableOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Variable + bodyMapper: Mappers.Variable, }, 201: { - bodyMapper: Mappers.Variable + bodyMapper: Mappers.Variable, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.variableName + Parameters.subscriptionId, + Parameters.variableName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Variable + bodyMapper: Mappers.Variable, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.variableName + Parameters.subscriptionId, + Parameters.variableName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.variableName + Parameters.subscriptionId, + Parameters.variableName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Variable + bodyMapper: Mappers.Variable, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.variableName + Parameters.subscriptionId, + Parameters.variableName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VariableListResult + bodyMapper: Mappers.VariableListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VariableListResult + bodyMapper: Mappers.VariableListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/watcherOperations.ts b/sdk/automation/arm-automation/src/operations/watcherOperations.ts index e098a9811cb6..d77770acc6e0 100644 --- a/sdk/automation/arm-automation/src/operations/watcherOperations.ts +++ b/sdk/automation/arm-automation/src/operations/watcherOperations.ts @@ -28,7 +28,7 @@ import { WatcherDeleteOptionalParams, WatcherStartOptionalParams, WatcherStopOptionalParams, - WatcherListByAutomationAccountNextResponse + WatcherListByAutomationAccountNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class WatcherOperationsImpl implements WatcherOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: WatcherListByAutomationAccountOptionalParams + options?: WatcherListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class WatcherOperationsImpl implements WatcherOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class WatcherOperationsImpl implements WatcherOperations { resourceGroupName: string, automationAccountName: string, options?: WatcherListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WatcherListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class WatcherOperationsImpl implements WatcherOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class WatcherOperationsImpl implements WatcherOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class WatcherOperationsImpl implements WatcherOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: WatcherListByAutomationAccountOptionalParams + options?: WatcherListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -141,7 +141,7 @@ export class WatcherOperationsImpl implements WatcherOperations { automationAccountName: string, watcherName: string, parameters: Watcher, - options?: WatcherCreateOrUpdateOptionalParams + options?: WatcherCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -149,9 +149,9 @@ export class WatcherOperationsImpl implements WatcherOperations { automationAccountName, watcherName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -166,11 +166,11 @@ export class WatcherOperationsImpl implements WatcherOperations { resourceGroupName: string, automationAccountName: string, watcherName: string, - options?: WatcherGetOptionalParams + options?: WatcherGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, watcherName, options }, - getOperationSpec + getOperationSpec, ); } @@ -187,7 +187,7 @@ export class WatcherOperationsImpl implements WatcherOperations { automationAccountName: string, watcherName: string, parameters: WatcherUpdateParameters, - options?: WatcherUpdateOptionalParams + options?: WatcherUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -195,9 +195,9 @@ export class WatcherOperationsImpl implements WatcherOperations { automationAccountName, watcherName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -212,11 +212,11 @@ export class WatcherOperationsImpl implements WatcherOperations { resourceGroupName: string, automationAccountName: string, watcherName: string, - options?: WatcherDeleteOptionalParams + options?: WatcherDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, watcherName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -231,11 +231,11 @@ export class WatcherOperationsImpl implements WatcherOperations { resourceGroupName: string, automationAccountName: string, watcherName: string, - options?: WatcherStartOptionalParams + options?: WatcherStartOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, watcherName, options }, - startOperationSpec + startOperationSpec, ); } @@ -250,11 +250,11 @@ export class WatcherOperationsImpl implements WatcherOperations { resourceGroupName: string, automationAccountName: string, watcherName: string, - options?: WatcherStopOptionalParams + options?: WatcherStopOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, watcherName, options }, - stopOperationSpec + stopOperationSpec, ); } @@ -267,11 +267,11 @@ export class WatcherOperationsImpl implements WatcherOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: WatcherListByAutomationAccountOptionalParams + options?: WatcherListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -287,11 +287,11 @@ export class WatcherOperationsImpl implements WatcherOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: WatcherListByAutomationAccountNextOptionalParams + options?: WatcherListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -299,184 +299,177 @@ export class WatcherOperationsImpl implements WatcherOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Watcher + bodyMapper: Mappers.Watcher, }, 201: { - bodyMapper: Mappers.Watcher + bodyMapper: Mappers.Watcher, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.watcherName + Parameters.subscriptionId, + Parameters.watcherName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Watcher + bodyMapper: Mappers.Watcher, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.watcherName + Parameters.subscriptionId, + Parameters.watcherName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Watcher + bodyMapper: Mappers.Watcher, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.watcherName + Parameters.subscriptionId, + Parameters.watcherName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.watcherName + Parameters.subscriptionId, + Parameters.watcherName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/start", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.watcherName + Parameters.subscriptionId, + Parameters.watcherName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/stop", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/stop", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.watcherName + Parameters.subscriptionId, + Parameters.watcherName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WatcherListResult + bodyMapper: Mappers.WatcherListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WatcherListResult + bodyMapper: Mappers.WatcherListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operations/webhookOperations.ts b/sdk/automation/arm-automation/src/operations/webhookOperations.ts index 881c87a0a7e1..4f8e210f991a 100644 --- a/sdk/automation/arm-automation/src/operations/webhookOperations.ts +++ b/sdk/automation/arm-automation/src/operations/webhookOperations.ts @@ -29,7 +29,7 @@ import { WebhookUpdateParameters, WebhookUpdateOptionalParams, WebhookUpdateResponse, - WebhookListByAutomationAccountNextResponse + WebhookListByAutomationAccountNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class WebhookOperationsImpl implements WebhookOperations { public listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: WebhookListByAutomationAccountOptionalParams + options?: WebhookListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAutomationAccountPagingAll( resourceGroupName, automationAccountName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class WebhookOperationsImpl implements WebhookOperations { resourceGroupName, automationAccountName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class WebhookOperationsImpl implements WebhookOperations { resourceGroupName: string, automationAccountName: string, options?: WebhookListByAutomationAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WebhookListByAutomationAccountResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class WebhookOperationsImpl implements WebhookOperations { result = await this._listByAutomationAccount( resourceGroupName, automationAccountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class WebhookOperationsImpl implements WebhookOperations { resourceGroupName, automationAccountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class WebhookOperationsImpl implements WebhookOperations { private async *listByAutomationAccountPagingAll( resourceGroupName: string, automationAccountName: string, - options?: WebhookListByAutomationAccountOptionalParams + options?: WebhookListByAutomationAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAutomationAccountPagingPage( resourceGroupName, automationAccountName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class WebhookOperationsImpl implements WebhookOperations { generateUri( resourceGroupName: string, automationAccountName: string, - options?: WebhookGenerateUriOptionalParams + options?: WebhookGenerateUriOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - generateUriOperationSpec + generateUriOperationSpec, ); } @@ -157,11 +157,11 @@ export class WebhookOperationsImpl implements WebhookOperations { resourceGroupName: string, automationAccountName: string, webhookName: string, - options?: WebhookDeleteOptionalParams + options?: WebhookDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, webhookName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -176,11 +176,11 @@ export class WebhookOperationsImpl implements WebhookOperations { resourceGroupName: string, automationAccountName: string, webhookName: string, - options?: WebhookGetOptionalParams + options?: WebhookGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, webhookName, options }, - getOperationSpec + getOperationSpec, ); } @@ -197,7 +197,7 @@ export class WebhookOperationsImpl implements WebhookOperations { automationAccountName: string, webhookName: string, parameters: WebhookCreateOrUpdateParameters, - options?: WebhookCreateOrUpdateOptionalParams + options?: WebhookCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -205,9 +205,9 @@ export class WebhookOperationsImpl implements WebhookOperations { automationAccountName, webhookName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -224,7 +224,7 @@ export class WebhookOperationsImpl implements WebhookOperations { automationAccountName: string, webhookName: string, parameters: WebhookUpdateParameters, - options?: WebhookUpdateOptionalParams + options?: WebhookUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -232,9 +232,9 @@ export class WebhookOperationsImpl implements WebhookOperations { automationAccountName, webhookName, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -247,11 +247,11 @@ export class WebhookOperationsImpl implements WebhookOperations { private _listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: WebhookListByAutomationAccountOptionalParams + options?: WebhookListByAutomationAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, options }, - listByAutomationAccountOperationSpec + listByAutomationAccountOperationSpec, ); } @@ -267,11 +267,11 @@ export class WebhookOperationsImpl implements WebhookOperations { resourceGroupName: string, automationAccountName: string, nextLink: string, - options?: WebhookListByAutomationAccountNextOptionalParams + options?: WebhookListByAutomationAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, automationAccountName, nextLink, options }, - listByAutomationAccountNextOperationSpec + listByAutomationAccountNextOperationSpec, ); } } @@ -279,164 +279,158 @@ export class WebhookOperationsImpl implements WebhookOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const generateUriOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/generateUri", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/generateUri", httpMethod: "POST", responses: { 200: { - bodyMapper: { type: { name: "String" } } + bodyMapper: { type: { name: "String" } }, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.webhookName + Parameters.subscriptionId, + Parameters.webhookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Webhook + bodyMapper: Mappers.Webhook, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.webhookName + Parameters.subscriptionId, + Parameters.webhookName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Webhook + bodyMapper: Mappers.Webhook, }, 201: { - bodyMapper: Mappers.Webhook + bodyMapper: Mappers.Webhook, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters37, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters40, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.webhookName + Parameters.subscriptionId, + Parameters.webhookName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Webhook + bodyMapper: Mappers.Webhook, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters41, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.webhookName + Parameters.subscriptionId, + Parameters.webhookName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebhookListResult + bodyMapper: Mappers.WebhookListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.automationAccountName + Parameters.automationAccountName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WebhookListResult + bodyMapper: Mappers.WebhookListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink + Parameters.subscriptionId, + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/activityOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/activityOperations.ts index e9a2a318797f..58e5a9864fc7 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/activityOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/activityOperations.ts @@ -11,7 +11,7 @@ import { Activity, ActivityListByModuleOptionalParams, ActivityGetOptionalParams, - ActivityGetResponse + ActivityGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface ActivityOperations { resourceGroupName: string, automationAccountName: string, moduleName: string, - options?: ActivityListByModuleOptionalParams + options?: ActivityListByModuleOptionalParams, ): PagedAsyncIterableIterator; /** * Retrieve the activity in the module identified by module name and activity name. @@ -43,6 +43,6 @@ export interface ActivityOperations { automationAccountName: string, moduleName: string, activityName: string, - options?: ActivityGetOptionalParams + options?: ActivityGetOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/agentRegistrationInformation.ts b/sdk/automation/arm-automation/src/operationsInterfaces/agentRegistrationInformation.ts index fc4d264ff436..7314481b314e 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/agentRegistrationInformation.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/agentRegistrationInformation.ts @@ -11,7 +11,7 @@ import { AgentRegistrationInformationGetResponse, AgentRegistrationRegenerateKeyParameter, AgentRegistrationInformationRegenerateKeyOptionalParams, - AgentRegistrationInformationRegenerateKeyResponse + AgentRegistrationInformationRegenerateKeyResponse, } from "../models"; /** Interface representing a AgentRegistrationInformation. */ @@ -25,7 +25,7 @@ export interface AgentRegistrationInformation { get( resourceGroupName: string, automationAccountName: string, - options?: AgentRegistrationInformationGetOptionalParams + options?: AgentRegistrationInformationGetOptionalParams, ): Promise; /** * Regenerate a primary or secondary agent registration key @@ -38,6 +38,6 @@ export interface AgentRegistrationInformation { resourceGroupName: string, automationAccountName: string, parameters: AgentRegistrationRegenerateKeyParameter, - options?: AgentRegistrationInformationRegenerateKeyOptionalParams + options?: AgentRegistrationInformationRegenerateKeyOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/automationAccountOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/automationAccountOperations.ts index 23560f74a05e..12cd4dadb231 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/automationAccountOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/automationAccountOperations.ts @@ -11,6 +11,8 @@ import { AutomationAccount, AutomationAccountListByResourceGroupOptionalParams, AutomationAccountListOptionalParams, + DeletedRunbook, + AutomationAccountListDeletedRunbooksOptionalParams, AutomationAccountUpdateParameters, AutomationAccountUpdateOptionalParams, AutomationAccountUpdateResponse, @@ -19,7 +21,7 @@ import { AutomationAccountCreateOrUpdateResponse, AutomationAccountDeleteOptionalParams, AutomationAccountGetOptionalParams, - AutomationAccountGetResponse + AutomationAccountGetResponse, } from "../models"; /// @@ -32,15 +34,26 @@ export interface AutomationAccountOperations { */ listByResourceGroup( resourceGroupName: string, - options?: AutomationAccountListByResourceGroupOptionalParams + options?: AutomationAccountListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Retrieve a list of accounts within a given subscription. * @param options The options parameters. */ list( - options?: AutomationAccountListOptionalParams + options?: AutomationAccountListOptionalParams, ): PagedAsyncIterableIterator; + /** + * Retrieve the deleted runbooks for an automation account. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The options parameters. + */ + listDeletedRunbooks( + resourceGroupName: string, + automationAccountName: string, + options?: AutomationAccountListDeletedRunbooksOptionalParams, + ): PagedAsyncIterableIterator; /** * Update an automation account. * @param resourceGroupName Name of an Azure Resource group. @@ -52,7 +65,7 @@ export interface AutomationAccountOperations { resourceGroupName: string, automationAccountName: string, parameters: AutomationAccountUpdateParameters, - options?: AutomationAccountUpdateOptionalParams + options?: AutomationAccountUpdateOptionalParams, ): Promise; /** * Create or update automation account. @@ -65,7 +78,7 @@ export interface AutomationAccountOperations { resourceGroupName: string, automationAccountName: string, parameters: AutomationAccountCreateOrUpdateParameters, - options?: AutomationAccountCreateOrUpdateOptionalParams + options?: AutomationAccountCreateOrUpdateOptionalParams, ): Promise; /** * Delete an automation account. @@ -76,7 +89,7 @@ export interface AutomationAccountOperations { delete( resourceGroupName: string, automationAccountName: string, - options?: AutomationAccountDeleteOptionalParams + options?: AutomationAccountDeleteOptionalParams, ): Promise; /** * Get information about an Automation Account. @@ -87,6 +100,6 @@ export interface AutomationAccountOperations { get( resourceGroupName: string, automationAccountName: string, - options?: AutomationAccountGetOptionalParams + options?: AutomationAccountGetOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/certificateOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/certificateOperations.ts index 827b7df894d1..a2616496f0c0 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/certificateOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/certificateOperations.ts @@ -18,7 +18,7 @@ import { CertificateCreateOrUpdateResponse, CertificateUpdateParameters, CertificateUpdateOptionalParams, - CertificateUpdateResponse + CertificateUpdateResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface CertificateOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: CertificateListByAutomationAccountOptionalParams + options?: CertificateListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete the certificate. @@ -46,7 +46,7 @@ export interface CertificateOperations { resourceGroupName: string, automationAccountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise; /** * Retrieve the certificate identified by certificate name. @@ -59,7 +59,7 @@ export interface CertificateOperations { resourceGroupName: string, automationAccountName: string, certificateName: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise; /** * Create a certificate. @@ -74,7 +74,7 @@ export interface CertificateOperations { automationAccountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOrUpdateOptionalParams + options?: CertificateCreateOrUpdateOptionalParams, ): Promise; /** * Update a certificate. @@ -89,6 +89,6 @@ export interface CertificateOperations { automationAccountName: string, certificateName: string, parameters: CertificateUpdateParameters, - options?: CertificateUpdateOptionalParams + options?: CertificateUpdateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/connectionOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/connectionOperations.ts index 5cb0a8e1b017..e536de40aeb9 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/connectionOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/connectionOperations.ts @@ -18,7 +18,7 @@ import { ConnectionCreateOrUpdateResponse, ConnectionUpdateParameters, ConnectionUpdateOptionalParams, - ConnectionUpdateResponse + ConnectionUpdateResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface ConnectionOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ConnectionListByAutomationAccountOptionalParams + options?: ConnectionListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete the connection. @@ -46,7 +46,7 @@ export interface ConnectionOperations { resourceGroupName: string, automationAccountName: string, connectionName: string, - options?: ConnectionDeleteOptionalParams + options?: ConnectionDeleteOptionalParams, ): Promise; /** * Retrieve the connection identified by connection name. @@ -59,7 +59,7 @@ export interface ConnectionOperations { resourceGroupName: string, automationAccountName: string, connectionName: string, - options?: ConnectionGetOptionalParams + options?: ConnectionGetOptionalParams, ): Promise; /** * Create or update a connection. @@ -74,7 +74,7 @@ export interface ConnectionOperations { automationAccountName: string, connectionName: string, parameters: ConnectionCreateOrUpdateParameters, - options?: ConnectionCreateOrUpdateOptionalParams + options?: ConnectionCreateOrUpdateOptionalParams, ): Promise; /** * Update a connection. @@ -89,6 +89,6 @@ export interface ConnectionOperations { automationAccountName: string, connectionName: string, parameters: ConnectionUpdateParameters, - options?: ConnectionUpdateOptionalParams + options?: ConnectionUpdateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/connectionTypeOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/connectionTypeOperations.ts index 3deed06cf174..6cd7f0066dde 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/connectionTypeOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/connectionTypeOperations.ts @@ -15,7 +15,7 @@ import { ConnectionTypeGetResponse, ConnectionTypeCreateOrUpdateParameters, ConnectionTypeCreateOrUpdateOptionalParams, - ConnectionTypeCreateOrUpdateResponse + ConnectionTypeCreateOrUpdateResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface ConnectionTypeOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ConnectionTypeListByAutomationAccountOptionalParams + options?: ConnectionTypeListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete the connection type. @@ -43,7 +43,7 @@ export interface ConnectionTypeOperations { resourceGroupName: string, automationAccountName: string, connectionTypeName: string, - options?: ConnectionTypeDeleteOptionalParams + options?: ConnectionTypeDeleteOptionalParams, ): Promise; /** * Retrieve the connection type identified by connection type name. @@ -56,7 +56,7 @@ export interface ConnectionTypeOperations { resourceGroupName: string, automationAccountName: string, connectionTypeName: string, - options?: ConnectionTypeGetOptionalParams + options?: ConnectionTypeGetOptionalParams, ): Promise; /** * Create a connection type. @@ -71,6 +71,6 @@ export interface ConnectionTypeOperations { automationAccountName: string, connectionTypeName: string, parameters: ConnectionTypeCreateOrUpdateParameters, - options?: ConnectionTypeCreateOrUpdateOptionalParams + options?: ConnectionTypeCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/credentialOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/credentialOperations.ts index 6304c6331083..62c4d99b917e 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/credentialOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/credentialOperations.ts @@ -18,7 +18,7 @@ import { CredentialCreateOrUpdateResponse, CredentialUpdateParameters, CredentialUpdateOptionalParams, - CredentialUpdateResponse + CredentialUpdateResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface CredentialOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: CredentialListByAutomationAccountOptionalParams + options?: CredentialListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete the credential. @@ -46,7 +46,7 @@ export interface CredentialOperations { resourceGroupName: string, automationAccountName: string, credentialName: string, - options?: CredentialDeleteOptionalParams + options?: CredentialDeleteOptionalParams, ): Promise; /** * Retrieve the credential identified by credential name. @@ -59,7 +59,7 @@ export interface CredentialOperations { resourceGroupName: string, automationAccountName: string, credentialName: string, - options?: CredentialGetOptionalParams + options?: CredentialGetOptionalParams, ): Promise; /** * Create a credential. @@ -74,7 +74,7 @@ export interface CredentialOperations { automationAccountName: string, credentialName: string, parameters: CredentialCreateOrUpdateParameters, - options?: CredentialCreateOrUpdateOptionalParams + options?: CredentialCreateOrUpdateOptionalParams, ): Promise; /** * Update a credential. @@ -89,6 +89,6 @@ export interface CredentialOperations { automationAccountName: string, credentialName: string, parameters: CredentialUpdateParameters, - options?: CredentialUpdateOptionalParams + options?: CredentialUpdateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/deletedAutomationAccounts.ts b/sdk/automation/arm-automation/src/operationsInterfaces/deletedAutomationAccounts.ts index 874be2d92a83..80c688015cef 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/deletedAutomationAccounts.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/deletedAutomationAccounts.ts @@ -8,7 +8,7 @@ import { DeletedAutomationAccountsListBySubscriptionOptionalParams, - DeletedAutomationAccountsListBySubscriptionResponse + DeletedAutomationAccountsListBySubscriptionResponse, } from "../models"; /** Interface representing a DeletedAutomationAccounts. */ @@ -18,6 +18,6 @@ export interface DeletedAutomationAccounts { * @param options The options parameters. */ listBySubscription( - options?: DeletedAutomationAccountsListBySubscriptionOptionalParams + options?: DeletedAutomationAccountsListBySubscriptionOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobOperations.ts deleted file mode 100644 index 5dcf36e256c1..000000000000 --- a/sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobOperations.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - DscCompilationJob, - DscCompilationJobListByAutomationAccountOptionalParams, - DscCompilationJobCreateParameters, - DscCompilationJobCreateOptionalParams, - DscCompilationJobCreateResponse, - DscCompilationJobGetOptionalParams, - DscCompilationJobGetResponse, - DscCompilationJobGetStreamOptionalParams, - DscCompilationJobGetStreamResponse -} from "../models"; - -/// -/** Interface representing a DscCompilationJobOperations. */ -export interface DscCompilationJobOperations { - /** - * Retrieve a list of dsc compilation jobs. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param options The options parameters. - */ - listByAutomationAccount( - resourceGroupName: string, - automationAccountName: string, - options?: DscCompilationJobListByAutomationAccountOptionalParams - ): PagedAsyncIterableIterator; - /** - * Creates the Dsc compilation job of the configuration. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param compilationJobName The DSC configuration Id. - * @param parameters The parameters supplied to the create compilation job operation. - * @param options The options parameters. - */ - beginCreate( - resourceGroupName: string, - automationAccountName: string, - compilationJobName: string, - parameters: DscCompilationJobCreateParameters, - options?: DscCompilationJobCreateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DscCompilationJobCreateResponse - > - >; - /** - * Creates the Dsc compilation job of the configuration. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param compilationJobName The DSC configuration Id. - * @param parameters The parameters supplied to the create compilation job operation. - * @param options The options parameters. - */ - beginCreateAndWait( - resourceGroupName: string, - automationAccountName: string, - compilationJobName: string, - parameters: DscCompilationJobCreateParameters, - options?: DscCompilationJobCreateOptionalParams - ): Promise; - /** - * Retrieve the Dsc configuration compilation job identified by job id. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param compilationJobName The DSC configuration Id. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - automationAccountName: string, - compilationJobName: string, - options?: DscCompilationJobGetOptionalParams - ): Promise; - /** - * Retrieve the job stream identified by job stream id. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param jobId The job id. - * @param jobStreamId The job stream id. - * @param options The options parameters. - */ - getStream( - resourceGroupName: string, - automationAccountName: string, - jobId: string, - jobStreamId: string, - options?: DscCompilationJobGetStreamOptionalParams - ): Promise; -} diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobStream.ts b/sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobStream.ts deleted file mode 100644 index 4dd9ee25018f..000000000000 --- a/sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobStream.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - DscCompilationJobStreamListByJobOptionalParams, - DscCompilationJobStreamListByJobResponse -} from "../models"; - -/** Interface representing a DscCompilationJobStream. */ -export interface DscCompilationJobStream { - /** - * Retrieve all the job streams for the compilation Job. - * @param resourceGroupName Name of an Azure Resource group. - * @param automationAccountName The name of the automation account. - * @param jobId The job id. - * @param options The options parameters. - */ - listByJob( - resourceGroupName: string, - automationAccountName: string, - jobId: string, - options?: DscCompilationJobStreamListByJobOptionalParams - ): Promise; -} diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/dscConfigurationOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/dscConfigurationOperations.ts index a06dfa74af4d..c3332df95789 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/dscConfigurationOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/dscConfigurationOperations.ts @@ -21,7 +21,7 @@ import { DscConfigurationUpdate$jsonOptionalParams, DscConfigurationUpdateResponse, DscConfigurationGetContentOptionalParams, - DscConfigurationGetContentResponse + DscConfigurationGetContentResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface DscConfigurationOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: DscConfigurationListByAutomationAccountOptionalParams + options?: DscConfigurationListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete the dsc configuration identified by configuration name. @@ -49,7 +49,7 @@ export interface DscConfigurationOperations { resourceGroupName: string, automationAccountName: string, configurationName: string, - options?: DscConfigurationDeleteOptionalParams + options?: DscConfigurationDeleteOptionalParams, ): Promise; /** * Retrieve the configuration identified by configuration name. @@ -62,7 +62,7 @@ export interface DscConfigurationOperations { resourceGroupName: string, automationAccountName: string, configurationName: string, - options?: DscConfigurationGetOptionalParams + options?: DscConfigurationGetOptionalParams, ): Promise; /** * Create the configuration identified by configuration name. @@ -76,7 +76,7 @@ export interface DscConfigurationOperations { string, "text/plain; charset=utf-8", string, - DscConfigurationCreateOrUpdate$textOptionalParams? + DscConfigurationCreateOrUpdate$textOptionalParams?, ] | [ string, @@ -84,7 +84,7 @@ export interface DscConfigurationOperations { string, "application/json", DscConfigurationCreateOrUpdateParameters, - DscConfigurationCreateOrUpdate$jsonOptionalParams? + DscConfigurationCreateOrUpdate$jsonOptionalParams?, ] ): Promise; /** @@ -98,14 +98,14 @@ export interface DscConfigurationOperations { string, string, "text/plain; charset=utf-8", - DscConfigurationUpdate$textOptionalParams? + DscConfigurationUpdate$textOptionalParams?, ] | [ string, string, string, "application/json", - DscConfigurationUpdate$jsonOptionalParams? + DscConfigurationUpdate$jsonOptionalParams?, ] ): Promise; /** @@ -119,6 +119,6 @@ export interface DscConfigurationOperations { resourceGroupName: string, automationAccountName: string, configurationName: string, - options?: DscConfigurationGetContentOptionalParams + options?: DscConfigurationGetContentOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/dscNodeConfigurationOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/dscNodeConfigurationOperations.ts index 8443b2bc8df3..4df1107c31b8 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/dscNodeConfigurationOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/dscNodeConfigurationOperations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DscNodeConfiguration, DscNodeConfigurationListByAutomationAccountOptionalParams, @@ -15,7 +15,7 @@ import { DscNodeConfigurationGetOptionalParams, DscNodeConfigurationGetResponse, DscNodeConfigurationCreateOrUpdateParameters, - DscNodeConfigurationCreateOrUpdateOptionalParams + DscNodeConfigurationCreateOrUpdateOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface DscNodeConfigurationOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: DscNodeConfigurationListByAutomationAccountOptionalParams + options?: DscNodeConfigurationListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete the Dsc node configurations by node configuration. @@ -43,7 +43,7 @@ export interface DscNodeConfigurationOperations { resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, - options?: DscNodeConfigurationDeleteOptionalParams + options?: DscNodeConfigurationDeleteOptionalParams, ): Promise; /** * Retrieve the Dsc node configurations by node configuration. @@ -56,7 +56,7 @@ export interface DscNodeConfigurationOperations { resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, - options?: DscNodeConfigurationGetOptionalParams + options?: DscNodeConfigurationGetOptionalParams, ): Promise; /** * Create the node configuration identified by node configuration name. @@ -71,8 +71,8 @@ export interface DscNodeConfigurationOperations { automationAccountName: string, nodeConfigurationName: string, parameters: DscNodeConfigurationCreateOrUpdateParameters, - options?: DscNodeConfigurationCreateOrUpdateOptionalParams - ): Promise, void>>; + options?: DscNodeConfigurationCreateOrUpdateOptionalParams, + ): Promise, void>>; /** * Create the node configuration identified by node configuration name. * @param resourceGroupName Name of an Azure Resource group. @@ -86,6 +86,6 @@ export interface DscNodeConfigurationOperations { automationAccountName: string, nodeConfigurationName: string, parameters: DscNodeConfigurationCreateOrUpdateParameters, - options?: DscNodeConfigurationCreateOrUpdateOptionalParams + options?: DscNodeConfigurationCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/dscNodeOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/dscNodeOperations.ts index 2215015f5ccf..1ab13922874f 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/dscNodeOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/dscNodeOperations.ts @@ -15,7 +15,7 @@ import { DscNodeGetResponse, DscNodeUpdateParameters, DscNodeUpdateOptionalParams, - DscNodeUpdateResponse + DscNodeUpdateResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface DscNodeOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: DscNodeListByAutomationAccountOptionalParams + options?: DscNodeListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete the dsc node identified by node id. @@ -43,7 +43,7 @@ export interface DscNodeOperations { resourceGroupName: string, automationAccountName: string, nodeId: string, - options?: DscNodeDeleteOptionalParams + options?: DscNodeDeleteOptionalParams, ): Promise; /** * Retrieve the dsc node identified by node id. @@ -56,7 +56,7 @@ export interface DscNodeOperations { resourceGroupName: string, automationAccountName: string, nodeId: string, - options?: DscNodeGetOptionalParams + options?: DscNodeGetOptionalParams, ): Promise; /** * Update the dsc node. @@ -71,6 +71,6 @@ export interface DscNodeOperations { automationAccountName: string, nodeId: string, dscNodeUpdateParameters: DscNodeUpdateParameters, - options?: DscNodeUpdateOptionalParams + options?: DscNodeUpdateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/fields.ts b/sdk/automation/arm-automation/src/operationsInterfaces/fields.ts index 52719a9509e1..8cd2e0eac232 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/fields.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/fields.ts @@ -25,6 +25,6 @@ export interface Fields { automationAccountName: string, moduleName: string, typeName: string, - options?: FieldsListByTypeOptionalParams + options?: FieldsListByTypeOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/hybridRunbookWorkerGroupOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/hybridRunbookWorkerGroupOperations.ts index 1e0c49d1e132..f6360c803ca5 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/hybridRunbookWorkerGroupOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/hybridRunbookWorkerGroupOperations.ts @@ -17,7 +17,7 @@ import { HybridRunbookWorkerGroupCreateOptionalParams, HybridRunbookWorkerGroupCreateResponse, HybridRunbookWorkerGroupUpdateOptionalParams, - HybridRunbookWorkerGroupUpdateResponse + HybridRunbookWorkerGroupUpdateResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface HybridRunbookWorkerGroupOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: HybridRunbookWorkerGroupListByAutomationAccountOptionalParams + options?: HybridRunbookWorkerGroupListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete a hybrid runbook worker group. @@ -45,7 +45,7 @@ export interface HybridRunbookWorkerGroupOperations { resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, - options?: HybridRunbookWorkerGroupDeleteOptionalParams + options?: HybridRunbookWorkerGroupDeleteOptionalParams, ): Promise; /** * Retrieve a hybrid runbook worker group. @@ -58,7 +58,7 @@ export interface HybridRunbookWorkerGroupOperations { resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, - options?: HybridRunbookWorkerGroupGetOptionalParams + options?: HybridRunbookWorkerGroupGetOptionalParams, ): Promise; /** * Create a hybrid runbook worker group. @@ -74,7 +74,7 @@ export interface HybridRunbookWorkerGroupOperations { automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerGroupCreationParameters: HybridRunbookWorkerGroupCreateOrUpdateParameters, - options?: HybridRunbookWorkerGroupCreateOptionalParams + options?: HybridRunbookWorkerGroupCreateOptionalParams, ): Promise; /** * Update a hybrid runbook worker group. @@ -89,6 +89,6 @@ export interface HybridRunbookWorkerGroupOperations { automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerGroupUpdationParameters: HybridRunbookWorkerGroupCreateOrUpdateParameters, - options?: HybridRunbookWorkerGroupUpdateOptionalParams + options?: HybridRunbookWorkerGroupUpdateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/hybridRunbookWorkers.ts b/sdk/automation/arm-automation/src/operationsInterfaces/hybridRunbookWorkers.ts index 4c6779374b5a..8435f138a959 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/hybridRunbookWorkers.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/hybridRunbookWorkers.ts @@ -16,8 +16,10 @@ import { HybridRunbookWorkerCreateParameters, HybridRunbookWorkersCreateOptionalParams, HybridRunbookWorkersCreateResponse, + HybridRunbookWorkersPatchOptionalParams, + HybridRunbookWorkersPatchResponse, HybridRunbookWorkerMoveParameters, - HybridRunbookWorkersMoveOptionalParams + HybridRunbookWorkersMoveOptionalParams, } from "../models"; /// @@ -34,7 +36,7 @@ export interface HybridRunbookWorkers { resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, - options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams + options?: HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Delete a hybrid runbook worker. @@ -49,7 +51,7 @@ export interface HybridRunbookWorkers { automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, - options?: HybridRunbookWorkersDeleteOptionalParams + options?: HybridRunbookWorkersDeleteOptionalParams, ): Promise; /** * Retrieve a hybrid runbook worker. @@ -64,7 +66,7 @@ export interface HybridRunbookWorkers { automationAccountName: string, hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, - options?: HybridRunbookWorkersGetOptionalParams + options?: HybridRunbookWorkersGetOptionalParams, ): Promise; /** * Create a hybrid runbook worker. @@ -82,8 +84,23 @@ export interface HybridRunbookWorkers { hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, hybridRunbookWorkerCreationParameters: HybridRunbookWorkerCreateParameters, - options?: HybridRunbookWorkersCreateOptionalParams + options?: HybridRunbookWorkersCreateOptionalParams, ): Promise; + /** + * Update a hybrid runbook worker. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param hybridRunbookWorkerId The hybrid runbook worker id + * @param options The options parameters. + */ + patch( + resourceGroupName: string, + automationAccountName: string, + hybridRunbookWorkerGroupName: string, + hybridRunbookWorkerId: string, + options?: HybridRunbookWorkersPatchOptionalParams, + ): Promise; /** * Move a hybrid worker to a different group. * @param resourceGroupName Name of an Azure Resource group. @@ -99,6 +116,6 @@ export interface HybridRunbookWorkers { hybridRunbookWorkerGroupName: string, hybridRunbookWorkerId: string, hybridRunbookWorkerMoveParameters: HybridRunbookWorkerMoveParameters, - options?: HybridRunbookWorkersMoveOptionalParams + options?: HybridRunbookWorkersMoveOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/index.ts b/sdk/automation/arm-automation/src/operationsInterfaces/index.ts index e21e65d7c700..7e36eaaeb776 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/index.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/index.ts @@ -6,19 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./privateEndpointConnections"; +export * from "./nodeCountInformation"; +export * from "./softwareUpdateConfigurations"; +export * from "./deletedAutomationAccounts"; export * from "./privateLinkResources"; -export * from "./python2Package"; export * from "./agentRegistrationInformation"; export * from "./dscNodeOperations"; export * from "./nodeReports"; -export * from "./dscNodeConfigurationOperations"; -export * from "./dscCompilationJobOperations"; -export * from "./dscCompilationJobStream"; -export * from "./nodeCountInformation"; -export * from "./sourceControlOperations"; -export * from "./sourceControlSyncJobOperations"; -export * from "./sourceControlSyncJobStreams"; export * from "./automationAccountOperations"; export * from "./statisticsOperations"; export * from "./usages"; @@ -27,27 +21,34 @@ export * from "./certificateOperations"; export * from "./connectionOperations"; export * from "./connectionTypeOperations"; export * from "./credentialOperations"; +export * from "./dscConfigurationOperations"; +export * from "./dscNodeConfigurationOperations"; +export * from "./hybridRunbookWorkers"; +export * from "./hybridRunbookWorkerGroupOperations"; +export * from "./jobOperations"; +export * from "./jobStreamOperations"; export * from "./jobScheduleOperations"; export * from "./linkedWorkspaceOperations"; export * from "./activityOperations"; export * from "./moduleOperations"; export * from "./objectDataTypes"; export * from "./fields"; -export * from "./scheduleOperations"; -export * from "./variableOperations"; -export * from "./watcherOperations"; -export * from "./dscConfigurationOperations"; -export * from "./jobOperations"; -export * from "./jobStreamOperations"; export * from "./operations"; -export * from "./softwareUpdateConfigurations"; -export * from "./softwareUpdateConfigurationRuns"; -export * from "./softwareUpdateConfigurationMachineRuns"; +export * from "./packageOperations"; +export * from "./privateEndpointConnections"; +export * from "./python2Package"; +export * from "./python3Package"; export * from "./runbookDraftOperations"; export * from "./runbookOperations"; export * from "./testJobStreams"; export * from "./testJobOperations"; +export * from "./runtimeEnvironments"; +export * from "./scheduleOperations"; +export * from "./softwareUpdateConfigurationMachineRuns"; +export * from "./softwareUpdateConfigurationRuns"; +export * from "./sourceControlOperations"; +export * from "./sourceControlSyncJobOperations"; +export * from "./sourceControlSyncJobStreams"; +export * from "./variableOperations"; +export * from "./watcherOperations"; export * from "./webhookOperations"; -export * from "./hybridRunbookWorkers"; -export * from "./deletedAutomationAccounts"; -export * from "./hybridRunbookWorkerGroupOperations"; diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/jobOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/jobOperations.ts index 8898d51fa33b..ee4cec02d248 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/jobOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/jobOperations.ts @@ -21,7 +21,7 @@ import { JobCreateParameters, JobCreateOptionalParams, JobCreateResponse, - JobResumeOptionalParams + JobResumeOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface JobOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: JobListByAutomationAccountOptionalParams + options?: JobListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Retrieve the job output identified by job name. @@ -49,7 +49,7 @@ export interface JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobGetOutputOptionalParams + options?: JobGetOutputOptionalParams, ): Promise; /** * Retrieve the runbook content of the job identified by job name. @@ -62,7 +62,7 @@ export interface JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobGetRunbookContentOptionalParams + options?: JobGetRunbookContentOptionalParams, ): Promise; /** * Suspend the job identified by job name. @@ -75,7 +75,7 @@ export interface JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobSuspendOptionalParams + options?: JobSuspendOptionalParams, ): Promise; /** * Stop the job identified by jobName. @@ -88,7 +88,7 @@ export interface JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobStopOptionalParams + options?: JobStopOptionalParams, ): Promise; /** * Retrieve the job identified by job name. @@ -101,7 +101,7 @@ export interface JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobGetOptionalParams + options?: JobGetOptionalParams, ): Promise; /** * Create a job of the runbook. @@ -116,7 +116,7 @@ export interface JobOperations { automationAccountName: string, jobName: string, parameters: JobCreateParameters, - options?: JobCreateOptionalParams + options?: JobCreateOptionalParams, ): Promise; /** * Resume the job identified by jobName. @@ -129,6 +129,6 @@ export interface JobOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobResumeOptionalParams + options?: JobResumeOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/jobScheduleOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/jobScheduleOperations.ts index baae46157661..f7cb6b4ede7c 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/jobScheduleOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/jobScheduleOperations.ts @@ -15,7 +15,7 @@ import { JobScheduleGetResponse, JobScheduleCreateParameters, JobScheduleCreateOptionalParams, - JobScheduleCreateResponse + JobScheduleCreateResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface JobScheduleOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: JobScheduleListByAutomationAccountOptionalParams + options?: JobScheduleListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete the job schedule identified by job schedule name. @@ -43,7 +43,7 @@ export interface JobScheduleOperations { resourceGroupName: string, automationAccountName: string, jobScheduleId: string, - options?: JobScheduleDeleteOptionalParams + options?: JobScheduleDeleteOptionalParams, ): Promise; /** * Retrieve the job schedule identified by job schedule name. @@ -56,7 +56,7 @@ export interface JobScheduleOperations { resourceGroupName: string, automationAccountName: string, jobScheduleId: string, - options?: JobScheduleGetOptionalParams + options?: JobScheduleGetOptionalParams, ): Promise; /** * Create a job schedule. @@ -71,6 +71,6 @@ export interface JobScheduleOperations { automationAccountName: string, jobScheduleId: string, parameters: JobScheduleCreateParameters, - options?: JobScheduleCreateOptionalParams + options?: JobScheduleCreateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/jobStreamOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/jobStreamOperations.ts index 930443063a1d..379ef8cce625 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/jobStreamOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/jobStreamOperations.ts @@ -11,7 +11,7 @@ import { JobStream, JobStreamListByJobOptionalParams, JobStreamGetOptionalParams, - JobStreamGetResponse + JobStreamGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface JobStreamOperations { resourceGroupName: string, automationAccountName: string, jobName: string, - options?: JobStreamListByJobOptionalParams + options?: JobStreamListByJobOptionalParams, ): PagedAsyncIterableIterator; /** * Retrieve the job stream identified by job stream id. @@ -43,6 +43,6 @@ export interface JobStreamOperations { automationAccountName: string, jobName: string, jobStreamId: string, - options?: JobStreamGetOptionalParams + options?: JobStreamGetOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/keys.ts b/sdk/automation/arm-automation/src/operationsInterfaces/keys.ts index 324e3200eb0a..367b7ac0e740 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/keys.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/keys.ts @@ -8,7 +8,7 @@ import { KeysListByAutomationAccountOptionalParams, - KeysListByAutomationAccountResponse + KeysListByAutomationAccountResponse, } from "../models"; /** Interface representing a Keys. */ @@ -22,6 +22,6 @@ export interface Keys { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: KeysListByAutomationAccountOptionalParams + options?: KeysListByAutomationAccountOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/linkedWorkspaceOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/linkedWorkspaceOperations.ts index 6e0f280e7f98..42932e8c9fc9 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/linkedWorkspaceOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/linkedWorkspaceOperations.ts @@ -8,7 +8,7 @@ import { LinkedWorkspaceGetOptionalParams, - LinkedWorkspaceGetResponse + LinkedWorkspaceGetResponse, } from "../models"; /** Interface representing a LinkedWorkspaceOperations. */ @@ -22,6 +22,6 @@ export interface LinkedWorkspaceOperations { get( resourceGroupName: string, automationAccountName: string, - options?: LinkedWorkspaceGetOptionalParams + options?: LinkedWorkspaceGetOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/moduleOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/moduleOperations.ts index cac293908cde..37c84cf83a12 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/moduleOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/moduleOperations.ts @@ -18,7 +18,7 @@ import { ModuleCreateOrUpdateResponse, ModuleUpdateParameters, ModuleUpdateOptionalParams, - ModuleUpdateResponse + ModuleUpdateResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface ModuleOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ModuleListByAutomationAccountOptionalParams + options?: ModuleListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete the module by name. @@ -46,7 +46,7 @@ export interface ModuleOperations { resourceGroupName: string, automationAccountName: string, moduleName: string, - options?: ModuleDeleteOptionalParams + options?: ModuleDeleteOptionalParams, ): Promise; /** * Retrieve the module identified by module name. @@ -59,7 +59,7 @@ export interface ModuleOperations { resourceGroupName: string, automationAccountName: string, moduleName: string, - options?: ModuleGetOptionalParams + options?: ModuleGetOptionalParams, ): Promise; /** * Create or Update the module identified by module name. @@ -74,7 +74,7 @@ export interface ModuleOperations { automationAccountName: string, moduleName: string, parameters: ModuleCreateOrUpdateParameters, - options?: ModuleCreateOrUpdateOptionalParams + options?: ModuleCreateOrUpdateOptionalParams, ): Promise; /** * Update the module identified by module name. @@ -89,6 +89,6 @@ export interface ModuleOperations { automationAccountName: string, moduleName: string, parameters: ModuleUpdateParameters, - options?: ModuleUpdateOptionalParams + options?: ModuleUpdateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/nodeCountInformation.ts b/sdk/automation/arm-automation/src/operationsInterfaces/nodeCountInformation.ts index 9c731ebcff92..09467d519fd6 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/nodeCountInformation.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/nodeCountInformation.ts @@ -9,7 +9,7 @@ import { CountType, NodeCountInformationGetOptionalParams, - NodeCountInformationGetResponse + NodeCountInformationGetResponse, } from "../models"; /** Interface representing a NodeCountInformation. */ @@ -25,6 +25,6 @@ export interface NodeCountInformation { resourceGroupName: string, automationAccountName: string, countType: CountType, - options?: NodeCountInformationGetOptionalParams + options?: NodeCountInformationGetOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/nodeReports.ts b/sdk/automation/arm-automation/src/operationsInterfaces/nodeReports.ts index 428e0cdbc255..7edb71f09c26 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/nodeReports.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/nodeReports.ts @@ -13,7 +13,7 @@ import { NodeReportsGetOptionalParams, NodeReportsGetResponse, NodeReportsGetContentOptionalParams, - NodeReportsGetContentResponse + NodeReportsGetContentResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface NodeReports { resourceGroupName: string, automationAccountName: string, nodeId: string, - options?: NodeReportsListByNodeOptionalParams + options?: NodeReportsListByNodeOptionalParams, ): PagedAsyncIterableIterator; /** * Retrieve the Dsc node report data by node id and report id. @@ -45,7 +45,7 @@ export interface NodeReports { automationAccountName: string, nodeId: string, reportId: string, - options?: NodeReportsGetOptionalParams + options?: NodeReportsGetOptionalParams, ): Promise; /** * Retrieve the Dsc node reports by node id and report id. @@ -60,6 +60,6 @@ export interface NodeReports { automationAccountName: string, nodeId: string, reportId: string, - options?: NodeReportsGetContentOptionalParams + options?: NodeReportsGetContentOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/objectDataTypes.ts b/sdk/automation/arm-automation/src/operationsInterfaces/objectDataTypes.ts index 841f5ba0c7eb..2b4df10cb5d9 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/objectDataTypes.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/objectDataTypes.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TypeField, ObjectDataTypesListFieldsByModuleAndTypeOptionalParams, - ObjectDataTypesListFieldsByTypeOptionalParams + ObjectDataTypesListFieldsByTypeOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface ObjectDataTypes { automationAccountName: string, moduleName: string, typeName: string, - options?: ObjectDataTypesListFieldsByModuleAndTypeOptionalParams + options?: ObjectDataTypesListFieldsByModuleAndTypeOptionalParams, ): PagedAsyncIterableIterator; /** * Retrieve a list of fields of a given type across all accessible modules. @@ -42,6 +42,6 @@ export interface ObjectDataTypes { resourceGroupName: string, automationAccountName: string, typeName: string, - options?: ObjectDataTypesListFieldsByTypeOptionalParams + options?: ObjectDataTypesListFieldsByTypeOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/operations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/operations.ts index ff5023c64058..ded540399330 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/operations.ts +++ b/sdk/automation/arm-automation/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/automation/arm-automation/src/operationsInterfaces/packageOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/packageOperations.ts new file mode 100644 index 000000000000..69a9a22f6c7f --- /dev/null +++ b/sdk/automation/arm-automation/src/operationsInterfaces/packageOperations.ts @@ -0,0 +1,104 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + Package, + PackageListByRuntimeEnvironmentOptionalParams, + PackageDeleteOptionalParams, + PackageGetOptionalParams, + PackageGetResponse, + PackageCreateOrUpdateParameters, + PackageCreateOrUpdateOptionalParams, + PackageCreateOrUpdateResponse, + PackageUpdateParameters, + PackageUpdateOptionalParams, + PackageUpdateResponse, +} from "../models"; + +/// +/** Interface representing a PackageOperations. */ +export interface PackageOperations { + /** + * Retrieve the a list of Packages + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param options The options parameters. + */ + listByRuntimeEnvironment( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + options?: PackageListByRuntimeEnvironmentOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Delete the package by name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param packageName The Package name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + packageName: string, + options?: PackageDeleteOptionalParams, + ): Promise; + /** + * Retrieve the Package identified by Package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param packageName The Package name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + packageName: string, + options?: PackageGetOptionalParams, + ): Promise; + /** + * Create or update the package identified by package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param packageName The name of Package. + * @param parameters The create or update parameters for Package. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + packageName: string, + parameters: PackageCreateOrUpdateParameters, + options?: PackageCreateOrUpdateOptionalParams, + ): Promise; + /** + * Update the Package identified by Package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param packageName The name of Package. + * @param parameters The update parameters for Package. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + packageName: string, + parameters: PackageUpdateParameters, + options?: PackageUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/automation/arm-automation/src/operationsInterfaces/privateEndpointConnections.ts index 18b720c0472d..27735969fadd 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/privateEndpointConnections.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListByAutomationAccountOptionalParams, @@ -15,7 +15,8 @@ import { PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsDeleteOptionalParams, + PrivateEndpointConnectionsDeleteResponse, } from "../models"; /// @@ -30,7 +31,7 @@ export interface PrivateEndpointConnections { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams + options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a private endpoint connection. @@ -43,7 +44,7 @@ export interface PrivateEndpointConnections { resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams + options?: PrivateEndpointConnectionsGetOptionalParams, ): Promise; /** * Approve or reject a private endpoint connection with a given name. @@ -58,10 +59,10 @@ export interface PrivateEndpointConnections { automationAccountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionsCreateOrUpdateResponse > >; @@ -78,7 +79,7 @@ export interface PrivateEndpointConnections { automationAccountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a private endpoint connection with a given name. @@ -91,8 +92,13 @@ export interface PrivateEndpointConnections { resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>>; + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PrivateEndpointConnectionsDeleteResponse + > + >; /** * Deletes a private endpoint connection with a given name. * @param resourceGroupName Name of an Azure Resource group. @@ -104,6 +110,6 @@ export interface PrivateEndpointConnections { resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise; + options?: PrivateEndpointConnectionsDeleteOptionalParams, + ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/privateLinkResources.ts b/sdk/automation/arm-automation/src/operationsInterfaces/privateLinkResources.ts index c1f867f431c7..a84ebf620a0b 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/privateLinkResources.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateLinkResource, - PrivateLinkResourcesAutomationOptionalParams + PrivateLinkResourcesAutomationOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface PrivateLinkResources { listAutomation( resourceGroupName: string, automationAccountName: string, - options?: PrivateLinkResourcesAutomationOptionalParams + options?: PrivateLinkResourcesAutomationOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/python2Package.ts b/sdk/automation/arm-automation/src/operationsInterfaces/python2Package.ts index 2f4841a31015..5c66303dd287 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/python2Package.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/python2Package.ts @@ -18,7 +18,7 @@ import { Python2PackageCreateOrUpdateResponse, PythonPackageUpdateParameters, Python2PackageUpdateOptionalParams, - Python2PackageUpdateResponse + Python2PackageUpdateResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Python2Package { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: Python2PackageListByAutomationAccountOptionalParams + options?: Python2PackageListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Delete the python 2 package by name. @@ -46,7 +46,7 @@ export interface Python2Package { resourceGroupName: string, automationAccountName: string, packageName: string, - options?: Python2PackageDeleteOptionalParams + options?: Python2PackageDeleteOptionalParams, ): Promise; /** * Retrieve the python 2 package identified by package name. @@ -59,7 +59,7 @@ export interface Python2Package { resourceGroupName: string, automationAccountName: string, packageName: string, - options?: Python2PackageGetOptionalParams + options?: Python2PackageGetOptionalParams, ): Promise; /** * Create or Update the python 2 package identified by package name. @@ -74,7 +74,7 @@ export interface Python2Package { automationAccountName: string, packageName: string, parameters: PythonPackageCreateParameters, - options?: Python2PackageCreateOrUpdateOptionalParams + options?: Python2PackageCreateOrUpdateOptionalParams, ): Promise; /** * Update the python 2 package identified by package name. @@ -89,6 +89,6 @@ export interface Python2Package { automationAccountName: string, packageName: string, parameters: PythonPackageUpdateParameters, - options?: Python2PackageUpdateOptionalParams + options?: Python2PackageUpdateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/python3Package.ts b/sdk/automation/arm-automation/src/operationsInterfaces/python3Package.ts new file mode 100644 index 000000000000..10113eed6cb5 --- /dev/null +++ b/sdk/automation/arm-automation/src/operationsInterfaces/python3Package.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + Module, + Python3PackageListByAutomationAccountOptionalParams, + Python3PackageDeleteOptionalParams, + Python3PackageGetOptionalParams, + Python3PackageGetResponse, + PythonPackageCreateParameters, + Python3PackageCreateOrUpdateOptionalParams, + Python3PackageCreateOrUpdateResponse, + PythonPackageUpdateParameters, + Python3PackageUpdateOptionalParams, + Python3PackageUpdateResponse, +} from "../models"; + +/// +/** Interface representing a Python3Package. */ +export interface Python3Package { + /** + * Retrieve a list of python 3 packages. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The options parameters. + */ + listByAutomationAccount( + resourceGroupName: string, + automationAccountName: string, + options?: Python3PackageListByAutomationAccountOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Delete the python 3 package by name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param packageName The python package name. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + automationAccountName: string, + packageName: string, + options?: Python3PackageDeleteOptionalParams, + ): Promise; + /** + * Retrieve the python 3 package identified by package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param packageName The python package name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + automationAccountName: string, + packageName: string, + options?: Python3PackageGetOptionalParams, + ): Promise; + /** + * Create or Update the python 3 package identified by package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param packageName The name of python package. + * @param parameters The create or update parameters for python package. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + automationAccountName: string, + packageName: string, + parameters: PythonPackageCreateParameters, + options?: Python3PackageCreateOrUpdateOptionalParams, + ): Promise; + /** + * Update the python 3 package identified by package name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param packageName The name of python package. + * @param parameters The update parameters for python package. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + automationAccountName: string, + packageName: string, + parameters: PythonPackageUpdateParameters, + options?: Python3PackageUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/runbookDraftOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/runbookDraftOperations.ts index 6d416119dfaf..2d6a76b14d78 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/runbookDraftOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/runbookDraftOperations.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { RunbookDraftGetContentOptionalParams, RunbookDraftGetContentResponse, @@ -15,7 +15,7 @@ import { RunbookDraftGetOptionalParams, RunbookDraftGetResponse, RunbookDraftUndoEditOptionalParams, - RunbookDraftUndoEditResponse + RunbookDraftUndoEditResponse, } from "../models"; /** Interface representing a RunbookDraftOperations. */ @@ -31,14 +31,14 @@ export interface RunbookDraftOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookDraftGetContentOptionalParams + options?: RunbookDraftGetContentOptionalParams, ): Promise; /** * Replaces the runbook draft content. * @param resourceGroupName Name of an Azure Resource group. * @param automationAccountName The name of the automation account. * @param runbookName The runbook name. - * @param runbookContent The runbook draft content. + * @param runbookContent The runbook draft content. * @param options The options parameters. */ beginReplaceContent( @@ -46,10 +46,10 @@ export interface RunbookDraftOperations { automationAccountName: string, runbookName: string, runbookContent: string, - options?: RunbookDraftReplaceContentOptionalParams + options?: RunbookDraftReplaceContentOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, RunbookDraftReplaceContentResponse > >; @@ -58,7 +58,7 @@ export interface RunbookDraftOperations { * @param resourceGroupName Name of an Azure Resource group. * @param automationAccountName The name of the automation account. * @param runbookName The runbook name. - * @param runbookContent The runbook draft content. + * @param runbookContent The runbook draft content. * @param options The options parameters. */ beginReplaceContentAndWait( @@ -66,7 +66,7 @@ export interface RunbookDraftOperations { automationAccountName: string, runbookName: string, runbookContent: string, - options?: RunbookDraftReplaceContentOptionalParams + options?: RunbookDraftReplaceContentOptionalParams, ): Promise; /** * Retrieve the runbook draft identified by runbook name. @@ -79,7 +79,7 @@ export interface RunbookDraftOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookDraftGetOptionalParams + options?: RunbookDraftGetOptionalParams, ): Promise; /** * Undo draft edit to last known published state identified by runbook name. @@ -92,6 +92,6 @@ export interface RunbookDraftOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookDraftUndoEditOptionalParams + options?: RunbookDraftUndoEditOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/runbookOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/runbookOperations.ts index 19399f775b4e..95627dd9b39a 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/runbookOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/runbookOperations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Runbook, RunbookListByAutomationAccountOptionalParams, @@ -23,7 +23,7 @@ import { RunbookUpdateParameters, RunbookUpdateOptionalParams, RunbookUpdateResponse, - RunbookDeleteOptionalParams + RunbookDeleteOptionalParams, } from "../models"; /// @@ -38,7 +38,7 @@ export interface RunbookOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: RunbookListByAutomationAccountOptionalParams + options?: RunbookListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Publish runbook draft. @@ -51,10 +51,10 @@ export interface RunbookOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookPublishOptionalParams + options?: RunbookPublishOptionalParams, ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, RunbookPublishResponse > >; @@ -69,7 +69,7 @@ export interface RunbookOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookPublishOptionalParams + options?: RunbookPublishOptionalParams, ): Promise; /** * Retrieve the content of runbook identified by runbook name. @@ -82,7 +82,7 @@ export interface RunbookOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookGetContentOptionalParams + options?: RunbookGetContentOptionalParams, ): Promise; /** * Retrieve the runbook identified by runbook name. @@ -95,7 +95,7 @@ export interface RunbookOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookGetOptionalParams + options?: RunbookGetOptionalParams, ): Promise; /** * Create the runbook identified by runbook name. @@ -111,7 +111,7 @@ export interface RunbookOperations { automationAccountName: string, runbookName: string, parameters: RunbookCreateOrUpdateParameters, - options?: RunbookCreateOrUpdateOptionalParams + options?: RunbookCreateOrUpdateOptionalParams, ): Promise; /** * Update the runbook identified by runbook name. @@ -126,7 +126,7 @@ export interface RunbookOperations { automationAccountName: string, runbookName: string, parameters: RunbookUpdateParameters, - options?: RunbookUpdateOptionalParams + options?: RunbookUpdateOptionalParams, ): Promise; /** * Delete the runbook by name. @@ -139,6 +139,6 @@ export interface RunbookOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: RunbookDeleteOptionalParams + options?: RunbookDeleteOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/runtimeEnvironments.ts b/sdk/automation/arm-automation/src/operationsInterfaces/runtimeEnvironments.ts new file mode 100644 index 000000000000..73e729035931 --- /dev/null +++ b/sdk/automation/arm-automation/src/operationsInterfaces/runtimeEnvironments.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + RuntimeEnvironment, + RuntimeEnvironmentsListByAutomationAccountOptionalParams, + RuntimeEnvironmentUpdateParameters, + RuntimeEnvironmentsUpdateOptionalParams, + RuntimeEnvironmentsUpdateResponse, + RuntimeEnvironmentsCreateOptionalParams, + RuntimeEnvironmentsCreateResponse, + RuntimeEnvironmentsDeleteOptionalParams, + RuntimeEnvironmentsGetOptionalParams, + RuntimeEnvironmentsGetResponse, +} from "../models"; + +/// +/** Interface representing a RuntimeEnvironments. */ +export interface RuntimeEnvironments { + /** + * Retrieve a list of RuntimeEnvironments. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The options parameters. + */ + listByAutomationAccount( + resourceGroupName: string, + automationAccountName: string, + options?: RuntimeEnvironmentsListByAutomationAccountOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Update an Runtime Environment. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param parameters Parameters supplied to the Runtime Environment + * @param options The options parameters. + */ + update( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + parameters: RuntimeEnvironmentUpdateParameters, + options?: RuntimeEnvironmentsUpdateOptionalParams, + ): Promise; + /** + * Create or update Runtime Environment + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param parameters Parameters supplied to the create the runtime environment. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + parameters: RuntimeEnvironment, + options?: RuntimeEnvironmentsCreateOptionalParams, + ): Promise; + /** + * Delete the Runtime Environment. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + options?: RuntimeEnvironmentsDeleteOptionalParams, + ): Promise; + /** + * Get information about the Runtime Environment + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runtimeEnvironmentName The name of the Runtime Environment. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + automationAccountName: string, + runtimeEnvironmentName: string, + options?: RuntimeEnvironmentsGetOptionalParams, + ): Promise; +} diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/scheduleOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/scheduleOperations.ts index e049d51003f5..86023794dea7 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/scheduleOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/scheduleOperations.ts @@ -18,7 +18,7 @@ import { ScheduleUpdateResponse, ScheduleGetOptionalParams, ScheduleGetResponse, - ScheduleDeleteOptionalParams + ScheduleDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface ScheduleOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: ScheduleListByAutomationAccountOptionalParams + options?: ScheduleListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Create a schedule. @@ -48,7 +48,7 @@ export interface ScheduleOperations { automationAccountName: string, scheduleName: string, parameters: ScheduleCreateOrUpdateParameters, - options?: ScheduleCreateOrUpdateOptionalParams + options?: ScheduleCreateOrUpdateOptionalParams, ): Promise; /** * Update the schedule identified by schedule name. @@ -63,7 +63,7 @@ export interface ScheduleOperations { automationAccountName: string, scheduleName: string, parameters: ScheduleUpdateParameters, - options?: ScheduleUpdateOptionalParams + options?: ScheduleUpdateOptionalParams, ): Promise; /** * Retrieve the schedule identified by schedule name. @@ -76,7 +76,7 @@ export interface ScheduleOperations { resourceGroupName: string, automationAccountName: string, scheduleName: string, - options?: ScheduleGetOptionalParams + options?: ScheduleGetOptionalParams, ): Promise; /** * Delete the schedule identified by schedule name. @@ -89,6 +89,6 @@ export interface ScheduleOperations { resourceGroupName: string, automationAccountName: string, scheduleName: string, - options?: ScheduleDeleteOptionalParams + options?: ScheduleDeleteOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurationMachineRuns.ts b/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurationMachineRuns.ts index fc651ca9611f..50315ac3e43b 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurationMachineRuns.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurationMachineRuns.ts @@ -10,7 +10,7 @@ import { SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams, SoftwareUpdateConfigurationMachineRunsGetByIdResponse, SoftwareUpdateConfigurationMachineRunsListOptionalParams, - SoftwareUpdateConfigurationMachineRunsListResponse + SoftwareUpdateConfigurationMachineRunsListResponse, } from "../models"; /** Interface representing a SoftwareUpdateConfigurationMachineRuns. */ @@ -27,7 +27,7 @@ export interface SoftwareUpdateConfigurationMachineRuns { resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, - options?: SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams + options?: SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams, ): Promise; /** * Return list of software update configuration machine runs @@ -38,6 +38,6 @@ export interface SoftwareUpdateConfigurationMachineRuns { list( resourceGroupName: string, automationAccountName: string, - options?: SoftwareUpdateConfigurationMachineRunsListOptionalParams + options?: SoftwareUpdateConfigurationMachineRunsListOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurationRuns.ts b/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurationRuns.ts index c1edd7e2e293..f598617241b8 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurationRuns.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurationRuns.ts @@ -10,7 +10,7 @@ import { SoftwareUpdateConfigurationRunsGetByIdOptionalParams, SoftwareUpdateConfigurationRunsGetByIdResponse, SoftwareUpdateConfigurationRunsListOptionalParams, - SoftwareUpdateConfigurationRunsListResponse + SoftwareUpdateConfigurationRunsListResponse, } from "../models"; /** Interface representing a SoftwareUpdateConfigurationRuns. */ @@ -26,7 +26,7 @@ export interface SoftwareUpdateConfigurationRuns { resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, - options?: SoftwareUpdateConfigurationRunsGetByIdOptionalParams + options?: SoftwareUpdateConfigurationRunsGetByIdOptionalParams, ): Promise; /** * Return list of software update configuration runs @@ -37,6 +37,6 @@ export interface SoftwareUpdateConfigurationRuns { list( resourceGroupName: string, automationAccountName: string, - options?: SoftwareUpdateConfigurationRunsListOptionalParams + options?: SoftwareUpdateConfigurationRunsListOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurations.ts index fd64873fbedd..dccb94c92d00 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/softwareUpdateConfigurations.ts @@ -14,7 +14,7 @@ import { SoftwareUpdateConfigurationsGetByNameResponse, SoftwareUpdateConfigurationsDeleteOptionalParams, SoftwareUpdateConfigurationsListOptionalParams, - SoftwareUpdateConfigurationsListResponse + SoftwareUpdateConfigurationsListResponse, } from "../models"; /** Interface representing a SoftwareUpdateConfigurations. */ @@ -32,7 +32,7 @@ export interface SoftwareUpdateConfigurations { automationAccountName: string, softwareUpdateConfigurationName: string, parameters: SoftwareUpdateConfiguration, - options?: SoftwareUpdateConfigurationsCreateOptionalParams + options?: SoftwareUpdateConfigurationsCreateOptionalParams, ): Promise; /** * Get a single software update configuration by name. @@ -45,7 +45,7 @@ export interface SoftwareUpdateConfigurations { resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, - options?: SoftwareUpdateConfigurationsGetByNameOptionalParams + options?: SoftwareUpdateConfigurationsGetByNameOptionalParams, ): Promise; /** * delete a specific software update configuration. @@ -58,7 +58,7 @@ export interface SoftwareUpdateConfigurations { resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, - options?: SoftwareUpdateConfigurationsDeleteOptionalParams + options?: SoftwareUpdateConfigurationsDeleteOptionalParams, ): Promise; /** * Get all software update configurations for the account. @@ -69,6 +69,6 @@ export interface SoftwareUpdateConfigurations { list( resourceGroupName: string, automationAccountName: string, - options?: SoftwareUpdateConfigurationsListOptionalParams + options?: SoftwareUpdateConfigurationsListOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlOperations.ts index 65a78fc682fa..6c526d608450 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlOperations.ts @@ -18,7 +18,7 @@ import { SourceControlUpdateResponse, SourceControlDeleteOptionalParams, SourceControlGetOptionalParams, - SourceControlGetResponse + SourceControlGetResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface SourceControlOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: SourceControlListByAutomationAccountOptionalParams + options?: SourceControlListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Create a source control. @@ -48,7 +48,7 @@ export interface SourceControlOperations { automationAccountName: string, sourceControlName: string, parameters: SourceControlCreateOrUpdateParameters, - options?: SourceControlCreateOrUpdateOptionalParams + options?: SourceControlCreateOrUpdateOptionalParams, ): Promise; /** * Update a source control. @@ -63,7 +63,7 @@ export interface SourceControlOperations { automationAccountName: string, sourceControlName: string, parameters: SourceControlUpdateParameters, - options?: SourceControlUpdateOptionalParams + options?: SourceControlUpdateOptionalParams, ): Promise; /** * Delete the source control. @@ -76,7 +76,7 @@ export interface SourceControlOperations { resourceGroupName: string, automationAccountName: string, sourceControlName: string, - options?: SourceControlDeleteOptionalParams + options?: SourceControlDeleteOptionalParams, ): Promise; /** * Retrieve the source control identified by source control name. @@ -89,6 +89,6 @@ export interface SourceControlOperations { resourceGroupName: string, automationAccountName: string, sourceControlName: string, - options?: SourceControlGetOptionalParams + options?: SourceControlGetOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlSyncJobOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlSyncJobOperations.ts index 4ea8faf1beb7..cc774b4227c0 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlSyncJobOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlSyncJobOperations.ts @@ -14,7 +14,7 @@ import { SourceControlSyncJobCreateOptionalParams, SourceControlSyncJobCreateResponse, SourceControlSyncJobGetOptionalParams, - SourceControlSyncJobGetResponse + SourceControlSyncJobGetResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface SourceControlSyncJobOperations { resourceGroupName: string, automationAccountName: string, sourceControlName: string, - options?: SourceControlSyncJobListByAutomationAccountOptionalParams + options?: SourceControlSyncJobListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Creates the sync job for a source control. @@ -48,7 +48,7 @@ export interface SourceControlSyncJobOperations { sourceControlName: string, sourceControlSyncJobId: string, parameters: SourceControlSyncJobCreateParameters, - options?: SourceControlSyncJobCreateOptionalParams + options?: SourceControlSyncJobCreateOptionalParams, ): Promise; /** * Retrieve the source control sync job identified by job id. @@ -63,6 +63,6 @@ export interface SourceControlSyncJobOperations { automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, - options?: SourceControlSyncJobGetOptionalParams + options?: SourceControlSyncJobGetOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlSyncJobStreams.ts b/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlSyncJobStreams.ts index c6d25b8f1dcc..b0185405ce22 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlSyncJobStreams.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/sourceControlSyncJobStreams.ts @@ -11,7 +11,7 @@ import { SourceControlSyncJobStream, SourceControlSyncJobStreamsListBySyncJobOptionalParams, SourceControlSyncJobStreamsGetOptionalParams, - SourceControlSyncJobStreamsGetResponse + SourceControlSyncJobStreamsGetResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface SourceControlSyncJobStreams { automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, - options?: SourceControlSyncJobStreamsListBySyncJobOptionalParams + options?: SourceControlSyncJobStreamsListBySyncJobOptionalParams, ): PagedAsyncIterableIterator; /** * Retrieve a sync job stream identified by stream id. @@ -47,6 +47,6 @@ export interface SourceControlSyncJobStreams { sourceControlName: string, sourceControlSyncJobId: string, streamId: string, - options?: SourceControlSyncJobStreamsGetOptionalParams + options?: SourceControlSyncJobStreamsGetOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/statisticsOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/statisticsOperations.ts index a465966330f8..ccfe1080485c 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/statisticsOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/statisticsOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Statistics, - StatisticsListByAutomationAccountOptionalParams + StatisticsListByAutomationAccountOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface StatisticsOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: StatisticsListByAutomationAccountOptionalParams + options?: StatisticsListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/testJobOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/testJobOperations.ts index 15e8cb2af046..4f1c0e73e2bd 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/testJobOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/testJobOperations.ts @@ -14,7 +14,7 @@ import { TestJobGetResponse, TestJobResumeOptionalParams, TestJobStopOptionalParams, - TestJobSuspendOptionalParams + TestJobSuspendOptionalParams, } from "../models"; /** Interface representing a TestJobOperations. */ @@ -32,7 +32,7 @@ export interface TestJobOperations { automationAccountName: string, runbookName: string, parameters: TestJobCreateParameters, - options?: TestJobCreateOptionalParams + options?: TestJobCreateOptionalParams, ): Promise; /** * Retrieve the test job for the specified runbook. @@ -45,7 +45,7 @@ export interface TestJobOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobGetOptionalParams + options?: TestJobGetOptionalParams, ): Promise; /** * Resume the test job. @@ -58,7 +58,7 @@ export interface TestJobOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobResumeOptionalParams + options?: TestJobResumeOptionalParams, ): Promise; /** * Stop the test job. @@ -71,7 +71,7 @@ export interface TestJobOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobStopOptionalParams + options?: TestJobStopOptionalParams, ): Promise; /** * Suspend the test job. @@ -84,6 +84,6 @@ export interface TestJobOperations { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobSuspendOptionalParams + options?: TestJobSuspendOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/testJobStreams.ts b/sdk/automation/arm-automation/src/operationsInterfaces/testJobStreams.ts index 11a9dcb8cf80..234f0acdda4b 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/testJobStreams.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/testJobStreams.ts @@ -11,7 +11,7 @@ import { JobStream, TestJobStreamsListByTestJobOptionalParams, TestJobStreamsGetOptionalParams, - TestJobStreamsGetResponse + TestJobStreamsGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface TestJobStreams { resourceGroupName: string, automationAccountName: string, runbookName: string, - options?: TestJobStreamsListByTestJobOptionalParams + options?: TestJobStreamsListByTestJobOptionalParams, ): PagedAsyncIterableIterator; /** * Retrieve a test job stream of the test job identified by runbook name and stream id. @@ -43,6 +43,6 @@ export interface TestJobStreams { automationAccountName: string, runbookName: string, jobStreamId: string, - options?: TestJobStreamsGetOptionalParams + options?: TestJobStreamsGetOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/usages.ts b/sdk/automation/arm-automation/src/operationsInterfaces/usages.ts index da9756dfd863..72369fe24df1 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/usages.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/usages.ts @@ -21,6 +21,6 @@ export interface Usages { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: UsagesListByAutomationAccountOptionalParams + options?: UsagesListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/variableOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/variableOperations.ts index d09d28a63f49..011224d26ef1 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/variableOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/variableOperations.ts @@ -18,7 +18,7 @@ import { VariableUpdateResponse, VariableDeleteOptionalParams, VariableGetOptionalParams, - VariableGetResponse + VariableGetResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface VariableOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: VariableListByAutomationAccountOptionalParams + options?: VariableListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Create a variable. @@ -48,7 +48,7 @@ export interface VariableOperations { automationAccountName: string, variableName: string, parameters: VariableCreateOrUpdateParameters, - options?: VariableCreateOrUpdateOptionalParams + options?: VariableCreateOrUpdateOptionalParams, ): Promise; /** * Update a variable. @@ -63,7 +63,7 @@ export interface VariableOperations { automationAccountName: string, variableName: string, parameters: VariableUpdateParameters, - options?: VariableUpdateOptionalParams + options?: VariableUpdateOptionalParams, ): Promise; /** * Delete the variable. @@ -76,7 +76,7 @@ export interface VariableOperations { resourceGroupName: string, automationAccountName: string, variableName: string, - options?: VariableDeleteOptionalParams + options?: VariableDeleteOptionalParams, ): Promise; /** * Retrieve the variable identified by variable name. @@ -89,6 +89,6 @@ export interface VariableOperations { resourceGroupName: string, automationAccountName: string, variableName: string, - options?: VariableGetOptionalParams + options?: VariableGetOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/watcherOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/watcherOperations.ts index b7cc95f2b352..9cf1eef1aeff 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/watcherOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/watcherOperations.ts @@ -19,7 +19,7 @@ import { WatcherUpdateResponse, WatcherDeleteOptionalParams, WatcherStartOptionalParams, - WatcherStopOptionalParams + WatcherStopOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface WatcherOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: WatcherListByAutomationAccountOptionalParams + options?: WatcherListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Create the watcher identified by watcher name. @@ -49,7 +49,7 @@ export interface WatcherOperations { automationAccountName: string, watcherName: string, parameters: Watcher, - options?: WatcherCreateOrUpdateOptionalParams + options?: WatcherCreateOrUpdateOptionalParams, ): Promise; /** * Retrieve the watcher identified by watcher name. @@ -62,7 +62,7 @@ export interface WatcherOperations { resourceGroupName: string, automationAccountName: string, watcherName: string, - options?: WatcherGetOptionalParams + options?: WatcherGetOptionalParams, ): Promise; /** * Update the watcher identified by watcher name. @@ -77,7 +77,7 @@ export interface WatcherOperations { automationAccountName: string, watcherName: string, parameters: WatcherUpdateParameters, - options?: WatcherUpdateOptionalParams + options?: WatcherUpdateOptionalParams, ): Promise; /** * Delete the watcher by name. @@ -90,7 +90,7 @@ export interface WatcherOperations { resourceGroupName: string, automationAccountName: string, watcherName: string, - options?: WatcherDeleteOptionalParams + options?: WatcherDeleteOptionalParams, ): Promise; /** * Resume the watcher identified by watcher name. @@ -103,7 +103,7 @@ export interface WatcherOperations { resourceGroupName: string, automationAccountName: string, watcherName: string, - options?: WatcherStartOptionalParams + options?: WatcherStartOptionalParams, ): Promise; /** * Resume the watcher identified by watcher name. @@ -116,6 +116,6 @@ export interface WatcherOperations { resourceGroupName: string, automationAccountName: string, watcherName: string, - options?: WatcherStopOptionalParams + options?: WatcherStopOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/webhookOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/webhookOperations.ts index 51bbc0c5a9ec..595577fc690c 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/webhookOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/webhookOperations.ts @@ -20,7 +20,7 @@ import { WebhookCreateOrUpdateResponse, WebhookUpdateParameters, WebhookUpdateOptionalParams, - WebhookUpdateResponse + WebhookUpdateResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface WebhookOperations { listByAutomationAccount( resourceGroupName: string, automationAccountName: string, - options?: WebhookListByAutomationAccountOptionalParams + options?: WebhookListByAutomationAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Generates a Uri for use in creating a webhook. @@ -46,7 +46,7 @@ export interface WebhookOperations { generateUri( resourceGroupName: string, automationAccountName: string, - options?: WebhookGenerateUriOptionalParams + options?: WebhookGenerateUriOptionalParams, ): Promise; /** * Delete the webhook by name. @@ -59,7 +59,7 @@ export interface WebhookOperations { resourceGroupName: string, automationAccountName: string, webhookName: string, - options?: WebhookDeleteOptionalParams + options?: WebhookDeleteOptionalParams, ): Promise; /** * Retrieve the webhook identified by webhook name. @@ -72,7 +72,7 @@ export interface WebhookOperations { resourceGroupName: string, automationAccountName: string, webhookName: string, - options?: WebhookGetOptionalParams + options?: WebhookGetOptionalParams, ): Promise; /** * Create the webhook identified by webhook name. @@ -87,7 +87,7 @@ export interface WebhookOperations { automationAccountName: string, webhookName: string, parameters: WebhookCreateOrUpdateParameters, - options?: WebhookCreateOrUpdateOptionalParams + options?: WebhookCreateOrUpdateOptionalParams, ): Promise; /** * Update the webhook identified by webhook name. @@ -102,6 +102,6 @@ export interface WebhookOperations { automationAccountName: string, webhookName: string, parameters: WebhookUpdateParameters, - options?: WebhookUpdateOptionalParams + options?: WebhookUpdateOptionalParams, ): Promise; } diff --git a/sdk/automation/arm-automation/src/pagingHelper.ts b/sdk/automation/arm-automation/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/automation/arm-automation/src/pagingHelper.ts +++ b/sdk/automation/arm-automation/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/automation/arm-automation/test/sampleTest.ts b/sdk/automation/arm-automation/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/automation/arm-automation/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +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", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/automation/arm-automation/tsconfig.json b/sdk/automation/arm-automation/tsconfig.json index bde330317eaa..b35d05ad6e9d 100644 --- a/sdk/automation/arm-automation/tsconfig.json +++ b/sdk/automation/arm-automation/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-automation": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "src/**/*.ts", + "test/**/*.ts" ], "exclude": [ "node_modules"