From 01bc1733a3d19995c6658a03d31dde4cd809ee55 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 7 Aug 2023 07:17:02 +0000 Subject: [PATCH] CodeGen from PR 25197 in Azure/azure-rest-api-specs Merge c008a71aebeef195b8ac95fab078ae9d667fe8d2 into a3089b2764df11b10a8a43e2a5a33dbe4d3653ca --- common/config/rush/pnpm-lock.yaml | 16 +- sdk/automation/arm-automation/CHANGELOG.md | 16 +- sdk/automation/arm-automation/_meta.json | 10 +- sdk/automation/arm-automation/package.json | 20 +- .../review/arm-automation.api.md | 136 +- .../arm-automation/src/automationClient.ts | 166 +- sdk/automation/arm-automation/src/lroImpl.ts | 54 +- .../arm-automation/src/models/index.ts | 3593 +++++++------ .../arm-automation/src/models/mappers.ts | 4677 +++++++++-------- .../arm-automation/src/models/parameters.ts | 637 ++- .../src/operations/activityOperations.ts | 4 +- .../agentRegistrationInformation.ts | 2 +- .../operations/automationAccountOperations.ts | 16 +- .../src/operations/certificateOperations.ts | 14 +- .../src/operations/connectionOperations.ts | 14 +- .../operations/connectionTypeOperations.ts | 10 +- .../src/operations/credentialOperations.ts | 14 +- .../operations/deletedAutomationAccounts.ts | 2 +- .../operations/dscCompilationJobOperations.ts | 33 +- .../operations/dscConfigurationOperations.ts | 26 +- .../dscNodeConfigurationOperations.ts | 38 +- .../arm-automation/src/operations/fields.ts | 2 +- .../hybridRunbookWorkerGroupOperations.ts | 13 +- .../src/operations/hybridRunbookWorkers.ts | 13 +- .../arm-automation/src/operations/index.ts | 37 +- .../src/operations/jobOperations.ts | 22 +- .../src/operations/jobScheduleOperations.ts | 10 +- .../src/operations/jobStreamOperations.ts | 4 +- .../arm-automation/src/operations/keys.ts | 2 +- .../operations/linkedWorkspaceOperations.ts | 2 +- .../src/operations/moduleOperations.ts | 14 +- .../src/operations/nodeReports.ts | 4 +- .../src/operations/objectDataTypes.ts | 4 +- .../src/operations/operations.ts | 2 +- .../operations/privateEndpointConnections.ts | 49 +- .../src/operations/python2Package.ts | 14 +- .../src/operations/python3Package.ts | 402 ++ .../src/operations/runbookDraftOperations.ts | 46 +- .../src/operations/runbookOperations.ts | 49 +- .../src/operations/scheduleOperations.ts | 14 +- .../softwareUpdateConfigurationMachineRuns.ts | 4 +- .../softwareUpdateConfigurationRuns.ts | 4 +- .../softwareUpdateConfigurations.ts | 10 +- .../src/operations/sourceControlOperations.ts | 14 +- .../sourceControlSyncJobOperations.ts | 8 +- .../operations/sourceControlSyncJobStreams.ts | 4 +- .../src/operations/statisticsOperations.ts | 2 +- .../src/operations/testJobOperations.ts | 12 +- .../src/operations/testJobStreams.ts | 4 +- .../arm-automation/src/operations/usages.ts | 2 +- .../src/operations/variableOperations.ts | 14 +- .../src/operations/watcherOperations.ts | 4 +- .../src/operations/webhookOperations.ts | 16 +- .../dscCompilationJobOperations.ts | 6 +- .../dscNodeConfigurationOperations.ts | 4 +- .../src/operationsInterfaces/index.ts | 37 +- .../privateEndpointConnections.ts | 8 +- .../operationsInterfaces/python3Package.ts | 94 + .../runbookDraftOperations.ts | 10 +- .../operationsInterfaces/runbookOperations.ts | 6 +- .../arm-automation/test/sampleTest.ts | 43 + sdk/automation/arm-automation/tsconfig.json | 10 +- 62 files changed, 5713 insertions(+), 4804 deletions(-) create mode 100644 sdk/automation/arm-automation/src/operations/python3Package.ts create mode 100644 sdk/automation/arm-automation/src/operationsInterfaces/python3Package.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 ff5cbc35691d..3ca61bc09f44 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4818,7 +4818,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.2.0-dev.20230804 + typescript: 5.2.0-dev.20230807 dev: false /duplexer3/0.1.5: @@ -10326,8 +10326,8 @@ packages: hasBin: true dev: false - /typescript/5.2.0-dev.20230804: - resolution: {integrity: sha512-4g7zcF85Th+zpaMgR7CHzM1MqjJ0Fv3+2PUxzCUMW8tc7aRYGPtQBfnAyN0+yXChZaV6lVejmrh7hle1DMAEcw==} + /typescript/5.2.0-dev.20230807: + resolution: {integrity: sha512-sF8sZl3r/mpAdKAxASaWaoU+mNPF3g8OrZ601HraU2l4WEwAf6nO7sq0Bzl+Y3FV7sWjy+gb6kdM1CtLjVne/g==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -12019,7 +12019,7 @@ packages: dev: false file:projects/arm-automation.tgz: - resolution: {integrity: sha512-GNOJMBLXUo7nDHLxmV2N6Euv4FTfbiMsNa9qf/2qhS+PoIstjd1e7dT5revoE7uZAUcAVEOSYprvf567IaOsSw==, tarball: file:projects/arm-automation.tgz} + resolution: {integrity: sha512-BWMVaLzddx2/KnEEW35GF7Fmfp0GQte0jMkV1xRM4btgHJGl5zdp+zmPk2HGR+gbX2tGn1ApGbn7NWY9zqA4Vw==, tarball: file:projects/arm-automation.tgz} name: '@rush-temp/arm-automation' version: 0.0.0 dependencies: @@ -12033,8 +12033,8 @@ packages: '@types/node': 14.18.54 chai: 4.3.7 cross-env: 7.0.3 - dotenv: 8.6.0 - mkdirp: 1.0.4 + dotenv: 16.3.1 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 @@ -19300,7 +19300,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-suRodhlNh4+HKHblrqtOmgcd0v93ubPFRNq17B5XYbNYKyI2Od9n8dyx888Ncq111F0AkZ18ZuHtfOlGGj2kMA==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-m0hoOpafOAY1QGvzbcWmZ09OVvF0vr9h1IJXZPPBm7k9Z6PY7YnbcVSmGhNDTM7uYh+dviEKRh4+iw1ZDeZkDw==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -20254,7 +20254,7 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-9MFu1tfnxzzD0yi+/vt2r/ZCUZ79/cMut8DlmlKrYaA4vJo/CicjvfUAWMHz6lkhbJLpYuHy73X0IPIbve11fg==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-DGgM6ZJxfKnVK8axRpJQXEKY+mhOliJQc1QU5q/cyzia188SP9xzz4UX73KmCYNchJuY8AhUoRMShUy+p4ztlg==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: diff --git a/sdk/automation/arm-automation/CHANGELOG.md b/sdk/automation/arm-automation/CHANGELOG.md index 49dceff02ca6..9a31c3b4632a 100644 --- a/sdk/automation/arm-automation/CHANGELOG.md +++ b/sdk/automation/arm-automation/CHANGELOG.md @@ -1,18 +1,8 @@ # Release History + +## 11.0.0-beta.5 (2023-08-07) -## 11.0.0-beta.5 (Unreleased) - -### 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-beta.5, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). diff --git a/sdk/automation/arm-automation/_meta.json b/sdk/automation/arm-automation/_meta.json index 9df7963e137a..5ba9035d7cbf 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": "97745d08e1b865643a9fe7ba9e7b812dae7f64a3", + "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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/automation/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "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.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/automation/arm-automation/package.json b/sdk/automation/arm-automation/package.json index b20ce191fc57..f61ae237d60d 100644 --- a/sdk/automation/arm-automation/package.json +++ b/sdk/automation/arm-automation/package.json @@ -8,10 +8,10 @@ "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -33,13 +33,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^8.2.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -111,13 +111,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 07e1b07a4e00..adc1c3f68c92 100644 --- a/sdk/automation/arm-automation/review/arm-automation.api.md +++ b/sdk/automation/arm-automation/review/arm-automation.api.md @@ -9,9 +9,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 { @@ -327,6 +327,8 @@ export class AutomationClient extends coreClient.ServiceClient { // (undocumented) python2Package: Python2Package; // (undocumented) + python3Package: Python3Package; + // (undocumented) runbookDraftOperations: RunbookDraftOperations; // (undocumented) runbookOperations: RunbookOperations; @@ -460,12 +462,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; @@ -769,6 +765,12 @@ export interface DeletedAutomationAccountsListBySubscriptionOptionalParams exten // @public export type DeletedAutomationAccountsListBySubscriptionResponse = DeletedAutomationAccountListResult; +// @public +export interface Dimension { + displayName?: string; + name?: string; +} + // @public export interface DscCompilationJob extends ProxyResource { configuration?: DscConfigurationAssociationProperty; @@ -849,7 +851,7 @@ export interface DscCompilationJobListResult { // @public export interface DscCompilationJobOperations { - beginCreate(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: DscCompilationJobCreateParameters, options?: DscCompilationJobCreateOptionalParams): Promise, DscCompilationJobCreateResponse>>; + 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; @@ -927,7 +929,7 @@ export interface DscConfigurationGetContentOptionalParams extends coreClient.Ope // @public export type DscConfigurationGetContentResponse = { - body: string; + body: coreRestPipeline.RequestBodyType; }; // @public @@ -1127,7 +1129,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; @@ -1467,7 +1469,7 @@ export interface Identity { readonly tenantId?: string; type?: ResourceIdentityType; userAssignedIdentities?: { - [propertyName: string]: ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties; + [propertyName: string]: UserAssignedIdentitiesProperties; }; } @@ -1924,6 +1926,26 @@ export enum KnownLinuxUpdateClasses { Unclassified = "Unclassified" } +// @public +export enum KnownModuleProvisioningState { + ActivitiesStored = "ActivitiesStored", + Cancelled = "Cancelled", + 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", @@ -2049,6 +2071,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; @@ -2129,7 +2168,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 { @@ -2247,10 +2286,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; @@ -2261,6 +2303,12 @@ export interface OperationListResult { value?: Operation[]; } +// @public +export interface OperationPropertiesFormatServiceSpecification { + logSpecifications?: LogSpecification[]; + metricSpecifications?: MetricSpecification[]; +} + // @public export interface Operations { list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; @@ -2287,9 +2335,9 @@ 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>>; + beginDelete(resourceGroupName: string, automationAccountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; 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; @@ -2414,6 +2462,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; @@ -2550,7 +2646,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; @@ -2627,7 +2723,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; @@ -3465,6 +3561,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/src/automationClient.ts b/sdk/automation/arm-automation/src/automationClient.ts index 51e94d91f5be..35ecb8cb5554 100644 --- a/sdk/automation/arm-automation/src/automationClient.ts +++ b/sdk/automation/arm-automation/src/automationClient.ts @@ -12,17 +12,16 @@ import * as coreAuth from "@azure/core-auth"; import { PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, - Python2PackageImpl, AgentRegistrationInformationImpl, DscNodeOperationsImpl, NodeReportsImpl, - DscNodeConfigurationOperationsImpl, DscCompilationJobOperationsImpl, DscCompilationJobStreamImpl, NodeCountInformationImpl, - SourceControlOperationsImpl, - SourceControlSyncJobOperationsImpl, - SourceControlSyncJobStreamsImpl, + WatcherOperationsImpl, + SoftwareUpdateConfigurationsImpl, + WebhookOperationsImpl, + DeletedAutomationAccountsImpl, 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, + Python2PackageImpl, + Python3PackageImpl, RunbookDraftOperationsImpl, RunbookOperationsImpl, TestJobStreamsImpl, TestJobOperationsImpl, - WebhookOperationsImpl, - HybridRunbookWorkersImpl, - DeletedAutomationAccountsImpl, - HybridRunbookWorkerGroupOperationsImpl + ScheduleOperationsImpl, + SoftwareUpdateConfigurationMachineRunsImpl, + SoftwareUpdateConfigurationRunsImpl, + SourceControlOperationsImpl, + SourceControlSyncJobOperationsImpl, + SourceControlSyncJobStreamsImpl, + VariableOperationsImpl } from "./operations"; import { PrivateEndpointConnections, PrivateLinkResources, - Python2Package, AgentRegistrationInformation, DscNodeOperations, NodeReports, - DscNodeConfigurationOperations, DscCompilationJobOperations, DscCompilationJobStream, NodeCountInformation, - SourceControlOperations, - SourceControlSyncJobOperations, - SourceControlSyncJobStreams, + WatcherOperations, + SoftwareUpdateConfigurations, + WebhookOperations, + DeletedAutomationAccounts, AutomationAccountOperations, StatisticsOperations, Usages, @@ -78,30 +78,32 @@ 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, + Python2Package, + Python3Package, RunbookDraftOperations, RunbookOperations, TestJobStreams, TestJobOperations, - WebhookOperations, - HybridRunbookWorkers, - DeletedAutomationAccounts, - HybridRunbookWorkerGroupOperations + ScheduleOperations, + SoftwareUpdateConfigurationMachineRuns, + SoftwareUpdateConfigurationRuns, + SourceControlOperations, + SourceControlSyncJobOperations, + SourceControlSyncJobStreams, + VariableOperations } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -199,27 +201,22 @@ export class AutomationClient extends coreClient.ServiceClient { this.$host = options.$host || "https://management.azure.com"; this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); - this.python2Package = new Python2PackageImpl(this); this.agentRegistrationInformation = new AgentRegistrationInformationImpl( 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.watcherOperations = new WatcherOperationsImpl(this); + this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl( this ); + this.webhookOperations = new WebhookOperationsImpl(this); + this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this); this.automationAccountOperations = new AutomationAccountOperationsImpl( this ); @@ -230,38 +227,44 @@ 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.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.scheduleOperations = new ScheduleOperationsImpl(this); + this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl( this ); this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl( this ); - this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl( + this.sourceControlOperations = new SourceControlOperationsImpl(this); + this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl( 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.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl( this ); + this.variableOperations = new VariableOperationsImpl(this); } /** @@ -285,17 +288,16 @@ export class AutomationClient extends coreClient.ServiceClient { privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; - python2Package: Python2Package; agentRegistrationInformation: AgentRegistrationInformation; dscNodeOperations: DscNodeOperations; nodeReports: NodeReports; - dscNodeConfigurationOperations: DscNodeConfigurationOperations; dscCompilationJobOperations: DscCompilationJobOperations; dscCompilationJobStream: DscCompilationJobStream; nodeCountInformation: NodeCountInformation; - sourceControlOperations: SourceControlOperations; - sourceControlSyncJobOperations: SourceControlSyncJobOperations; - sourceControlSyncJobStreams: SourceControlSyncJobStreams; + watcherOperations: WatcherOperations; + softwareUpdateConfigurations: SoftwareUpdateConfigurations; + webhookOperations: WebhookOperations; + deletedAutomationAccounts: DeletedAutomationAccounts; automationAccountOperations: AutomationAccountOperations; statisticsOperations: StatisticsOperations; usages: Usages; @@ -304,30 +306,32 @@ 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; + python2Package: Python2Package; + python3Package: Python3Package; runbookDraftOperations: RunbookDraftOperations; runbookOperations: RunbookOperations; testJobStreams: TestJobStreams; testJobOperations: TestJobOperations; - webhookOperations: WebhookOperations; - hybridRunbookWorkers: HybridRunbookWorkers; - deletedAutomationAccounts: DeletedAutomationAccounts; - hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations; + scheduleOperations: ScheduleOperations; + softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns; + softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns; + sourceControlOperations: SourceControlOperations; + sourceControlSyncJobOperations: SourceControlSyncJobOperations; + sourceControlSyncJobStreams: SourceControlSyncJobStreams; + variableOperations: VariableOperations; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -344,8 +348,8 @@ const convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters26, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/lroImpl.ts b/sdk/automation/arm-automation/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 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..ad7c83d30783 100644 --- a/sdk/automation/arm-automation/src/models/index.ts +++ b/sdk/automation/arm-automation/src/models/index.ts @@ -67,54 +67,6 @@ export interface PrivateLinkResourceListResult { value?: PrivateLinkResource[]; } -/** 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; -} - -/** 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; -} - -/** 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 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 }; -} - -/** 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 the agent registration information type. */ export interface AgentRegistration { /** Gets or sets the dsc meta configuration. */ @@ -285,48 +237,6 @@ export interface DscMetaConfiguration { 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. */ @@ -343,6 +253,12 @@ export interface DscCompilationJobCreateParameters { incrementNodeConfigurationBuild?: boolean; } +/** The Dsc configuration property associated with the entity. */ +export interface DscConfigurationAssociationProperty { + /** Gets or sets the name of the Dsc configuration. */ + name?: string; +} + /** The response model for the list job operation. */ export interface DscCompilationJobListResult { /** Gets or sets a list of Dsc Compilation jobs. */ @@ -397,195 +313,336 @@ export interface NodeCountProperties { 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; +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 source controls operation. */ -export interface SourceControlListResult { - /** The list of source controls. */ - value?: SourceControl[]; - /** The next link. */ +/** 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 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 { +/** 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 type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Resource id. + * 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. + * Resource type * 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; + readonly type?: string; + /** update specific properties for the Software update configuration */ + updateConfiguration: UpdateConfiguration; + /** Schedule information for the Software update configuration */ + scheduleInfo: SUCScheduleProperties; /** - * The start time of the job. + * 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 startTime?: Date; + readonly provisioningState?: string; + /** Details of provisioning error */ + error?: ErrorResponse; /** - * The end time of the job. + * 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 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; + readonly creationTime?: Date; /** - * The creation time of the job. + * CreatedBy property, which only appears in the response. * 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; + readonly createdBy?: string; /** - * The start time of the job. + * 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 startTime?: Date; + readonly lastModifiedTime?: Date; /** - * The end time of the job. + * LastModifiedBy property, which only appears in the response. * 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; + readonly lastModifiedBy?: string; + /** Tasks information for the Software update configuration. */ + tasks?: SoftwareUpdateConfigurationTasks; } -/** 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; +/** 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; } -/** Definition of the source control sync job stream. */ -export interface SourceControlSyncJobStream { +/** 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; +} + +/** 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; +} + +/** 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[]; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** Definition of schedule parameters. */ +export interface SUCScheduleProperties { + /** Gets or sets the start time of the schedule. */ + startTime?: Date; /** - * Resource id. + * Gets the start time's offset in minutes. * 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; + 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; +} + +/** 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; +} + +/** 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 { /** - * The time of the sync job stream. + * Name of the software update configuration. * 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 { + readonly name?: string; /** - * Resource id. + * 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; - /** The sync job stream id. */ - sourceControlSyncJobStreamId?: string; - /** The summary of the sync job stream. */ - summary?: 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; /** - * The time of the sync job stream. + * 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 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 }; + 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 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 or update webhook operation. */ +export interface WebhookCreateOrUpdateParameters { + /** Gets or sets the name of the webhook. */ + name: string; + /** Gets or sets the value of the enabled flag of webhook. */ + isEnabled?: boolean; + /** Gets or sets the uri. */ + uri?: string; + /** Gets or sets the expiry time. */ + expiryTime?: Date; + /** Gets or sets the parameters of the job. */ + parameters?: { [propertyName: string]: string }; + /** Gets or sets the runbook. */ + runbook?: RunbookAssociationProperty; + /** Gets or sets the name of the hybrid worker group the webhook job will run on. */ + runOn?: string; +} + +/** The parameters supplied to the update webhook operation. */ +export interface WebhookUpdateParameters { + /** Gets or sets the name of the webhook. */ + name?: string; + /** Gets or sets the value of the enabled flag of webhook. */ + isEnabled?: boolean; + /** Gets or sets the name of the hybrid worker group the webhook job will run on. */ + runOn?: string; + /** Gets or sets the parameters of the job. */ + parameters?: { [propertyName: string]: string }; + /** Gets or sets the description of the webhook. */ + description?: string; +} + +/** The response model for the list webhook operation. */ +export interface WebhookListResult { + /** Gets or sets a list of webhooks. */ + value?: Webhook[]; + /** 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; } /** The parameters supplied to the update automation account operation. */ @@ -660,11 +717,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. @@ -955,22 +1012,191 @@ export interface CredentialCreateOrUpdateParameters { export interface CredentialUpdateParameters { /** Gets or sets the name of the credential. */ name?: string; - /** Gets or sets the user name of the credential. */ - userName?: string; - /** Gets or sets the password of the credential. */ - password?: string; - /** Gets or sets the description of the credential. */ - description?: string; + /** Gets or sets the user name of the credential. */ + userName?: string; + /** Gets or sets the password of the credential. */ + password?: string; + /** Gets or sets the description of the credential. */ + description?: string; +} + +/** 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 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. */ + 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 credential operation. */ -export interface CredentialListResult { - /** Gets or sets a list of credentials. */ - value?: Credential[]; +/** 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 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 schedule. */ export interface JobSchedule { /** @@ -1006,12 +1232,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 +1338,24 @@ export interface ActivityListResult { nextLink?: 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; +} + +/** 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. */ @@ -1142,6 +1380,14 @@ export interface ModuleUpdateParameters { contentLink?: ContentLink; } +/** 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; +} + /** The response model for the list fields operation. */ export interface TypeFieldListResult { /** Gets or sets a list of fields. */ @@ -1153,189 +1399,7 @@ 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[]; - /** 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; + type?: string; } /** The response model for the list of Automation operations */ @@ -1350,6 +1414,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 +1428,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 +1492,284 @@ 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; +/** 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; } -/** 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 update module operation. */ +export interface PythonPackageUpdateParameters { + /** Gets or sets the tags attached to the resource. */ + tags?: { [propertyName: string]: string }; } -/** 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; +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[]; } -/** 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 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; } -/** 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[]; +/** The response model for the undo edit runbook operation. */ +export interface RunbookDraftUndoEditResult { + statusCode?: HttpStatusCode; + requestId?: 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 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. */ + description?: string; + /** Gets or sets 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 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; } -/** 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 runbook operation. */ +export interface RunbookListResult { + /** Gets or sets a list of runbooks. */ + value?: Runbook[]; + /** Gets or sets the next link. */ + nextLink?: string; } -/** Definition of schedule parameters. */ -export interface SUCScheduleProperties { - /** Gets or sets the start time of the schedule. */ +/** 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; +} + +/** 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 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 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 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 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,15 +1845,6 @@ 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. */ @@ -1712,334 +1871,223 @@ export interface SoftwareUpdateConfigurationRunListResult { nextLink?: string; } -/** Software update configuration machine run model. */ -export interface SoftwareUpdateConfigurationMachineRun { - /** - * 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 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 - * 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; +/** 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 { /** - * Status 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 status?: string; + readonly name?: string; /** - * Operating system target of the software update configuration triggered this run + * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly osType?: string; + readonly type?: string; /** - * correlation id of the software update configuration machine run + * Resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly correlationId?: string; + readonly 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; +} + +/** 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; /** - * 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. + * 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; /** - * 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. + * The start time of the job. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedBy?: string; - /** Details of provisioning error */ - error?: ErrorResponse; -} - -/** Software update configuration machine run job navigation properties. */ -export interface JobNavigation { + readonly startTime?: Date; /** - * Id of the job associated with the software update configuration run + * The end time of the job. * 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; -} - -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. */ - 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; -} - -/** 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. */ + readonly endTime?: Date; + /** The sync type. */ + syncType?: SyncType; + /** The exceptions that occurred while running the sync 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 parameters supplied to the create or update webhook operation. */ -export interface WebhookCreateOrUpdateParameters { - /** Gets or sets the name of the webhook. */ - name: string; - /** Gets or sets the value of the enabled flag of webhook. */ - isEnabled?: boolean; - /** Gets or sets the uri. */ - uri?: string; - /** Gets or sets the expiry time. */ - expiryTime?: Date; - /** Gets or sets the parameters of the job. */ - parameters?: { [propertyName: string]: string }; - /** Gets or sets the runbook. */ - runbook?: RunbookAssociationProperty; - /** Gets or sets the name of the hybrid worker group the webhook job will run on. */ - runOn?: string; -} - -/** The parameters supplied to the update webhook operation. */ -export interface WebhookUpdateParameters { - /** Gets or sets the name of the webhook. */ - name?: string; - /** Gets or sets the value of the enabled flag of webhook. */ - isEnabled?: boolean; - /** Gets or sets the name of the hybrid worker group the webhook job will run on. */ - runOn?: string; - /** Gets or sets the parameters of the job. */ - parameters?: { [propertyName: string]: string }; - /** Gets or sets the description of the webhook. */ - description?: string; -} - -/** The response model for the list webhook operation. */ -export interface WebhookListResult { - /** Gets or sets a list of webhooks. */ - value?: Webhook[]; - /** Gets or sets the next link. */ - 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. */ +/** 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 deleted automation account. */ -export interface DeletedAutomationAccountListResult { - /** Gets or sets the list of deleted automation accounts. */ - value?: DeletedAutomationAccount[]; +/** 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 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; +/** Definition of the source control sync job stream. */ +export interface SourceControlSyncJobStream { /** - * Gets the deletion time. + * Resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deletionTime?: Date; + 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 RunAs credential to use for hybrid worker. */ -export interface RunAsCredentialAssociationProperty { - /** Gets or sets the name of the credential. */ - name?: string; +/** 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 }; } -/** The parameters supplied to the create hybrid runbook worker group operation. */ -export interface HybridRunbookWorkerGroupCreateOrUpdateParameters { - /** Gets or sets the name of the resource. */ +/** 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; - /** Sets the credential of a worker group. */ - credential?: RunAsCredentialAssociationProperty; + /** 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 hybrid runbook worker groups. */ -export interface HybridRunbookWorkerGroupsListResult { - /** Gets or sets a list of hybrid runbook worker groups. */ - value?: HybridRunbookWorkerGroup[]; +/** 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; } @@ -2069,14 +2117,6 @@ export interface RunbookCreateOrUpdateDraftParameters { /** ARM proxy resource. */ export interface ProxyResource extends Resource {} -/** The resource model definition for a ARM tracked top level resource */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The Azure Region where the resource lives */ - location?: string; -} - /** Definition of the watcher type. */ export interface Watcher extends Resource { /** Gets or sets the etag of the resource. */ @@ -2117,6 +2157,14 @@ export interface Watcher extends Resource { description?: string; } +/** The resource model definition for a ARM tracked top level resource */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The Azure Region where the resource lives */ + location?: string; +} + /** Definition of hybrid runbook worker. */ export interface HybridRunbookWorker extends Resource { /** @@ -2199,22 +2247,6 @@ export interface DscNode extends ProxyResource { 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. */ @@ -2271,26 +2303,30 @@ export interface DscCompilationJob extends ProxyResource { parameters?: { [propertyName: string]: 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. */ +/** Definition of the webhook type. */ +export interface Webhook extends ProxyResource { + /** Gets or sets the value of the enabled flag of the webhook. */ + isEnabled?: boolean; + /** Gets or sets the webhook uri. */ + uri?: string; + /** Gets or sets the expiry time. */ + expiryTime?: Date; + /** Gets or sets the last invoked time. */ + lastInvokedTime?: Date; + /** Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with. */ + parameters?: { [propertyName: string]: string }; + /** Gets or sets the runbook the webhook is associated with. */ + runbook?: RunbookAssociationProperty; + /** Gets or sets the name of the hybrid worker group the webhook job will run on. */ + runOn?: string; + /** Gets or sets the creation time. */ creationTime?: Date; - /** The last modified time. */ + /** Gets or sets the last modified time. */ lastModifiedTime?: Date; + /** Details of the user who last modified the Webhook */ + lastModifiedBy?: string; + /** Gets or sets the description. */ + description?: string; } /** Definition of the certificate. */ @@ -2368,53 +2404,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. */ @@ -2495,58 +2498,75 @@ export interface JobCollectionItem extends ProxyResource { runOn?: string; } -/** Definition of the webhook type. */ -export interface Webhook extends ProxyResource { - /** Gets or sets the value of the enabled flag of the webhook. */ - isEnabled?: boolean; - /** Gets or sets the webhook uri. */ - uri?: string; - /** Gets or sets the expiry time. */ - expiryTime?: Date; - /** Gets or sets the last invoked time. */ - lastInvokedTime?: Date; - /** Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with. */ - parameters?: { [propertyName: string]: string }; - /** Gets or sets the runbook the webhook is associated with. */ - runbook?: RunbookAssociationProperty; - /** Gets or sets the name of the hybrid worker group the webhook job will run on. */ - 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; - /** Details of the user who last modified the Webhook */ - lastModifiedBy?: string; /** Gets or sets the description. */ 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; +/** 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; - /** Gets or sets type of module, if its composite or not. */ - isComposite?: boolean; } /** Definition of the automation account type. */ @@ -2619,6 +2639,34 @@ export interface DscConfiguration extends TrackedResource { 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 runbook type. */ export interface Runbook extends TrackedResource { /** Gets or sets the etag of the resource. */ @@ -2685,24 +2733,6 @@ export enum KnownAgentRegistrationKeyName { */ 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 */ @@ -2829,101 +2859,131 @@ 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" -} - -/** - * 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" +/** 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 TokenType. \ - * {@link KnownTokenType} can be used interchangeably with TokenType, + * 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 - * **PersonalAccessToken** \ - * **Oauth** + * **Unclassified** \ + * **Critical** \ + * **Security** \ + * **UpdateRollup** \ + * **FeaturePack** \ + * **ServicePack** \ + * **Definition** \ + * **Tools** \ + * **Updates** */ -export type TokenType = string; +export type WindowsUpdateClasses = 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 LinuxUpdateClasses} that the service accepts. */ +export enum KnownLinuxUpdateClasses { + /** Unclassified */ + Unclassified = "Unclassified", + /** Critical */ + Critical = "Critical", + /** Security */ + Security = "Security", + /** Other */ + Other = "Other" } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * 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 - * **Completed** \ - * **Failed** \ - * **Running** + * **Unclassified** \ + * **Critical** \ + * **Security** \ + * **Other** */ -export type ProvisioningState = string; +export type LinuxUpdateClasses = string; -/** Known values of {@link SyncType} that the service accepts. */ -export enum KnownSyncType { - /** PartialSync */ - PartialSync = "PartialSync", - /** FullSync */ - FullSync = "FullSync" +/** 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 SyncType. \ - * {@link KnownSyncType} can be used interchangeably with SyncType, + * 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 - * **PartialSync** \ - * **FullSync** + * **OneTime** \ + * **Day** \ + * **Hour** \ + * **Week** \ + * **Month** \ + * **Minute**: The minimum allowed interval for Minute schedules is 15 minutes. */ -export type SyncType = string; +export type ScheduleFrequency = string; -/** Known values of {@link StreamType} that the service accepts. */ -export enum KnownStreamType { - /** Error */ - Error = "Error", - /** Output */ - Output = "Output" +/** 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 StreamType. \ - * {@link KnownStreamType} can be used interchangeably with StreamType, + * 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 - * **Error** \ - * **Output** + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** \ + * **Sunday** */ -export type StreamType = string; +export type ScheduleDay = string; /** Known values of {@link SkuNameEnum} that the service accepts. */ export enum KnownSkuNameEnum { @@ -3024,68 +3084,23 @@ export enum KnownAutomationKeyPermissions { */ export type AutomationKeyPermissions = 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" -} - -/** - * 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 - * **OneTime** \ - * **Day** \ - * **Hour** \ - * **Week** \ - * **Month** \ - * **Minute**: The minimum allowed interval for Minute schedules is 15 minutes. - */ -export type ScheduleFrequency = 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 ContentSourceType} that the service accepts. */ +export enum KnownContentSourceType { + /** EmbeddedContent */ + EmbeddedContent = "embeddedContent", + /** Uri */ + Uri = "uri" } /** - * Defines values for ScheduleDay. \ - * {@link KnownScheduleDay} can be used interchangeably with ScheduleDay, + * 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 - * **Monday** \ - * **Tuesday** \ - * **Wednesday** \ - * **Thursday** \ - * **Friday** \ - * **Saturday** \ - * **Sunday** + * **embeddedContent** \ + * **uri** */ -export type ScheduleDay = string; +export type ContentSourceType = string; /** Known values of {@link DscConfigurationState} that the service accepts. */ export enum KnownDscConfigurationState { @@ -3108,86 +3123,119 @@ export enum KnownDscConfigurationState { */ export type DscConfigurationState = string; -/** Known values of {@link GraphRunbookType} that the service accepts. */ -export enum KnownGraphRunbookType { - /** GraphPowerShell */ - GraphPowerShell = "GraphPowerShell", - /** GraphPowerShellWorkflow */ - GraphPowerShellWorkflow = "GraphPowerShellWorkflow" +/** Known values of {@link WorkerType} that the service accepts. */ +export enum KnownWorkerType { + /** HybridV1 */ + HybridV1 = "HybridV1", + /** HybridV2 */ + HybridV2 = "HybridV2" } /** - * Defines values for GraphRunbookType. \ - * {@link KnownGraphRunbookType} can be used interchangeably with GraphRunbookType, + * 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 - * **GraphPowerShell** \ - * **GraphPowerShellWorkflow** + * **HybridV1** \ + * **HybridV2** */ -export type GraphRunbookType = string; +export type WorkerType = 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" +/** Known values of {@link GroupTypeEnum} that the service accepts. */ +export enum KnownGroupTypeEnum { + /** User */ + User = "User", + /** System */ + System = "System" } /** - * Defines values for WindowsUpdateClasses. \ - * {@link KnownWindowsUpdateClasses} can be used interchangeably with WindowsUpdateClasses, + * 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 - * **Unclassified** \ - * **Critical** \ - * **Security** \ - * **UpdateRollup** \ - * **FeaturePack** \ - * **ServicePack** \ - * **Definition** \ - * **Tools** \ - * **Updates** + * **User** \ + * **System** */ -export type WindowsUpdateClasses = string; +export type GroupTypeEnum = 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 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", + /** Cancelled */ + Cancelled = "Cancelled", + /** Updating */ + Updating = "Updating" } /** - * Defines values for LinuxUpdateClasses. \ - * {@link KnownLinuxUpdateClasses} can be used interchangeably with LinuxUpdateClasses, + * 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 - * **Unclassified** \ - * **Critical** \ - * **Security** \ - * **Other** + * **Created** \ + * **Creating** \ + * **StartingImportModuleRunbook** \ + * **RunningImportModuleRunbook** \ + * **ContentRetrieved** \ + * **ContentDownloaded** \ + * **ContentValidated** \ + * **ConnectionTypeImported** \ + * **ContentStored** \ + * **ModuleDataStored** \ + * **ActivitiesStored** \ + * **ModuleImportRunbookComplete** \ + * **Succeeded** \ + * **Failed** \ + * **Cancelled** \ + * **Updating** */ -export type LinuxUpdateClasses = string; +export type ModuleProvisioningState = string; + +/** Known values of {@link GraphRunbookType} that the service accepts. */ +export enum KnownGraphRunbookType { + /** GraphPowerShell */ + GraphPowerShell = "GraphPowerShell", + /** GraphPowerShellWorkflow */ + GraphPowerShellWorkflow = "GraphPowerShellWorkflow" +} + +/** + * Defines values for GraphRunbookType. \ + * {@link KnownGraphRunbookType} can be used interchangeably with GraphRunbookType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **GraphPowerShell** \ + * **GraphPowerShellWorkflow** + */ +export type GraphRunbookType = string; /** Known values of {@link HttpStatusCode} that the service accepts. */ export enum KnownHttpStatusCode { @@ -3376,82 +3424,128 @@ export enum KnownRunbookTypeEnum { * **Python2** \ * **Python3** */ -export type RunbookTypeEnum = string; +export type RunbookTypeEnum = string; + +/** Known values of {@link RunbookState} that the service accepts. */ +export enum KnownRunbookState { + /** New */ + New = "New", + /** Edit */ + Edit = "Edit", + /** Published */ + Published = "Published" +} + +/** + * Defines values for RunbookState. \ + * {@link KnownRunbookState} can be used interchangeably with RunbookState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **New** \ + * **Edit** \ + * **Published** + */ +export type RunbookState = string; + +/** 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 RunbookState} that the service accepts. */ -export enum KnownRunbookState { - /** New */ - New = "New", - /** Edit */ - Edit = "Edit", - /** Published */ - Published = "Published" +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Completed */ + Completed = "Completed", + /** Failed */ + Failed = "Failed", + /** Running */ + Running = "Running" } /** - * Defines values for RunbookState. \ - * {@link KnownRunbookState} can be used interchangeably with RunbookState, + * 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 - * **New** \ - * **Edit** \ - * **Published** + * **Completed** \ + * **Failed** \ + * **Running** */ -export type RunbookState = string; +export type ProvisioningState = string; -/** Known values of {@link WorkerType} that the service accepts. */ -export enum KnownWorkerType { - /** HybridV1 */ - HybridV1 = "HybridV1", - /** HybridV2 */ - HybridV2 = "HybridV2" +/** 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,10 +3556,6 @@ 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 @@ -3509,45 +3599,6 @@ export interface PrivateLinkResourcesAutomationOptionalParams /** 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; - -/** Optional parameters. */ -export interface Python2PackageCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type Python2PackageCreateOrUpdateResponse = Module; - -/** Optional parameters. */ -export interface Python2PackageUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type Python2PackageUpdateResponse = Module; - -/** Optional parameters. */ -export interface Python2PackageListByAutomationAccountOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAutomationAccount operation. */ -export type Python2PackageListByAutomationAccountResponse = ModuleListResult; - -/** Optional parameters. */ -export interface Python2PackageListByAutomationAccountNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAutomationAccountNext operation. */ -export type Python2PackageListByAutomationAccountNextResponse = ModuleListResult; - /** Optional parameters. */ export interface AgentRegistrationInformationGetOptionalParams extends coreClient.OperationOptions {} @@ -3633,49 +3684,6 @@ export interface NodeReportsListByNodeNextOptionalParams /** Contains response data for the listByNodeNext operation. */ export type NodeReportsListByNodeNextResponse = DscNodeReportListResult; -/** Optional parameters. */ -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 DscNodeConfigurationListByAutomationAccountResponse = DscNodeConfigurationListResult; - -/** Optional parameters. */ -export interface DscNodeConfigurationListByAutomationAccountNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAutomationAccountNext operation. */ -export type DscNodeConfigurationListByAutomationAccountNextResponse = DscNodeConfigurationListResult; - /** Optional parameters. */ export interface DscCompilationJobCreateOptionalParams extends coreClient.OperationOptions { @@ -3734,101 +3742,150 @@ export interface NodeCountInformationGetOptionalParams export type NodeCountInformationGetResponse = NodeCounts; /** Optional parameters. */ -export interface SourceControlCreateOrUpdateOptionalParams +export interface WatcherCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type SourceControlCreateOrUpdateResponse = SourceControl; +export type WatcherCreateOrUpdateResponse = Watcher; /** Optional parameters. */ -export interface SourceControlUpdateOptionalParams +export interface WatcherGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WatcherGetResponse = Watcher; + +/** Optional parameters. */ +export interface WatcherUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type SourceControlUpdateResponse = SourceControl; +export type WatcherUpdateResponse = Watcher; /** Optional parameters. */ -export interface SourceControlDeleteOptionalParams +export interface WatcherDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SourceControlGetOptionalParams +export interface WatcherStartOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SourceControlGetResponse = SourceControl; +/** Optional parameters. */ +export interface WatcherStopOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SourceControlListByAutomationAccountOptionalParams +export interface WatcherListByAutomationAccountOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation. */ filter?: string; } /** Contains response data for the listByAutomationAccount operation. */ -export type SourceControlListByAutomationAccountResponse = SourceControlListResult; +export type WatcherListByAutomationAccountResponse = WatcherListResult; /** Optional parameters. */ -export interface SourceControlListByAutomationAccountNextOptionalParams +export interface WatcherListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type SourceControlListByAutomationAccountNextResponse = SourceControlListResult; +export type WatcherListByAutomationAccountNextResponse = WatcherListResult; /** Optional parameters. */ -export interface SourceControlSyncJobCreateOptionalParams - extends coreClient.OperationOptions {} +export interface SoftwareUpdateConfigurationsCreateOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} /** Contains response data for the create operation. */ -export type SourceControlSyncJobCreateResponse = SourceControlSyncJob; +export type SoftwareUpdateConfigurationsCreateResponse = SoftwareUpdateConfiguration; /** Optional parameters. */ -export interface SourceControlSyncJobGetOptionalParams +export interface SoftwareUpdateConfigurationsGetByNameOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} + +/** Contains response data for the getByName operation. */ +export type SoftwareUpdateConfigurationsGetByNameResponse = SoftwareUpdateConfiguration; + +/** Optional parameters. */ +export interface SoftwareUpdateConfigurationsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} + +/** Optional parameters. */ +export interface SoftwareUpdateConfigurationsListOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. */ + filter?: string; + /** Identifies this specific client request. */ + clientRequestId?: string; +} + +/** Contains response data for the list operation. */ +export type SoftwareUpdateConfigurationsListResponse = SoftwareUpdateConfigurationListResult; + +/** Optional parameters. */ +export interface WebhookGenerateUriOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the generateUri operation. */ +export type WebhookGenerateUriResponse = { + /** The parsed response body. */ + body: string; +}; + +/** Optional parameters. */ +export interface WebhookDeleteOptionalParams extends coreClient.OperationOptions {} +/** Optional parameters. */ +export interface WebhookGetOptionalParams extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type SourceControlSyncJobGetResponse = SourceControlSyncJobById; +export type WebhookGetResponse = Webhook; /** Optional parameters. */ -export interface SourceControlSyncJobListByAutomationAccountOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} +export interface WebhookCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccount operation. */ -export type SourceControlSyncJobListByAutomationAccountResponse = SourceControlSyncJobListResult; +/** Contains response data for the createOrUpdate operation. */ +export type WebhookCreateOrUpdateResponse = Webhook; /** Optional parameters. */ -export interface SourceControlSyncJobListByAutomationAccountNextOptionalParams +export interface WebhookUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type SourceControlSyncJobListByAutomationAccountNextResponse = SourceControlSyncJobListResult; +/** Contains response data for the update operation. */ +export type WebhookUpdateResponse = Webhook; /** Optional parameters. */ -export interface SourceControlSyncJobStreamsListBySyncJobOptionalParams +export interface WebhookListByAutomationAccountOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation. */ filter?: string; } -/** Contains response data for the listBySyncJob operation. */ -export type SourceControlSyncJobStreamsListBySyncJobResponse = SourceControlSyncJobStreamsListBySyncJob; +/** Contains response data for the listByAutomationAccount operation. */ +export type WebhookListByAutomationAccountResponse = WebhookListResult; /** Optional parameters. */ -export interface SourceControlSyncJobStreamsGetOptionalParams +export interface WebhookListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SourceControlSyncJobStreamsGetResponse = SourceControlSyncJobStreamById; +/** Contains response data for the listByAutomationAccountNext operation. */ +export type WebhookListByAutomationAccountNextResponse = WebhookListResult; /** Optional parameters. */ -export interface SourceControlSyncJobStreamsListBySyncJobNextOptionalParams +export interface DeletedAutomationAccountsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySyncJobNext operation. */ -export type SourceControlSyncJobStreamsListBySyncJobNextResponse = SourceControlSyncJobStreamsListBySyncJob; +/** Contains response data for the listBySubscription operation. */ +export type DeletedAutomationAccountsListBySubscriptionResponse = DeletedAutomationAccountListResult; /** Optional parameters. */ export interface AutomationAccountUpdateOptionalParams @@ -4057,325 +4114,200 @@ export interface CredentialListByAutomationAccountNextOptionalParams export type CredentialListByAutomationAccountNextResponse = CredentialListResult; /** Optional parameters. */ -export interface JobScheduleDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface JobScheduleGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type JobScheduleGetResponse = JobSchedule; - -/** Optional parameters. */ -export interface JobScheduleCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type JobScheduleCreateResponse = JobSchedule; - -/** Optional parameters. */ -export interface JobScheduleListByAutomationAccountOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} - -/** Contains response data for the listByAutomationAccount operation. */ -export type JobScheduleListByAutomationAccountResponse = JobScheduleListResult; - -/** Optional parameters. */ -export interface JobScheduleListByAutomationAccountNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAutomationAccountNext operation. */ -export type JobScheduleListByAutomationAccountNextResponse = JobScheduleListResult; - -/** Optional parameters. */ -export interface LinkedWorkspaceGetOptionalParams +export interface DscConfigurationDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type LinkedWorkspaceGetResponse = LinkedWorkspace; - /** Optional parameters. */ -export interface ActivityGetOptionalParams +export interface DscConfigurationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ActivityGetResponse = Activity; - -/** Optional parameters. */ -export interface ActivityListByModuleOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByModule operation. */ -export type ActivityListByModuleResponse = ActivityListResult; - -/** Optional parameters. */ -export interface ActivityListByModuleNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByModuleNext operation. */ -export type ActivityListByModuleNextResponse = ActivityListResult; +export type DscConfigurationGetResponse = DscConfiguration; /** Optional parameters. */ -export interface ModuleDeleteOptionalParams +export interface DscConfigurationCreateOrUpdate$textOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ModuleGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ModuleGetResponse = Module; - -/** Optional parameters. */ -export interface ModuleCreateOrUpdateOptionalParams +export interface DscConfigurationCreateOrUpdate$jsonOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ModuleCreateOrUpdateResponse = Module; - -/** Optional parameters. */ -export interface ModuleUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type ModuleUpdateResponse = Module; - -/** Optional parameters. */ -export interface ModuleListByAutomationAccountOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAutomationAccount operation. */ -export type ModuleListByAutomationAccountResponse = ModuleListResult; - -/** Optional parameters. */ -export interface ModuleListByAutomationAccountNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAutomationAccountNext operation. */ -export type ModuleListByAutomationAccountNextResponse = ModuleListResult; - -/** Optional parameters. */ -export interface ObjectDataTypesListFieldsByModuleAndTypeOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listFieldsByModuleAndType operation. */ -export type ObjectDataTypesListFieldsByModuleAndTypeResponse = TypeFieldListResult; - -/** Optional parameters. */ -export interface ObjectDataTypesListFieldsByTypeOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listFieldsByType operation. */ -export type ObjectDataTypesListFieldsByTypeResponse = TypeFieldListResult; - -/** Optional parameters. */ -export interface FieldsListByTypeOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByType operation. */ -export type FieldsListByTypeResponse = TypeFieldListResult; +export type DscConfigurationCreateOrUpdateResponse = DscConfiguration; /** Optional parameters. */ -export interface ScheduleCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type ScheduleCreateOrUpdateResponse = Schedule; +export interface DscConfigurationUpdate$textOptionalParams + extends coreClient.OperationOptions { + /** The create or update parameters for configuration. */ + parameters?: string; +} /** Optional parameters. */ -export interface ScheduleUpdateOptionalParams - extends coreClient.OperationOptions {} +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 ScheduleUpdateResponse = Schedule; +export type DscConfigurationUpdateResponse = DscConfiguration; /** Optional parameters. */ -export interface ScheduleGetOptionalParams +export interface DscConfigurationGetContentOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ScheduleGetResponse = Schedule; - -/** Optional parameters. */ -export interface ScheduleDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the getContent operation. */ +export type DscConfigurationGetContentResponse = { + /** The parsed response body. */ + body: coreRestPipeline.RequestBodyType; +}; /** Optional parameters. */ -export interface ScheduleListByAutomationAccountOptionalParams - extends coreClient.OperationOptions {} +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 ScheduleListByAutomationAccountResponse = ScheduleListResult; +export type DscConfigurationListByAutomationAccountResponse = DscConfigurationListResult; /** Optional parameters. */ -export interface ScheduleListByAutomationAccountNextOptionalParams +export interface DscConfigurationListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type ScheduleListByAutomationAccountNextResponse = ScheduleListResult; +export type DscConfigurationListByAutomationAccountNextResponse = DscConfigurationListResult; /** Optional parameters. */ -export interface VariableCreateOrUpdateOptionalParams +export interface DscNodeConfigurationDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type VariableCreateOrUpdateResponse = Variable; - /** Optional parameters. */ -export interface VariableUpdateOptionalParams +export interface DscNodeConfigurationGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type VariableUpdateResponse = Variable; - -/** Optional parameters. */ -export interface VariableDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type DscNodeConfigurationGetResponse = DscNodeConfiguration; /** Optional parameters. */ -export interface VariableGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type VariableGetResponse = Variable; +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 VariableListByAutomationAccountOptionalParams - extends coreClient.OperationOptions {} +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 VariableListByAutomationAccountResponse = VariableListResult; +export type DscNodeConfigurationListByAutomationAccountResponse = DscNodeConfigurationListResult; /** Optional parameters. */ -export interface VariableListByAutomationAccountNextOptionalParams +export interface DscNodeConfigurationListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type VariableListByAutomationAccountNextResponse = VariableListResult; - -/** Optional parameters. */ -export interface WatcherCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type WatcherCreateOrUpdateResponse = Watcher; +export type DscNodeConfigurationListByAutomationAccountNextResponse = DscNodeConfigurationListResult; /** Optional parameters. */ -export interface WatcherGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type WatcherGetResponse = Watcher; +export interface HybridRunbookWorkersDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface WatcherUpdateOptionalParams +export interface HybridRunbookWorkersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type WatcherUpdateResponse = Watcher; +/** Contains response data for the get operation. */ +export type HybridRunbookWorkersGetResponse = HybridRunbookWorker; /** Optional parameters. */ -export interface WatcherDeleteOptionalParams +export interface HybridRunbookWorkersCreateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface WatcherStartOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the create operation. */ +export type HybridRunbookWorkersCreateResponse = HybridRunbookWorker; /** Optional parameters. */ -export interface WatcherStopOptionalParams +export interface HybridRunbookWorkersMoveOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface WatcherListByAutomationAccountOptionalParams +export interface HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation. */ filter?: string; } -/** Contains response data for the listByAutomationAccount operation. */ -export type WatcherListByAutomationAccountResponse = WatcherListResult; +/** Contains response data for the listByHybridRunbookWorkerGroup operation. */ +export type HybridRunbookWorkersListByHybridRunbookWorkerGroupResponse = HybridRunbookWorkersListResult; /** Optional parameters. */ -export interface WatcherListByAutomationAccountNextOptionalParams +export interface HybridRunbookWorkersListByHybridRunbookWorkerGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAutomationAccountNext operation. */ -export type WatcherListByAutomationAccountNextResponse = WatcherListResult; +/** Contains response data for the listByHybridRunbookWorkerGroupNext operation. */ +export type HybridRunbookWorkersListByHybridRunbookWorkerGroupNextResponse = HybridRunbookWorkersListResult; /** Optional parameters. */ -export interface DscConfigurationDeleteOptionalParams +export interface HybridRunbookWorkerGroupDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DscConfigurationGetOptionalParams +export interface HybridRunbookWorkerGroupGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DscConfigurationGetResponse = DscConfiguration; - -/** Optional parameters. */ -export interface DscConfigurationCreateOrUpdate$textOptionalParams - extends coreClient.OperationOptions {} +export type HybridRunbookWorkerGroupGetResponse = HybridRunbookWorkerGroup; /** Optional parameters. */ -export interface DscConfigurationCreateOrUpdate$jsonOptionalParams +export interface HybridRunbookWorkerGroupCreateOptionalParams 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; -} - -/** 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; +/** Contains response data for the create operation. */ +export type HybridRunbookWorkerGroupCreateResponse = HybridRunbookWorkerGroup; /** Optional parameters. */ -export interface DscConfigurationGetContentOptionalParams +export interface HybridRunbookWorkerGroupUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getContent operation. */ -export type DscConfigurationGetContentResponse = { - /** The parsed response body. */ - body: string; -}; +/** Contains response data for the update operation. */ +export type HybridRunbookWorkerGroupUpdateResponse = HybridRunbookWorkerGroup; /** Optional parameters. */ -export interface DscConfigurationListByAutomationAccountOptionalParams +export interface HybridRunbookWorkerGroupListByAutomationAccountOptionalParams 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; +export type HybridRunbookWorkerGroupListByAutomationAccountResponse = HybridRunbookWorkerGroupsListResult; /** Optional parameters. */ -export interface DscConfigurationListByAutomationAccountNextOptionalParams +export interface HybridRunbookWorkerGroupListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type DscConfigurationListByAutomationAccountNextResponse = DscConfigurationListResult; +export type HybridRunbookWorkerGroupListByAutomationAccountNextResponse = HybridRunbookWorkerGroupsListResult; /** Optional parameters. */ export interface JobGetOutputOptionalParams @@ -4493,6 +4425,128 @@ export interface JobStreamListByJobNextOptionalParams /** Contains response data for the listByJobNext operation. */ export type JobStreamListByJobNextResponse = JobStreamListResult; +/** Optional parameters. */ +export interface JobScheduleDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface JobScheduleGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type JobScheduleGetResponse = JobSchedule; + +/** Optional parameters. */ +export interface JobScheduleCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type JobScheduleCreateResponse = JobSchedule; + +/** Optional parameters. */ +export interface JobScheduleListByAutomationAccountOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. */ + filter?: string; +} + +/** Contains response data for the listByAutomationAccount operation. */ +export type JobScheduleListByAutomationAccountResponse = JobScheduleListResult; + +/** Optional parameters. */ +export interface JobScheduleListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccountNext operation. */ +export type JobScheduleListByAutomationAccountNextResponse = JobScheduleListResult; + +/** Optional parameters. */ +export interface LinkedWorkspaceGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type LinkedWorkspaceGetResponse = LinkedWorkspace; + +/** Optional parameters. */ +export interface ActivityGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ActivityGetResponse = Activity; + +/** Optional parameters. */ +export interface ActivityListByModuleOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByModule operation. */ +export type ActivityListByModuleResponse = ActivityListResult; + +/** Optional parameters. */ +export interface ActivityListByModuleNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByModuleNext operation. */ +export type ActivityListByModuleNextResponse = ActivityListResult; + +/** Optional parameters. */ +export interface ModuleDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ModuleGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ModuleGetResponse = Module; + +/** Optional parameters. */ +export interface ModuleCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ModuleCreateOrUpdateResponse = Module; + +/** Optional parameters. */ +export interface ModuleUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ModuleUpdateResponse = Module; + +/** Optional parameters. */ +export interface ModuleListByAutomationAccountOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccount operation. */ +export type ModuleListByAutomationAccountResponse = ModuleListResult; + +/** Optional parameters. */ +export interface ModuleListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccountNext operation. */ +export type ModuleListByAutomationAccountNextResponse = ModuleListResult; + +/** Optional parameters. */ +export interface ObjectDataTypesListFieldsByModuleAndTypeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listFieldsByModuleAndType operation. */ +export type ObjectDataTypesListFieldsByModuleAndTypeResponse = TypeFieldListResult; + +/** Optional parameters. */ +export interface ObjectDataTypesListFieldsByTypeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listFieldsByType operation. */ +export type ObjectDataTypesListFieldsByTypeResponse = TypeFieldListResult; + +/** Optional parameters. */ +export interface FieldsListByTypeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByType operation. */ +export type FieldsListByTypeResponse = TypeFieldListResult; + /** Optional parameters. */ export interface OperationsListOptionalParams extends coreClient.OperationOptions {} @@ -4508,95 +4562,82 @@ export interface ConvertGraphRunbookContentOptionalParams export type ConvertGraphRunbookContentResponse = GraphicalRunbookContent; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationsCreateOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface Python2PackageDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type SoftwareUpdateConfigurationsCreateResponse = SoftwareUpdateConfiguration; +/** Optional parameters. */ +export interface Python2PackageGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type Python2PackageGetResponse = Module; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationsGetByNameOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface Python2PackageCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getByName operation. */ -export type SoftwareUpdateConfigurationsGetByNameResponse = SoftwareUpdateConfiguration; +/** Contains response data for the createOrUpdate operation. */ +export type Python2PackageCreateOrUpdateResponse = Module; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface Python2PackageUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type Python2PackageUpdateResponse = Module; + +/** Optional parameters. */ +export interface Python2PackageListByAutomationAccountOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccount operation. */ +export type Python2PackageListByAutomationAccountResponse = ModuleListResult; + +/** Optional parameters. */ +export interface Python2PackageListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccountNext operation. */ +export type Python2PackageListByAutomationAccountNextResponse = ModuleListResult; /** 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 Python3PackageDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SoftwareUpdateConfigurationsListResponse = SoftwareUpdateConfigurationListResult; +/** Optional parameters. */ +export interface Python3PackageGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type Python3PackageGetResponse = Module; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationRunsGetByIdOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface Python3PackageCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getById operation. */ -export type SoftwareUpdateConfigurationRunsGetByIdResponse = SoftwareUpdateConfigurationRun; +/** Contains response data for the createOrUpdate operation. */ +export type Python3PackageCreateOrUpdateResponse = Module; /** 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; - /** Identifies this specific client request. */ - clientRequestId?: string; - /** Number of entries you skip before returning results */ - skip?: string; - /** Maximum number of entries returned in the results collection */ - top?: string; -} +export interface Python3PackageUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SoftwareUpdateConfigurationRunsListResponse = SoftwareUpdateConfigurationRunListResult; +/** Contains response data for the update operation. */ +export type Python3PackageUpdateResponse = Module; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams - extends coreClient.OperationOptions { - /** Identifies this specific client request. */ - clientRequestId?: string; -} +export interface Python3PackageListByAutomationAccountOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the getById operation. */ -export type SoftwareUpdateConfigurationMachineRunsGetByIdResponse = SoftwareUpdateConfigurationMachineRun; +/** Contains response data for the listByAutomationAccount operation. */ +export type Python3PackageListByAutomationAccountResponse = ModuleListResult; /** Optional parameters. */ -export interface SoftwareUpdateConfigurationMachineRunsListOptionalParams - 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 */ - skip?: string; - /** Maximum number of entries returned in the results collection */ - top?: string; -} +export interface Python3PackageListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SoftwareUpdateConfigurationMachineRunsListResponse = SoftwareUpdateConfigurationMachineRunListResult; +/** Contains response data for the listByAutomationAccountNext operation. */ +export type Python3PackageListByAutomationAccountNextResponse = ModuleListResult; /** Optional parameters. */ export interface RunbookDraftGetContentOptionalParams @@ -4759,143 +4800,231 @@ export interface TestJobSuspendOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface WebhookGenerateUriOptionalParams +export interface ScheduleCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateUri operation. */ -export type WebhookGenerateUriResponse = { - /** The parsed response body. */ - body: string; -}; +/** Contains response data for the createOrUpdate operation. */ +export type ScheduleCreateOrUpdateResponse = Schedule; /** Optional parameters. */ -export interface WebhookDeleteOptionalParams +export interface ScheduleUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type ScheduleUpdateResponse = Schedule; + /** Optional parameters. */ -export interface WebhookGetOptionalParams extends coreClient.OperationOptions {} +export interface ScheduleGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WebhookGetResponse = Webhook; +export type ScheduleGetResponse = Schedule; /** Optional parameters. */ -export interface WebhookCreateOrUpdateOptionalParams +export interface ScheduleDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ScheduleListByAutomationAccountOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccount operation. */ +export type ScheduleListByAutomationAccountResponse = ScheduleListResult; + +/** Optional parameters. */ +export interface ScheduleListByAutomationAccountNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAutomationAccountNext operation. */ +export type ScheduleListByAutomationAccountNextResponse = ScheduleListResult; + +/** Optional parameters. */ +export interface SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} + +/** Contains response data for the getById operation. */ +export type SoftwareUpdateConfigurationMachineRunsGetByIdResponse = SoftwareUpdateConfigurationMachineRun; + +/** Optional parameters. */ +export interface SoftwareUpdateConfigurationMachineRunsListOptionalParams + 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 */ + skip?: string; + /** Maximum number of entries returned in the results collection */ + top?: string; +} + +/** Contains response data for the list operation. */ +export type SoftwareUpdateConfigurationMachineRunsListResponse = SoftwareUpdateConfigurationMachineRunListResult; + +/** Optional parameters. */ +export interface SoftwareUpdateConfigurationRunsGetByIdOptionalParams + extends coreClient.OperationOptions { + /** Identifies this specific client request. */ + clientRequestId?: string; +} + +/** Contains response data for the getById operation. */ +export type SoftwareUpdateConfigurationRunsGetByIdResponse = SoftwareUpdateConfigurationRun; + +/** 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; + /** Identifies this specific client request. */ + clientRequestId?: 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; + +/** Optional parameters. */ +export interface SourceControlCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type WebhookCreateOrUpdateResponse = Webhook; +export type SourceControlCreateOrUpdateResponse = SourceControl; /** Optional parameters. */ -export interface WebhookUpdateOptionalParams +export interface SourceControlUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type WebhookUpdateResponse = Webhook; +export type SourceControlUpdateResponse = SourceControl; /** Optional parameters. */ -export interface WebhookListByAutomationAccountOptionalParams +export interface SourceControlDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SourceControlGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SourceControlGetResponse = SourceControl; + +/** Optional parameters. */ +export interface SourceControlListByAutomationAccountOptionalParams extends coreClient.OperationOptions { /** The filter to apply on the operation. */ filter?: string; } /** Contains response data for the listByAutomationAccount operation. */ -export type WebhookListByAutomationAccountResponse = WebhookListResult; +export type SourceControlListByAutomationAccountResponse = SourceControlListResult; /** Optional parameters. */ -export interface WebhookListByAutomationAccountNextOptionalParams +export interface SourceControlListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type WebhookListByAutomationAccountNextResponse = WebhookListResult; +export type SourceControlListByAutomationAccountNextResponse = SourceControlListResult; /** Optional parameters. */ -export interface HybridRunbookWorkersDeleteOptionalParams +export interface SourceControlSyncJobCreateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the create operation. */ +export type SourceControlSyncJobCreateResponse = SourceControlSyncJob; + /** Optional parameters. */ -export interface HybridRunbookWorkersGetOptionalParams +export interface SourceControlSyncJobGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type HybridRunbookWorkersGetResponse = HybridRunbookWorker; +export type SourceControlSyncJobGetResponse = SourceControlSyncJobById; /** Optional parameters. */ -export interface HybridRunbookWorkersCreateOptionalParams - extends coreClient.OperationOptions {} +export interface SourceControlSyncJobListByAutomationAccountOptionalParams + extends coreClient.OperationOptions { + /** The filter to apply on the operation. */ + filter?: string; +} -/** Contains response data for the create operation. */ -export type HybridRunbookWorkersCreateResponse = HybridRunbookWorker; +/** Contains response data for the listByAutomationAccount operation. */ +export type SourceControlSyncJobListByAutomationAccountResponse = SourceControlSyncJobListResult; /** Optional parameters. */ -export interface HybridRunbookWorkersMoveOptionalParams +export interface SourceControlSyncJobListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByAutomationAccountNext operation. */ +export type SourceControlSyncJobListByAutomationAccountNextResponse = SourceControlSyncJobListResult; + /** Optional parameters. */ -export interface HybridRunbookWorkersListByHybridRunbookWorkerGroupOptionalParams +export interface SourceControlSyncJobStreamsListBySyncJobOptionalParams 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 listBySyncJob operation. */ +export type SourceControlSyncJobStreamsListBySyncJobResponse = SourceControlSyncJobStreamsListBySyncJob; /** Optional parameters. */ -export interface HybridRunbookWorkersListByHybridRunbookWorkerGroupNextOptionalParams +export interface SourceControlSyncJobStreamsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHybridRunbookWorkerGroupNext operation. */ -export type HybridRunbookWorkersListByHybridRunbookWorkerGroupNextResponse = HybridRunbookWorkersListResult; +/** Contains response data for the get operation. */ +export type SourceControlSyncJobStreamsGetResponse = SourceControlSyncJobStreamById; /** Optional parameters. */ -export interface DeletedAutomationAccountsListBySubscriptionOptionalParams +export interface SourceControlSyncJobStreamsListBySyncJobNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type DeletedAutomationAccountsListBySubscriptionResponse = DeletedAutomationAccountListResult; +/** Contains response data for the listBySyncJobNext operation. */ +export type SourceControlSyncJobStreamsListBySyncJobNextResponse = SourceControlSyncJobStreamsListBySyncJob; /** Optional parameters. */ -export interface HybridRunbookWorkerGroupDeleteOptionalParams +export interface VariableCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type VariableCreateOrUpdateResponse = Variable; + /** Optional parameters. */ -export interface HybridRunbookWorkerGroupGetOptionalParams +export interface VariableUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type HybridRunbookWorkerGroupGetResponse = HybridRunbookWorkerGroup; +/** Contains response data for the update operation. */ +export type VariableUpdateResponse = Variable; /** Optional parameters. */ -export interface HybridRunbookWorkerGroupCreateOptionalParams +export interface VariableDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type HybridRunbookWorkerGroupCreateResponse = HybridRunbookWorkerGroup; - /** Optional parameters. */ -export interface HybridRunbookWorkerGroupUpdateOptionalParams +export interface VariableGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type HybridRunbookWorkerGroupUpdateResponse = HybridRunbookWorkerGroup; +/** Contains response data for the get operation. */ +export type VariableGetResponse = Variable; /** Optional parameters. */ -export interface HybridRunbookWorkerGroupListByAutomationAccountOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. */ - filter?: string; -} +export interface VariableListByAutomationAccountOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccount operation. */ -export type HybridRunbookWorkerGroupListByAutomationAccountResponse = HybridRunbookWorkerGroupsListResult; +export type VariableListByAutomationAccountResponse = VariableListResult; /** Optional parameters. */ -export interface HybridRunbookWorkerGroupListByAutomationAccountNextOptionalParams +export interface VariableListByAutomationAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByAutomationAccountNext operation. */ -export type HybridRunbookWorkerGroupListByAutomationAccountNextResponse = HybridRunbookWorkerGroupsListResult; +export type VariableListByAutomationAccountNextResponse = VariableListResult; /** Optional parameters. */ export interface AutomationClientOptionalParams diff --git a/sdk/automation/arm-automation/src/models/mappers.ts b/sdk/automation/arm-automation/src/models/mappers.ts index 315d4b7ff40f..3d66d30f4815 100644 --- a/sdk/automation/arm-automation/src/models/mappers.ts +++ b/sdk/automation/arm-automation/src/models/mappers.ts @@ -144,144 +144,6 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const ContentLink: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContentLink", - modelProperties: { - uri: { - serializedName: "uri", - type: { - name: "String" - } - }, - contentHash: { - serializedName: "contentHash", - type: { - name: "Composite", - className: "ContentHash" - } - }, - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; - -export const ContentHash: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContentHash", - modelProperties: { - algorithm: { - serializedName: "algorithm", - required: true, - type: { - name: "String" - } - }, - value: { - serializedName: "value", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const ModuleErrorInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ModuleErrorInfo", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const PythonPackageCreateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PythonPackageCreateParameters", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - contentLink: { - serializedName: "properties.contentLink", - 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", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Module" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const AgentRegistration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -805,28 +667,19 @@ export const DscMetaConfiguration: coreClient.CompositeMapper = { } }; -export const DscConfigurationAssociationProperty: coreClient.CompositeMapper = { +export const DscCompilationJobCreateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscConfigurationAssociationProperty", + className: "DscCompilationJobCreateParameters", modelProperties: { name: { serializedName: "name", type: { name: "String" } - } - } - } -}; - -export const DscNodeConfigurationCreateOrUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DscNodeConfigurationCreateOrUpdateParameters", - modelProperties: { - name: { - serializedName: "name", + }, + location: { + serializedName: "location", type: { name: "String" } @@ -838,13 +691,6 @@ export const DscNodeConfigurationCreateOrUpdateParameters: coreClient.CompositeM value: { type: { name: "String" } } } }, - source: { - serializedName: "properties.source", - type: { - name: "Composite", - className: "ContentSource" - } - }, configuration: { serializedName: "properties.configuration", type: { @@ -852,6 +698,13 @@ export const DscNodeConfigurationCreateOrUpdateParameters: coreClient.CompositeM className: "DscConfigurationAssociationProperty" } }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, incrementNodeConfigurationBuild: { serializedName: "properties.incrementNodeConfigurationBuild", type: { @@ -862,32 +715,40 @@ export const DscNodeConfigurationCreateOrUpdateParameters: coreClient.CompositeM } }; -export const ContentSource: coreClient.CompositeMapper = { +export const DscConfigurationAssociationProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContentSource", + className: "DscConfigurationAssociationProperty", modelProperties: { - hash: { - serializedName: "hash", - type: { - name: "Composite", - className: "ContentHash" - } - }, - type: { - serializedName: "type", + name: { + serializedName: "name", type: { name: "String" } - }, + } + } + } +}; + +export const DscCompilationJobListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DscCompilationJobListResult", + modelProperties: { value: { serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscCompilationJob" + } + } } }, - version: { - serializedName: "version", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -896,10 +757,10 @@ export const ContentSource: coreClient.CompositeMapper = { } }; -export const DscNodeConfigurationListResult: coreClient.CompositeMapper = { +export const JobStreamListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscNodeConfigurationListResult", + className: "JobStreamListResult", modelProperties: { value: { serializedName: "value", @@ -908,7 +769,7 @@ export const DscNodeConfigurationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DscNodeConfiguration" + className: "JobStream" } } } @@ -918,152 +779,44 @@ export const DscNodeConfigurationListResult: coreClient.CompositeMapper = { type: { name: "String" } - }, - totalCount: { - serializedName: "totalCount", - type: { - name: "Number" - } } } } }; -export const DscCompilationJobCreateParameters: coreClient.CompositeMapper = { +export const JobStream: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscCompilationJobCreateParameters", + className: "JobStream", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", type: { name: "String" } }, - location: { - serializedName: "location", + jobStreamId: { + serializedName: "properties.jobStreamId", type: { name: "String" } }, - tags: { - serializedName: "tags", + time: { + serializedName: "properties.time", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "DateTime" } }, - configuration: { - serializedName: "properties.configuration", + streamType: { + serializedName: "properties.streamType", type: { - name: "Composite", - className: "DscConfigurationAssociationProperty" + name: "String" } }, - parameters: { - serializedName: "properties.parameters", + streamText: { + serializedName: "properties.streamText", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - incrementNodeConfigurationBuild: { - serializedName: "properties.incrementNodeConfigurationBuild", - type: { - name: "Boolean" - } - } - } - } -}; - -export const DscCompilationJobListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DscCompilationJobListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DscCompilationJob" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JobStreamListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobStreamListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobStream" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JobStream: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobStream", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - jobStreamId: { - serializedName: "properties.jobStreamId", - type: { - name: "String" - } - }, - time: { - serializedName: "properties.time", - type: { - name: "DateTime" - } - }, - streamType: { - serializedName: "properties.streamType", - type: { - name: "String" - } - }, - streamText: { - serializedName: "properties.streamText", - type: { - name: "String" + name: "String" } }, summary: { @@ -1149,101 +902,46 @@ export const NodeCountProperties: coreClient.CompositeMapper = { } }; -export const SourceControlCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const WatcherUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlCreateOrUpdateParameters", + className: "WatcherUpdateParameters", 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", + name: { + serializedName: "name", type: { name: "String" } }, - securityToken: { - serializedName: "properties.securityToken", - type: { - name: "Composite", - className: "SourceControlSecurityTokenProperties" - } - }, - description: { - constraints: { - MaxLength: 512 - }, - serializedName: "properties.description", + executionFrequencyInSeconds: { + serializedName: "properties.executionFrequencyInSeconds", type: { - name: "String" + name: "Number" } } } } }; -export const SourceControlSecurityTokenProperties: coreClient.CompositeMapper = { +export const WatcherListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlSecurityTokenProperties", + className: "WatcherListResult", modelProperties: { - accessToken: { - constraints: { - MaxLength: 1024 - }, - serializedName: "accessToken", - type: { - name: "String" - } - }, - refreshToken: { - constraints: { - MaxLength: 1024 - }, - serializedName: "refreshToken", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Watcher" + } + } } }, - tokenType: { - serializedName: "tokenType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1252,125 +950,58 @@ export const SourceControlSecurityTokenProperties: coreClient.CompositeMapper = } }; -export const SourceControlUpdateParameters: coreClient.CompositeMapper = { +export const SoftwareUpdateConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlUpdateParameters", + className: "SoftwareUpdateConfiguration", modelProperties: { - branch: { - serializedName: "properties.branch", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - folderPath: { - serializedName: "properties.folderPath", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - autoSync: { - serializedName: "properties.autoSync", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - publishRunbook: { - serializedName: "properties.publishRunbook", + updateConfiguration: { + serializedName: "properties.updateConfiguration", type: { - name: "Boolean" + name: "Composite", + className: "UpdateConfiguration" } }, - securityToken: { - serializedName: "properties.securityToken", + scheduleInfo: { + serializedName: "properties.scheduleInfo", type: { name: "Composite", - className: "SourceControlSecurityTokenProperties" + className: "SUCScheduleProperties" } }, - description: { - serializedName: "properties.description", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SourceControlListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SourceControlListResult", - modelProperties: { - value: { - serializedName: "value", + }, + error: { + serializedName: "properties.error", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SourceControl" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SourceControlSyncJobCreateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SourceControlSyncJobCreateParameters", - modelProperties: { - commitId: { - serializedName: "properties.commitId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const SourceControlSyncJob: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SourceControlSyncJob", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - sourceControlSyncJobId: { - serializedName: "properties.sourceControlSyncJobId", - type: { - name: "String" + name: "Composite", + className: "ErrorResponse" } }, creationTime: { @@ -1380,147 +1011,139 @@ export const SourceControlSyncJob: coreClient.CompositeMapper = { name: "DateTime" } }, - provisioningState: { - serializedName: "properties.provisioningState", + createdBy: { + serializedName: "properties.createdBy", + readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", readOnly: true, - nullable: true, type: { name: "DateTime" } }, - endTime: { - serializedName: "properties.endTime", + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", readOnly: true, - nullable: true, type: { - name: "DateTime" + name: "String" } }, - syncType: { - serializedName: "properties.syncType", + tasks: { + serializedName: "properties.tasks", type: { - name: "String" + name: "Composite", + className: "SoftwareUpdateConfigurationTasks" } } } } }; -export const SourceControlSyncJobById: coreClient.CompositeMapper = { +export const UpdateConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlSyncJobById", + className: "UpdateConfiguration", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - sourceControlSyncJobId: { - serializedName: "properties.sourceControlSyncJobId", + operatingSystem: { + serializedName: "operatingSystem", + required: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Windows", "Linux"] } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + windows: { + serializedName: "windows", type: { - name: "DateTime" + name: "Composite", + className: "WindowsProperties" } }, - provisioningState: { - serializedName: "properties.provisioningState", + linux: { + serializedName: "linux", type: { - name: "String" + name: "Composite", + className: "LinuxProperties" } }, - startTime: { - serializedName: "properties.startTime", - readOnly: true, - nullable: true, + duration: { + serializedName: "duration", type: { - name: "DateTime" + name: "TimeSpan" } }, - endTime: { - serializedName: "properties.endTime", - readOnly: true, - nullable: true, + azureVirtualMachines: { + serializedName: "azureVirtualMachines", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - syncType: { - serializedName: "properties.syncType", + nonAzureComputerNames: { + serializedName: "nonAzureComputerNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - exception: { - serializedName: "properties.exception", + targets: { + serializedName: "targets", type: { - name: "String" + name: "Composite", + className: "TargetProperties" } } } } }; -export const SourceControlSyncJobListResult: coreClient.CompositeMapper = { +export const WindowsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlSyncJobListResult", + className: "WindowsProperties", modelProperties: { - value: { - serializedName: "value", + includedUpdateClassifications: { + serializedName: "includedUpdateClassifications", + type: { + name: "String" + } + }, + excludedKbNumbers: { + serializedName: "excludedKbNumbers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SourceControlSyncJob" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SourceControlSyncJobStreamsListBySyncJob: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SourceControlSyncJobStreamsListBySyncJob", - modelProperties: { - value: { - serializedName: "value", + includedKbNumbers: { + serializedName: "includedKbNumbers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SourceControlSyncJobStream" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + rebootSetting: { + serializedName: "rebootSetting", type: { name: "String" } @@ -1529,40 +1152,41 @@ export const SourceControlSyncJobStreamsListBySyncJob: coreClient.CompositeMappe } }; -export const SourceControlSyncJobStream: coreClient.CompositeMapper = { +export const LinuxProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlSyncJobStream", + className: "LinuxProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - sourceControlSyncJobStreamId: { - serializedName: "properties.sourceControlSyncJobStreamId", + includedPackageClassifications: { + serializedName: "includedPackageClassifications", type: { name: "String" } }, - summary: { - serializedName: "properties.summary", + excludedPackageNameMasks: { + serializedName: "excludedPackageNameMasks", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - time: { - serializedName: "properties.time", - readOnly: true, - nullable: true, + includedPackageNameMasks: { + serializedName: "includedPackageNameMasks", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - streamType: { - serializedName: "properties.streamType", + rebootSetting: { + serializedName: "rebootSetting", type: { name: "String" } @@ -1571,57 +1195,637 @@ export const SourceControlSyncJobStream: coreClient.CompositeMapper = { } }; -export const SourceControlSyncJobStreamById: coreClient.CompositeMapper = { +export const TargetProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControlSyncJobStreamById", + className: "TargetProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - sourceControlSyncJobStreamId: { - serializedName: "properties.sourceControlSyncJobStreamId", + azureQueries: { + serializedName: "azureQueries", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureQueryProperties" + } + } + } + }, + nonAzureQueries: { + serializedName: "nonAzureQueries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NonAzureQueryProperties" + } + } + } + } + } + } +}; + +export const AzureQueryProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureQueryProperties", + modelProperties: { + scope: { + serializedName: "scope", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + tagSettings: { + serializedName: "tagSettings", + type: { + name: "Composite", + className: "TagSettingsProperties" + } + } + } + } +}; + +export const TagSettingsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TagSettingsProperties", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { name: "Sequence", element: { type: { name: "String" } } } + } + } + }, + filterOperator: { + serializedName: "filterOperator", + type: { + name: "Enum", + allowedValues: ["All", "Any"] + } + } + } + } +}; + +export const NonAzureQueryProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NonAzureQueryProperties", + modelProperties: { + functionAlias: { + serializedName: "functionAlias", + type: { + name: "String" + } + }, + workspaceId: { + serializedName: "workspaceId", + type: { + name: "String" + } + } + } + } +}; + +export const SUCScheduleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SUCScheduleProperties", + modelProperties: { + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + startTimeOffsetMinutes: { + serializedName: "startTimeOffsetMinutes", + readOnly: true, + type: { + name: "Number" + } + }, + expiryTime: { + serializedName: "expiryTime", + nullable: true, + type: { + name: "DateTime" + } + }, + expiryTimeOffsetMinutes: { + serializedName: "expiryTimeOffsetMinutes", + type: { + name: "Number" + } + }, + isEnabled: { + defaultValue: false, + serializedName: "isEnabled", + type: { + name: "Boolean" + } + }, + nextRun: { + serializedName: "nextRun", + nullable: true, + type: { + name: "DateTime" + } + }, + nextRunOffsetMinutes: { + serializedName: "nextRunOffsetMinutes", + type: { + name: "Number" + } + }, + interval: { + serializedName: "interval", + type: { + name: "Number" + } + }, + frequency: { + serializedName: "frequency", + type: { + name: "String" + } + }, + timeZone: { + serializedName: "timeZone", + type: { + name: "String" + } + }, + advancedSchedule: { + serializedName: "advancedSchedule", + type: { + name: "Composite", + className: "AdvancedSchedule" + } + }, + creationTime: { + serializedName: "creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + serializedName: "lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const AdvancedSchedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdvancedSchedule", + modelProperties: { + 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: "Sequence", + element: { + type: { + name: "Composite", + className: "AdvancedScheduleMonthlyOccurrence" + } + } + } + } + } + } +}; + +export const AdvancedScheduleMonthlyOccurrence: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdvancedScheduleMonthlyOccurrence", + modelProperties: { + occurrence: { + serializedName: "occurrence", + type: { + name: "Number" + } + }, + day: { + serializedName: "day", + type: { + name: "String" + } + } + } + } +}; + +export const SoftwareUpdateConfigurationTasks: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationTasks", + modelProperties: { + preTask: { + serializedName: "preTask", + type: { + name: "Composite", + className: "TaskProperties" + } + }, + postTask: { + serializedName: "postTask", + type: { + name: "Composite", + className: "TaskProperties" + } + } + } + } +}; + +export const TaskProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TaskProperties", + modelProperties: { + parameters: { + serializedName: "parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + source: { + serializedName: "source", + 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" + } + } + } + } + } + } +}; + +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 RunbookAssociationProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunbookAssociationProperty", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const WebhookCreateOrUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebhookCreateOrUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean" + } + }, + uri: { + serializedName: "properties.uri", + type: { + name: "String" + } + }, + expiryTime: { + serializedName: "properties.expiryTime", + type: { + name: "DateTime" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + runbook: { + serializedName: "properties.runbook", + type: { + name: "Composite", + className: "RunbookAssociationProperty" + } + }, + runOn: { + serializedName: "properties.runOn", + type: { + name: "String" + } + } + } + } +}; + +export const WebhookUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebhookUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean" + } + }, + runOn: { + serializedName: "properties.runOn", + type: { + name: "String" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const WebhookListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebhookListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Webhook" + } + } } }, - summary: { - serializedName: "properties.summary", + 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" + } + } + } + } + } + } +}; + +export const DeletedAutomationAccount: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeletedAutomationAccount", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - time: { - serializedName: "properties.time", - readOnly: true, - nullable: true, + name: { + serializedName: "name", type: { - name: "DateTime" + name: "String" } }, - streamType: { - serializedName: "properties.streamType", + type: { + serializedName: "type", type: { name: "String" } }, - streamText: { - serializedName: "properties.streamText", + location: { + serializedName: "location", type: { name: "String" } }, - value: { - serializedName: "properties.value", + automationAccountResourceId: { + serializedName: "properties.automationAccountResourceId", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" + } + }, + automationAccountId: { + serializedName: "properties.automationAccountId", + type: { + name: "String" + } + }, + locationPropertiesLocation: { + serializedName: "properties.location", + type: { + name: "String" + } + }, + deletionTime: { + serializedName: "properties.deletionTime", + readOnly: true, + type: { + name: "DateTime" } } } @@ -1828,8 +2032,7 @@ export const Identity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: - "ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties" + className: "UserAssignedIdentitiesProperties" } } } @@ -1838,11 +2041,10 @@ export const Identity: coreClient.CompositeMapper = { } }; -export const ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties: coreClient.CompositeMapper = { +export const UserAssignedIdentitiesProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties", + className: "UserAssignedIdentitiesProperties", modelProperties: { principalId: { serializedName: "principalId", @@ -2567,163 +2769,10 @@ export const CredentialCreateOrUpdateParameters: coreClient.CompositeMapper = { 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", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Credential" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JobSchedule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobSchedule", - 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" } } - } - } - } - } -}; - -export const ScheduleAssociationProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScheduleAssociationProperty", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const RunbookAssociationProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RunbookAssociationProperty", - modelProperties: { - name: { - serializedName: "name", + } + }, + description: { + serializedName: "properties.description", type: { name: "String" } @@ -2732,46 +2781,43 @@ export const RunbookAssociationProperty: coreClient.CompositeMapper = { } }; -export const JobScheduleCreateParameters: coreClient.CompositeMapper = { +export const CredentialUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleCreateParameters", + className: "CredentialUpdateParameters", modelProperties: { - schedule: { - serializedName: "properties.schedule", + name: { + serializedName: "name", type: { - name: "Composite", - className: "ScheduleAssociationProperty" + name: "String" } }, - runbook: { - serializedName: "properties.runbook", + userName: { + serializedName: "properties.userName", type: { - name: "Composite", - className: "RunbookAssociationProperty" + name: "String" } }, - runOn: { - serializedName: "properties.runOn", + password: { + serializedName: "properties.password", type: { name: "String" } }, - parameters: { - serializedName: "properties.parameters", + description: { + serializedName: "properties.description", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const JobScheduleListResult: coreClient.CompositeMapper = { +export const CredentialListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleListResult", + className: "CredentialListResult", modelProperties: { value: { serializedName: "value", @@ -2780,7 +2826,7 @@ export const JobScheduleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JobSchedule" + className: "Credential" } } } @@ -2795,14 +2841,31 @@ export const JobScheduleListResult: coreClient.CompositeMapper = { } }; -export const LinkedWorkspace: coreClient.CompositeMapper = { +export const DscConfigurationParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinkedWorkspace", + className: "DscConfigurationParameter", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + isMandatory: { + serializedName: "isMandatory", + type: { + name: "Boolean" + } + }, + position: { + serializedName: "position", + type: { + name: "Number" + } + }, + defaultValue: { + serializedName: "defaultValue", type: { name: "String" } @@ -2811,68 +2874,32 @@ export const LinkedWorkspace: coreClient.CompositeMapper = { } }; -export const Activity: coreClient.CompositeMapper = { +export const ContentSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Activity", + className: "ContentSource", modelProperties: { - id: { - serializedName: "id", + hash: { + serializedName: "hash", type: { - name: "String" + name: "Composite", + className: "ContentHash" } }, - name: { - serializedName: "name", - readOnly: true, + type: { + serializedName: "type", type: { name: "String" } }, - definition: { - serializedName: "properties.definition", + value: { + serializedName: "value", type: { name: "String" } }, - parameterSets: { - serializedName: "properties.parameterSets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActivityParameterSet" - } - } - } - }, - outputTypes: { - serializedName: "properties.outputTypes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActivityOutputType" - } - } - } - }, - creationTime: { - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - type: { - name: "DateTime" - } - }, - description: { - serializedName: "properties.description", + version: { + serializedName: "version", type: { name: "String" } @@ -2881,37 +2908,33 @@ export const Activity: coreClient.CompositeMapper = { } }; -export const ActivityParameterSet: coreClient.CompositeMapper = { +export const ContentHash: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActivityParameterSet", + className: "ContentHash", modelProperties: { - name: { - serializedName: "name", + algorithm: { + serializedName: "algorithm", + required: true, type: { name: "String" } }, - parameters: { - serializedName: "parameters", + value: { + serializedName: "value", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActivityParameter" - } - } + name: "String" } } } } }; -export const ActivityParameter: coreClient.CompositeMapper = { +export const DscConfigurationCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActivityParameter", + className: "DscConfigurationCreateOrUpdateParameters", modelProperties: { name: { serializedName: "name", @@ -2919,89 +2942,150 @@ export const ActivityParameter: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", + location: { + serializedName: "location", type: { name: "String" } }, - isMandatory: { - serializedName: "isMandatory", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + logVerbose: { + serializedName: "properties.logVerbose", type: { name: "Boolean" } }, - isDynamic: { - serializedName: "isDynamic", + logProgress: { + serializedName: "properties.logProgress", type: { name: "Boolean" } }, - position: { - serializedName: "position", + source: { + serializedName: "properties.source", type: { - name: "Number" + name: "Composite", + className: "ContentSource" } }, - valueFromPipeline: { - serializedName: "valueFromPipeline", + parameters: { + serializedName: "properties.parameters", type: { - name: "Boolean" + name: "Dictionary", + value: { + type: { name: "Composite", className: "DscConfigurationParameter" } + } } }, - valueFromPipelineByPropertyName: { - serializedName: "valueFromPipelineByPropertyName", + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const DscConfigurationUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DscConfigurationUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + logVerbose: { + serializedName: "properties.logVerbose", type: { name: "Boolean" } }, - valueFromRemainingArguments: { - serializedName: "valueFromRemainingArguments", + 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: "description", + serializedName: "properties.description", type: { name: "String" } - }, - validationSet: { - serializedName: "validationSet", + } + } + } +}; + +export const DscConfigurationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DscConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ActivityParameterValidationSet" + className: "DscConfiguration" } } } - } - } - } -}; - -export const ActivityParameterValidationSet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActivityParameterValidationSet", - modelProperties: { - memberValue: { - serializedName: "memberValue", + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + totalCount: { + serializedName: "totalCount", + type: { + name: "Number" + } } } } }; -export const ActivityOutputType: coreClient.CompositeMapper = { +export const DscNodeConfigurationCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActivityOutputType", + className: "DscNodeConfigurationCreateOrUpdateParameters", modelProperties: { name: { serializedName: "name", @@ -3009,20 +3093,41 @@ export const ActivityOutputType: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", + tags: { + serializedName: "tags", type: { - name: "String" + 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 ActivityListResult: coreClient.CompositeMapper = { +export const DscNodeConfigurationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActivityListResult", + className: "DscNodeConfigurationListResult", modelProperties: { value: { serializedName: "value", @@ -3031,7 +3136,7 @@ export const ActivityListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Activity" + className: "DscNodeConfiguration" } } } @@ -3041,15 +3146,21 @@ export const ActivityListResult: coreClient.CompositeMapper = { type: { name: "String" } + }, + totalCount: { + serializedName: "totalCount", + type: { + name: "Number" + } } } } }; -export const ModuleCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const HybridRunbookWorkerCreateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModuleCreateOrUpdateParameters", + className: "HybridRunbookWorkerCreateParameters", modelProperties: { name: { serializedName: "name", @@ -3057,69 +3168,35 @@ export const ModuleCreateOrUpdateParameters: coreClient.CompositeMapper = { name: "String" } }, - location: { - serializedName: "location", + vmResourceId: { + serializedName: "properties.vmResourceId", type: { name: "String" } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - contentLink: { - serializedName: "properties.contentLink", - type: { - name: "Composite", - className: "ContentLink" - } } } } }; -export const ModuleUpdateParameters: coreClient.CompositeMapper = { +export const HybridRunbookWorkerMoveParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModuleUpdateParameters", + className: "HybridRunbookWorkerMoveParameters", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - location: { - serializedName: "location", + hybridRunbookWorkerGroupName: { + serializedName: "hybridRunbookWorkerGroupName", type: { name: "String" } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - contentLink: { - serializedName: "properties.contentLink", - type: { - name: "Composite", - className: "ContentLink" - } } } } }; -export const TypeFieldListResult: coreClient.CompositeMapper = { +export const HybridRunbookWorkersListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TypeFieldListResult", + className: "HybridRunbookWorkersListResult", modelProperties: { value: { serializedName: "value", @@ -3128,154 +3205,77 @@ export const TypeFieldListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TypeField" + className: "HybridRunbookWorker" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const TypeField: coreClient.CompositeMapper = { +export const RunAsCredentialAssociationProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TypeField", + className: "RunAsCredentialAssociationProperty", modelProperties: { name: { serializedName: "name", type: { name: "String" } - }, - type: { - serializedName: "type", - type: { - name: "String" - } } } } }; -export const ScheduleCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const HybridRunbookWorkerGroupCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleCreateOrUpdateParameters", + className: "HybridRunbookWorkerGroupCreateOrUpdateParameters", 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, type: { name: "String" } }, - timeZone: { - serializedName: "properties.timeZone", - type: { - name: "String" - } - }, - advancedSchedule: { - serializedName: "properties.advancedSchedule", + credential: { + serializedName: "properties.credential", type: { name: "Composite", - className: "AdvancedSchedule" + className: "RunAsCredentialAssociationProperty" } } } } }; -export const AdvancedSchedule: coreClient.CompositeMapper = { +export const HybridRunbookWorkerGroupsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdvancedSchedule", + className: "HybridRunbookWorkerGroupsListResult", modelProperties: { - weekDays: { - serializedName: "weekDays", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - monthDays: { - serializedName: "monthDays", - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } - }, - monthlyOccurrences: { - serializedName: "monthlyOccurrences", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AdvancedScheduleMonthlyOccurrence" + className: "HybridRunbookWorkerGroup" } } } - } - } - } -}; - -export const AdvancedScheduleMonthlyOccurrence: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdvancedScheduleMonthlyOccurrence", - modelProperties: { - occurrence: { - serializedName: "occurrence", - type: { - name: "Number" - } }, - day: { - serializedName: "day", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3284,37 +3284,39 @@ export const AdvancedScheduleMonthlyOccurrence: coreClient.CompositeMapper = { } }; -export const ScheduleUpdateParameters: coreClient.CompositeMapper = { +export const JobCreateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleUpdateParameters", + className: "JobCreateParameters", modelProperties: { - name: { - serializedName: "name", + runbook: { + serializedName: "properties.runbook", type: { - name: "String" + name: "Composite", + className: "RunbookAssociationProperty" } }, - description: { - serializedName: "properties.description", + parameters: { + serializedName: "properties.parameters", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - isEnabled: { - serializedName: "properties.isEnabled", + runOn: { + serializedName: "properties.runOn", type: { - name: "Boolean" + name: "String" } } } } }; -export const ScheduleListResult: coreClient.CompositeMapper = { +export const JobListResultV2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleListResult", + className: "JobListResultV2", modelProperties: { value: { serializedName: "value", @@ -3323,13 +3325,14 @@ export const ScheduleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Schedule" + className: "JobCollectionItem" } } } }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -3338,71 +3341,124 @@ export const ScheduleListResult: coreClient.CompositeMapper = { } }; -export const VariableCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const JobSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VariableCreateOrUpdateParameters", + className: "JobSchedule", modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, name: { serializedName: "name", - required: true, + readOnly: true, type: { name: "String" } }, - value: { - serializedName: "properties.value", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - description: { - serializedName: "properties.description", + jobScheduleId: { + serializedName: "properties.jobScheduleId", type: { name: "String" } }, - isEncrypted: { - serializedName: "properties.isEncrypted", + schedule: { + serializedName: "properties.schedule", type: { - name: "Boolean" + 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" } } } } } } }; -export const VariableUpdateParameters: coreClient.CompositeMapper = { +export const ScheduleAssociationProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VariableUpdateParameters", + className: "ScheduleAssociationProperty", modelProperties: { name: { serializedName: "name", type: { name: "String" } + } + } + } +}; + +export const JobScheduleCreateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobScheduleCreateParameters", + modelProperties: { + schedule: { + serializedName: "properties.schedule", + type: { + name: "Composite", + className: "ScheduleAssociationProperty" + } }, - value: { - serializedName: "properties.value", + runbook: { + serializedName: "properties.runbook", type: { - name: "String" + name: "Composite", + className: "RunbookAssociationProperty" } }, - description: { - serializedName: "properties.description", + runOn: { + serializedName: "properties.runOn", type: { name: "String" } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } }; -export const VariableListResult: coreClient.CompositeMapper = { +export const JobScheduleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VariableListResult", + className: "JobScheduleListResult", modelProperties: { value: { serializedName: "value", @@ -3411,7 +3467,7 @@ export const VariableListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Variable" + className: "JobSchedule" } } } @@ -3426,46 +3482,84 @@ export const VariableListResult: coreClient.CompositeMapper = { } }; -export const WatcherUpdateParameters: coreClient.CompositeMapper = { +export const LinkedWorkspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WatcherUpdateParameters", + className: "LinkedWorkspace", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } - }, - executionFrequencyInSeconds: { - serializedName: "properties.executionFrequencyInSeconds", - type: { - name: "Number" - } } } } }; -export const WatcherListResult: coreClient.CompositeMapper = { +export const Activity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WatcherListResult", + className: "Activity", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + definition: { + serializedName: "properties.definition", + type: { + name: "String" + } + }, + parameterSets: { + serializedName: "properties.parameterSets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Watcher" + className: "ActivityParameterSet" } } } }, - nextLink: { - serializedName: "nextLink", + outputTypes: { + serializedName: "properties.outputTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivityOutputType" + } + } + } + }, + creationTime: { + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", type: { name: "String" } @@ -3474,43 +3568,37 @@ export const WatcherListResult: coreClient.CompositeMapper = { } }; -export const DscConfigurationParameter: coreClient.CompositeMapper = { +export const ActivityParameterSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscConfigurationParameter", + className: "ActivityParameterSet", modelProperties: { - type: { - serializedName: "type", + name: { + serializedName: "name", type: { name: "String" } }, - isMandatory: { - serializedName: "isMandatory", - type: { - name: "Boolean" - } - }, - position: { - serializedName: "position", - type: { - name: "Number" - } - }, - defaultValue: { - serializedName: "defaultValue", + parameters: { + serializedName: "parameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivityParameter" + } + } } } } } }; -export const DscConfigurationCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const ActivityParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscConfigurationCreateOrUpdateParameters", + className: "ActivityParameter", modelProperties: { name: { serializedName: "name", @@ -3518,49 +3606,77 @@ export const DscConfigurationCreateOrUpdateParameters: coreClient.CompositeMappe name: "String" } }, - location: { - serializedName: "location", + type: { + serializedName: "type", type: { name: "String" } }, - tags: { - serializedName: "tags", + isMandatory: { + serializedName: "isMandatory", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - logVerbose: { - serializedName: "properties.logVerbose", + isDynamic: { + serializedName: "isDynamic", type: { name: "Boolean" } }, - logProgress: { - serializedName: "properties.logProgress", + position: { + serializedName: "position", + type: { + name: "Number" + } + }, + valueFromPipeline: { + serializedName: "valueFromPipeline", type: { name: "Boolean" } }, - source: { - serializedName: "properties.source", + valueFromPipelineByPropertyName: { + serializedName: "valueFromPipelineByPropertyName", + type: { + name: "Boolean" + } + }, + valueFromRemainingArguments: { + serializedName: "valueFromRemainingArguments", + type: { + name: "Boolean" + } + }, + description: { + serializedName: "description", type: { - name: "Composite", - className: "ContentSource" + name: "String" } }, - parameters: { - serializedName: "properties.parameters", + validationSet: { + serializedName: "validationSet", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "DscConfigurationParameter" } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivityParameterValidationSet" + } } } - }, - description: { - serializedName: "properties.description", + } + } + } +}; + +export const ActivityParameterValidationSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActivityParameterValidationSet", + modelProperties: { + memberValue: { + serializedName: "memberValue", type: { name: "String" } @@ -3569,10 +3685,10 @@ export const DscConfigurationCreateOrUpdateParameters: coreClient.CompositeMappe } }; -export const DscConfigurationUpdateParameters: coreClient.CompositeMapper = { +export const ActivityOutputType: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscConfigurationUpdateParameters", + className: "ActivityOutputType", modelProperties: { name: { serializedName: "name", @@ -3580,43 +3696,8 @@ export const DscConfigurationUpdateParameters: coreClient.CompositeMapper = { 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: { + serializedName: "type", type: { name: "String" } @@ -3625,10 +3706,10 @@ export const DscConfigurationUpdateParameters: coreClient.CompositeMapper = { } }; -export const DscConfigurationListResult: coreClient.CompositeMapper = { +export const ActivityListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DscConfigurationListResult", + className: "ActivityListResult", modelProperties: { value: { serializedName: "value", @@ -3637,7 +3718,7 @@ export const DscConfigurationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DscConfiguration" + className: "Activity" } } } @@ -3647,38 +3728,31 @@ export const DscConfigurationListResult: coreClient.CompositeMapper = { type: { name: "String" } - }, - totalCount: { - serializedName: "totalCount", - type: { - name: "Number" - } } } } }; -export const JobCreateParameters: coreClient.CompositeMapper = { +export const ContentLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobCreateParameters", + className: "ContentLink", modelProperties: { - runbook: { - serializedName: "properties.runbook", + uri: { + serializedName: "uri", type: { - name: "Composite", - className: "RunbookAssociationProperty" + name: "String" } }, - parameters: { - serializedName: "properties.parameters", + contentHash: { + serializedName: "contentHash", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "ContentHash" } }, - runOn: { - serializedName: "properties.runOn", + version: { + serializedName: "version", type: { name: "String" } @@ -3687,26 +3761,19 @@ export const JobCreateParameters: coreClient.CompositeMapper = { } }; -export const JobListResultV2: coreClient.CompositeMapper = { +export const ModuleErrorInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobListResultV2", + className: "ModuleErrorInfo", modelProperties: { - value: { - serializedName: "value", + code: { + serializedName: "code", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobCollectionItem" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + message: { + serializedName: "message", type: { name: "String" } @@ -3715,31 +3782,45 @@ export const JobListResultV2: coreClient.CompositeMapper = { } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const ModuleCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "ModuleCreateOrUpdateParameters", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + contentLink: { + serializedName: "properties.contentLink", + type: { + name: "Composite", + className: "ContentLink" } } } } }; -export const Operation: coreClient.CompositeMapper = { +export const ModuleUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "ModuleUpdateParameters", modelProperties: { name: { serializedName: "name", @@ -3747,36 +3828,49 @@ export const Operation: coreClient.CompositeMapper = { name: "String" } }, - display: { - serializedName: "display", + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + contentLink: { + serializedName: "properties.contentLink", type: { name: "Composite", - className: "OperationDisplay" + className: "ContentLink" } } } } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const ModuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "ModuleListResult", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Module" + } + } } }, - operation: { - serializedName: "operation", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3785,250 +3879,234 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const GraphicalRunbookContent: coreClient.CompositeMapper = { +export const TypeFieldListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GraphicalRunbookContent", + className: "TypeFieldListResult", modelProperties: { - rawContent: { - serializedName: "rawContent", - type: { - name: "Composite", - className: "RawGraphicalRunbookContent" - } - }, - graphRunbookJson: { - serializedName: "graphRunbookJson", - nullable: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TypeField" + } + } } } } } }; -export const RawGraphicalRunbookContent: coreClient.CompositeMapper = { +export const TypeField: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RawGraphicalRunbookContent", + className: "TypeField", modelProperties: { - schemaVersion: { - serializedName: "schemaVersion", + name: { + serializedName: "name", type: { name: "String" } }, - runbookDefinition: { - serializedName: "runbookDefinition", + type: { + serializedName: "type", type: { name: "String" } - }, - runbookType: { - serializedName: "runbookType", + } + } + } +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } } } } } }; -export const SoftwareUpdateConfiguration: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfiguration", + className: "Operation", modelProperties: { name: { serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, type: { name: "String" } }, - updateConfiguration: { - serializedName: "properties.updateConfiguration", - type: { - name: "Composite", - className: "UpdateConfiguration" - } - }, - scheduleInfo: { - serializedName: "properties.scheduleInfo", + display: { + serializedName: "display", type: { name: "Composite", - className: "SUCScheduleProperties" + className: "OperationDisplay" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + origin: { + serializedName: "origin", type: { name: "String" } }, - error: { - serializedName: "properties.error", + serviceSpecification: { + serializedName: "properties.serviceSpecification", type: { name: "Composite", - className: "ErrorResponse" + className: "OperationPropertiesFormatServiceSpecification" } - }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - createdBy: { - serializedName: "properties.createdBy", - readOnly: true, + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", type: { name: "String" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, + resource: { + serializedName: "resource", type: { - name: "DateTime" + name: "String" } }, - lastModifiedBy: { - serializedName: "properties.lastModifiedBy", - readOnly: true, + operation: { + serializedName: "operation", type: { name: "String" } }, - tasks: { - serializedName: "properties.tasks", + description: { + serializedName: "description", type: { - name: "Composite", - className: "SoftwareUpdateConfigurationTasks" + name: "String" } } } } }; -export const UpdateConfiguration: coreClient.CompositeMapper = { +export const OperationPropertiesFormatServiceSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateConfiguration", + className: "OperationPropertiesFormatServiceSpecification", modelProperties: { - operatingSystem: { - serializedName: "operatingSystem", - required: true, - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - windows: { - serializedName: "windows", - type: { - name: "Composite", - className: "WindowsProperties" - } - }, - linux: { - serializedName: "linux", - type: { - name: "Composite", - className: "LinuxProperties" - } - }, - duration: { - serializedName: "duration", - type: { - name: "TimeSpan" - } - }, - azureVirtualMachines: { - serializedName: "azureVirtualMachines", + metricSpecifications: { + serializedName: "metricSpecifications", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MetricSpecification" } } } }, - nonAzureComputerNames: { - serializedName: "nonAzureComputerNames", + logSpecifications: { + serializedName: "logSpecifications", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "LogSpecification" } } } - }, - targets: { - serializedName: "targets", - type: { - name: "Composite", - className: "TargetProperties" - } } } } }; -export const WindowsProperties: coreClient.CompositeMapper = { +export const MetricSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WindowsProperties", + className: "MetricSpecification", modelProperties: { - includedUpdateClassifications: { - serializedName: "includedUpdateClassifications", + name: { + serializedName: "name", type: { name: "String" } }, - excludedKbNumbers: { - serializedName: "excludedKbNumbers", + displayName: { + serializedName: "displayName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - includedKbNumbers: { - serializedName: "includedKbNumbers", + 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: "String" + name: "Composite", + className: "Dimension" } } } + } + } + } +}; + +export const Dimension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Dimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } }, - rebootSetting: { - serializedName: "rebootSetting", + displayName: { + serializedName: "displayName", type: { name: "String" } @@ -4037,41 +4115,25 @@ export const WindowsProperties: coreClient.CompositeMapper = { } }; -export const LinuxProperties: coreClient.CompositeMapper = { +export const LogSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinuxProperties", + className: "LogSpecification", modelProperties: { - includedPackageClassifications: { - serializedName: "includedPackageClassifications", + name: { + serializedName: "name", type: { name: "String" } }, - excludedPackageNameMasks: { - serializedName: "excludedPackageNameMasks", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - includedPackageNameMasks: { - serializedName: "includedPackageNameMasks", + displayName: { + serializedName: "displayName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - rebootSetting: { - serializedName: "rebootSetting", + blobDuration: { + serializedName: "blobDuration", type: { name: "String" } @@ -4080,213 +4142,172 @@ export const LinuxProperties: coreClient.CompositeMapper = { } }; -export const TargetProperties: coreClient.CompositeMapper = { +export const GraphicalRunbookContent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetProperties", + className: "GraphicalRunbookContent", modelProperties: { - azureQueries: { - serializedName: "azureQueries", + rawContent: { + serializedName: "rawContent", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureQueryProperties" - } - } + name: "Composite", + className: "RawGraphicalRunbookContent" } }, - nonAzureQueries: { - serializedName: "nonAzureQueries", + graphRunbookJson: { + serializedName: "graphRunbookJson", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NonAzureQueryProperties" - } - } + name: "String" } } } } }; -export const AzureQueryProperties: coreClient.CompositeMapper = { +export const RawGraphicalRunbookContent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureQueryProperties", + className: "RawGraphicalRunbookContent", modelProperties: { - scope: { - serializedName: "scope", + schemaVersion: { + serializedName: "schemaVersion", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - locations: { - serializedName: "locations", + runbookDefinition: { + serializedName: "runbookDefinition", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - tagSettings: { - serializedName: "tagSettings", + runbookType: { + serializedName: "runbookType", type: { - name: "Composite", - className: "TagSettingsProperties" + name: "String" } } } } }; -export const TagSettingsProperties: coreClient.CompositeMapper = { +export const PythonPackageCreateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TagSettingsProperties", + className: "PythonPackageCreateParameters", modelProperties: { tags: { serializedName: "tags", type: { name: "Dictionary", - value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } + value: { type: { name: "String" } } } }, - filterOperator: { - serializedName: "filterOperator", + contentLink: { + serializedName: "properties.contentLink", type: { - name: "Enum", - allowedValues: ["All", "Any"] + name: "Composite", + className: "ContentLink" } } } } }; -export const NonAzureQueryProperties: coreClient.CompositeMapper = { +export const PythonPackageUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NonAzureQueryProperties", + className: "PythonPackageUpdateParameters", modelProperties: { - functionAlias: { - serializedName: "functionAlias", - type: { - name: "String" - } - }, - workspaceId: { - serializedName: "workspaceId", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const SUCScheduleProperties: coreClient.CompositeMapper = { +export const RunbookDraft: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SUCScheduleProperties", + className: "RunbookDraft", modelProperties: { - startTime: { - serializedName: "startTime", + inEdit: { + serializedName: "inEdit", type: { - name: "DateTime" + name: "Boolean" } }, - startTimeOffsetMinutes: { - serializedName: "startTimeOffsetMinutes", - readOnly: true, + draftContentLink: { + serializedName: "draftContentLink", type: { - name: "Number" + name: "Composite", + className: "ContentLink" } }, - expiryTime: { - serializedName: "expiryTime", - nullable: true, + creationTime: { + serializedName: "creationTime", type: { name: "DateTime" } }, - expiryTimeOffsetMinutes: { - serializedName: "expiryTimeOffsetMinutes", - type: { - name: "Number" - } - }, - isEnabled: { - defaultValue: false, - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - nextRun: { - serializedName: "nextRun", - nullable: true, + lastModifiedTime: { + serializedName: "lastModifiedTime", type: { name: "DateTime" } }, - nextRunOffsetMinutes: { - serializedName: "nextRunOffsetMinutes", - type: { - name: "Number" - } - }, - interval: { - serializedName: "interval", + parameters: { + serializedName: "parameters", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "Composite", className: "RunbookParameter" } } } }, - frequency: { - serializedName: "frequency", + outputTypes: { + serializedName: "outputTypes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - timeZone: { - serializedName: "timeZone", + } + } + } +}; + +export const RunbookParameter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunbookParameter", + modelProperties: { + type: { + serializedName: "type", type: { name: "String" } }, - advancedSchedule: { - serializedName: "advancedSchedule", - type: { - name: "Composite", - className: "AdvancedSchedule" - } - }, - creationTime: { - serializedName: "creationTime", + isMandatory: { + serializedName: "isMandatory", type: { - name: "DateTime" + name: "Boolean" } }, - lastModifiedTime: { - serializedName: "lastModifiedTime", + position: { + serializedName: "position", type: { - name: "DateTime" + name: "Number" } }, - description: { - serializedName: "description", + defaultValue: { + serializedName: "defaultValue", type: { name: "String" } @@ -4295,334 +4316,373 @@ export const SUCScheduleProperties: coreClient.CompositeMapper = { } }; -export const SoftwareUpdateConfigurationTasks: coreClient.CompositeMapper = { +export const RunbookDraftUndoEditResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationTasks", + className: "RunbookDraftUndoEditResult", modelProperties: { - preTask: { - serializedName: "preTask", + statusCode: { + serializedName: "statusCode", type: { - name: "Composite", - className: "TaskProperties" + name: "String" } }, - postTask: { - serializedName: "postTask", + requestId: { + serializedName: "requestId", type: { - name: "Composite", - className: "TaskProperties" + name: "String" } } } } }; -export const TaskProperties: coreClient.CompositeMapper = { +export const RunbookCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TaskProperties", + className: "RunbookCreateOrUpdateParameters", modelProperties: { - parameters: { - serializedName: "parameters", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", type: { name: "Dictionary", value: { type: { name: "String" } } } }, - source: { - serializedName: "source", + logVerbose: { + serializedName: "properties.logVerbose", + type: { + name: "Boolean" + } + }, + logProgress: { + serializedName: "properties.logProgress", + type: { + name: "Boolean" + } + }, + runbookType: { + serializedName: "properties.runbookType", + required: true, type: { name: "String" } - } - } - } -}; - -export const SoftwareUpdateConfigurationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SoftwareUpdateConfigurationListResult", - modelProperties: { - value: { - serializedName: "value", + }, + draft: { + serializedName: "properties.draft", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SoftwareUpdateConfigurationCollectionItem" - } - } + name: "Composite", + className: "RunbookDraft" + } + }, + publishContentLink: { + serializedName: "properties.publishContentLink", + type: { + name: "Composite", + className: "ContentLink" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + logActivityTrace: { + serializedName: "properties.logActivityTrace", + type: { + name: "Number" } } } } }; -export const SoftwareUpdateConfigurationCollectionItem: coreClient.CompositeMapper = { +export const RunbookUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationCollectionItem", + className: "RunbookUpdateParameters", modelProperties: { name: { serializedName: "name", - readOnly: true, type: { name: "String" } }, - id: { - serializedName: "id", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } }, - updateConfiguration: { - serializedName: "properties.updateConfiguration", - type: { - name: "Composite", - className: "UpdateConfiguration" - } - }, - tasks: { - serializedName: "properties.tasks", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "SoftwareUpdateConfigurationTasks" + name: "Dictionary", + value: { type: { name: "String" } } } }, - frequency: { - serializedName: "properties.frequency", + description: { + serializedName: "properties.description", type: { name: "String" } }, - startTime: { - serializedName: "properties.startTime", + logVerbose: { + serializedName: "properties.logVerbose", type: { - name: "DateTime" + name: "Boolean" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + logProgress: { + serializedName: "properties.logProgress", type: { - name: "DateTime" + name: "Boolean" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, + logActivityTrace: { + serializedName: "properties.logActivityTrace", type: { - name: "DateTime" + name: "Number" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + } + } + } +}; + +export const RunbookListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunbookListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Runbook" + } + } } }, - nextRun: { - serializedName: "properties.nextRun", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { - name: "DateTime" + name: "String" } } } } }; -export const SoftwareUpdateConfigurationRun: coreClient.CompositeMapper = { +export const TestJobCreateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwareUpdateConfigurationRun", + className: "TestJobCreateParameters", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + parameters: { + serializedName: "parameters", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - id: { - serializedName: "id", - readOnly: true, + runOn: { + serializedName: "runOn", type: { name: "String" } - }, - softwareUpdateConfiguration: { - serializedName: "properties.softwareUpdateConfiguration", + } + } + } +}; + +export const TestJob: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TestJob", + modelProperties: { + creationTime: { + serializedName: "creationTime", type: { - name: "Composite", - className: "UpdateConfigurationNavigation" + name: "DateTime" } }, status: { - serializedName: "properties.status", - readOnly: true, + serializedName: "status", type: { name: "String" } }, - configuredDuration: { - serializedName: "properties.configuredDuration", - readOnly: true, + statusDetails: { + serializedName: "statusDetails", type: { name: "String" } }, - osType: { - serializedName: "properties.osType", - readOnly: true, + runOn: { + serializedName: "runOn", type: { name: "String" } }, startTime: { - serializedName: "properties.startTime", - readOnly: true, + serializedName: "startTime", + nullable: true, type: { name: "DateTime" } }, endTime: { - serializedName: "properties.endTime", - readOnly: true, + serializedName: "endTime", nullable: true, type: { name: "DateTime" } }, - computerCount: { - serializedName: "properties.computerCount", - readOnly: true, - type: { - name: "Number" - } - }, - failedCount: { - serializedName: "properties.failedCount", - readOnly: true, + exception: { + serializedName: "exception", type: { - name: "Number" + name: "String" } }, - creationTime: { - serializedName: "properties.creationTime", - readOnly: true, + lastModifiedTime: { + serializedName: "lastModifiedTime", type: { name: "DateTime" } }, - createdBy: { - serializedName: "properties.createdBy", - readOnly: true, - type: { - name: "String" - } - }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", - readOnly: true, + lastStatusModifiedTime: { + serializedName: "lastStatusModifiedTime", + nullable: true, type: { name: "DateTime" } }, - lastModifiedBy: { - serializedName: "properties.lastModifiedBy", - readOnly: true, + parameters: { + serializedName: "parameters", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - tasks: { - serializedName: "properties.tasks", + logActivityTrace: { + serializedName: "logActivityTrace", type: { - name: "Composite", - className: "SoftwareUpdateConfigurationRunTasks" + name: "Number" } } } } }; -export const UpdateConfigurationNavigation: coreClient.CompositeMapper = { +export const ScheduleCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateConfigurationNavigation", + className: "ScheduleCreateOrUpdateParameters", modelProperties: { name: { serializedName: "name", - readOnly: true, + required: true, type: { name: "String" } - } - } - } -}; - -export const SoftwareUpdateConfigurationRunTasks: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SoftwareUpdateConfigurationRunTasks", - modelProperties: { - preTask: { - serializedName: "preTask", + }, + description: { + serializedName: "properties.description", type: { - name: "Composite", - className: "SoftwareUpdateConfigurationRunTaskProperties" + name: "String" } }, - postTask: { - serializedName: "postTask", + 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", - modelProperties: { - status: { - serializedName: "status", + className: "ScheduleUpdateParameters", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - source: { - serializedName: "source", + description: { + serializedName: "properties.description", type: { 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,7 +4691,7 @@ export const SoftwareUpdateConfigurationRunListResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "SoftwareUpdateConfigurationRun" + className: "Schedule" } } } @@ -4782,6 +4842,22 @@ export const SoftwareUpdateConfigurationMachineRun: coreClient.CompositeMapper = } }; +export const UpdateConfigurationNavigation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateConfigurationNavigation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const JobNavigation: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4825,83 +4901,163 @@ export const SoftwareUpdateConfigurationMachineRunListResult: coreClient.Composi } }; -export const RunbookDraft: coreClient.CompositeMapper = { +export const SoftwareUpdateConfigurationRun: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookDraft", + className: "SoftwareUpdateConfigurationRun", modelProperties: { - inEdit: { - serializedName: "inEdit", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - draftContentLink: { - serializedName: "draftContentLink", + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + softwareUpdateConfiguration: { + serializedName: "properties.softwareUpdateConfiguration", type: { name: "Composite", - className: "ContentLink" + className: "UpdateConfigurationNavigation" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + configuredDuration: { + serializedName: "properties.configuredDuration", + readOnly: true, + type: { + name: "String" + } + }, + osType: { + serializedName: "properties.osType", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.endTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } + }, + computerCount: { + serializedName: "properties.computerCount", + readOnly: true, + type: { + name: "Number" + } + }, + failedCount: { + serializedName: "properties.failedCount", + readOnly: true, + type: { + name: "Number" } }, creationTime: { - serializedName: "creationTime", + serializedName: "properties.creationTime", + readOnly: true, type: { name: "DateTime" } }, + createdBy: { + serializedName: "properties.createdBy", + readOnly: true, + type: { + name: "String" + } + }, lastModifiedTime: { - serializedName: "lastModifiedTime", + serializedName: "properties.lastModifiedTime", + readOnly: true, type: { name: "DateTime" } }, - parameters: { - serializedName: "parameters", + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "RunbookParameter" } } + name: "String" } }, - outputTypes: { - serializedName: "outputTypes", + tasks: { + serializedName: "properties.tasks", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SoftwareUpdateConfigurationRunTasks" } } } } }; -export const RunbookParameter: coreClient.CompositeMapper = { +export const SoftwareUpdateConfigurationRunTasks: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookParameter", + className: "SoftwareUpdateConfigurationRunTasks", modelProperties: { - type: { - serializedName: "type", + preTask: { + serializedName: "preTask", type: { - name: "String" + name: "Composite", + className: "SoftwareUpdateConfigurationRunTaskProperties" } }, - isMandatory: { - serializedName: "isMandatory", + postTask: { + serializedName: "postTask", type: { - name: "Boolean" + name: "Composite", + className: "SoftwareUpdateConfigurationRunTaskProperties" + } + } + } + } +}; + +export const SoftwareUpdateConfigurationRunTaskProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationRunTaskProperties", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" } }, - position: { - serializedName: "position", + source: { + serializedName: "source", type: { - name: "Number" + name: "String" } }, - defaultValue: { - serializedName: "defaultValue", + jobId: { + serializedName: "jobId", type: { name: "String" } @@ -4910,19 +5066,25 @@ export const RunbookParameter: coreClient.CompositeMapper = { } }; -export const RunbookDraftUndoEditResult: coreClient.CompositeMapper = { +export const SoftwareUpdateConfigurationRunListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookDraftUndoEditResult", + className: "SoftwareUpdateConfigurationRunListResult", modelProperties: { - statusCode: { - serializedName: "statusCode", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationRun" + } + } } }, - requestId: { - serializedName: "requestId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -4931,135 +5093,159 @@ export const RunbookDraftUndoEditResult: coreClient.CompositeMapper = { } }; -export const RunbookCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const SourceControlCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookCreateOrUpdateParameters", + className: "SourceControlCreateOrUpdateParameters", modelProperties: { - name: { - serializedName: "name", + repoUrl: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.repoUrl", type: { name: "String" } }, - location: { - serializedName: "location", + branch: { + constraints: { + MaxLength: 255 + }, + serializedName: "properties.branch", type: { name: "String" } }, - tags: { - serializedName: "tags", + folderPath: { + constraints: { + MaxLength: 255 + }, + serializedName: "properties.folderPath", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - logVerbose: { - serializedName: "properties.logVerbose", + autoSync: { + serializedName: "properties.autoSync", type: { name: "Boolean" } }, - logProgress: { - serializedName: "properties.logProgress", + publishRunbook: { + serializedName: "properties.publishRunbook", type: { name: "Boolean" } }, - runbookType: { - serializedName: "properties.runbookType", - required: true, + sourceType: { + serializedName: "properties.sourceType", type: { name: "String" } }, - draft: { - serializedName: "properties.draft", - type: { - name: "Composite", - className: "RunbookDraft" - } - }, - publishContentLink: { - serializedName: "properties.publishContentLink", + securityToken: { + serializedName: "properties.securityToken", type: { name: "Composite", - className: "ContentLink" + className: "SourceControlSecurityTokenProperties" } }, description: { + constraints: { + MaxLength: 512 + }, serializedName: "properties.description", type: { name: "String" } - }, - logActivityTrace: { - serializedName: "properties.logActivityTrace", - type: { - name: "Number" - } } } } }; -export const RunbookUpdateParameters: coreClient.CompositeMapper = { +export const SourceControlSecurityTokenProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookUpdateParameters", + className: "SourceControlSecurityTokenProperties", modelProperties: { - name: { - serializedName: "name", + accessToken: { + constraints: { + MaxLength: 1024 + }, + serializedName: "accessToken", type: { name: "String" } }, - location: { - serializedName: "location", + refreshToken: { + constraints: { + MaxLength: 1024 + }, + serializedName: "refreshToken", type: { name: "String" } }, - tags: { - serializedName: "tags", + tokenType: { + serializedName: "tokenType", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" + } + } + } + } +}; + +export const SourceControlUpdateParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SourceControlUpdateParameters", + modelProperties: { + branch: { + serializedName: "properties.branch", + type: { + name: "String" } }, - description: { - serializedName: "properties.description", + folderPath: { + serializedName: "properties.folderPath", type: { name: "String" } }, - logVerbose: { - serializedName: "properties.logVerbose", + autoSync: { + serializedName: "properties.autoSync", type: { name: "Boolean" } }, - logProgress: { - serializedName: "properties.logProgress", + publishRunbook: { + serializedName: "properties.publishRunbook", type: { name: "Boolean" } }, - logActivityTrace: { - serializedName: "properties.logActivityTrace", + securityToken: { + serializedName: "properties.securityToken", type: { - name: "Number" + name: "Composite", + className: "SourceControlSecurityTokenProperties" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" } } } } }; -export const RunbookListResult: coreClient.CompositeMapper = { +export const SourceControlListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunbookListResult", + className: "SourceControlListResult", modelProperties: { value: { serializedName: "value", @@ -5068,7 +5254,7 @@ export const RunbookListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Runbook" + className: "SourceControl" } } } @@ -5083,20 +5269,14 @@ export const RunbookListResult: coreClient.CompositeMapper = { } }; -export const TestJobCreateParameters: coreClient.CompositeMapper = { +export const SourceControlSyncJobCreateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TestJobCreateParameters", + className: "SourceControlSyncJobCreateParameters", modelProperties: { - parameters: { - serializedName: "parameters", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - runOn: { - serializedName: "runOn", + commitId: { + serializedName: "properties.commitId", + required: true, type: { name: "String" } @@ -5105,171 +5285,69 @@ export const TestJobCreateParameters: coreClient.CompositeMapper = { } }; -export const TestJob: coreClient.CompositeMapper = { +export const SourceControlSyncJob: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TestJob", + className: "SourceControlSyncJob", modelProperties: { - creationTime: { - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - status: { - serializedName: "status", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - statusDetails: { - serializedName: "statusDetails", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - runOn: { - serializedName: "runOn", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - startTime: { - serializedName: "startTime", - nullable: true, + sourceControlSyncJobId: { + serializedName: "properties.sourceControlSyncJobId", type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "endTime", - nullable: true, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, type: { name: "DateTime" } }, - exception: { - serializedName: "exception", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } }, - lastModifiedTime: { - serializedName: "lastModifiedTime", - type: { - name: "DateTime" - } - }, - lastStatusModifiedTime: { - serializedName: "lastStatusModifiedTime", + startTime: { + serializedName: "properties.startTime", + readOnly: true, nullable: true, type: { name: "DateTime" } }, - parameters: { - serializedName: "parameters", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - logActivityTrace: { - serializedName: "logActivityTrace", - type: { - name: "Number" - } - } - } - } -}; - -export const WebhookCreateOrUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WebhookCreateOrUpdateParameters", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - }, - uri: { - serializedName: "properties.uri", - type: { - name: "String" - } - }, - expiryTime: { - serializedName: "properties.expiryTime", + endTime: { + serializedName: "properties.endTime", + readOnly: true, + nullable: true, type: { name: "DateTime" } - }, - parameters: { - serializedName: "properties.parameters", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - runbook: { - serializedName: "properties.runbook", - type: { - name: "Composite", - className: "RunbookAssociationProperty" - } - }, - runOn: { - serializedName: "properties.runOn", - type: { - name: "String" - } - } - } - } -}; - -export const WebhookUpdateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WebhookUpdateParameters", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - }, - runOn: { - serializedName: "properties.runOn", - type: { - name: "String" - } - }, - parameters: { - serializedName: "properties.parameters", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - description: { - serializedName: "properties.description", + }, + syncType: { + serializedName: "properties.syncType", type: { name: "String" } @@ -5278,61 +5356,60 @@ export const WebhookUpdateParameters: coreClient.CompositeMapper = { } }; -export const WebhookListResult: coreClient.CompositeMapper = { +export const SourceControlSyncJobById: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebhookListResult", + className: "SourceControlSyncJobById", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Webhook" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + sourceControlSyncJobId: { + serializedName: "properties.sourceControlSyncJobId", type: { name: "String" } - } - } - } -}; - -export const HybridRunbookWorkerCreateParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HybridRunbookWorkerCreateParameters", - modelProperties: { - name: { - serializedName: "name", + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } }, - vmResourceId: { - serializedName: "properties.vmResourceId", + startTime: { + serializedName: "properties.startTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.endTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } + }, + syncType: { + serializedName: "properties.syncType", type: { name: "String" } - } - } - } -}; - -export const HybridRunbookWorkerMoveParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HybridRunbookWorkerMoveParameters", - modelProperties: { - hybridRunbookWorkerGroupName: { - serializedName: "hybridRunbookWorkerGroupName", + }, + exception: { + serializedName: "properties.exception", type: { name: "String" } @@ -5341,10 +5418,10 @@ export const HybridRunbookWorkerMoveParameters: coreClient.CompositeMapper = { } }; -export const HybridRunbookWorkersListResult: coreClient.CompositeMapper = { +export const SourceControlSyncJobListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HybridRunbookWorkersListResult", + className: "SourceControlSyncJobListResult", modelProperties: { value: { serializedName: "value", @@ -5353,7 +5430,7 @@ export const HybridRunbookWorkersListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "HybridRunbookWorker" + className: "SourceControlSyncJob" } } } @@ -5368,10 +5445,10 @@ export const HybridRunbookWorkersListResult: coreClient.CompositeMapper = { } }; -export const DeletedAutomationAccountListResult: coreClient.CompositeMapper = { +export const SourceControlSyncJobStreamsListBySyncJob: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeletedAutomationAccountListResult", + className: "SourceControlSyncJobStreamsListBySyncJob", modelProperties: { value: { serializedName: "value", @@ -5380,92 +5457,159 @@ export const DeletedAutomationAccountListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeletedAutomationAccount" + className: "SourceControlSyncJobStream" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const DeletedAutomationAccount: coreClient.CompositeMapper = { +export const SourceControlSyncJobStream: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeletedAutomationAccount", + className: "SourceControlSyncJobStream", modelProperties: { id: { serializedName: "id", + readOnly: true, type: { name: "String" } }, - name: { - serializedName: "name", + sourceControlSyncJobStreamId: { + serializedName: "properties.sourceControlSyncJobStreamId", type: { name: "String" } }, - type: { - serializedName: "type", + summary: { + serializedName: "properties.summary", type: { name: "String" } }, - location: { - serializedName: "location", + time: { + serializedName: "properties.time", + readOnly: true, + nullable: true, type: { - name: "String" + name: "DateTime" } }, - automationAccountResourceId: { - serializedName: "properties.automationAccountResourceId", + streamType: { + serializedName: "properties.streamType", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlSyncJobStreamById: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SourceControlSyncJobStreamById", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - automationAccountId: { - serializedName: "properties.automationAccountId", + sourceControlSyncJobStreamId: { + serializedName: "properties.sourceControlSyncJobStreamId", type: { name: "String" } }, - locationPropertiesLocation: { - serializedName: "properties.location", + summary: { + serializedName: "properties.summary", type: { name: "String" } }, - deletionTime: { - serializedName: "properties.deletionTime", + time: { + serializedName: "properties.time", readOnly: true, + nullable: true, type: { name: "DateTime" } + }, + streamType: { + serializedName: "properties.streamType", + type: { + name: "String" + } + }, + streamText: { + serializedName: "properties.streamText", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } } } } }; -export const RunAsCredentialAssociationProperty: coreClient.CompositeMapper = { +export const VariableCreateOrUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunAsCredentialAssociationProperty", + className: "VariableCreateOrUpdateParameters", modelProperties: { name: { serializedName: "name", + required: true, + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", type: { name: "String" } + }, + isEncrypted: { + serializedName: "properties.isEncrypted", + type: { + name: "Boolean" + } } } } }; -export const HybridRunbookWorkerGroupCreateOrUpdateParameters: coreClient.CompositeMapper = { +export const VariableUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HybridRunbookWorkerGroupCreateOrUpdateParameters", + className: "VariableUpdateParameters", modelProperties: { name: { serializedName: "name", @@ -5473,21 +5617,26 @@ export const HybridRunbookWorkerGroupCreateOrUpdateParameters: coreClient.Compos name: "String" } }, - credential: { - serializedName: "properties.credential", + value: { + serializedName: "properties.value", type: { - name: "Composite", - className: "RunAsCredentialAssociationProperty" + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" } } } } }; -export const HybridRunbookWorkerGroupsListResult: coreClient.CompositeMapper = { +export const VariableListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HybridRunbookWorkerGroupsListResult", + className: "VariableListResult", modelProperties: { value: { serializedName: "value", @@ -5496,7 +5645,7 @@ export const HybridRunbookWorkerGroupsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "HybridRunbookWorkerGroup" + className: "Variable" } } } @@ -5563,42 +5712,9 @@ export const RunbookCreateOrUpdateDraftParameters: coreClient.CompositeMapper = 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 - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - location: { - serializedName: "location", + runbookContent: { + serializedName: "runbookContent", + required: true, type: { name: "String" } @@ -5607,6 +5723,16 @@ export const TrackedResource: coreClient.CompositeMapper = { } }; +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const Watcher: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5695,6 +5821,29 @@ export const Watcher: coreClient.CompositeMapper = { } }; +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export const HybridRunbookWorker: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5919,53 +6068,6 @@ export const DscNode: coreClient.CompositeMapper = { } }; -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" - } - }, - source: { - serializedName: "properties.source", - type: { - name: "String" - } - }, - nodeCount: { - serializedName: "properties.nodeCount", - type: { - name: "Number" - } - }, - incrementNodeConfigurationBuild: { - serializedName: "properties.incrementNodeConfigurationBuild", - type: { - name: "Boolean" - } - } - } - } -}; - export const DscCompilationJob: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6073,50 +6175,54 @@ export const DscCompilationJob: coreClient.CompositeMapper = { } }; -export const SourceControl: coreClient.CompositeMapper = { +export const Webhook: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceControl", + className: "Webhook", modelProperties: { ...ProxyResource.type.modelProperties, - repoUrl: { - serializedName: "properties.repoUrl", + isEnabled: { + defaultValue: false, + serializedName: "properties.isEnabled", type: { - name: "String" + name: "Boolean" } }, - branch: { - serializedName: "properties.branch", + uri: { + serializedName: "properties.uri", type: { name: "String" } }, - folderPath: { - serializedName: "properties.folderPath", + expiryTime: { + serializedName: "properties.expiryTime", type: { - name: "String" + name: "DateTime" } }, - autoSync: { - serializedName: "properties.autoSync", + lastInvokedTime: { + serializedName: "properties.lastInvokedTime", + nullable: true, type: { - name: "Boolean" + name: "DateTime" } }, - publishRunbook: { - serializedName: "properties.publishRunbook", + parameters: { + serializedName: "properties.parameters", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } } }, - sourceType: { - serializedName: "properties.sourceType", + runbook: { + serializedName: "properties.runbook", type: { - name: "String" + name: "Composite", + className: "RunbookAssociationProperty" } }, - description: { - serializedName: "properties.description", + runOn: { + serializedName: "properties.runOn", type: { name: "String" } @@ -6132,6 +6238,18 @@ export const SourceControl: coreClient.CompositeMapper = { type: { name: "DateTime" } + }, + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } } } } @@ -6270,140 +6388,47 @@ export const Credential: coreClient.CompositeMapper = { } }; -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, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", 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", - type: { - name: "Composite", - className: "AdvancedSchedule" - } - }, creationTime: { serializedName: "properties.creationTime", type: { name: "DateTime" } }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + configuration: { + serializedName: "properties.configuration", type: { - name: "DateTime" + name: "Composite", + className: "DscConfigurationAssociationProperty" } }, - 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", + source: { + serializedName: "properties.source", type: { name: "String" } }, - isEncrypted: { - serializedName: "properties.isEncrypted", - nullable: true, - type: { - name: "Boolean" - } - }, - creationTime: { - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - }, - lastModifiedTime: { - serializedName: "properties.lastModifiedTime", + nodeCount: { + serializedName: "properties.nodeCount", type: { - name: "DateTime" + name: "Number" } }, - description: { - serializedName: "properties.description", + incrementNodeConfigurationBuild: { + serializedName: "properties.incrementNodeConfigurationBuild", type: { - name: "String" + name: "Boolean" } } } @@ -6585,58 +6610,83 @@ export const JobCollectionItem: coreClient.CompositeMapper = { } }; -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" } }, - 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" } }, - 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: "Composite", + className: "AdvancedSchedule" + } + }, creationTime: { serializedName: "properties.creationTime", type: { @@ -6649,12 +6699,6 @@ export const Webhook: coreClient.CompositeMapper = { name: "DateTime" } }, - lastModifiedBy: { - serializedName: "properties.lastModifiedBy", - type: { - name: "String" - } - }, description: { serializedName: "properties.description", type: { @@ -6665,78 +6709,87 @@ export const Webhook: coreClient.CompositeMapper = { } }; -export const Module: coreClient.CompositeMapper = { +export const SourceControl: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Module", + className: "SourceControl", modelProperties: { - ...TrackedResource.type.modelProperties, - etag: { - serializedName: "etag", + ...ProxyResource.type.modelProperties, + repoUrl: { + serializedName: "properties.repoUrl", type: { name: "String" } }, - isGlobal: { - serializedName: "properties.isGlobal", + branch: { + serializedName: "properties.branch", type: { - name: "Boolean" + name: "String" } }, - version: { - serializedName: "properties.version", + folderPath: { + serializedName: "properties.folderPath", type: { name: "String" } }, - sizeInBytes: { - serializedName: "properties.sizeInBytes", + autoSync: { + serializedName: "properties.autoSync", type: { - name: "Number" + name: "Boolean" } }, - activityCount: { - serializedName: "properties.activityCount", + publishRunbook: { + serializedName: "properties.publishRunbook", type: { - name: "Number" + name: "Boolean" } }, - provisioningState: { - serializedName: "properties.provisioningState", + sourceType: { + serializedName: "properties.sourceType", type: { - name: "Enum", - allowedValues: [ - "Created", - "Creating", - "StartingImportModuleRunbook", - "RunningImportModuleRunbook", - "ContentRetrieved", - "ContentDownloaded", - "ContentValidated", - "ConnectionTypeImported", - "ContentStored", - "ModuleDataStored", - "ActivitiesStored", - "ModuleImportRunbookComplete", - "Succeeded", - "Failed", - "Cancelled", - "Updating" - ] + name: "String" } }, - contentLink: { - serializedName: "properties.contentLink", + description: { + serializedName: "properties.description", type: { - name: "Composite", - className: "ContentLink" + name: "String" } }, - error: { - serializedName: "properties.error", + creationTime: { + serializedName: "properties.creationTime", type: { - name: "Composite", - className: "ModuleErrorInfo" + name: "DateTime" + } + }, + lastModifiedTime: { + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const Variable: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Variable", + modelProperties: { + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + }, + isEncrypted: { + serializedName: "properties.isEncrypted", + nullable: true, + type: { + name: "Boolean" } }, creationTime: { @@ -6756,12 +6809,6 @@ export const Module: coreClient.CompositeMapper = { type: { name: "String" } - }, - isComposite: { - serializedName: "properties.isComposite", - type: { - name: "Boolean" - } } } } @@ -6956,6 +7003,90 @@ export const DscConfiguration: coreClient.CompositeMapper = { } }; +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" + } + }, + isComposite: { + serializedName: "properties.isComposite", + type: { + name: "Boolean" + } + } + } + } +}; + export const Runbook: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/automation/arm-automation/src/models/parameters.ts b/sdk/automation/arm-automation/src/models/parameters.ts index d301b423cf1d..cb9eb2d18c9c 100644 --- a/sdk/automation/arm-automation/src/models/parameters.ts +++ b/sdk/automation/arm-automation/src/models/parameters.ts @@ -13,15 +13,14 @@ import { } from "@azure/core-client"; import { PrivateEndpointConnection as PrivateEndpointConnectionMapper, - PythonPackageCreateParameters as PythonPackageCreateParametersMapper, - PythonPackageUpdateParameters as PythonPackageUpdateParametersMapper, AgentRegistrationRegenerateKeyParameter as AgentRegistrationRegenerateKeyParameterMapper, DscNodeUpdateParameters as DscNodeUpdateParametersMapper, - DscNodeConfigurationCreateOrUpdateParameters as DscNodeConfigurationCreateOrUpdateParametersMapper, DscCompilationJobCreateParameters as DscCompilationJobCreateParametersMapper, - SourceControlCreateOrUpdateParameters as SourceControlCreateOrUpdateParametersMapper, - SourceControlUpdateParameters as SourceControlUpdateParametersMapper, - SourceControlSyncJobCreateParameters as SourceControlSyncJobCreateParametersMapper, + Watcher as WatcherMapper, + WatcherUpdateParameters as WatcherUpdateParametersMapper, + SoftwareUpdateConfiguration as SoftwareUpdateConfigurationMapper, + WebhookCreateOrUpdateParameters as WebhookCreateOrUpdateParametersMapper, + WebhookUpdateParameters as WebhookUpdateParametersMapper, AutomationAccountUpdateParameters as AutomationAccountUpdateParametersMapper, AutomationAccountCreateOrUpdateParameters as AutomationAccountCreateOrUpdateParametersMapper, CertificateCreateOrUpdateParameters as CertificateCreateOrUpdateParametersMapper, @@ -31,28 +30,29 @@ import { ConnectionTypeCreateOrUpdateParameters as ConnectionTypeCreateOrUpdateParametersMapper, CredentialCreateOrUpdateParameters as CredentialCreateOrUpdateParametersMapper, CredentialUpdateParameters as CredentialUpdateParametersMapper, - JobScheduleCreateParameters as JobScheduleCreateParametersMapper, - ModuleCreateOrUpdateParameters as ModuleCreateOrUpdateParametersMapper, - ModuleUpdateParameters as ModuleUpdateParametersMapper, - ScheduleCreateOrUpdateParameters as ScheduleCreateOrUpdateParametersMapper, - ScheduleUpdateParameters as ScheduleUpdateParametersMapper, - VariableCreateOrUpdateParameters as VariableCreateOrUpdateParametersMapper, - VariableUpdateParameters as VariableUpdateParametersMapper, - Watcher as WatcherMapper, - WatcherUpdateParameters as WatcherUpdateParametersMapper, 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, - SoftwareUpdateConfiguration as SoftwareUpdateConfigurationMapper, + PythonPackageCreateParameters as PythonPackageCreateParametersMapper, + PythonPackageUpdateParameters as PythonPackageUpdateParametersMapper, RunbookCreateOrUpdateParameters as RunbookCreateOrUpdateParametersMapper, RunbookUpdateParameters as RunbookUpdateParametersMapper, TestJobCreateParameters as TestJobCreateParametersMapper, - WebhookCreateOrUpdateParameters as WebhookCreateOrUpdateParametersMapper, - WebhookUpdateParameters as WebhookUpdateParametersMapper, - HybridRunbookWorkerCreateParameters as HybridRunbookWorkerCreateParametersMapper, - HybridRunbookWorkerMoveParameters as HybridRunbookWorkerMoveParametersMapper, - HybridRunbookWorkerGroupCreateOrUpdateParameters as HybridRunbookWorkerGroupCreateOrUpdateParametersMapper + ScheduleCreateOrUpdateParameters as ScheduleCreateOrUpdateParametersMapper, + ScheduleUpdateParameters as ScheduleUpdateParametersMapper, + SourceControlCreateOrUpdateParameters as SourceControlCreateOrUpdateParametersMapper, + SourceControlUpdateParameters as SourceControlUpdateParametersMapper, + SourceControlSyncJobCreateParameters as SourceControlSyncJobCreateParametersMapper, + VariableCreateOrUpdateParameters as VariableCreateOrUpdateParametersMapper, + VariableUpdateParameters as VariableUpdateParametersMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -157,40 +157,7 @@ export const parameters: OperationParameter = { mapper: PrivateEndpointConnectionMapper }; -export const packageName: OperationURLParameter = { - parameterPath: "packageName", - mapper: { - serializedName: "packageName", - required: true, - type: { - name: "String" - } - } -}; - export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: PythonPackageCreateParametersMapper -}; - -export const parameters2: OperationParameter = { - parameterPath: "parameters", - mapper: PythonPackageUpdateParametersMapper -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const parameters3: OperationParameter = { parameterPath: "parameters", mapper: AgentRegistrationRegenerateKeyParameterMapper }; @@ -251,21 +218,22 @@ export const inlinecount: OperationQueryParameter = { } }; -export const reportId: OperationURLParameter = { - parameterPath: "reportId", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - serializedName: "reportId", + serializedName: "nextLink", required: true, type: { name: "String" } - } + }, + skipEncoding: true }; -export const nodeConfigurationName: OperationURLParameter = { - parameterPath: "nodeConfigurationName", +export const reportId: OperationURLParameter = { + parameterPath: "reportId", mapper: { - serializedName: "nodeConfigurationName", + serializedName: "reportId", required: true, type: { name: "String" @@ -273,12 +241,7 @@ export const nodeConfigurationName: OperationURLParameter = { } }; -export const parameters4: OperationParameter = { - parameterPath: "parameters", - mapper: DscNodeConfigurationCreateOrUpdateParametersMapper -}; - -export const parameters5: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", mapper: DscCompilationJobCreateParametersMapper }; @@ -327,15 +290,15 @@ export const countType: OperationURLParameter = { } }; -export const parameters6: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: SourceControlCreateOrUpdateParametersMapper + mapper: WatcherMapper }; -export const sourceControlName: OperationURLParameter = { - parameterPath: "sourceControlName", +export const watcherName: OperationURLParameter = { + parameterPath: "watcherName", mapper: { - serializedName: "sourceControlName", + serializedName: "watcherName", required: true, type: { name: "String" @@ -343,31 +306,65 @@ export const sourceControlName: OperationURLParameter = { } }; -export const parameters7: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: SourceControlUpdateParametersMapper + mapper: WatcherUpdateParametersMapper }; -export const parameters8: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: SourceControlSyncJobCreateParametersMapper + mapper: SoftwareUpdateConfigurationMapper }; -export const sourceControlSyncJobId: OperationURLParameter = { - parameterPath: "sourceControlSyncJobId", +export const softwareUpdateConfigurationName: OperationURLParameter = { + parameterPath: "softwareUpdateConfigurationName", mapper: { - serializedName: "sourceControlSyncJobId", + serializedName: "softwareUpdateConfigurationName", required: true, type: { - name: "Uuid" + name: "String" } } }; -export const streamId: OperationURLParameter = { - parameterPath: "streamId", +export const apiVersion1: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "streamId", + defaultValue: "2019-06-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const clientRequestId: OperationParameter = { + parameterPath: ["options", "clientRequestId"], + mapper: { + serializedName: "clientRequestId", + type: { + name: "String" + } + } +}; + +export const apiVersion2: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2015-10-31", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const webhookName: OperationURLParameter = { + parameterPath: "webhookName", + mapper: { + serializedName: "webhookName", required: true, type: { name: "String" @@ -375,15 +372,37 @@ export const streamId: OperationURLParameter = { } }; -export const parameters9: OperationParameter = { +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: WebhookCreateOrUpdateParametersMapper +}; + +export const parameters7: OperationParameter = { + parameterPath: "parameters", + mapper: WebhookUpdateParametersMapper +}; + +export const apiVersion3: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2022-01-31", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: AutomationAccountUpdateParametersMapper }; -export const apiVersion1: OperationQueryParameter = { +export const apiVersion4: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-06-22", + defaultValue: "2022-08-08", isConstant: true, serializedName: "api-version", type: { @@ -392,7 +411,7 @@ export const apiVersion1: OperationQueryParameter = { } }; -export const parameters10: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: AutomationAccountCreateOrUpdateParametersMapper }; @@ -408,12 +427,12 @@ export const certificateName: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: CertificateCreateOrUpdateParametersMapper }; -export const parameters12: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: CertificateUpdateParametersMapper }; @@ -429,12 +448,12 @@ export const connectionName: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: ConnectionCreateOrUpdateParametersMapper }; -export const parameters14: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: ConnectionUpdateParametersMapper }; @@ -450,7 +469,7 @@ export const connectionTypeName: OperationURLParameter = { } }; -export const parameters15: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: ConnectionTypeCreateOrUpdateParametersMapper }; @@ -466,47 +485,43 @@ export const credentialName: OperationURLParameter = { } }; -export const parameters16: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: CredentialCreateOrUpdateParametersMapper }; -export const parameters17: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", 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 moduleName: OperationURLParameter = { - parameterPath: "moduleName", +export const contentType1: OperationParameter = { + parameterPath: "contentType", mapper: { - serializedName: "moduleName", - required: true, + defaultValue: "text/plain; charset=utf-8", + isConstant: true, + serializedName: "Content-Type", type: { name: "String" } } }; -export const activityName: OperationURLParameter = { - parameterPath: "activityName", +export const parameters17: OperationParameter = { + parameterPath: "parameters", mapper: { - serializedName: "activityName", + serializedName: "parameters", required: true, type: { name: "String" @@ -514,78 +529,66 @@ export const activityName: OperationURLParameter = { } }; -export const parameters19: OperationParameter = { - parameterPath: "parameters", - mapper: ModuleCreateOrUpdateParametersMapper -}; - -export const parameters20: OperationParameter = { - parameterPath: "parameters", - mapper: ModuleUpdateParametersMapper +export const accept1: OperationParameter = { + parameterPath: "accept", + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", + type: { + name: "String" + } + } }; -export const typeName: OperationURLParameter = { - parameterPath: "typeName", +export const contentType2: OperationParameter = { + parameterPath: "contentType", mapper: { - serializedName: "typeName", - required: true, + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", type: { name: "String" } } }; -export const parameters21: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: ScheduleCreateOrUpdateParametersMapper + mapper: DscConfigurationCreateOrUpdateParametersMapper }; -export const scheduleName: OperationURLParameter = { - parameterPath: "scheduleName", +export const parameters19: OperationParameter = { + parameterPath: ["options", "parameters"], mapper: { - serializedName: "scheduleName", - required: true, + serializedName: "parameters", type: { name: "String" } } }; -export const parameters22: OperationParameter = { - parameterPath: "parameters", - mapper: ScheduleUpdateParametersMapper -}; - -export const parameters23: OperationParameter = { - parameterPath: "parameters", - mapper: VariableCreateOrUpdateParametersMapper +export const parameters20: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: DscConfigurationUpdateParametersMapper }; -export const variableName: OperationURLParameter = { - parameterPath: "variableName", +export const accept2: OperationParameter = { + parameterPath: "accept", mapper: { - serializedName: "variableName", - required: true, + defaultValue: "text/powershell", + isConstant: true, + serializedName: "Accept", type: { name: "String" } } }; -export const parameters24: OperationParameter = { - parameterPath: "parameters", - mapper: VariableUpdateParametersMapper -}; - -export const parameters25: OperationParameter = { - parameterPath: "parameters", - mapper: WatcherMapper -}; - -export const watcherName: OperationURLParameter = { - parameterPath: "watcherName", +export const nodeConfigurationName: OperationURLParameter = { + parameterPath: "nodeConfigurationName", mapper: { - serializedName: "watcherName", + serializedName: "nodeConfigurationName", required: true, type: { name: "String" @@ -593,15 +596,15 @@ export const watcherName: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", - mapper: WatcherUpdateParametersMapper + mapper: DscNodeConfigurationCreateOrUpdateParametersMapper }; -export const configurationName: OperationURLParameter = { - parameterPath: "configurationName", +export const hybridRunbookWorkerGroupName: OperationURLParameter = { + parameterPath: "hybridRunbookWorkerGroupName", mapper: { - serializedName: "configurationName", + serializedName: "hybridRunbookWorkerGroupName", required: true, type: { name: "String" @@ -609,45 +612,41 @@ export const configurationName: OperationURLParameter = { } }; -export const apiVersion2: OperationQueryParameter = { - parameterPath: "apiVersion", +export const hybridRunbookWorkerId: OperationURLParameter = { + parameterPath: "hybridRunbookWorkerId", mapper: { - defaultValue: "2019-06-01", - isConstant: true, - serializedName: "api-version", + serializedName: "hybridRunbookWorkerId", + required: true, type: { name: "String" } } }; -export const contentType1: OperationParameter = { - parameterPath: "contentType", - mapper: { - defaultValue: "text/plain; charset=utf-8", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } +export const hybridRunbookWorkerCreationParameters: OperationParameter = { + parameterPath: "hybridRunbookWorkerCreationParameters", + mapper: HybridRunbookWorkerCreateParametersMapper }; -export const parameters27: OperationParameter = { - parameterPath: "parameters", - mapper: { - serializedName: "parameters", - required: true, - type: { - name: "String" - } - } +export const hybridRunbookWorkerMoveParameters: OperationParameter = { + parameterPath: "hybridRunbookWorkerMoveParameters", + mapper: HybridRunbookWorkerMoveParametersMapper }; -export const accept1: OperationParameter = { +export const hybridRunbookWorkerGroupCreationParameters: OperationParameter = { + parameterPath: "hybridRunbookWorkerGroupCreationParameters", + mapper: HybridRunbookWorkerGroupCreateOrUpdateParametersMapper +}; + +export const hybridRunbookWorkerGroupUpdationParameters: OperationParameter = { + parameterPath: "hybridRunbookWorkerGroupUpdationParameters", + mapper: HybridRunbookWorkerGroupCreateOrUpdateParametersMapper +}; + +export const accept3: OperationParameter = { parameterPath: "accept", mapper: { - defaultValue: "application/json", + defaultValue: "text/plain", isConstant: true, serializedName: "Accept", type: { @@ -656,66 +655,42 @@ export const accept1: OperationParameter = { } }; -export const contentType2: OperationParameter = { - parameterPath: "contentType", +export const jobName: OperationURLParameter = { + parameterPath: "jobName", mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", + serializedName: "jobName", + required: true, type: { name: "String" } } }; -export const parameters28: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", - mapper: DscConfigurationCreateOrUpdateParametersMapper -}; - -export const parameters29: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: { - serializedName: "parameters", - type: { - name: "String" - } - } -}; - -export const parameters30: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: DscConfigurationUpdateParametersMapper + mapper: JobCreateParametersMapper }; -export const accept2: OperationParameter = { - parameterPath: "accept", +export const jobScheduleId: OperationURLParameter = { + parameterPath: "jobScheduleId", mapper: { - defaultValue: "text/powershell", - isConstant: true, - serializedName: "Accept", + serializedName: "jobScheduleId", + required: true, type: { - name: "String" + name: "Uuid" } } }; -export const accept3: OperationParameter = { - parameterPath: "accept", - mapper: { - defaultValue: "text/plain", - isConstant: true, - serializedName: "Accept", - type: { - name: "String" - } - } +export const parameters23: OperationParameter = { + parameterPath: "parameters", + mapper: JobScheduleCreateParametersMapper }; -export const jobName: OperationURLParameter = { - parameterPath: "jobName", +export const moduleName: OperationURLParameter = { + parameterPath: "moduleName", mapper: { - serializedName: "jobName", + serializedName: "moduleName", required: true, type: { name: "String" @@ -723,35 +698,31 @@ export const jobName: OperationURLParameter = { } }; -export const clientRequestId: OperationParameter = { - parameterPath: ["options", "clientRequestId"], +export const activityName: OperationURLParameter = { + parameterPath: "activityName", mapper: { - serializedName: "clientRequestId", + serializedName: "activityName", + required: true, type: { name: "String" } } }; -export const parameters31: OperationParameter = { - parameterPath: "parameters", - mapper: JobCreateParametersMapper -}; - -export const parameters32: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", - mapper: GraphicalRunbookContentMapper + mapper: ModuleCreateOrUpdateParametersMapper }; -export const parameters33: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", - mapper: SoftwareUpdateConfigurationMapper + mapper: ModuleUpdateParametersMapper }; -export const softwareUpdateConfigurationName: OperationURLParameter = { - parameterPath: "softwareUpdateConfigurationName", +export const typeName: OperationURLParameter = { + parameterPath: "typeName", mapper: { - serializedName: "softwareUpdateConfigurationName", + serializedName: "typeName", required: true, type: { name: "String" @@ -759,51 +730,38 @@ export const softwareUpdateConfigurationName: OperationURLParameter = { } }; -export const softwareUpdateConfigurationRunId: OperationURLParameter = { - parameterPath: "softwareUpdateConfigurationRunId", - mapper: { - serializedName: "softwareUpdateConfigurationRunId", - required: true, - type: { - name: "Uuid" - } - } +export const parameters26: OperationParameter = { + parameterPath: "parameters", + mapper: GraphicalRunbookContentMapper }; -export const skip1: OperationQueryParameter = { - parameterPath: ["options", "skip"], +export const packageName: OperationURLParameter = { + parameterPath: "packageName", mapper: { - serializedName: "$skip", + serializedName: "packageName", + required: true, type: { name: "String" } } }; -export const top1: OperationQueryParameter = { - parameterPath: ["options", "top"], - mapper: { - serializedName: "$top", - type: { - name: "String" - } - } +export const parameters27: OperationParameter = { + parameterPath: "parameters", + mapper: PythonPackageCreateParametersMapper }; -export const softwareUpdateConfigurationMachineRunId: OperationURLParameter = { - parameterPath: "softwareUpdateConfigurationMachineRunId", - mapper: { - serializedName: "softwareUpdateConfigurationMachineRunId", - required: true, - type: { - name: "Uuid" - } - } +export const parameters28: OperationParameter = { + parameterPath: "parameters", + mapper: PythonPackageUpdateParametersMapper }; export const runbookName: OperationURLParameter = { parameterPath: "runbookName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z][a-zA-Z-_0-9]*$") + }, serializedName: "runbookName", required: true, type: { @@ -812,18 +770,6 @@ export const runbookName: OperationURLParameter = { } }; -export const apiVersion3: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2018-06-30", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - export const contentType3: OperationParameter = { parameterPath: ["options", "contentType"], mapper: { @@ -847,69 +793,93 @@ export const runbookContent: OperationParameter = { } }; -export const parameters34: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: RunbookCreateOrUpdateParametersMapper }; -export const parameters35: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: RunbookUpdateParametersMapper }; -export const parameters36: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: TestJobCreateParametersMapper }; -export const apiVersion4: OperationQueryParameter = { - parameterPath: "apiVersion", +export const parameters32: OperationParameter = { + parameterPath: "parameters", + mapper: ScheduleCreateOrUpdateParametersMapper +}; + +export const scheduleName: OperationURLParameter = { + parameterPath: "scheduleName", mapper: { - defaultValue: "2015-10-31", - isConstant: true, - serializedName: "api-version", + serializedName: "scheduleName", + required: true, type: { name: "String" } } }; -export const webhookName: OperationURLParameter = { - parameterPath: "webhookName", +export const parameters33: OperationParameter = { + parameterPath: "parameters", + mapper: ScheduleUpdateParametersMapper +}; + +export const softwareUpdateConfigurationMachineRunId: OperationURLParameter = { + parameterPath: "softwareUpdateConfigurationMachineRunId", mapper: { - serializedName: "webhookName", + serializedName: "softwareUpdateConfigurationMachineRunId", required: true, type: { - name: "String" + name: "Uuid" } } }; -export const parameters37: OperationParameter = { - parameterPath: "parameters", - mapper: WebhookCreateOrUpdateParametersMapper +export const skip1: OperationQueryParameter = { + parameterPath: ["options", "skip"], + mapper: { + serializedName: "$skip", + type: { + name: "String" + } + } }; -export const parameters38: OperationParameter = { - parameterPath: "parameters", - mapper: WebhookUpdateParametersMapper +export const top1: OperationQueryParameter = { + parameterPath: ["options", "top"], + mapper: { + serializedName: "$top", + type: { + name: "String" + } + } }; -export const hybridRunbookWorkerGroupName: OperationURLParameter = { - parameterPath: "hybridRunbookWorkerGroupName", +export const softwareUpdateConfigurationRunId: OperationURLParameter = { + parameterPath: "softwareUpdateConfigurationRunId", mapper: { - serializedName: "hybridRunbookWorkerGroupName", + serializedName: "softwareUpdateConfigurationRunId", required: true, type: { - name: "String" + name: "Uuid" } } }; -export const hybridRunbookWorkerId: OperationURLParameter = { - parameterPath: "hybridRunbookWorkerId", +export const parameters34: OperationParameter = { + parameterPath: "parameters", + mapper: SourceControlCreateOrUpdateParametersMapper +}; + +export const sourceControlName: OperationURLParameter = { + parameterPath: "sourceControlName", mapper: { - serializedName: "hybridRunbookWorkerId", + serializedName: "sourceControlName", required: true, type: { name: "String" @@ -917,46 +887,55 @@ export const hybridRunbookWorkerId: OperationURLParameter = { } }; -export const hybridRunbookWorkerCreationParameters: OperationParameter = { - parameterPath: "hybridRunbookWorkerCreationParameters", - mapper: HybridRunbookWorkerCreateParametersMapper +export const parameters35: OperationParameter = { + parameterPath: "parameters", + mapper: SourceControlUpdateParametersMapper }; -export const hybridRunbookWorkerMoveParameters: OperationParameter = { - parameterPath: "hybridRunbookWorkerMoveParameters", - mapper: HybridRunbookWorkerMoveParametersMapper +export const parameters36: OperationParameter = { + parameterPath: "parameters", + mapper: SourceControlSyncJobCreateParametersMapper }; -export const apiVersion5: OperationQueryParameter = { - parameterPath: "apiVersion", +export const sourceControlSyncJobId: OperationURLParameter = { + parameterPath: "sourceControlSyncJobId", mapper: { - defaultValue: "2022-01-31", - isConstant: true, - serializedName: "api-version", + serializedName: "sourceControlSyncJobId", + required: true, type: { - name: "String" + name: "Uuid" } } }; -export const apiVersion6: OperationQueryParameter = { - parameterPath: "apiVersion", +export const streamId: OperationURLParameter = { + parameterPath: "streamId", mapper: { - defaultValue: "2022-02-22", - isConstant: true, - serializedName: "api-version", + serializedName: "streamId", + required: true, type: { name: "String" } } }; -export const hybridRunbookWorkerGroupCreationParameters: OperationParameter = { - parameterPath: "hybridRunbookWorkerGroupCreationParameters", - mapper: HybridRunbookWorkerGroupCreateOrUpdateParametersMapper +export const parameters37: OperationParameter = { + parameterPath: "parameters", + mapper: VariableCreateOrUpdateParametersMapper }; -export const hybridRunbookWorkerGroupUpdationParameters: OperationParameter = { - parameterPath: "hybridRunbookWorkerGroupUpdationParameters", - mapper: HybridRunbookWorkerGroupCreateOrUpdateParametersMapper +export const variableName: OperationURLParameter = { + parameterPath: "variableName", + mapper: { + serializedName: "variableName", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters38: OperationParameter = { + parameterPath: "parameters", + mapper: VariableUpdateParametersMapper }; diff --git a/sdk/automation/arm-automation/src/operations/activityOperations.ts b/sdk/automation/arm-automation/src/operations/activityOperations.ts index b5463718b333..3e37455e975f 100644 --- a/sdk/automation/arm-automation/src/operations/activityOperations.ts +++ b/sdk/automation/arm-automation/src/operations/activityOperations.ts @@ -217,7 +217,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -241,7 +241,7 @@ const listByModuleOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/agentRegistrationInformation.ts b/sdk/automation/arm-automation/src/operations/agentRegistrationInformation.ts index 5d14ebac1a5a..be3b2507e8ad 100644 --- a/sdk/automation/arm-automation/src/operations/agentRegistrationInformation.ts +++ b/sdk/automation/arm-automation/src/operations/agentRegistrationInformation.ts @@ -105,7 +105,7 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/automation/arm-automation/src/operations/automationAccountOperations.ts b/sdk/automation/arm-automation/src/operations/automationAccountOperations.ts index 94af04491465..3dec9a35985a 100644 --- a/sdk/automation/arm-automation/src/operations/automationAccountOperations.ts +++ b/sdk/automation/arm-automation/src/operations/automationAccountOperations.ts @@ -315,8 +315,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters9, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -342,8 +342,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters10, - queryParameters: [Parameters.apiVersion1], + requestBody: Parameters.parameters9, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -365,7 +365,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -387,7 +387,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -409,7 +409,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -430,7 +430,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer diff --git a/sdk/automation/arm-automation/src/operations/certificateOperations.ts b/sdk/automation/arm-automation/src/operations/certificateOperations.ts index 9b29deb63b1e..2d893708777b 100644 --- a/sdk/automation/arm-automation/src/operations/certificateOperations.ts +++ b/sdk/automation/arm-automation/src/operations/certificateOperations.ts @@ -269,7 +269,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -292,7 +292,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -318,8 +318,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters11, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters10, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -343,8 +343,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters12, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -368,7 +368,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/connectionOperations.ts b/sdk/automation/arm-automation/src/operations/connectionOperations.ts index f6ef180cab1d..5169ea45155e 100644 --- a/sdk/automation/arm-automation/src/operations/connectionOperations.ts +++ b/sdk/automation/arm-automation/src/operations/connectionOperations.ts @@ -270,7 +270,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -293,7 +293,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -319,8 +319,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters13, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -344,8 +344,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters14, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -369,7 +369,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/connectionTypeOperations.ts b/sdk/automation/arm-automation/src/operations/connectionTypeOperations.ts index 268684b10ca1..d90e41a51e5c 100644 --- a/sdk/automation/arm-automation/src/operations/connectionTypeOperations.ts +++ b/sdk/automation/arm-automation/src/operations/connectionTypeOperations.ts @@ -240,7 +240,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -263,7 +263,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -286,8 +286,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters15, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -311,7 +311,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/credentialOperations.ts b/sdk/automation/arm-automation/src/operations/credentialOperations.ts index 7cc2fce5de09..1578f16b798c 100644 --- a/sdk/automation/arm-automation/src/operations/credentialOperations.ts +++ b/sdk/automation/arm-automation/src/operations/credentialOperations.ts @@ -269,7 +269,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -292,7 +292,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -318,8 +318,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters16, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters15, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -343,8 +343,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters17, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -365,7 +365,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CredentialListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/deletedAutomationAccounts.ts b/sdk/automation/arm-automation/src/operations/deletedAutomationAccounts.ts index 4da9a8dfbcd6..ad22e5d3a296 100644 --- a/sdk/automation/arm-automation/src/operations/deletedAutomationAccounts.ts +++ b/sdk/automation/arm-automation/src/operations/deletedAutomationAccounts.ts @@ -57,7 +57,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer diff --git a/sdk/automation/arm-automation/src/operations/dscCompilationJobOperations.ts b/sdk/automation/arm-automation/src/operations/dscCompilationJobOperations.ts index ed2a9d1da488..b52b7d095a63 100644 --- a/sdk/automation/arm-automation/src/operations/dscCompilationJobOperations.ts +++ b/sdk/automation/arm-automation/src/operations/dscCompilationJobOperations.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 { DscCompilationJob, DscCompilationJobListByAutomationAccountNextOptionalParams, @@ -143,8 +147,8 @@ export class DscCompilationJobOperationsImpl parameters: DscCompilationJobCreateParameters, options?: DscCompilationJobCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DscCompilationJobCreateResponse > > { @@ -154,7 +158,7 @@ export class DscCompilationJobOperationsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -187,19 +191,22 @@ export class DscCompilationJobOperationsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, automationAccountName, compilationJobName, parameters, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + DscCompilationJobCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -332,7 +339,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/automation/arm-automation/src/operations/dscConfigurationOperations.ts b/sdk/automation/arm-automation/src/operations/dscConfigurationOperations.ts index 2b7147a69094..7c9911c4c9b5 100644 --- a/sdk/automation/arm-automation/src/operations/dscConfigurationOperations.ts +++ b/sdk/automation/arm-automation/src/operations/dscConfigurationOperations.ts @@ -413,7 +413,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -436,7 +436,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -462,8 +462,8 @@ const createOrUpdate$textOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters27, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -494,8 +494,8 @@ const createOrUpdate$jsonOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters28, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters18, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -519,8 +519,8 @@ const update$textOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters29, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters19, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -548,8 +548,8 @@ const update$jsonOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters30, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -567,11 +567,11 @@ const getContentOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "String" } } + bodyMapper: { type: { name: "Stream" } } }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -599,7 +599,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.top, Parameters.inlinecount, - Parameters.apiVersion2 + Parameters.apiVersion4 ], urlParameters: [ Parameters.$host, diff --git a/sdk/automation/arm-automation/src/operations/dscNodeConfigurationOperations.ts b/sdk/automation/arm-automation/src/operations/dscNodeConfigurationOperations.ts index 7f9165ddc4a8..122968766e10 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, @@ -188,14 +192,14 @@ export class DscNodeConfigurationOperationsImpl nodeConfigurationName: string, parameters: DscNodeConfigurationCreateOrUpdateParameters, options?: DscNodeConfigurationCreateOrUpdateOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -228,19 +232,19 @@ export class DscNodeConfigurationOperationsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, automationAccountName, nodeConfigurationName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -322,7 +326,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -345,7 +349,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -369,8 +373,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters4, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -395,11 +399,11 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { } }, queryParameters: [ - Parameters.apiVersion, Parameters.filter, Parameters.skip, Parameters.top, - Parameters.inlinecount + Parameters.inlinecount, + Parameters.apiVersion4 ], urlParameters: [ Parameters.$host, diff --git a/sdk/automation/arm-automation/src/operations/fields.ts b/sdk/automation/arm-automation/src/operations/fields.ts index 0cdb65497d0a..21689e4cc250 100644 --- a/sdk/automation/arm-automation/src/operations/fields.ts +++ b/sdk/automation/arm-automation/src/operations/fields.ts @@ -155,7 +155,7 @@ const listByTypeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/hybridRunbookWorkerGroupOperations.ts b/sdk/automation/arm-automation/src/operations/hybridRunbookWorkerGroupOperations.ts index a6056ee48e92..c425b807bf09 100644 --- a/sdk/automation/arm-automation/src/operations/hybridRunbookWorkerGroupOperations.ts +++ b/sdk/automation/arm-automation/src/operations/hybridRunbookWorkerGroupOperations.ts @@ -280,7 +280,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -303,7 +303,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -322,12 +322,15 @@ const createOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.HybridRunbookWorkerGroup }, + 201: { + bodyMapper: Mappers.HybridRunbookWorkerGroup + }, default: { bodyMapper: Mappers.ErrorResponse } }, requestBody: Parameters.hybridRunbookWorkerGroupCreationParameters, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -352,7 +355,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.hybridRunbookWorkerGroupUpdationParameters, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -376,7 +379,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion6], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/hybridRunbookWorkers.ts b/sdk/automation/arm-automation/src/operations/hybridRunbookWorkers.ts index 194528afe681..70dee56b8d8a 100644 --- a/sdk/automation/arm-automation/src/operations/hybridRunbookWorkers.ts +++ b/sdk/automation/arm-automation/src/operations/hybridRunbookWorkers.ts @@ -316,7 +316,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -340,7 +340,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -360,12 +360,15 @@ const createOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.HybridRunbookWorker }, + 201: { + bodyMapper: Mappers.HybridRunbookWorker + }, default: { bodyMapper: Mappers.ErrorResponse } }, requestBody: Parameters.hybridRunbookWorkerCreationParameters, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -389,7 +392,7 @@ const moveOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.hybridRunbookWorkerMoveParameters, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -414,7 +417,7 @@ const listByHybridRunbookWorkerGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion1], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/index.ts b/sdk/automation/arm-automation/src/operations/index.ts index e21e65d7c700..5f0858339baa 100644 --- a/sdk/automation/arm-automation/src/operations/index.ts +++ b/sdk/automation/arm-automation/src/operations/index.ts @@ -8,17 +8,16 @@ export * from "./privateEndpointConnections"; 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 "./watcherOperations"; +export * from "./softwareUpdateConfigurations"; +export * from "./webhookOperations"; +export * from "./deletedAutomationAccounts"; export * from "./automationAccountOperations"; export * from "./statisticsOperations"; export * from "./usages"; @@ -27,27 +26,29 @@ 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 "./python2Package"; +export * from "./python3Package"; export * from "./runbookDraftOperations"; export * from "./runbookOperations"; export * from "./testJobStreams"; export * from "./testJobOperations"; -export * from "./webhookOperations"; -export * from "./hybridRunbookWorkers"; -export * from "./deletedAutomationAccounts"; -export * from "./hybridRunbookWorkerGroupOperations"; +export * from "./scheduleOperations"; +export * from "./softwareUpdateConfigurationMachineRuns"; +export * from "./softwareUpdateConfigurationRuns"; +export * from "./sourceControlOperations"; +export * from "./sourceControlSyncJobOperations"; +export * from "./sourceControlSyncJobStreams"; +export * from "./variableOperations"; diff --git a/sdk/automation/arm-automation/src/operations/jobOperations.ts b/sdk/automation/arm-automation/src/operations/jobOperations.ts index 0ba95fd40634..f86cfa2dbccf 100644 --- a/sdk/automation/arm-automation/src/operations/jobOperations.ts +++ b/sdk/automation/arm-automation/src/operations/jobOperations.ts @@ -321,7 +321,7 @@ const getOutputOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -329,7 +329,7 @@ const getOutputOperationSpec: coreClient.OperationSpec = { Parameters.automationAccountName, Parameters.jobName ], - headerParameters: [Parameters.accept3, Parameters.clientRequestId], + headerParameters: [Parameters.clientRequestId, Parameters.accept3], serializer }; const getRunbookContentOperationSpec: coreClient.OperationSpec = { @@ -342,7 +342,7 @@ const getRunbookContentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -350,7 +350,7 @@ const getRunbookContentOperationSpec: coreClient.OperationSpec = { Parameters.automationAccountName, Parameters.jobName ], - headerParameters: [Parameters.accept2, Parameters.clientRequestId], + headerParameters: [Parameters.clientRequestId, Parameters.accept2], serializer }; const suspendOperationSpec: coreClient.OperationSpec = { @@ -363,7 +363,7 @@ const suspendOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -384,7 +384,7 @@ const stopOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -407,7 +407,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -430,8 +430,8 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters31, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -459,7 +459,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion2], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -479,7 +479,7 @@ const resumeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/jobScheduleOperations.ts b/sdk/automation/arm-automation/src/operations/jobScheduleOperations.ts index 3d6e54affa52..b5f155b0e959 100644 --- a/sdk/automation/arm-automation/src/operations/jobScheduleOperations.ts +++ b/sdk/automation/arm-automation/src/operations/jobScheduleOperations.ts @@ -239,7 +239,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -262,7 +262,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -285,8 +285,8 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters18, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -310,7 +310,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/jobStreamOperations.ts b/sdk/automation/arm-automation/src/operations/jobStreamOperations.ts index a197bac837b8..48760b7d4989 100644 --- a/sdk/automation/arm-automation/src/operations/jobStreamOperations.ts +++ b/sdk/automation/arm-automation/src/operations/jobStreamOperations.ts @@ -211,7 +211,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -235,7 +235,7 @@ const listByJobOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion2], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/keys.ts b/sdk/automation/arm-automation/src/operations/keys.ts index 5accae27f965..a69e6bdad567 100644 --- a/sdk/automation/arm-automation/src/operations/keys.ts +++ b/sdk/automation/arm-automation/src/operations/keys.ts @@ -60,7 +60,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/linkedWorkspaceOperations.ts b/sdk/automation/arm-automation/src/operations/linkedWorkspaceOperations.ts index 7c2ac66f4779..6b12697796b5 100644 --- a/sdk/automation/arm-automation/src/operations/linkedWorkspaceOperations.ts +++ b/sdk/automation/arm-automation/src/operations/linkedWorkspaceOperations.ts @@ -61,7 +61,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/moduleOperations.ts b/sdk/automation/arm-automation/src/operations/moduleOperations.ts index 498b9fc66618..57115a134b6b 100644 --- a/sdk/automation/arm-automation/src/operations/moduleOperations.ts +++ b/sdk/automation/arm-automation/src/operations/moduleOperations.ts @@ -269,7 +269,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -292,7 +292,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -318,8 +318,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters19, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -343,8 +343,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters20, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -368,7 +368,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/nodeReports.ts b/sdk/automation/arm-automation/src/operations/nodeReports.ts index a3df38b60d77..c3b49ce8ce02 100644 --- a/sdk/automation/arm-automation/src/operations/nodeReports.ts +++ b/sdk/automation/arm-automation/src/operations/nodeReports.ts @@ -305,8 +305,8 @@ const listByNodeNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.automationAccountName, - Parameters.nextLink, - Parameters.nodeId + Parameters.nodeId, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/automation/arm-automation/src/operations/objectDataTypes.ts b/sdk/automation/arm-automation/src/operations/objectDataTypes.ts index 3589aaa86a67..fac55c1c0298 100644 --- a/sdk/automation/arm-automation/src/operations/objectDataTypes.ts +++ b/sdk/automation/arm-automation/src/operations/objectDataTypes.ts @@ -250,7 +250,7 @@ const listFieldsByModuleAndTypeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -274,7 +274,7 @@ const listFieldsByTypeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/operations.ts b/sdk/automation/arm-automation/src/operations/operations.ts index 8fb1e3195eaa..8a61e9fa21a8 100644 --- a/sdk/automation/arm-automation/src/operations/operations.ts +++ b/sdk/automation/arm-automation/src/operations/operations.ts @@ -96,7 +96,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host], 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..20dfe1fd4524 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, @@ -161,8 +165,8 @@ export class PrivateEndpointConnectionsImpl parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionsCreateOrUpdateResponse > > { @@ -172,7 +176,7 @@ export class PrivateEndpointConnectionsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -205,19 +209,22 @@ export class PrivateEndpointConnectionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, automationAccountName, privateEndpointConnectionName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -261,14 +268,14 @@ export class PrivateEndpointConnectionsImpl automationAccountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -301,18 +308,18 @@ export class PrivateEndpointConnectionsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, automationAccountName, privateEndpointConnectionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/automation/arm-automation/src/operations/python2Package.ts b/sdk/automation/arm-automation/src/operations/python2Package.ts index 8d94134249c5..1fb93ba0b4f2 100644 --- a/sdk/automation/arm-automation/src/operations/python2Package.ts +++ b/sdk/automation/arm-automation/src/operations/python2Package.ts @@ -269,7 +269,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -292,7 +292,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -318,8 +318,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters27, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -343,8 +343,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters2, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters28, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -368,7 +368,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, 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..bb3448f87f68 --- /dev/null +++ b/sdk/automation/arm-automation/src/operations/python3Package.ts @@ -0,0 +1,402 @@ +/* + * 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.apiVersion4], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + 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.apiVersion4], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + 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.parameters27, + queryParameters: [Parameters.apiVersion4], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + 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.parameters28, + queryParameters: [Parameters.apiVersion4], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + 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.apiVersion4], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName + ], + 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.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + 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..bbeaa933fc34 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, @@ -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( @@ -70,8 +74,8 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { runbookContent: string, options?: RunbookDraftReplaceContentOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, RunbookDraftReplaceContentResponse > > { @@ -81,7 +85,7 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -114,20 +118,24 @@ export class RunbookDraftOperationsImpl implements RunbookDraftOperations { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, automationAccountName, runbookName, runbookContent, 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 +146,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( @@ -209,7 +217,7 @@ const getContentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -242,7 +250,7 @@ const replaceContentOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.runbookContent, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -266,7 +274,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -289,7 +297,7 @@ const undoEditOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/runbookOperations.ts b/sdk/automation/arm-automation/src/operations/runbookOperations.ts index f8581ea627d8..e1fd9d6458ad 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, @@ -146,8 +150,8 @@ export class RunbookOperationsImpl implements RunbookOperations { runbookName: string, options?: RunbookPublishOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, RunbookPublishResponse > > { @@ -157,7 +161,7 @@ export class RunbookOperationsImpl implements RunbookOperations { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -190,13 +194,16 @@ export class RunbookOperationsImpl implements RunbookOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, automationAccountName, runbookName, options }, - publishOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + 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(); @@ -398,7 +405,7 @@ const publishOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -419,7 +426,7 @@ const getContentOperationSpec: coreClient.OperationSpec = { }, default: {} }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -442,7 +449,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -468,8 +475,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters34, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -493,8 +500,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters35, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters30, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -517,7 +524,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -540,7 +547,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/scheduleOperations.ts b/sdk/automation/arm-automation/src/operations/scheduleOperations.ts index 772207aeefb6..710560b19d28 100644 --- a/sdk/automation/arm-automation/src/operations/scheduleOperations.ts +++ b/sdk/automation/arm-automation/src/operations/scheduleOperations.ts @@ -275,8 +275,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters21, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters32, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -300,8 +300,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters22, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters33, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -325,7 +325,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -346,7 +346,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -369,7 +369,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationMachineRuns.ts b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationMachineRuns.ts index 69d1727fef82..d4b72499e3ce 100644 --- a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationMachineRuns.ts +++ b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationMachineRuns.ts @@ -88,7 +88,7 @@ const getByIdOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -113,7 +113,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.filter, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.skip1, Parameters.top1 ], diff --git a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationRuns.ts b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationRuns.ts index 9808f359a031..324ea4e4eb63 100644 --- a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationRuns.ts +++ b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurationRuns.ts @@ -87,7 +87,7 @@ const getByIdOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -112,7 +112,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.filter, - Parameters.apiVersion2, + Parameters.apiVersion4, Parameters.skip1, Parameters.top1 ], diff --git a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurations.ts b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurations.ts index a0c58b6f0b47..d5375c8d51c4 100644 --- a/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurations.ts +++ b/sdk/automation/arm-automation/src/operations/softwareUpdateConfigurations.ts @@ -145,8 +145,8 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters33, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -174,7 +174,7 @@ const getByNameOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -196,7 +196,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -219,7 +219,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion2], + queryParameters: [Parameters.filter, Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/sourceControlOperations.ts b/sdk/automation/arm-automation/src/operations/sourceControlOperations.ts index c8686db1a851..f0e79755eb39 100644 --- a/sdk/automation/arm-automation/src/operations/sourceControlOperations.ts +++ b/sdk/automation/arm-automation/src/operations/sourceControlOperations.ts @@ -274,8 +274,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -299,8 +299,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters35, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -322,7 +322,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -345,7 +345,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -368,7 +368,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/sourceControlSyncJobOperations.ts b/sdk/automation/arm-automation/src/operations/sourceControlSyncJobOperations.ts index 5cf9024d3dfe..6f9626747b2d 100644 --- a/sdk/automation/arm-automation/src/operations/sourceControlSyncJobOperations.ts +++ b/sdk/automation/arm-automation/src/operations/sourceControlSyncJobOperations.ts @@ -252,8 +252,8 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters36, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -278,7 +278,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -302,7 +302,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/sourceControlSyncJobStreams.ts b/sdk/automation/arm-automation/src/operations/sourceControlSyncJobStreams.ts index 1e4c71d7e192..23219db95d5b 100644 --- a/sdk/automation/arm-automation/src/operations/sourceControlSyncJobStreams.ts +++ b/sdk/automation/arm-automation/src/operations/sourceControlSyncJobStreams.ts @@ -241,7 +241,7 @@ const listBySyncJobOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.filter], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -265,7 +265,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/statisticsOperations.ts b/sdk/automation/arm-automation/src/operations/statisticsOperations.ts index 5ae8a49848af..d8136c55932f 100644 --- a/sdk/automation/arm-automation/src/operations/statisticsOperations.ts +++ b/sdk/automation/arm-automation/src/operations/statisticsOperations.ts @@ -129,7 +129,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion1], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/testJobOperations.ts b/sdk/automation/arm-automation/src/operations/testJobOperations.ts index d8eeb5adff61..810a816a9a31 100644 --- a/sdk/automation/arm-automation/src/operations/testJobOperations.ts +++ b/sdk/automation/arm-automation/src/operations/testJobOperations.ts @@ -152,8 +152,8 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters36, - queryParameters: [Parameters.apiVersion3], + requestBody: Parameters.parameters31, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -177,7 +177,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -198,7 +198,7 @@ const resumeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -219,7 +219,7 @@ const stopOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -240,7 +240,7 @@ const suspendOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/testJobStreams.ts b/sdk/automation/arm-automation/src/operations/testJobStreams.ts index b7599b8ce713..42ff3d12d53f 100644 --- a/sdk/automation/arm-automation/src/operations/testJobStreams.ts +++ b/sdk/automation/arm-automation/src/operations/testJobStreams.ts @@ -217,7 +217,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -241,7 +241,7 @@ const listByTestJobOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion3], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/usages.ts b/sdk/automation/arm-automation/src/operations/usages.ts index e72b12d709e6..95ddb81aadaa 100644 --- a/sdk/automation/arm-automation/src/operations/usages.ts +++ b/sdk/automation/arm-automation/src/operations/usages.ts @@ -129,7 +129,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/variableOperations.ts b/sdk/automation/arm-automation/src/operations/variableOperations.ts index 204e0dff0486..595fef258435 100644 --- a/sdk/automation/arm-automation/src/operations/variableOperations.ts +++ b/sdk/automation/arm-automation/src/operations/variableOperations.ts @@ -274,8 +274,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters23, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters37, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -299,8 +299,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters24, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters38, + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -322,7 +322,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -345,7 +345,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -368,7 +368,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operations/watcherOperations.ts b/sdk/automation/arm-automation/src/operations/watcherOperations.ts index e098a9811cb6..42d6ba7ed506 100644 --- a/sdk/automation/arm-automation/src/operations/watcherOperations.ts +++ b/sdk/automation/arm-automation/src/operations/watcherOperations.ts @@ -313,7 +313,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -361,7 +361,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/automation/arm-automation/src/operations/webhookOperations.ts b/sdk/automation/arm-automation/src/operations/webhookOperations.ts index 881c87a0a7e1..900c97539a9e 100644 --- a/sdk/automation/arm-automation/src/operations/webhookOperations.ts +++ b/sdk/automation/arm-automation/src/operations/webhookOperations.ts @@ -290,7 +290,7 @@ const generateUriOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -310,7 +310,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -333,7 +333,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -359,8 +359,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters37, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -384,8 +384,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters38, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -409,7 +409,7 @@ const listByAutomationAccountOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion4], + queryParameters: [Parameters.filter, Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobOperations.ts index 5dcf36e256c1..6a1e1e3a5f5d 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobOperations.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/dscCompilationJobOperations.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 { DscCompilationJob, DscCompilationJobListByAutomationAccountOptionalParams, @@ -49,8 +49,8 @@ export interface DscCompilationJobOperations { parameters: DscCompilationJobCreateParameters, options?: DscCompilationJobCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DscCompilationJobCreateResponse > >; diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/dscNodeConfigurationOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/dscNodeConfigurationOperations.ts index 8443b2bc8df3..460e1f592a8c 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, @@ -72,7 +72,7 @@ export interface DscNodeConfigurationOperations { nodeConfigurationName: string, parameters: DscNodeConfigurationCreateOrUpdateParameters, options?: DscNodeConfigurationCreateOrUpdateOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Create the node configuration identified by node configuration name. * @param resourceGroupName Name of an Azure Resource group. diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/index.ts b/sdk/automation/arm-automation/src/operationsInterfaces/index.ts index e21e65d7c700..5f0858339baa 100644 --- a/sdk/automation/arm-automation/src/operationsInterfaces/index.ts +++ b/sdk/automation/arm-automation/src/operationsInterfaces/index.ts @@ -8,17 +8,16 @@ export * from "./privateEndpointConnections"; 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 "./watcherOperations"; +export * from "./softwareUpdateConfigurations"; +export * from "./webhookOperations"; +export * from "./deletedAutomationAccounts"; export * from "./automationAccountOperations"; export * from "./statisticsOperations"; export * from "./usages"; @@ -27,27 +26,29 @@ 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 "./python2Package"; +export * from "./python3Package"; export * from "./runbookDraftOperations"; export * from "./runbookOperations"; export * from "./testJobStreams"; export * from "./testJobOperations"; -export * from "./webhookOperations"; -export * from "./hybridRunbookWorkers"; -export * from "./deletedAutomationAccounts"; -export * from "./hybridRunbookWorkerGroupOperations"; +export * from "./scheduleOperations"; +export * from "./softwareUpdateConfigurationMachineRuns"; +export * from "./softwareUpdateConfigurationRuns"; +export * from "./sourceControlOperations"; +export * from "./sourceControlSyncJobOperations"; +export * from "./sourceControlSyncJobStreams"; +export * from "./variableOperations"; diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/automation/arm-automation/src/operationsInterfaces/privateEndpointConnections.ts index 18b720c0472d..a55362344e7e 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, @@ -60,8 +60,8 @@ export interface PrivateEndpointConnections { parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionsCreateOrUpdateResponse > >; @@ -92,7 +92,7 @@ export interface PrivateEndpointConnections { automationAccountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a private endpoint connection with a given name. * @param resourceGroupName Name of an Azure Resource group. 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..6d670fdd0a55 --- /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..f92afe572a0b 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, @@ -38,7 +38,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. */ beginReplaceContent( @@ -48,8 +48,8 @@ export interface RunbookDraftOperations { runbookContent: string, 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( diff --git a/sdk/automation/arm-automation/src/operationsInterfaces/runbookOperations.ts b/sdk/automation/arm-automation/src/operationsInterfaces/runbookOperations.ts index 19399f775b4e..10faee118356 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, @@ -53,8 +53,8 @@ export interface RunbookOperations { runbookName: string, options?: RunbookPublishOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, RunbookPublishResponse > >; diff --git a/sdk/automation/arm-automation/test/sampleTest.ts b/sdk/automation/arm-automation/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /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..3e6ae96443f3 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" + "./test/**/*.ts" ], "exclude": [ "node_modules"