diff --git a/sdk/automation/arm-automation/LICENSE.txt b/sdk/automation/arm-automation/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/automation/arm-automation/LICENSE.txt +++ b/sdk/automation/arm-automation/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/automation/arm-automation/README.md b/sdk/automation/arm-automation/README.md index 706f4e2a466d..020c0844b73e 100644 --- a/sdk/automation/arm-automation/README.md +++ b/sdk/automation/arm-automation/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for AutomationClient. ### How to Install -``` +```bash npm install @azure/arm-automation ``` @@ -19,13 +19,13 @@ npm install @azure/arm-automation ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -49,7 +49,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -98,6 +98,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/automation/arm-automation/README.png) diff --git a/sdk/automation/arm-automation/lib/automationClient.ts b/sdk/automation/arm-automation/lib/automationClient.ts new file mode 100644 index 000000000000..4290b4b4a1c7 --- /dev/null +++ b/sdk/automation/arm-automation/lib/automationClient.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "./models"; +import * as Mappers from "./models/mappers"; +import * as operations from "./operations"; +import { AutomationClientContext } from "./automationClientContext"; + + +class AutomationClient extends AutomationClientContext { + // Operation groups + automationAccount: operations.AutomationAccountOperations; + operations: operations.Operations; + statistics: operations.StatisticsOperations; + usages: operations.Usages; + keys: operations.Keys; + certificate: operations.CertificateOperations; + connection: operations.ConnectionOperations; + connectionType: operations.ConnectionTypeOperations; + credential: operations.CredentialOperations; + dscConfiguration: operations.DscConfigurationOperations; + hybridRunbookWorkerGroup: operations.HybridRunbookWorkerGroupOperations; + jobSchedule: operations.JobScheduleOperations; + linkedWorkspace: operations.LinkedWorkspaceOperations; + activity: operations.ActivityOperations; + module: operations.ModuleOperations; + objectDataTypes: operations.ObjectDataTypes; + fields: operations.Fields; + schedule: operations.ScheduleOperations; + variable: operations.VariableOperations; + webhook: operations.WebhookOperations; + watcher: operations.WatcherOperations; + softwareUpdateConfigurations: operations.SoftwareUpdateConfigurations; + softwareUpdateConfigurationRuns: operations.SoftwareUpdateConfigurationRuns; + softwareUpdateConfigurationMachineRuns: operations.SoftwareUpdateConfigurationMachineRuns; + sourceControl: operations.SourceControlOperations; + sourceControlSyncJob: operations.SourceControlSyncJobOperations; + sourceControlSyncJobStreams: operations.SourceControlSyncJobStreams; + job: operations.JobOperations; + jobStream: operations.JobStreamOperations; + agentRegistrationInformation: operations.AgentRegistrationInformation; + dscNode: operations.DscNodeOperations; + nodeReports: operations.NodeReports; + dscCompilationJob: operations.DscCompilationJobOperations; + dscCompilationJobStream: operations.DscCompilationJobStream; + dscNodeConfiguration: operations.DscNodeConfigurationOperations; + nodeCountInformation: operations.NodeCountInformation; + runbookDraft: operations.RunbookDraftOperations; + runbook: operations.RunbookOperations; + testJobStreams: operations.TestJobStreams; + testJob: operations.TestJobOperations; + python2Package: operations.Python2Package; + + /** + * Initializes a new instance of the AutomationClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param countType1 The type of counts to retrieve. Possible values include: 'status', + * 'nodeconfiguration' + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, countType1: Models.CountType, options?: Models.AutomationClientOptions) { + super(credentials, subscriptionId, countType1, options); + this.automationAccount = new operations.AutomationAccountOperations(this); + this.operations = new operations.Operations(this); + this.statistics = new operations.StatisticsOperations(this); + this.usages = new operations.Usages(this); + this.keys = new operations.Keys(this); + this.certificate = new operations.CertificateOperations(this); + this.connection = new operations.ConnectionOperations(this); + this.connectionType = new operations.ConnectionTypeOperations(this); + this.credential = new operations.CredentialOperations(this); + this.dscConfiguration = new operations.DscConfigurationOperations(this); + this.hybridRunbookWorkerGroup = new operations.HybridRunbookWorkerGroupOperations(this); + this.jobSchedule = new operations.JobScheduleOperations(this); + this.linkedWorkspace = new operations.LinkedWorkspaceOperations(this); + this.activity = new operations.ActivityOperations(this); + this.module = new operations.ModuleOperations(this); + this.objectDataTypes = new operations.ObjectDataTypes(this); + this.fields = new operations.Fields(this); + this.schedule = new operations.ScheduleOperations(this); + this.variable = new operations.VariableOperations(this); + this.webhook = new operations.WebhookOperations(this); + this.watcher = new operations.WatcherOperations(this); + this.softwareUpdateConfigurations = new operations.SoftwareUpdateConfigurations(this); + this.softwareUpdateConfigurationRuns = new operations.SoftwareUpdateConfigurationRuns(this); + this.softwareUpdateConfigurationMachineRuns = new operations.SoftwareUpdateConfigurationMachineRuns(this); + this.sourceControl = new operations.SourceControlOperations(this); + this.sourceControlSyncJob = new operations.SourceControlSyncJobOperations(this); + this.sourceControlSyncJobStreams = new operations.SourceControlSyncJobStreams(this); + this.job = new operations.JobOperations(this); + this.jobStream = new operations.JobStreamOperations(this); + this.agentRegistrationInformation = new operations.AgentRegistrationInformation(this); + this.dscNode = new operations.DscNodeOperations(this); + this.nodeReports = new operations.NodeReports(this); + this.dscCompilationJob = new operations.DscCompilationJobOperations(this); + this.dscCompilationJobStream = new operations.DscCompilationJobStream(this); + this.dscNodeConfiguration = new operations.DscNodeConfigurationOperations(this); + this.nodeCountInformation = new operations.NodeCountInformation(this); + this.runbookDraft = new operations.RunbookDraftOperations(this); + this.runbook = new operations.RunbookOperations(this); + this.testJobStreams = new operations.TestJobStreams(this); + this.testJob = new operations.TestJobOperations(this); + this.python2Package = new operations.Python2Package(this); + } +} + +// Operation Specifications + +export { + AutomationClient, + AutomationClientContext, + Models as AutomationModels, + Mappers as AutomationMappers +}; +export * from "./operations"; diff --git a/sdk/automation/arm-automation/lib/automationClientContext.ts b/sdk/automation/arm-automation/lib/automationClientContext.ts new file mode 100644 index 000000000000..2d3e198aad5d --- /dev/null +++ b/sdk/automation/arm-automation/lib/automationClientContext.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as Models from "./models"; +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; + +const packageName = "@azure/arm-automation"; +const packageVersion = "9.1.0"; + +export class AutomationClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + countType1: Models.CountType; + + /** + * Initializes a new instance of the AutomationClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param countType1 The type of counts to retrieve. Possible values include: 'status', + * 'nodeconfiguration' + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, countType1: Models.CountType, options?: Models.AutomationClientOptions) { + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + if (countType1 == undefined) { + throw new Error('\'countType1\' cannot be null.'); + } + + if (!options) { + options = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + super(credentials, options); + + this.acceptLanguage = 'en-US'; + this.longRunningOperationRetryTimeout = 30; + this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; + this.requestContentType = "application/json; charset=utf-8"; + this.credentials = credentials; + this.subscriptionId = subscriptionId; + this.countType1 = countType1; + + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + this.acceptLanguage = options.acceptLanguage; + } + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + } +} diff --git a/sdk/automation/arm-automation/lib/models/activityOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/activityOperationsMappers.ts new file mode 100644 index 000000000000..489c95c2ecad --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/activityOperationsMappers.ts @@ -0,0 +1,20 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + Activity, + ActivityParameterSet, + ActivityParameter, + ActivityParameterValidationSet, + ActivityOutputType, + ErrorResponse, + ActivityListResult +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/agentRegistrationInformationMappers.ts b/sdk/automation/arm-automation/lib/models/agentRegistrationInformationMappers.ts new file mode 100644 index 000000000000..2f9ccd4247ac --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/agentRegistrationInformationMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + AgentRegistration, + AgentRegistrationKeys, + ErrorResponse, + AgentRegistrationRegenerateKeyParameter +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/automationAccountOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/automationAccountOperationsMappers.ts new file mode 100644 index 000000000000..8b631fb1cc8a --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/automationAccountOperationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + AutomationAccountUpdateParameters, + Sku, + AutomationAccount, + TrackedResource, + Resource, + BaseResource, + ErrorResponse, + AutomationAccountCreateOrUpdateParameters, + AutomationAccountListResult, + ProxyResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/certificateOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/certificateOperationsMappers.ts new file mode 100644 index 000000000000..5249e01c23c8 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/certificateOperationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ErrorResponse, + Certificate, + ProxyResource, + Resource, + BaseResource, + CertificateCreateOrUpdateParameters, + CertificateUpdateParameters, + CertificateListResult, + TrackedResource, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/connectionOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/connectionOperationsMappers.ts new file mode 100644 index 000000000000..31e6a2f28963 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/connectionOperationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + Connection, + ProxyResource, + Resource, + BaseResource, + ConnectionTypeAssociationProperty, + ErrorResponse, + ConnectionCreateOrUpdateParameters, + ConnectionUpdateParameters, + ConnectionListResult, + TrackedResource, + Certificate, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/connectionTypeOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/connectionTypeOperationsMappers.ts new file mode 100644 index 000000000000..cae28f245e15 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/connectionTypeOperationsMappers.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ErrorResponse, + ConnectionType, + FieldDefinition, + ConnectionTypeCreateOrUpdateParameters, + ConnectionTypeListResult +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/credentialOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/credentialOperationsMappers.ts new file mode 100644 index 000000000000..0d9b952dac75 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/credentialOperationsMappers.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ErrorResponse, + Credential, + ProxyResource, + Resource, + BaseResource, + CredentialCreateOrUpdateParameters, + CredentialUpdateParameters, + CredentialListResult, + CloudError, + TrackedResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/dscCompilationJobOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/dscCompilationJobOperationsMappers.ts new file mode 100644 index 000000000000..ddb089b9965b --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/dscCompilationJobOperationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + DscCompilationJobCreateParameters, + DscConfigurationAssociationProperty, + DscCompilationJob, + ProxyResource, + Resource, + BaseResource, + ErrorResponse, + DscCompilationJobListResult, + JobStream, + TrackedResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/dscCompilationJobStreamMappers.ts b/sdk/automation/arm-automation/lib/models/dscCompilationJobStreamMappers.ts new file mode 100644 index 000000000000..5973f43d0152 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/dscCompilationJobStreamMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + JobStreamListResult, + JobStream, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/dscConfigurationOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/dscConfigurationOperationsMappers.ts new file mode 100644 index 000000000000..7ab93c7d313d --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/dscConfigurationOperationsMappers.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ErrorResponse, + DscConfiguration, + TrackedResource, + Resource, + BaseResource, + DscConfigurationParameter, + ContentSource, + ContentHash, + DscConfigurationCreateOrUpdateParameters, + DscConfigurationUpdateParameters, + CloudError, + DscConfigurationListResult, + AutomationAccount, + Sku, + ProxyResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/dscNodeConfigurationOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/dscNodeConfigurationOperationsMappers.ts new file mode 100644 index 000000000000..76ed982ca440 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/dscNodeConfigurationOperationsMappers.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ErrorResponse, + DscNodeConfiguration, + ProxyResource, + Resource, + BaseResource, + DscConfigurationAssociationProperty, + DscNodeConfigurationCreateOrUpdateParameters, + ContentSource, + ContentHash, + DscNodeConfigurationListResult, + TrackedResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/dscNodeOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/dscNodeOperationsMappers.ts new file mode 100644 index 000000000000..34620d2f4191 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/dscNodeOperationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + DscNode, + ProxyResource, + Resource, + BaseResource, + DscNodeExtensionHandlerAssociationProperty, + ErrorResponse, + DscNodeUpdateParameters, + DscNodeUpdateParametersProperties, + DscNodeListResult, + TrackedResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/fieldsMappers.ts b/sdk/automation/arm-automation/lib/models/fieldsMappers.ts new file mode 100644 index 000000000000..d1e251125d4d --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/fieldsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + TypeFieldListResult, + TypeField, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/hybridRunbookWorkerGroupOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/hybridRunbookWorkerGroupOperationsMappers.ts new file mode 100644 index 000000000000..80eff3ce9d6d --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/hybridRunbookWorkerGroupOperationsMappers.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ErrorResponse, + HybridRunbookWorkerGroup, + HybridRunbookWorker, + RunAsCredentialAssociationProperty, + HybridRunbookWorkerGroupUpdateParameters, + HybridRunbookWorkerGroupsListResult +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/index.ts b/sdk/automation/arm-automation/lib/models/index.ts new file mode 100644 index 000000000000..2514805b9de0 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/index.ts @@ -0,0 +1,8642 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export { BaseResource, CloudError }; + + +/** + * @interface + * An interface representing Sku. + * The account SKU. + * + */ +export interface Sku { + /** + * @member {SkuNameEnum} name Gets or sets the SKU name of the account. + * Possible values include: 'Free', 'Basic' + */ + name: SkuNameEnum; + /** + * @member {string} [family] Gets or sets the SKU family. + */ + family?: string; + /** + * @member {number} [capacity] Gets or sets the SKU capacity. + */ + capacity?: number; +} + +/** + * @interface + * An interface representing Resource. + * The core properties of ARM resources + * + * @extends BaseResource + */ +export interface Resource extends BaseResource { + /** + * @member {string} [id] Fully qualified resource Id for the resource + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; +} + +/** + * @interface + * An interface representing TrackedResource. + * The resource model definition for a ARM tracked top level resource + * + * @extends Resource + */ +export interface TrackedResource extends Resource { + /** + * @member {{ [propertyName: string]: string }} [tags] Resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * @member {string} [location] The Azure Region where the resource lives + */ + location?: string; +} + +/** + * @interface + * An interface representing AutomationAccount. + * Definition of the automation account type. + * + * @extends TrackedResource + */ +export interface AutomationAccount extends TrackedResource { + /** + * @member {Sku} [sku] Gets or sets the SKU of account. + */ + sku?: Sku; + /** + * @member {string} [lastModifiedBy] Gets or sets the last modified by. + */ + lastModifiedBy?: string; + /** + * @member {AutomationAccountState} [state] Gets status of account. Possible + * values include: 'Ok', 'Unavailable', 'Suspended' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: AutomationAccountState; + /** + * @member {Date} [creationTime] Gets the creation time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets the last modified time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; + /** + * @member {string} [etag] Gets or sets the etag of the resource. + */ + etag?: string; +} + +/** + * @interface + * An interface representing AutomationAccountCreateOrUpdateParameters. + * The parameters supplied to the create or update automation account + * operation. + * + */ +export interface AutomationAccountCreateOrUpdateParameters { + /** + * @member {Sku} [sku] Gets or sets account SKU. + */ + sku?: Sku; + /** + * @member {string} [name] Gets or sets name of the resource. + */ + name?: string; + /** + * @member {string} [location] Gets or sets the location of the resource. + */ + location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing OperationDisplay. + * Provider, Resource and Operation values + * + */ +export interface OperationDisplay { + /** + * @member {string} [provider] Service provider: Microsoft.Automation + */ + provider?: string; + /** + * @member {string} [resource] Resource on which the operation is performed: + * Runbooks, Jobs etc. + */ + resource?: string; + /** + * @member {string} [operation] Operation type: Read, write, delete, etc. + */ + operation?: string; +} + +/** + * @interface + * An interface representing Operation. + * Automation REST API operation + * + */ +export interface Operation { + /** + * @member {string} [name] Operation name: {provider}/{resource}/{operation} + */ + name?: string; + /** + * @member {OperationDisplay} [display] Provider, Resource and Operation + * values + */ + display?: OperationDisplay; +} + +/** + * @interface + * An interface representing Statistics. + * Definition of the statistic. + * + */ +export interface Statistics { + /** + * @member {string} [counterProperty] Gets the property value of the + * statistic. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly counterProperty?: string; + /** + * @member {number} [counterValue] Gets the value of the statistic. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly counterValue?: number; + /** + * @member {Date} [startTime] Gets the startTime of the statistic. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startTime?: Date; + /** + * @member {Date} [endTime] Gets the endTime of the statistic. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly endTime?: Date; + /** + * @member {string} [id] Gets the id. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; +} + +/** + * @interface + * An interface representing UsageCounterName. + * Definition of usage counter name. + * + */ +export interface UsageCounterName { + /** + * @member {string} [value] Gets or sets the usage counter name. + */ + value?: string; + /** + * @member {string} [localizedValue] Gets or sets the localized usage counter + * name. + */ + localizedValue?: string; +} + +/** + * @interface + * An interface representing Usage. + * Definition of Usage. + * + */ +export interface Usage { + /** + * @member {string} [id] Gets or sets the id of the resource. + */ + id?: string; + /** + * @member {UsageCounterName} [name] Gets or sets the usage counter name. + */ + name?: UsageCounterName; + /** + * @member {string} [unit] Gets or sets the usage unit name. + */ + unit?: string; + /** + * @member {number} [currentValue] Gets or sets the current usage value. + */ + currentValue?: number; + /** + * @member {number} [limit] Gets or sets max limit. -1 for unlimited + */ + limit?: number; + /** + * @member {string} [throttleStatus] Gets or sets the throttle status. + */ + throttleStatus?: string; +} + +/** + * @interface + * An interface representing Key. + * Automation key which is used to register a DSC Node + * + */ +export interface Key { + /** + * @member {AutomationKeyName} [keyName] Automation key name. Possible values + * include: 'Primary', 'Secondary' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly keyName?: AutomationKeyName; + /** + * @member {AutomationKeyPermissions} [permissions] Automation key + * permissions. Possible values include: 'Read', 'Full' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly permissions?: AutomationKeyPermissions; + /** + * @member {string} [value] Value of the Automation Key used for + * registration. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly value?: string; +} + +/** + * @interface + * An interface representing KeyListResult. + */ +export interface KeyListResult { + /** + * @member {Key[]} [keys] Lists the automation keys. + */ + keys?: Key[]; +} + +/** + * @interface + * An interface representing AutomationAccountUpdateParameters. + * The parameters supplied to the update automation account operation. + * + */ +export interface AutomationAccountUpdateParameters { + /** + * @member {Sku} [sku] Gets or sets account SKU. + */ + sku?: Sku; + /** + * @member {string} [name] Gets or sets the name of the resource. + */ + name?: string; + /** + * @member {string} [location] Gets or sets the location of the resource. + */ + location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing ProxyResource. + * ARM proxy resource. + * + * @extends Resource + */ +export interface ProxyResource extends Resource { +} + +/** + * @interface + * An interface representing ErrorResponse. + * Error response of an operation failure + * + */ +export interface ErrorResponse { + /** + * @member {string} [code] Error code + */ + code?: string; + /** + * @member {string} [message] Error message indicating why the operation + * failed. + */ + message?: string; +} + +/** + * @interface + * An interface representing CertificateCreateOrUpdateParameters. + * The parameters supplied to the create or update or replace certificate + * operation. + * + */ +export interface CertificateCreateOrUpdateParameters { + /** + * @member {string} name Gets or sets the name of the certificate. + */ + name: string; + /** + * @member {string} base64Value Gets or sets the base64 encoded value of the + * certificate. + */ + base64Value: string; + /** + * @member {string} [description] Gets or sets the description of the + * certificate. + */ + description?: string; + /** + * @member {string} [thumbprint] Gets or sets the thumbprint of the + * certificate. + */ + thumbprint?: string; + /** + * @member {boolean} [isExportable] Gets or sets the is exportable flag of + * the certificate. + */ + isExportable?: boolean; +} + +/** + * @interface + * An interface representing Certificate. + * Definition of the certificate. + * + * @extends ProxyResource + */ +export interface Certificate extends ProxyResource { + /** + * @member {string} [thumbprint] Gets the thumbprint of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly thumbprint?: string; + /** + * @member {Date} [expiryTime] Gets the expiry time of the certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly expiryTime?: Date; + /** + * @member {boolean} [isExportable] Gets the is exportable flag of the + * certificate. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isExportable?: boolean; + /** + * @member {Date} [creationTime] Gets the creation time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets the last modified time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; +} + +/** + * @interface + * An interface representing CertificateUpdateParameters. + * The parameters supplied to the update certificate operation. + * + */ +export interface CertificateUpdateParameters { + /** + * @member {string} [name] Gets or sets the name of the certificate. + */ + name?: string; + /** + * @member {string} [description] Gets or sets the description of the + * certificate. + */ + description?: string; +} + +/** + * @interface + * An interface representing ConnectionTypeAssociationProperty. + * The connection type property associated with the entity. + * + */ +export interface ConnectionTypeAssociationProperty { + /** + * @member {string} [name] Gets or sets the name of the connection type. + */ + name?: string; +} + +/** + * @interface + * An interface representing ConnectionCreateOrUpdateParameters. + * The parameters supplied to the create or update connection operation. + * + */ +export interface ConnectionCreateOrUpdateParameters { + /** + * @member {string} name Gets or sets the name of the connection. + */ + name: string; + /** + * @member {string} [description] Gets or sets the description of the + * connection. + */ + description?: string; + /** + * @member {ConnectionTypeAssociationProperty} connectionType Gets or sets + * the connectionType of the connection. + */ + connectionType: ConnectionTypeAssociationProperty; + /** + * @member {{ [propertyName: string]: string }} [fieldDefinitionValues] Gets + * or sets the field definition properties of the connection. + */ + fieldDefinitionValues?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing Connection. + * Definition of the connection. + * + * @extends ProxyResource + */ +export interface Connection extends ProxyResource { + /** + * @member {ConnectionTypeAssociationProperty} [connectionType] Gets or sets + * the connectionType of the connection. + */ + connectionType?: ConnectionTypeAssociationProperty; + /** + * @member {{ [propertyName: string]: string }} [fieldDefinitionValues] Gets + * the field definition values of the connection. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly fieldDefinitionValues?: { [propertyName: string]: string }; + /** + * @member {Date} [creationTime] Gets the creation time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets the last modified time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; +} + +/** + * @interface + * An interface representing ConnectionUpdateParameters. + * The parameters supplied to the update connection operation. + * + */ +export interface ConnectionUpdateParameters { + /** + * @member {string} [name] Gets or sets the name of the connection. + */ + name?: string; + /** + * @member {string} [description] Gets or sets the description of the + * connection. + */ + description?: string; + /** + * @member {{ [propertyName: string]: string }} [fieldDefinitionValues] Gets + * or sets the field definition values of the connection. + */ + fieldDefinitionValues?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing FieldDefinition. + * Definition of the connection fields. + * + */ +export interface FieldDefinition { + /** + * @member {boolean} [isEncrypted] Gets or sets the isEncrypted flag of the + * connection field definition. + */ + isEncrypted?: boolean; + /** + * @member {boolean} [isOptional] Gets or sets the isOptional flag of the + * connection field definition. + */ + isOptional?: boolean; + /** + * @member {string} type Gets or sets the type of the connection field + * definition. + */ + type: string; +} + +/** + * @interface + * An interface representing ConnectionType. + * Definition of the connection type. + * + */ +export interface ConnectionType { + /** + * @member {string} [id] Gets the id of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Gets the name of the connection type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {boolean} [isGlobal] Gets or sets a Boolean value to indicate if + * the connection type is global. + */ + isGlobal?: boolean; + /** + * @member {{ [propertyName: string]: FieldDefinition }} [fieldDefinitions] + * Gets the field definitions of the connection type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly fieldDefinitions?: { [propertyName: string]: FieldDefinition }; + /** + * @member {Date} [creationTime] Gets the creation time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + */ + lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; +} + +/** + * @interface + * An interface representing ConnectionTypeCreateOrUpdateParameters. + * The parameters supplied to the create or update connection type operation. + * + */ +export interface ConnectionTypeCreateOrUpdateParameters { + /** + * @member {string} name Gets or sets the name of the connection type. + */ + name: string; + /** + * @member {boolean} [isGlobal] Gets or sets a Boolean value to indicate if + * the connection type is global. + */ + isGlobal?: boolean; + /** + * @member {{ [propertyName: string]: FieldDefinition }} fieldDefinitions + * Gets or sets the field definitions of the connection type. + */ + fieldDefinitions: { [propertyName: string]: FieldDefinition }; +} + +/** + * @interface + * An interface representing CredentialCreateOrUpdateParameters. + * The parameters supplied to the create or update credential operation. + * + */ +export interface CredentialCreateOrUpdateParameters { + /** + * @member {string} name Gets or sets the name of the credential. + */ + name: string; + /** + * @member {string} userName Gets or sets the user name of the credential. + */ + userName: string; + /** + * @member {string} password Gets or sets the password of the credential. + */ + password: string; + /** + * @member {string} [description] Gets or sets the description of the + * credential. + */ + description?: string; +} + +/** + * @interface + * An interface representing Credential. + * Definition of the credential. + * + * @extends ProxyResource + */ +export interface Credential extends ProxyResource { + /** + * @member {string} [userName] Gets the user name of the credential. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly userName?: string; + /** + * @member {Date} [creationTime] Gets the creation time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets the last modified time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; +} + +/** + * @interface + * An interface representing CredentialUpdateParameters. + * The parameters supplied to the Update credential operation. + * + */ +export interface CredentialUpdateParameters { + /** + * @member {string} [name] Gets or sets the name of the credential. + */ + name?: string; + /** + * @member {string} [userName] Gets or sets the user name of the credential. + */ + userName?: string; + /** + * @member {string} [password] Gets or sets the password of the credential. + */ + password?: string; + /** + * @member {string} [description] Gets or sets the description of the + * credential. + */ + description?: string; +} + +/** + * @interface + * An interface representing ContentHash. + * Definition of the runbook property type. + * + */ +export interface ContentHash { + /** + * @member {string} algorithm Gets or sets the content hash algorithm used to + * hash the content. + */ + algorithm: string; + /** + * @member {string} value Gets or sets expected hash value of the content. + */ + value: string; +} + +/** + * @interface + * An interface representing ContentSource. + * Definition of the content source. + * + */ +export interface ContentSource { + /** + * @member {ContentHash} [hash] Gets or sets the hash. + */ + hash?: ContentHash; + /** + * @member {ContentSourceType} [type] Gets or sets the content source type. + * Possible values include: 'embeddedContent', 'uri' + */ + type?: ContentSourceType; + /** + * @member {string} [value] Gets or sets the value of the content. This is + * based on the content source type. + */ + value?: string; + /** + * @member {string} [version] Gets or sets the version of the content. + */ + version?: string; +} + +/** + * @interface + * An interface representing DscConfigurationParameter. + * Definition of the configuration parameter type. + * + */ +export interface DscConfigurationParameter { + /** + * @member {string} [type] Gets or sets the type of the parameter. + */ + type?: string; + /** + * @member {boolean} [isMandatory] Gets or sets a Boolean value to indicate + * whether the parameter is mandatory or not. + */ + isMandatory?: boolean; + /** + * @member {number} [position] Get or sets the position of the parameter. + */ + position?: number; + /** + * @member {string} [defaultValue] Gets or sets the default value of + * parameter. + */ + defaultValue?: string; +} + +/** + * @interface + * An interface representing DscConfigurationCreateOrUpdateParameters. + * The parameters supplied to the create or update configuration operation. + * + */ +export interface DscConfigurationCreateOrUpdateParameters { + /** + * @member {boolean} [logVerbose] Gets or sets verbose log option. + */ + logVerbose?: boolean; + /** + * @member {boolean} [logProgress] Gets or sets progress log option. + */ + logProgress?: boolean; + /** + * @member {ContentSource} source Gets or sets the source. + */ + source: ContentSource; + /** + * @member {{ [propertyName: string]: DscConfigurationParameter }} + * [parameters] Gets or sets the configuration parameters. + */ + parameters?: { [propertyName: string]: DscConfigurationParameter }; + /** + * @member {string} [description] Gets or sets the description of the + * configuration. + */ + description?: string; + /** + * @member {string} [name] Gets or sets name of the resource. + */ + name?: string; + /** + * @member {string} [location] Gets or sets the location of the resource. + */ + location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing DscConfiguration. + * Definition of the configuration type. + * + * @extends TrackedResource + */ +export interface DscConfiguration extends TrackedResource { + /** + * @member {DscConfigurationProvisioningState} [provisioningState] Gets or + * sets the provisioning state of the configuration. Possible values include: + * 'Succeeded' + */ + provisioningState?: DscConfigurationProvisioningState; + /** + * @member {number} [jobCount] Gets or sets the job count of the + * configuration. + */ + jobCount?: number; + /** + * @member {{ [propertyName: string]: DscConfigurationParameter }} + * [parameters] Gets or sets the configuration parameters. + */ + parameters?: { [propertyName: string]: DscConfigurationParameter }; + /** + * @member {ContentSource} [source] Gets or sets the source. + */ + source?: ContentSource; + /** + * @member {DscConfigurationState} [state] Gets or sets the state of the + * configuration. Possible values include: 'New', 'Edit', 'Published' + */ + state?: DscConfigurationState; + /** + * @member {boolean} [logVerbose] Gets or sets verbose log option. + */ + logVerbose?: boolean; + /** + * @member {Date} [creationTime] Gets or sets the creation time. + */ + creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + */ + lastModifiedTime?: Date; + /** + * @member {number} [nodeConfigurationCount] Gets the number of compiled node + * configurations. + */ + nodeConfigurationCount?: number; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; + /** + * @member {string} [etag] Gets or sets the etag of the resource. + */ + etag?: string; +} + +/** + * @interface + * An interface representing DscConfigurationUpdateParameters. + * The parameters supplied to the create or update configuration operation. + * + */ +export interface DscConfigurationUpdateParameters { + /** + * @member {boolean} [logVerbose] Gets or sets verbose log option. + */ + logVerbose?: boolean; + /** + * @member {boolean} [logProgress] Gets or sets progress log option. + */ + logProgress?: boolean; + /** + * @member {ContentSource} source Gets or sets the source. + */ + source: ContentSource; + /** + * @member {{ [propertyName: string]: DscConfigurationParameter }} + * [parameters] Gets or sets the configuration parameters. + */ + parameters?: { [propertyName: string]: DscConfigurationParameter }; + /** + * @member {string} [description] Gets or sets the description of the + * configuration. + */ + description?: string; + /** + * @member {string} [name] Gets or sets name of the resource. + */ + name?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing RunAsCredentialAssociationProperty. + * Definition of RunAs credential to use for hybrid worker. + * + */ +export interface RunAsCredentialAssociationProperty { + /** + * @member {string} [name] Gets or sets the name of the credential. + */ + name?: string; +} + +/** + * @interface + * An interface representing HybridRunbookWorker. + * Definition of hybrid runbook worker. + * + */ +export interface HybridRunbookWorker { + /** + * @member {string} [name] Gets or sets the worker machine name. + */ + name?: string; + /** + * @member {string} [ip] Gets or sets the assigned machine IP address. + */ + ip?: string; + /** + * @member {Date} [registrationTime] Gets or sets the registration time of + * the worker machine. + */ + registrationTime?: Date; + /** + * @member {Date} [lastSeenDateTime] Last Heartbeat from the Worker + */ + lastSeenDateTime?: Date; +} + +/** + * @interface + * An interface representing HybridRunbookWorkerGroup. + * Definition of hybrid runbook worker group. + * + */ +export interface HybridRunbookWorkerGroup { + /** + * @member {string} [id] Gets or sets the id of the resource. + */ + id?: string; + /** + * @member {string} [name] Gets or sets the name of the group. + */ + name?: string; + /** + * @member {HybridRunbookWorker[]} [hybridRunbookWorkers] Gets or sets the + * list of hybrid runbook workers. + */ + hybridRunbookWorkers?: HybridRunbookWorker[]; + /** + * @member {RunAsCredentialAssociationProperty} [credential] Sets the + * credential of a worker group. + */ + credential?: RunAsCredentialAssociationProperty; + /** + * @member {GroupTypeEnum} [groupType] Type of the HybridWorkerGroup. + * Possible values include: 'User', 'System' + */ + groupType?: GroupTypeEnum; +} + +/** + * @interface + * An interface representing HybridRunbookWorkerGroupUpdateParameters. + * Parameters supplied to the update operation. + * + */ +export interface HybridRunbookWorkerGroupUpdateParameters { + /** + * @member {RunAsCredentialAssociationProperty} [credential] Sets the + * credential of a worker group. + */ + credential?: RunAsCredentialAssociationProperty; +} + +/** + * @interface + * An interface representing ScheduleAssociationProperty. + * The schedule property associated with the entity. + * + */ +export interface ScheduleAssociationProperty { + /** + * @member {string} [name] Gets or sets the name of the Schedule. + */ + name?: string; +} + +/** + * @interface + * An interface representing RunbookAssociationProperty. + * The runbook property associated with the entity. + * + */ +export interface RunbookAssociationProperty { + /** + * @member {string} [name] Gets or sets the name of the runbook. + */ + name?: string; +} + +/** + * @interface + * An interface representing JobSchedule. + * Definition of the job schedule. + * + */ +export interface JobSchedule { + /** + * @member {string} [id] Gets the id of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Gets the name of the variable. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [jobScheduleId] Gets or sets the id of job schedule. + */ + jobScheduleId?: string; + /** + * @member {ScheduleAssociationProperty} [schedule] Gets or sets the + * schedule. + */ + schedule?: ScheduleAssociationProperty; + /** + * @member {RunbookAssociationProperty} [runbook] Gets or sets the runbook. + */ + runbook?: RunbookAssociationProperty; + /** + * @member {string} [runOn] Gets or sets the hybrid worker group that the + * scheduled job should run on. + */ + runOn?: string; + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets the + * parameters of the job schedule. + */ + parameters?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing JobScheduleCreateParameters. + * The parameters supplied to the create job schedule operation. + * + */ +export interface JobScheduleCreateParameters { + /** + * @member {ScheduleAssociationProperty} schedule Gets or sets the schedule. + */ + schedule: ScheduleAssociationProperty; + /** + * @member {RunbookAssociationProperty} runbook Gets or sets the runbook. + */ + runbook: RunbookAssociationProperty; + /** + * @member {string} [runOn] Gets or sets the hybrid worker group that the + * scheduled job should run on. + */ + runOn?: string; + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets a + * list of job properties. + */ + parameters?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing LinkedWorkspace. + * Definition of the linked workspace. + * + */ +export interface LinkedWorkspace { + /** + * @member {string} [id] Gets the id of the linked workspace. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; +} + +/** + * @interface + * An interface representing ActivityParameterValidationSet. + * Definition of the activity parameter validation set. + * + */ +export interface ActivityParameterValidationSet { + /** + * @member {string} [memberValue] Gets or sets the name of the activity + * parameter validation set member. + */ + memberValue?: string; +} + +/** + * @interface + * An interface representing ActivityParameter. + * Definition of the activity parameter. + * + */ +export interface ActivityParameter { + /** + * @member {string} [name] Gets or sets the name of the activity parameter. + */ + name?: string; + /** + * @member {string} [type] Gets or sets the type of the activity parameter. + */ + type?: string; + /** + * @member {boolean} [isMandatory] Gets or sets a Boolean value that + * indicates true if the parameter is required. If the value is false, the + * parameter is optional. + */ + isMandatory?: boolean; + /** + * @member {boolean} [isDynamic] Gets or sets a Boolean value that indicates + * true if the parameter is dynamic. + */ + isDynamic?: boolean; + /** + * @member {number} [position] Gets or sets the position of the activity + * parameter. + */ + position?: number; + /** + * @member {boolean} [valueFromPipeline] Gets or sets a Boolean value that + * indicates true if the parameter can take values from the incoming pipeline + * objects. This setting is used if the cmdlet must access the complete input + * object. false indicates that the parameter cannot take values from the + * complete input object. + */ + valueFromPipeline?: boolean; + /** + * @member {boolean} [valueFromPipelineByPropertyName] Gets or sets a Boolean + * value that indicates true if the parameter can be filled from a property + * of the incoming pipeline object that has the same name as this parameter. + * false indicates that the parameter cannot be filled from the incoming + * pipeline object property with the same name. + */ + valueFromPipelineByPropertyName?: boolean; + /** + * @member {boolean} [valueFromRemainingArguments] Gets or sets a Boolean + * value that indicates true if the cmdlet parameter accepts all the + * remaining command-line arguments that are associated with this parameter + * in the form of an array. false if the cmdlet parameter does not accept all + * the remaining argument values. + */ + valueFromRemainingArguments?: boolean; + /** + * @member {string} [description] Gets or sets the description of the + * activity parameter. + */ + description?: string; + /** + * @member {ActivityParameterValidationSet[]} [validationSet] Gets or sets + * the validation set of activity parameter. + */ + validationSet?: ActivityParameterValidationSet[]; +} + +/** + * @interface + * An interface representing ActivityParameterSet. + * Definition of the activity parameter set. + * + */ +export interface ActivityParameterSet { + /** + * @member {string} [name] Gets or sets the name of the activity parameter + * set. + */ + name?: string; + /** + * @member {ActivityParameter[]} [parameters] Gets or sets the parameters of + * the activity parameter set. + */ + parameters?: ActivityParameter[]; +} + +/** + * @interface + * An interface representing ActivityOutputType. + * Definition of the activity output type. + * + */ +export interface ActivityOutputType { + /** + * @member {string} [name] Gets or sets the name of the activity output type. + */ + name?: string; + /** + * @member {string} [type] Gets or sets the type of the activity output type. + */ + type?: string; +} + +/** + * @interface + * An interface representing Activity. + * Definition of the activity. + * + */ +export interface Activity { + /** + * @member {string} [id] Gets or sets the id of the resource. + */ + id?: string; + /** + * @member {string} [name] Gets the name of the activity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [definition] Gets or sets the user name of the activity. + */ + definition?: string; + /** + * @member {ActivityParameterSet[]} [parameterSets] Gets or sets the + * parameter sets of the activity. + */ + parameterSets?: ActivityParameterSet[]; + /** + * @member {ActivityOutputType[]} [outputTypes] Gets or sets the output types + * of the activity. + */ + outputTypes?: ActivityOutputType[]; + /** + * @member {Date} [creationTime] Gets or sets the creation time. + */ + creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + */ + lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; +} + +/** + * @interface + * An interface representing ModuleErrorInfo. + * Definition of the module error info type. + * + */ +export interface ModuleErrorInfo { + /** + * @member {string} [code] Gets or sets the error code. + */ + code?: string; + /** + * @member {string} [message] Gets or sets the error message. + */ + message?: string; +} + +/** + * @interface + * An interface representing ContentLink. + * Definition of the content link. + * + */ +export interface ContentLink { + /** + * @member {string} [uri] Gets or sets the uri of the runbook content. + */ + uri?: string; + /** + * @member {ContentHash} [contentHash] Gets or sets the hash. + */ + contentHash?: ContentHash; + /** + * @member {string} [version] Gets or sets the version of the content. + */ + version?: string; +} + +/** + * @interface + * An interface representing Module. + * Definition of the module type. + * + * @extends TrackedResource + */ +export interface Module extends TrackedResource { + /** + * @member {boolean} [isGlobal] Gets or sets the isGlobal flag of the module. + */ + isGlobal?: boolean; + /** + * @member {string} [version] Gets or sets the version of the module. + */ + version?: string; + /** + * @member {number} [sizeInBytes] Gets or sets the size in bytes of the + * module. + */ + sizeInBytes?: number; + /** + * @member {number} [activityCount] Gets or sets the activity count of the + * module. + */ + activityCount?: number; + /** + * @member {ModuleProvisioningState} [provisioningState] Gets or sets the + * provisioning state of the module. Possible values include: 'Created', + * 'Creating', 'StartingImportModuleRunbook', 'RunningImportModuleRunbook', + * 'ContentRetrieved', 'ContentDownloaded', 'ContentValidated', + * 'ConnectionTypeImported', 'ContentStored', 'ModuleDataStored', + * 'ActivitiesStored', 'ModuleImportRunbookComplete', 'Succeeded', 'Failed', + * 'Cancelled', 'Updating' + */ + provisioningState?: ModuleProvisioningState; + /** + * @member {ContentLink} [contentLink] Gets or sets the contentLink of the + * module. + */ + contentLink?: ContentLink; + /** + * @member {ModuleErrorInfo} [error] Gets or sets the error info of the + * module. + */ + error?: ModuleErrorInfo; + /** + * @member {Date} [creationTime] Gets or sets the creation time. + */ + creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + */ + lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; + /** + * @member {boolean} [isComposite] Gets or sets type of module, if its + * composite or not. + */ + isComposite?: boolean; + /** + * @member {string} [etag] Gets or sets the etag of the resource. + */ + etag?: string; +} + +/** + * @interface + * An interface representing ModuleCreateOrUpdateParameters. + * The parameters supplied to the create or update module operation. + * + */ +export interface ModuleCreateOrUpdateParameters { + /** + * @member {ContentLink} contentLink Gets or sets the module content link. + */ + contentLink: ContentLink; + /** + * @member {string} [name] Gets or sets name of the resource. + */ + name?: string; + /** + * @member {string} [location] Gets or sets the location of the resource. + */ + location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing ModuleUpdateParameters. + * The parameters supplied to the update module operation. + * + */ +export interface ModuleUpdateParameters { + /** + * @member {ContentLink} [contentLink] Gets or sets the module content link. + */ + contentLink?: ContentLink; + /** + * @member {string} [name] Gets or sets name of the resource. + */ + name?: string; + /** + * @member {string} [location] Gets or sets the location of the resource. + */ + location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing TypeField. + * Information about a field of a type. + * + */ +export interface TypeField { + /** + * @member {string} [name] Gets or sets the name of the field. + */ + name?: string; + /** + * @member {string} [type] Gets or sets the type of the field. + */ + type?: string; +} + +/** + * @interface + * An interface representing AdvancedScheduleMonthlyOccurrence. + * The properties of the create advanced schedule monthly occurrence. + * + */ +export interface AdvancedScheduleMonthlyOccurrence { + /** + * @member {number} [occurrence] Occurrence of the week within the month. + * Must be between 1 and 5 + */ + occurrence?: number; + /** + * @member {ScheduleDay} [day] Day of the occurrence. Must be one of monday, + * tuesday, wednesday, thursday, friday, saturday, sunday. Possible values + * include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', + * 'Saturday', 'Sunday' + */ + day?: ScheduleDay; +} + +/** + * @interface + * An interface representing AdvancedSchedule. + * The properties of the create Advanced Schedule. + * + */ +export interface AdvancedSchedule { + /** + * @member {string[]} [weekDays] Days of the week that the job should execute + * on. + */ + weekDays?: string[]; + /** + * @member {number[]} [monthDays] Days of the month that the job should + * execute on. Must be between 1 and 31. + */ + monthDays?: number[]; + /** + * @member {AdvancedScheduleMonthlyOccurrence[]} [monthlyOccurrences] + * Occurrences of days within a month. + */ + monthlyOccurrences?: AdvancedScheduleMonthlyOccurrence[]; +} + +/** + * @interface + * An interface representing ScheduleCreateOrUpdateParameters. + * The parameters supplied to the create or update schedule operation. + * + */ +export interface ScheduleCreateOrUpdateParameters { + /** + * @member {string} name Gets or sets the name of the Schedule. + */ + name: string; + /** + * @member {string} [description] Gets or sets the description of the + * schedule. + */ + description?: string; + /** + * @member {Date} startTime Gets or sets the start time of the schedule. + */ + startTime: Date; + /** + * @member {Date} [expiryTime] Gets or sets the end time of the schedule. + */ + expiryTime?: Date; + /** + * @member {any} [interval] Gets or sets the interval of the schedule. + */ + interval?: any; + /** + * @member {ScheduleFrequency} frequency Possible values include: 'OneTime', + * 'Day', 'Hour', 'Week', 'Month' + */ + frequency: ScheduleFrequency; + /** + * @member {string} [timeZone] Gets or sets the time zone of the schedule. + */ + timeZone?: string; + /** + * @member {AdvancedSchedule} [advancedSchedule] Gets or sets the + * AdvancedSchedule. + */ + advancedSchedule?: AdvancedSchedule; +} + +/** + * @interface + * An interface representing ScheduleProperties. + * Definition of schedule parameters. + * + */ +export interface ScheduleProperties { + /** + * @member {Date} [startTime] Gets or sets the start time of the schedule. + */ + startTime?: Date; + /** + * @member {number} [startTimeOffsetMinutes] 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; + /** + * @member {Date} [expiryTime] Gets or sets the end time of the schedule. + */ + expiryTime?: Date; + /** + * @member {number} [expiryTimeOffsetMinutes] Gets or sets the expiry time's + * offset in minutes. + */ + expiryTimeOffsetMinutes?: number; + /** + * @member {boolean} [isEnabled] Gets or sets a value indicating whether this + * schedule is enabled. Default value: false . + */ + isEnabled?: boolean; + /** + * @member {Date} [nextRun] Gets or sets the next run time of the schedule. + */ + nextRun?: Date; + /** + * @member {number} [nextRunOffsetMinutes] Gets or sets the next run time's + * offset in minutes. + */ + nextRunOffsetMinutes?: number; + /** + * @member {number} [interval] Gets or sets the interval of the schedule. + */ + interval?: number; + /** + * @member {ScheduleFrequency} [frequency] Gets or sets the frequency of the + * schedule. Possible values include: 'OneTime', 'Day', 'Hour', 'Week', + * 'Month' + */ + frequency?: ScheduleFrequency; + /** + * @member {string} [timeZone] Gets or sets the time zone of the schedule. + */ + timeZone?: string; + /** + * @member {AdvancedSchedule} [advancedSchedule] Gets or sets the advanced + * schedule. + */ + advancedSchedule?: AdvancedSchedule; + /** + * @member {Date} [creationTime] Gets or sets the creation time. + */ + creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + */ + lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; +} + +/** + * @interface + * An interface representing Schedule. + * Definition of the schedule. + * + * @extends ProxyResource + */ +export interface Schedule extends ProxyResource { + /** + * @member {Date} [startTime] Gets or sets the start time of the schedule. + */ + startTime?: Date; + /** + * @member {number} [startTimeOffsetMinutes] 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; + /** + * @member {Date} [expiryTime] Gets or sets the end time of the schedule. + */ + expiryTime?: Date; + /** + * @member {number} [expiryTimeOffsetMinutes] Gets or sets the expiry time's + * offset in minutes. + */ + expiryTimeOffsetMinutes?: number; + /** + * @member {boolean} [isEnabled] Gets or sets a value indicating whether this + * schedule is enabled. Default value: false . + */ + isEnabled?: boolean; + /** + * @member {Date} [nextRun] Gets or sets the next run time of the schedule. + */ + nextRun?: Date; + /** + * @member {number} [nextRunOffsetMinutes] Gets or sets the next run time's + * offset in minutes. + */ + nextRunOffsetMinutes?: number; + /** + * @member {number} [interval] Gets or sets the interval of the schedule. + */ + interval?: number; + /** + * @member {ScheduleFrequency} [frequency] Gets or sets the frequency of the + * schedule. Possible values include: 'OneTime', 'Day', 'Hour', 'Week', + * 'Month' + */ + frequency?: ScheduleFrequency; + /** + * @member {string} [timeZone] Gets or sets the time zone of the schedule. + */ + timeZone?: string; + /** + * @member {AdvancedSchedule} [advancedSchedule] Gets or sets the advanced + * schedule. + */ + advancedSchedule?: AdvancedSchedule; + /** + * @member {Date} [creationTime] Gets or sets the creation time. + */ + creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + */ + lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; +} + +/** + * @interface + * An interface representing ScheduleUpdateParameters. + * The parameters supplied to the update schedule operation. + * + */ +export interface ScheduleUpdateParameters { + /** + * @member {string} [name] Gets or sets the name of the Schedule. + */ + name?: string; + /** + * @member {string} [description] Gets or sets the description of the + * schedule. + */ + description?: string; + /** + * @member {boolean} [isEnabled] Gets or sets a value indicating whether this + * schedule is enabled. + */ + isEnabled?: boolean; +} + +/** + * @interface + * An interface representing VariableCreateOrUpdateParameters. + * The parameters supplied to the create or update variable operation. + * + */ +export interface VariableCreateOrUpdateParameters { + /** + * @member {string} name Gets or sets the name of the variable. + */ + name: string; + /** + * @member {string} [value] Gets or sets the value of the variable. + */ + value?: string; + /** + * @member {string} [description] Gets or sets the description of the + * variable. + */ + description?: string; + /** + * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the + * variable. + */ + isEncrypted?: boolean; +} + +/** + * @interface + * An interface representing Variable. + * Definition of the variable. + * + * @extends ProxyResource + */ +export interface Variable extends ProxyResource { + /** + * @member {string} [value] Gets or sets the value of the variable. + */ + value?: string; + /** + * @member {boolean} [isEncrypted] Gets or sets the encrypted flag of the + * variable. + */ + isEncrypted?: boolean; + /** + * @member {Date} [creationTime] Gets or sets the creation time. + */ + creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + */ + lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; +} + +/** + * @interface + * An interface representing VariableUpdateParameters. + * The parameters supplied to the update variable operation. + * + */ +export interface VariableUpdateParameters { + /** + * @member {string} [name] Gets or sets the name of the variable. + */ + name?: string; + /** + * @member {string} [value] Gets or sets the value of the variable. + */ + value?: string; + /** + * @member {string} [description] Gets or sets the description of the + * variable. + */ + description?: string; +} + +/** + * @interface + * An interface representing Webhook. + * Definition of the webhook type. + * + * @extends ProxyResource + */ +export interface Webhook extends ProxyResource { + /** + * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag + * of the webhook. Default value: false . + */ + isEnabled?: boolean; + /** + * @member {string} [uri] Gets or sets the webhook uri. + */ + uri?: string; + /** + * @member {Date} [expiryTime] Gets or sets the expiry time. + */ + expiryTime?: Date; + /** + * @member {Date} [lastInvokedTime] Gets or sets the last invoked time. + */ + lastInvokedTime?: Date; + /** + * @member {{ [propertyName: string]: string }} [parameters] 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 }; + /** + * @member {RunbookAssociationProperty} [runbook] Gets or sets the runbook + * the webhook is associated with. + */ + runbook?: RunbookAssociationProperty; + /** + * @member {string} [runOn] Gets or sets the name of the hybrid worker group + * the webhook job will run on. + */ + runOn?: string; + /** + * @member {Date} [creationTime] Gets or sets the creation time. + */ + creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + */ + lastModifiedTime?: Date; + /** + * @member {string} [lastModifiedBy] Details of the user who last modified + * the Webhook + */ + lastModifiedBy?: string; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; +} + +/** + * @interface + * An interface representing WebhookUpdateParameters. + * The parameters supplied to the update webhook operation. + * + */ +export interface WebhookUpdateParameters { + /** + * @member {string} [name] Gets or sets the name of the webhook. + */ + name?: string; + /** + * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag + * of webhook. + */ + isEnabled?: boolean; + /** + * @member {string} [runOn] Gets or sets the name of the hybrid worker group + * the webhook job will run on. + */ + runOn?: string; + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets the + * parameters of the job. + */ + parameters?: { [propertyName: string]: string }; + /** + * @member {string} [description] Gets or sets the description of the + * webhook. + */ + description?: string; +} + +/** + * @interface + * An interface representing WebhookCreateOrUpdateParameters. + * The parameters supplied to the create or update webhook operation. + * + */ +export interface WebhookCreateOrUpdateParameters { + /** + * @member {string} name Gets or sets the name of the webhook. + */ + name: string; + /** + * @member {boolean} [isEnabled] Gets or sets the value of the enabled flag + * of webhook. + */ + isEnabled?: boolean; + /** + * @member {string} [uri] Gets or sets the uri. + */ + uri?: string; + /** + * @member {Date} [expiryTime] Gets or sets the expiry time. + */ + expiryTime?: Date; + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets the + * parameters of the job. + */ + parameters?: { [propertyName: string]: string }; + /** + * @member {RunbookAssociationProperty} [runbook] Gets or sets the runbook. + */ + runbook?: RunbookAssociationProperty; + /** + * @member {string} [runOn] Gets or sets the name of the hybrid worker group + * the webhook job will run on. + */ + runOn?: string; +} + +/** + * @interface + * An interface representing Watcher. + * Definition of the watcher type. + * + * @extends TrackedResource + */ +export interface Watcher extends TrackedResource { + /** + * @member {number} [executionFrequencyInSeconds] Gets or sets the frequency + * at which the watcher is invoked. + */ + executionFrequencyInSeconds?: number; + /** + * @member {string} [scriptName] Gets or sets the name of the script the + * watcher is attached to, i.e. the name of an existing runbook. + */ + scriptName?: string; + /** + * @member {{ [propertyName: string]: string }} [scriptParameters] Gets or + * sets the parameters of the script. + */ + scriptParameters?: { [propertyName: string]: string }; + /** + * @member {string} [scriptRunOn] Gets or sets the name of the hybrid worker + * group the watcher will run on. + */ + scriptRunOn?: string; + /** + * @member {string} [status] Gets the current status of the watcher. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: string; + /** + * @member {Date} [creationTime] Gets or sets the creation time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTime?: Date; + /** + * @member {string} [lastModifiedBy] Details of the user who last modified + * the watcher. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedBy?: string; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; + /** + * @member {string} [etag] Gets or sets the etag of the resource. + */ + etag?: string; +} + +/** + * @interface + * An interface representing WatcherUpdateParameters. + */ +export interface WatcherUpdateParameters { + /** + * @member {number} [executionFrequencyInSeconds] Gets or sets the frequency + * at which the watcher is invoked. + */ + executionFrequencyInSeconds?: number; + /** + * @member {string} [name] Gets or sets the name of the resource. + */ + name?: string; +} + +/** + * @interface + * An interface representing WindowsProperties. + * Windows specific update configuration. + * + */ +export interface WindowsProperties { + /** + * @member {WindowsUpdateClasses} [includedUpdateClassifications] Update + * classification included in the software update configuration. A comma + * separated string with required values. Possible values include: + * 'Unclassified', 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', + * 'ServicePack', 'Definition', 'Tools', 'Updates' + */ + includedUpdateClassifications?: WindowsUpdateClasses; + /** + * @member {string[]} [excludedKbNumbers] KB numbers excluded from the + * software update configuration. + */ + excludedKbNumbers?: string[]; + /** + * @member {string[]} [includedKbNumbers] KB numbers included from the + * software update configuration. + */ + includedKbNumbers?: string[]; + /** + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. + */ + rebootSetting?: string; +} + +/** + * @interface + * An interface representing LinuxProperties. + * Linux specific update configuration. + * + */ +export interface LinuxProperties { + /** + * @member {LinuxUpdateClasses} [includedPackageClassifications] Update + * classifications included in the software update configuration. Possible + * values include: 'Unclassified', 'Critical', 'Security', 'Other' + */ + includedPackageClassifications?: LinuxUpdateClasses; + /** + * @member {string[]} [excludedPackageNameMasks] packages excluded from the + * software update configuration. + */ + excludedPackageNameMasks?: string[]; + /** + * @member {string[]} [includedPackageNameMasks] packages included from the + * software update configuration. + */ + includedPackageNameMasks?: string[]; + /** + * @member {string} [rebootSetting] Reboot setting for the software update + * configuration. + */ + rebootSetting?: string; +} + +/** + * @interface + * An interface representing TagSettingsProperties. + * Tag filter information for the VM. + * + */ +export interface TagSettingsProperties { + /** + * @member {{ [propertyName: string]: string[] }} [tags] Dictionary of tags + * with its list of values. + */ + tags?: { [propertyName: string]: string[] }; + /** + * @member {TagOperators} [filterOperator] Filter VMs by Any or All specified + * tags. Possible values include: 'All', 'Any' + */ + filterOperator?: TagOperators; +} + +/** + * @interface + * An interface representing AzureQueryProperties. + * Azure query for the update configuration. + * + */ +export interface AzureQueryProperties { + /** + * @member {string[]} [scope] List of Subscription or Resource Group ARM Ids. + */ + scope?: string[]; + /** + * @member {string[]} [locations] List of locations to scope the query to. + */ + locations?: string[]; + /** + * @member {TagSettingsProperties} [tagSettings] Tag settings for the VM. + */ + tagSettings?: TagSettingsProperties; +} + +/** + * @interface + * An interface representing NonAzureQueryProperties. + * Non Azure query for the update configuration. + * + */ +export interface NonAzureQueryProperties { + /** + * @member {string} [functionAlias] Log Analytics Saved Search name. + */ + functionAlias?: string; + /** + * @member {string} [workspaceId] Workspace Id for Log Analytics in which the + * saved Search is resided. + */ + workspaceId?: string; +} + +/** + * @interface + * An interface representing TargetProperties. + * Group specific to the update configuration. + * + */ +export interface TargetProperties { + /** + * @member {AzureQueryProperties[]} [azureQueries] List of Azure queries in + * the software update configuration. + */ + azureQueries?: AzureQueryProperties[]; + /** + * @member {NonAzureQueryProperties[]} [nonAzureQueries] List of non Azure + * queries in the software update configuration. + */ + nonAzureQueries?: NonAzureQueryProperties[]; +} + +/** + * @interface + * An interface representing UpdateConfiguration. + * Update specific properties of the software update configuration. + * + */ +export interface UpdateConfiguration { + /** + * @member {OperatingSystemType} operatingSystem operating system of target + * machines. Possible values include: 'Windows', 'Linux' + */ + operatingSystem: OperatingSystemType; + /** + * @member {WindowsProperties} [windows] Windows specific update + * configuration. + */ + windows?: WindowsProperties; + /** + * @member {LinuxProperties} [linux] Linux specific update configuration. + */ + linux?: LinuxProperties; + /** + * @member {string} [duration] 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; + /** + * @member {string[]} [azureVirtualMachines] List of azure resource Ids for + * azure virtual machines targeted by the software update configuration. + */ + azureVirtualMachines?: string[]; + /** + * @member {string[]} [nonAzureComputerNames] List of names of non-azure + * machines targeted by the software update configuration. + */ + nonAzureComputerNames?: string[]; + /** + * @member {TargetProperties} [targets] Group targets for the software update + * configuration. + */ + targets?: TargetProperties; +} + +/** + * @interface + * An interface representing TaskProperties. + * Task properties of the software update configuration. + * + */ +export interface TaskProperties { + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets the + * parameters of the task. + */ + parameters?: { [propertyName: string]: string }; + /** + * @member {string} [source] Gets or sets the name of the runbook. + */ + source?: string; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationTasks. + * Task properties of the software update configuration. + * + */ +export interface SoftwareUpdateConfigurationTasks { + /** + * @member {TaskProperties} [preTask] Pre task properties. + */ + preTask?: TaskProperties; + /** + * @member {TaskProperties} [postTask] Post task properties. + */ + postTask?: TaskProperties; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfiguration. + * Software update configuration properties. + * + * @extends BaseResource + */ +export interface SoftwareUpdateConfiguration extends BaseResource { + /** + * @member {string} [name] Resource name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [id] Resource Id. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {UpdateConfiguration} updateConfiguration update specific + * properties for the Software update configuration + */ + updateConfiguration: UpdateConfiguration; + /** + * @member {ScheduleProperties} scheduleInfo Schedule information for the + * Software update configuration + */ + scheduleInfo: ScheduleProperties; + /** + * @member {string} [provisioningState] 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; + /** + * @member {ErrorResponse} [error] Details of provisioning error + */ + error?: ErrorResponse; + /** + * @member {Date} [creationTime] 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; + /** + * @member {string} [createdBy] 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; + /** + * @member {Date} [lastModifiedTime] 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; + /** + * @member {string} [lastModifiedBy] 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; + /** + * @member {SoftwareUpdateConfigurationTasks} [tasks] Tasks information for + * the Software update configuration. + */ + tasks?: SoftwareUpdateConfigurationTasks; +} + +/** + * @interface + * An interface representing CollectionItemUpdateConfiguration. + * object returned when requesting a collection of software update + * configuration + * + */ +export interface CollectionItemUpdateConfiguration { + /** + * @member {string[]} [azureVirtualMachines] List of azure resource Ids for + * azure virtual machines targeted by the software update configuration. + */ + azureVirtualMachines?: string[]; + /** + * @member {string} [duration] 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; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationCollectionItem. + * Software update configuration collection item properties. + * + */ +export interface SoftwareUpdateConfigurationCollectionItem { + /** + * @member {string} [name] Name of the software update configuration. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [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; + /** + * @member {CollectionItemUpdateConfiguration} [updateConfiguration] Update + * specific properties of the software update configuration. + */ + updateConfiguration?: CollectionItemUpdateConfiguration; + /** + * @member {ScheduleFrequency} [frequency] execution frequency of the + * schedule associated with the software update configuration. Possible + * values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' + */ + frequency?: ScheduleFrequency; + /** + * @member {Date} [startTime] the start time of the update. + */ + startTime?: Date; + /** + * @member {Date} [creationTime] Creation time of the software update + * configuration, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] 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; + /** + * @member {string} [provisioningState] 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; + /** + * @member {Date} [nextRun] ext run time of the update. + */ + nextRun?: Date; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationListResult. + * result of listing all software update configuration + * + */ +export interface SoftwareUpdateConfigurationListResult { + /** + * @member {SoftwareUpdateConfigurationCollectionItem[]} [value] outer object + * returned when listing all software update configurations + */ + value?: SoftwareUpdateConfigurationCollectionItem[]; +} + +/** + * @interface + * An interface representing UpdateConfigurationNavigation. + * Software update configuration Run Navigation model. + * + */ +export interface UpdateConfigurationNavigation { + /** + * @member {string} [name] 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; +} + +/** + * @interface + * An interface representing SoftareUpdateConfigurationRunTaskProperties. + * Task properties of the software update configuration. + * + */ +export interface SoftareUpdateConfigurationRunTaskProperties { + /** + * @member {string} [status] The status of the task. + */ + status?: string; + /** + * @member {string} [source] The name of the source of the task. + */ + source?: string; + /** + * @member {string} [jobId] The job id of the task. + */ + jobId?: string; +} + +/** + * @interface + * An interface representing SoftareUpdateConfigurationRunTasks. + * Software update configuration run tasks model. + * + */ +export interface SoftareUpdateConfigurationRunTasks { + /** + * @member {SoftareUpdateConfigurationRunTaskProperties} [preTask] Pre task + * properties. + */ + preTask?: SoftareUpdateConfigurationRunTaskProperties; + /** + * @member {SoftareUpdateConfigurationRunTaskProperties} [postTask] Post task + * properties. + */ + postTask?: SoftareUpdateConfigurationRunTaskProperties; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationRun. + * Software update configuration Run properties. + * + */ +export interface SoftwareUpdateConfigurationRun { + /** + * @member {string} [name] Name of the software update configuration run. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [id] Resource Id of the software update configuration run + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {UpdateConfigurationNavigation} [softwareUpdateConfiguration] + * software update configuration triggered this run + */ + softwareUpdateConfiguration?: UpdateConfigurationNavigation; + /** + * @member {string} [status] Status of the software update configuration run. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: string; + /** + * @member {string} [configuredDuration] 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; + /** + * @member {string} [osType] 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; + /** + * @member {Date} [startTime] Start time of the software update configuration + * run. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startTime?: Date; + /** + * @member {Date} [endTime] End time of the software update configuration + * run. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly endTime?: Date; + /** + * @member {number} [computerCount] Number of computers in the software + * update configuration run. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly computerCount?: number; + /** + * @member {number} [failedCount] Number of computers with failed status. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly failedCount?: number; + /** + * @member {Date} [creationTime] 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; + /** + * @member {string} [createdBy] 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; + /** + * @member {Date} [lastModifiedTime] 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; + /** + * @member {string} [lastModifiedBy] 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; + /** + * @member {SoftareUpdateConfigurationRunTasks} [tasks] Software update + * configuration tasks triggered in this run + */ + tasks?: SoftareUpdateConfigurationRunTasks; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationRunListResult. + * result of listing all software update configuration runs + * + */ +export interface SoftwareUpdateConfigurationRunListResult { + /** + * @member {SoftwareUpdateConfigurationRun[]} [value] outer object returned + * when listing all software update configuration runs + */ + value?: SoftwareUpdateConfigurationRun[]; + /** + * @member {string} [nextLink] link to next page of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing JobNavigation. + * Software update configuration machine run job navigation properties. + * + */ +export interface JobNavigation { + /** + * @member {string} [id] 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; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationMachineRun. + * Software update configuration machine run model. + * + */ +export interface SoftwareUpdateConfigurationMachineRun { + /** + * @member {string} [name] 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; + /** + * @member {string} [id] 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; + /** + * @member {string} [targetComputer] name of the updated computer + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly targetComputer?: string; + /** + * @member {string} [targetComputerType] type of the updated computer. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly targetComputerType?: string; + /** + * @member {UpdateConfigurationNavigation} [softwareUpdateConfiguration] + * software update configuration triggered this run + */ + softwareUpdateConfiguration?: UpdateConfigurationNavigation; + /** + * @member {string} [status] 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; + /** + * @member {string} [osType] 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; + /** + * @member {string} [correlationId] 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; + /** + * @member {string} [sourceComputerId] 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; + /** + * @member {Date} [startTime] 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; + /** + * @member {Date} [endTime] 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; + /** + * @member {string} [configuredDuration] 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; + /** + * @member {JobNavigation} [job] Job associated with the software update + * configuration machine run + */ + job?: JobNavigation; + /** + * @member {Date} [creationTime] 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; + /** + * @member {string} [createdBy] 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; + /** + * @member {Date} [lastModifiedTime] 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; + /** + * @member {string} [lastModifiedBy] 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; + /** + * @member {ErrorResponse} [error] Details of provisioning error + */ + error?: ErrorResponse; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationMachineRunListResult. + * result of listing all software update configuration machine runs + * + */ +export interface SoftwareUpdateConfigurationMachineRunListResult { + /** + * @member {SoftwareUpdateConfigurationMachineRun[]} [value] outer object + * returned when listing all software update configuration machine runs + */ + value?: SoftwareUpdateConfigurationMachineRun[]; + /** + * @member {string} [nextLink] link to next page of results. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing SourceControl. + * Definition of the source control. + * + * @extends ProxyResource + */ +export interface SourceControl extends ProxyResource { + /** + * @member {string} [repoUrl] The repo url of the source control. + */ + repoUrl?: string; + /** + * @member {string} [branch] The repo branch of the source control. Include + * branch as empty string for VsoTfvc. + */ + branch?: string; + /** + * @member {string} [folderPath] The folder path of the source control. + */ + folderPath?: string; + /** + * @member {boolean} [autoSync] The auto sync of the source control. Default + * is false. + */ + autoSync?: boolean; + /** + * @member {boolean} [publishRunbook] The auto publish of the source control. + * Default is true. + */ + publishRunbook?: boolean; + /** + * @member {SourceType} [sourceType] The source type. Must be one of VsoGit, + * VsoTfvc, GitHub. Possible values include: 'VsoGit', 'VsoTfvc', 'GitHub' + */ + sourceType?: SourceType; + /** + * @member {string} [description] The description. + */ + description?: string; + /** + * @member {Date} [creationTime] The creation time. + */ + creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] The last modified time. + */ + lastModifiedTime?: Date; +} + +/** + * @interface + * An interface representing SourceControlSecurityTokenProperties. + */ +export interface SourceControlSecurityTokenProperties { + /** + * @member {string} [accessToken] The access token. + */ + accessToken?: string; + /** + * @member {string} [refreshToken] The refresh token. + */ + refreshToken?: string; + /** + * @member {TokenType} [tokenType] The token type. Must be either + * PersonalAccessToken or Oauth. Possible values include: + * 'PersonalAccessToken', 'Oauth' + */ + tokenType?: TokenType; +} + +/** + * @interface + * An interface representing SourceControlUpdateParameters. + * The parameters supplied to the update source control operation. + * + */ +export interface SourceControlUpdateParameters { + /** + * @member {string} [branch] The repo branch of the source control. + */ + branch?: string; + /** + * @member {string} [folderPath] The folder path of the source control. Path + * must be relative. + */ + folderPath?: string; + /** + * @member {boolean} [autoSync] The auto sync of the source control. Default + * is false. + */ + autoSync?: boolean; + /** + * @member {boolean} [publishRunbook] The auto publish of the source control. + * Default is true. + */ + publishRunbook?: boolean; + /** + * @member {SourceControlSecurityTokenProperties} [securityToken] The + * authorization token for the repo of the source control. + */ + securityToken?: SourceControlSecurityTokenProperties; + /** + * @member {string} [description] The user description of the source control. + */ + description?: string; +} + +/** + * @interface + * An interface representing SourceControlCreateOrUpdateParameters. + * The parameters supplied to the create or update source control operation. + * + */ +export interface SourceControlCreateOrUpdateParameters { + /** + * @member {string} [repoUrl] The repo url of the source control. + */ + repoUrl?: string; + /** + * @member {string} [branch] The repo branch of the source control. Include + * branch as empty string for VsoTfvc. + */ + branch?: string; + /** + * @member {string} [folderPath] The folder path of the source control. Path + * must be relative. + */ + folderPath?: string; + /** + * @member {boolean} [autoSync] The auto async of the source control. Default + * is false. + */ + autoSync?: boolean; + /** + * @member {boolean} [publishRunbook] The auto publish of the source control. + * Default is true. + */ + publishRunbook?: boolean; + /** + * @member {SourceType} [sourceType] The source type. Must be one of VsoGit, + * VsoTfvc, GitHub, case sensitive. Possible values include: 'VsoGit', + * 'VsoTfvc', 'GitHub' + */ + sourceType?: SourceType; + /** + * @member {SourceControlSecurityTokenProperties} [securityToken] The + * authorization token for the repo of the source control. + */ + securityToken?: SourceControlSecurityTokenProperties; + /** + * @member {string} [description] The user description of the source control. + */ + description?: string; +} + +/** + * @interface + * An interface representing SourceControlSyncJob. + * Definition of the source control sync job. + * + */ +export interface SourceControlSyncJob { + /** + * @member {string} [name] Resource name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [id] Resource id. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [sourceControlSyncJobId] The source control sync job id. + */ + sourceControlSyncJobId?: string; + /** + * @member {Date} [creationTime] The creation time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {ProvisioningState} [provisioningState] The provisioning state of + * the job. Possible values include: 'Completed', 'Failed', 'Running' + */ + provisioningState?: ProvisioningState; + /** + * @member {Date} [startTime] The start time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startTime?: Date; + /** + * @member {Date} [endTime] The end time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly endTime?: Date; + /** + * @member {SyncType} [syncType] The sync type. Possible values include: + * 'PartialSync', 'FullSync' + */ + syncType?: SyncType; +} + +/** + * @interface + * An interface representing SourceControlSyncJobCreateParameters. + * The parameters supplied to the create source control sync job operation. + * + */ +export interface SourceControlSyncJobCreateParameters { + /** + * @member {string} commitId The commit id of the source control sync job. If + * not syncing to a commitId, enter an empty string. + */ + commitId: string; +} + +/** + * @interface + * An interface representing SourceControlSyncJobById. + * Definition of the source control sync job. + * + */ +export interface SourceControlSyncJobById { + /** + * @member {string} [id] The id of the job. + */ + id?: string; + /** + * @member {string} [sourceControlSyncJobId] The source control sync job id. + */ + sourceControlSyncJobId?: string; + /** + * @member {Date} [creationTime] The creation time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {ProvisioningState} [provisioningState] The provisioning state of + * the job. Possible values include: 'Completed', 'Failed', 'Running' + */ + provisioningState?: ProvisioningState; + /** + * @member {Date} [startTime] The start time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startTime?: Date; + /** + * @member {Date} [endTime] The end time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly endTime?: Date; + /** + * @member {SyncType} [syncType] The sync type. Possible values include: + * 'PartialSync', 'FullSync' + */ + syncType?: SyncType; + /** + * @member {string} [exception] The exceptions that occurred while running + * the sync job. + */ + exception?: string; +} + +/** + * @interface + * An interface representing SourceControlSyncJobStream. + * Definition of the source control sync job stream. + * + */ +export interface SourceControlSyncJobStream { + /** + * @member {string} [id] Resource id. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [sourceControlSyncJobStreamId] The sync job stream id. + */ + sourceControlSyncJobStreamId?: string; + /** + * @member {string} [summary] The summary of the sync job stream. + */ + summary?: string; + /** + * @member {Date} [time] 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; + /** + * @member {StreamType} [streamType] The type of the sync job stream. + * Possible values include: 'Error', 'Output' + */ + streamType?: StreamType; +} + +/** + * @interface + * An interface representing SourceControlSyncJobStreamById. + * Definition of the source control sync job stream by id. + * + */ +export interface SourceControlSyncJobStreamById { + /** + * @member {string} [id] Resource id. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [sourceControlSyncJobStreamId] The sync job stream id. + */ + sourceControlSyncJobStreamId?: string; + /** + * @member {string} [summary] The summary of the sync job stream. + */ + summary?: string; + /** + * @member {Date} [time] 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; + /** + * @member {StreamType} [streamType] The type of the sync job stream. + * Possible values include: 'Error', 'Output' + */ + streamType?: StreamType; + /** + * @member {string} [streamText] The text of the sync job stream. + */ + streamText?: string; + /** + * @member {{ [propertyName: string]: any }} [value] The values of the job + * stream. + */ + value?: { [propertyName: string]: any }; +} + +/** + * @interface + * An interface representing JobStream. + * Definition of the job stream. + * + */ +export interface JobStream { + /** + * @member {string} [id] Gets or sets the id of the resource. + */ + id?: string; + /** + * @member {string} [jobStreamId] Gets or sets the id of the job stream. + */ + jobStreamId?: string; + /** + * @member {Date} [time] Gets or sets the creation time of the job. + */ + time?: Date; + /** + * @member {JobStreamType} [streamType] Gets or sets the stream type. + * Possible values include: 'Progress', 'Output', 'Warning', 'Error', + * 'Debug', 'Verbose', 'Any' + */ + streamType?: JobStreamType; + /** + * @member {string} [streamText] Gets or sets the stream text. + */ + streamText?: string; + /** + * @member {string} [summary] Gets or sets the summary. + */ + summary?: string; + /** + * @member {{ [propertyName: string]: any }} [value] Gets or sets the values + * of the job stream. + */ + value?: { [propertyName: string]: any }; +} + +/** + * @interface + * An interface representing Job. + * Definition of the job. + * + * @extends ProxyResource + */ +export interface Job extends ProxyResource { + /** + * @member {RunbookAssociationProperty} [runbook] Gets or sets the runbook. + */ + runbook?: RunbookAssociationProperty; + /** + * @member {string} [startedBy] Gets or sets the job started by. + */ + startedBy?: string; + /** + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. + */ + runOn?: string; + /** + * @member {string} [jobId] Gets or sets the id of the job. + */ + jobId?: string; + /** + * @member {Date} [creationTime] Gets or sets the creation time of the job. + */ + creationTime?: Date; + /** + * @member {JobStatus} [status] Gets or sets the status of the job. Possible + * values include: 'New', 'Activating', 'Running', 'Completed', 'Failed', + * 'Stopped', 'Blocked', 'Suspended', 'Disconnected', 'Suspending', + * 'Stopping', 'Resuming', 'Removing' + */ + status?: JobStatus; + /** + * @member {string} [statusDetails] Gets or sets the status details of the + * job. + */ + statusDetails?: string; + /** + * @member {Date} [startTime] Gets or sets the start time of the job. + */ + startTime?: Date; + /** + * @member {Date} [endTime] Gets or sets the end time of the job. + */ + endTime?: Date; + /** + * @member {string} [exception] Gets or sets the exception of the job. + */ + exception?: string; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time of + * the job. + */ + lastModifiedTime?: Date; + /** + * @member {Date} [lastStatusModifiedTime] Gets or sets the last status + * modified time of the job. + */ + lastStatusModifiedTime?: Date; + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets the + * parameters of the job. + */ + parameters?: { [propertyName: string]: string }; + /** + * @member {JobProvisioningState} [provisioningState] The current + * provisioning state of the job. Possible values include: 'Failed', + * 'Succeeded', 'Suspended', 'Processing' + */ + provisioningState?: JobProvisioningState; +} + +/** + * @interface + * An interface representing JobCollectionItem. + * Job collection item properties. + * + * @extends ProxyResource + */ +export interface JobCollectionItem extends ProxyResource { + /** + * @member {RunbookAssociationProperty} [runbook] The runbook association. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly runbook?: RunbookAssociationProperty; + /** + * @member {string} [jobId] The id of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly jobId?: string; + /** + * @member {Date} [creationTime] The creation time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {JobStatus} [status] The status of the job. Possible values + * include: 'New', 'Activating', 'Running', 'Completed', 'Failed', 'Stopped', + * 'Blocked', 'Suspended', 'Disconnected', 'Suspending', 'Stopping', + * 'Resuming', 'Removing' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly status?: JobStatus; + /** + * @member {Date} [startTime] The start time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startTime?: Date; + /** + * @member {Date} [endTime] The end time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly endTime?: Date; + /** + * @member {Date} [lastModifiedTime] The last modified time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTime?: Date; + /** + * @member {string} [provisioningState] The provisioning state of a resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; + /** + * @member {string} [runOn] Specifies the runOn group name where the job was + * executed. + */ + runOn?: string; +} + +/** + * @interface + * An interface representing JobCreateParameters. + * The parameters supplied to the create job operation. + * + */ +export interface JobCreateParameters { + /** + * @member {RunbookAssociationProperty} [runbook] Gets or sets the runbook. + */ + runbook?: RunbookAssociationProperty; + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets the + * parameters of the job. + */ + parameters?: { [propertyName: string]: string }; + /** + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. + */ + runOn?: string; +} + +/** + * @interface + * An interface representing DscReportError. + * Definition of the dsc node report error type. + * + */ +export interface DscReportError { + /** + * @member {string} [errorSource] Gets or sets the source of the error. + */ + errorSource?: string; + /** + * @member {string} [resourceId] Gets or sets the resource ID which generated + * the error. + */ + resourceId?: string; + /** + * @member {string} [errorCode] Gets or sets the error code. + */ + errorCode?: string; + /** + * @member {string} [errorMessage] Gets or sets the error message. + */ + errorMessage?: string; + /** + * @member {string} [locale] Gets or sets the locale of the error. + */ + locale?: string; + /** + * @member {string} [errorDetails] Gets or sets the error details. + */ + errorDetails?: string; +} + +/** + * @interface + * An interface representing DscReportResourceNavigation. + * Navigation for DSC Report Resource. + * + */ +export interface DscReportResourceNavigation { + /** + * @member {string} [resourceId] Gets or sets the ID of the resource to + * navigate to. + */ + resourceId?: string; +} + +/** + * @interface + * An interface representing DscReportResource. + * Definition of the DSC Report Resource. + * + */ +export interface DscReportResource { + /** + * @member {string} [resourceId] Gets or sets the ID of the resource. + */ + resourceId?: string; + /** + * @member {string} [sourceInfo] Gets or sets the source info of the + * resource. + */ + sourceInfo?: string; + /** + * @member {DscReportResourceNavigation[]} [dependsOn] Gets or sets the + * Resource Navigation values for resources the resource depends on. + */ + dependsOn?: DscReportResourceNavigation[]; + /** + * @member {string} [moduleName] Gets or sets the module name of the + * resource. + */ + moduleName?: string; + /** + * @member {string} [moduleVersion] Gets or sets the module version of the + * resource. + */ + moduleVersion?: string; + /** + * @member {string} [resourceName] Gets or sets the name of the resource. + */ + resourceName?: string; + /** + * @member {string} [error] Gets or sets the error of the resource. + */ + error?: string; + /** + * @member {string} [status] Gets or sets the status of the resource. + */ + status?: string; + /** + * @member {number} [durationInSeconds] Gets or sets the duration in seconds + * for the resource. + */ + durationInSeconds?: number; + /** + * @member {Date} [startDate] Gets or sets the start date of the resource. + */ + startDate?: Date; +} + +/** + * @interface + * An interface representing DscMetaConfiguration. + * Definition of the DSC Meta Configuration. + * + */ +export interface DscMetaConfiguration { + /** + * @member {number} [configurationModeFrequencyMins] Gets or sets the + * ConfigurationModeFrequencyMins value of the meta configuration. + */ + configurationModeFrequencyMins?: number; + /** + * @member {boolean} [rebootNodeIfNeeded] Gets or sets the RebootNodeIfNeeded + * value of the meta configuration. + */ + rebootNodeIfNeeded?: boolean; + /** + * @member {string} [configurationMode] Gets or sets the ConfigurationMode + * value of the meta configuration. + */ + configurationMode?: string; + /** + * @member {string} [actionAfterReboot] Gets or sets the ActionAfterReboot + * value of the meta configuration. + */ + actionAfterReboot?: string; + /** + * @member {string} [certificateId] Gets or sets the CertificateId value of + * the meta configuration. + */ + certificateId?: string; + /** + * @member {number} [refreshFrequencyMins] Gets or sets the + * RefreshFrequencyMins value of the meta configuration. + */ + refreshFrequencyMins?: number; + /** + * @member {boolean} [allowModuleOverwrite] Gets or sets the + * AllowModuleOverwrite value of the meta configuration. + */ + allowModuleOverwrite?: boolean; +} + +/** + * @interface + * An interface representing DscNodeReport. + * Definition of the dsc node report type. + * + */ +export interface DscNodeReport { + /** + * @member {Date} [endTime] Gets or sets the end time of the node report. + */ + endTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the lastModifiedTime of the + * node report. + */ + lastModifiedTime?: Date; + /** + * @member {Date} [startTime] Gets or sets the start time of the node report. + */ + startTime?: Date; + /** + * @member {string} [type] Gets or sets the type of the node report. + */ + type?: string; + /** + * @member {string} [reportId] Gets or sets the id of the node report. + */ + reportId?: string; + /** + * @member {string} [status] Gets or sets the status of the node report. + */ + status?: string; + /** + * @member {string} [refreshMode] Gets or sets the refreshMode of the node + * report. + */ + refreshMode?: string; + /** + * @member {string} [rebootRequested] Gets or sets the rebootRequested of the + * node report. + */ + rebootRequested?: string; + /** + * @member {string} [reportFormatVersion] Gets or sets the + * reportFormatVersion of the node report. + */ + reportFormatVersion?: string; + /** + * @member {string} [configurationVersion] Gets or sets the + * configurationVersion of the node report. + */ + configurationVersion?: string; + /** + * @member {string} [id] Gets or sets the id. + */ + id?: string; + /** + * @member {DscReportError[]} [errors] Gets or sets the errors for the node + * report. + */ + errors?: DscReportError[]; + /** + * @member {DscReportResource[]} [resources] Gets or sets the resource for + * the node report. + */ + resources?: DscReportResource[]; + /** + * @member {DscMetaConfiguration} [metaConfiguration] Gets or sets the + * metaConfiguration of the node at the time of the report. + */ + metaConfiguration?: DscMetaConfiguration; + /** + * @member {string} [hostName] Gets or sets the hostname of the node that + * sent the report. + */ + hostName?: string; + /** + * @member {string[]} [iPV4Addresses] Gets or sets the IPv4 address of the + * node that sent the report. + */ + iPV4Addresses?: string[]; + /** + * @member {string[]} [iPV6Addresses] Gets or sets the IPv6 address of the + * node that sent the report. + */ + iPV6Addresses?: string[]; + /** + * @member {number} [numberOfResources] Gets or sets the number of resource + * in the node report. + */ + numberOfResources?: number; + /** + * @member {string} [rawErrors] Gets or sets the unparsed errors for the node + * report. + */ + rawErrors?: string; +} + +/** + * @interface + * An interface representing AgentRegistrationKeys. + * Definition of the agent registration keys. + * + */ +export interface AgentRegistrationKeys { + /** + * @member {string} [primary] Gets or sets the primary key. + */ + primary?: string; + /** + * @member {string} [secondary] Gets or sets the secondary key. + */ + secondary?: string; +} + +/** + * @interface + * An interface representing AgentRegistration. + * Definition of the agent registration information type. + * + */ +export interface AgentRegistration { + /** + * @member {string} [dscMetaConfiguration] Gets or sets the dsc meta + * configuration. + */ + dscMetaConfiguration?: string; + /** + * @member {string} [endpoint] Gets or sets the dsc server endpoint. + */ + endpoint?: string; + /** + * @member {AgentRegistrationKeys} [keys] Gets or sets the agent registration + * keys. + */ + keys?: AgentRegistrationKeys; + /** + * @member {string} [id] Gets or sets the id. + */ + id?: string; +} + +/** + * @interface + * An interface representing DscNodeExtensionHandlerAssociationProperty. + * The dsc extensionHandler property associated with the node + * + */ +export interface DscNodeExtensionHandlerAssociationProperty { + /** + * @member {string} [name] Gets or sets the name of the extension handler. + */ + name?: string; + /** + * @member {string} [version] Gets or sets the version of the extension + * handler. + */ + version?: string; +} + +/** + * @interface + * An interface representing DscNode. + * Definition of a DscNode + * + * @extends ProxyResource + */ +export interface DscNode extends ProxyResource { + /** + * @member {Date} [lastSeen] Gets or sets the last seen time of the node. + */ + lastSeen?: Date; + /** + * @member {Date} [registrationTime] Gets or sets the registration time of + * the node. + */ + registrationTime?: Date; + /** + * @member {string} [ip] Gets or sets the ip of the node. + */ + ip?: string; + /** + * @member {string} [accountId] Gets or sets the account id of the node. + */ + accountId?: string; + /** + * @member {string} [dscNodeName] Gets or sets the name of the dsc node + * configuration. + */ + dscNodeName?: string; + /** + * @member {string} [status] Gets or sets the status of the node. + */ + status?: string; + /** + * @member {string} [nodeId] Gets or sets the node id. + */ + nodeId?: string; + /** + * @member {string} [etag] Gets or sets the etag of the resource. + */ + etag?: string; + /** + * @member {number} [totalCount] Gets the total number of records matching + * filter criteria. + */ + totalCount?: number; + /** + * @member {DscNodeExtensionHandlerAssociationProperty[]} [extensionHandler] + * Gets or sets the list of extensionHandler properties for a Node. + */ + extensionHandler?: DscNodeExtensionHandlerAssociationProperty[]; +} + +/** + * @interface + * An interface representing AgentRegistrationRegenerateKeyParameter. + * The parameters supplied to the regenerate keys operation. + * + */ +export interface AgentRegistrationRegenerateKeyParameter { + /** + * @member {AgentRegistrationKeyName} keyName Gets or sets the agent + * registration key name - primary or secondary. Possible values include: + * 'primary', 'secondary' + */ + keyName: AgentRegistrationKeyName; +} + +/** + * @interface + * An interface representing DscNodeUpdateParametersProperties. + */ +export interface DscNodeUpdateParametersProperties { + /** + * @member {string} [name] Gets or sets the name of the dsc node + * configuration. + */ + name?: string; +} + +/** + * @interface + * An interface representing DscNodeUpdateParameters. + * The parameters supplied to the update dsc node operation. + * + */ +export interface DscNodeUpdateParameters { + /** + * @member {string} [nodeId] Gets or sets the id of the dsc node. + */ + nodeId?: string; + /** + * @member {DscNodeUpdateParametersProperties} [properties] + */ + properties?: DscNodeUpdateParametersProperties; +} + +/** + * @interface + * An interface representing DscConfigurationAssociationProperty. + * The Dsc configuration property associated with the entity. + * + */ +export interface DscConfigurationAssociationProperty { + /** + * @member {string} [name] Gets or sets the name of the Dsc configuration. + */ + name?: string; +} + +/** + * @interface + * An interface representing DscCompilationJob. + * Definition of the Dsc Compilation job. + * + * @extends ProxyResource + */ +export interface DscCompilationJob extends ProxyResource { + /** + * @member {DscConfigurationAssociationProperty} [configuration] Gets or sets + * the configuration. + */ + configuration?: DscConfigurationAssociationProperty; + /** + * @member {string} [startedBy] Gets the compilation job started by. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startedBy?: string; + /** + * @member {string} [jobId] Gets the id of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly jobId?: string; + /** + * @member {Date} [creationTime] Gets the creation time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; + /** + * @member {JobProvisioningState} [provisioningState] The current + * provisioning state of the job. Possible values include: 'Failed', + * 'Succeeded', 'Suspended', 'Processing' + */ + provisioningState?: JobProvisioningState; + /** + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. + */ + runOn?: string; + /** + * @member {JobStatus} [status] Gets or sets the status of the job. Possible + * values include: 'New', 'Activating', 'Running', 'Completed', 'Failed', + * 'Stopped', 'Blocked', 'Suspended', 'Disconnected', 'Suspending', + * 'Stopping', 'Resuming', 'Removing' + */ + status?: JobStatus; + /** + * @member {string} [statusDetails] Gets or sets the status details of the + * job. + */ + statusDetails?: string; + /** + * @member {Date} [startTime] Gets the start time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startTime?: Date; + /** + * @member {Date} [endTime] Gets the end time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly endTime?: Date; + /** + * @member {string} [exception] Gets the exception of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly exception?: string; + /** + * @member {Date} [lastModifiedTime] Gets the last modified time of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastModifiedTime?: Date; + /** + * @member {Date} [lastStatusModifiedTime] Gets the last status modified time + * of the job. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastStatusModifiedTime?: Date; + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets the + * parameters of the job. + */ + parameters?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing DscCompilationJobCreateParameters. + * The parameters supplied to the create compilation job operation. + * + */ +export interface DscCompilationJobCreateParameters { + /** + * @member {DscConfigurationAssociationProperty} configuration Gets or sets + * the configuration. + */ + configuration: DscConfigurationAssociationProperty; + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets the + * parameters of the job. + */ + parameters?: { [propertyName: string]: string }; + /** + * @member {boolean} [incrementNodeConfigurationBuild] If a new build version + * of NodeConfiguration is required. + */ + incrementNodeConfigurationBuild?: boolean; + /** + * @member {string} [name] Gets or sets name of the resource. + */ + name?: string; + /** + * @member {string} [location] Gets or sets the location of the resource. + */ + location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing DscNodeConfiguration. + * Definition of the dsc node configuration. + * + * @extends ProxyResource + */ +export interface DscNodeConfiguration extends ProxyResource { + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + */ + lastModifiedTime?: Date; + /** + * @member {Date} [creationTime] Gets or sets creation time. + */ + creationTime?: Date; + /** + * @member {DscConfigurationAssociationProperty} [configuration] Gets or sets + * the configuration of the node. + */ + configuration?: DscConfigurationAssociationProperty; + /** + * @member {string} [source] Source of node configuration. + */ + source?: string; + /** + * @member {number} [nodeCount] Number of nodes with this node configuration + * assigned + */ + nodeCount?: number; + /** + * @member {boolean} [incrementNodeConfigurationBuild] If a new build version + * of NodeConfiguration is required. + */ + incrementNodeConfigurationBuild?: boolean; +} + +/** + * @interface + * An interface representing DscNodeConfigurationCreateOrUpdateParameters. + * The parameters supplied to the create or update node configuration + * operation. + * + */ +export interface DscNodeConfigurationCreateOrUpdateParameters { + /** + * @member {ContentSource} source Gets or sets the source. + */ + source: ContentSource; + /** + * @member {DscConfigurationAssociationProperty} configuration Gets or sets + * the configuration of the node. + */ + configuration: DscConfigurationAssociationProperty; + /** + * @member {boolean} [incrementNodeConfigurationBuild] If a new build version + * of NodeConfiguration is required. + */ + incrementNodeConfigurationBuild?: boolean; + /** + * @member {string} [name] Name of the node configuration. + */ + name?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing NodeCountProperties. + */ +export interface NodeCountProperties { + /** + * @member {number} [count] Gets the count for the name + */ + count?: number; +} + +/** + * @interface + * An interface representing NodeCount. + * Number of nodes based on the Filter + * + */ +export interface NodeCount { + /** + * @member {string} [name] Gets the name of a count type + */ + name?: string; + /** + * @member {NodeCountProperties} [properties] + */ + properties?: NodeCountProperties; +} + +/** + * @interface + * An interface representing NodeCounts. + * Gets the count of nodes by count type + * + */ +export interface NodeCounts { + /** + * @member {NodeCount[]} [value] Gets an array of counts + */ + value?: NodeCount[]; + /** + * @member {number} [totalCount] Gets the total number of records matching + * countType criteria. + */ + totalCount?: number; +} + +/** + * @interface + * An interface representing RunbookParameter. + * Definition of the runbook parameter type. + * + */ +export interface RunbookParameter { + /** + * @member {string} [type] Gets or sets the type of the parameter. + */ + type?: string; + /** + * @member {boolean} [isMandatory] Gets or sets a Boolean value to indicate + * whether the parameter is mandatory or not. + */ + isMandatory?: boolean; + /** + * @member {number} [position] Get or sets the position of the parameter. + */ + position?: number; + /** + * @member {string} [defaultValue] Gets or sets the default value of + * parameter. + */ + defaultValue?: string; +} + +/** + * @interface + * An interface representing RunbookDraft. + */ +export interface RunbookDraft { + /** + * @member {boolean} [inEdit] Gets or sets whether runbook is in edit mode. + */ + inEdit?: boolean; + /** + * @member {ContentLink} [draftContentLink] Gets or sets the draft runbook + * content link. + */ + draftContentLink?: ContentLink; + /** + * @member {Date} [creationTime] Gets or sets the creation time of the + * runbook draft. + */ + creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time of + * the runbook draft. + */ + lastModifiedTime?: Date; + /** + * @member {{ [propertyName: string]: RunbookParameter }} [parameters] Gets + * or sets the runbook draft parameters. + */ + parameters?: { [propertyName: string]: RunbookParameter }; + /** + * @member {string[]} [outputTypes] Gets or sets the runbook output types. + */ + outputTypes?: string[]; +} + +/** + * @interface + * An interface representing Runbook. + * Definition of the runbook type. + * + * @extends TrackedResource + */ +export interface Runbook extends TrackedResource { + /** + * @member {RunbookTypeEnum} [runbookType] Gets or sets the type of the + * runbook. Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', + * 'PowerShell', 'GraphPowerShellWorkflow', 'GraphPowerShell' + */ + runbookType?: RunbookTypeEnum; + /** + * @member {ContentLink} [publishContentLink] Gets or sets the published + * runbook content link. + */ + publishContentLink?: ContentLink; + /** + * @member {RunbookState} [state] Gets or sets the state of the runbook. + * Possible values include: 'New', 'Edit', 'Published' + */ + state?: RunbookState; + /** + * @member {boolean} [logVerbose] Gets or sets verbose log option. + */ + logVerbose?: boolean; + /** + * @member {boolean} [logProgress] Gets or sets progress log option. + */ + logProgress?: boolean; + /** + * @member {number} [logActivityTrace] Gets or sets the option to log + * activity trace of the runbook. + */ + logActivityTrace?: number; + /** + * @member {number} [jobCount] Gets or sets the job count of the runbook. + */ + jobCount?: number; + /** + * @member {{ [propertyName: string]: RunbookParameter }} [parameters] Gets + * or sets the runbook parameters. + */ + parameters?: { [propertyName: string]: RunbookParameter }; + /** + * @member {string[]} [outputTypes] Gets or sets the runbook output types. + */ + outputTypes?: string[]; + /** + * @member {RunbookDraft} [draft] Gets or sets the draft runbook properties. + */ + draft?: RunbookDraft; + /** + * @member {RunbookProvisioningState} [provisioningState] Gets or sets the + * provisioning state of the runbook. Possible values include: 'Succeeded' + */ + provisioningState?: RunbookProvisioningState; + /** + * @member {string} [lastModifiedBy] Gets or sets the last modified by. + */ + lastModifiedBy?: string; + /** + * @member {Date} [creationTime] Gets or sets the creation time. + */ + creationTime?: Date; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time. + */ + lastModifiedTime?: Date; + /** + * @member {string} [description] Gets or sets the description. + */ + description?: string; + /** + * @member {string} [etag] Gets or sets the etag of the resource. + */ + etag?: string; +} + +/** + * @interface + * An interface representing RunbookCreateOrUpdateParameters. + * The parameters supplied to the create or update runbook operation. + * + */ +export interface RunbookCreateOrUpdateParameters { + /** + * @member {boolean} [logVerbose] Gets or sets verbose log option. + */ + logVerbose?: boolean; + /** + * @member {boolean} [logProgress] Gets or sets progress log option. + */ + logProgress?: boolean; + /** + * @member {RunbookTypeEnum} runbookType Gets or sets the type of the + * runbook. Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', + * 'PowerShell', 'GraphPowerShellWorkflow', 'GraphPowerShell' + */ + runbookType: RunbookTypeEnum; + /** + * @member {RunbookDraft} [draft] Gets or sets the draft runbook properties. + */ + draft?: RunbookDraft; + /** + * @member {ContentLink} [publishContentLink] Gets or sets the published + * runbook content link. + */ + publishContentLink?: ContentLink; + /** + * @member {string} [description] Gets or sets the description of the + * runbook. + */ + description?: string; + /** + * @member {number} [logActivityTrace] Gets or sets the activity-level + * tracing options of the runbook. + */ + logActivityTrace?: number; + /** + * @member {string} [name] Gets or sets the name of the resource. + */ + name?: string; + /** + * @member {string} [location] Gets or sets the location of the resource. + */ + location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing RunbookUpdateParameters. + * The parameters supplied to the update runbook operation. + * + */ +export interface RunbookUpdateParameters { + /** + * @member {string} [description] Gets or sets the description of the + * runbook. + */ + description?: string; + /** + * @member {boolean} [logVerbose] Gets or sets verbose log option. + */ + logVerbose?: boolean; + /** + * @member {boolean} [logProgress] Gets or sets progress log option. + */ + logProgress?: boolean; + /** + * @member {number} [logActivityTrace] Gets or sets the activity-level + * tracing options of the runbook. + */ + logActivityTrace?: number; + /** + * @member {string} [name] Gets or sets the name of the resource. + */ + name?: string; + /** + * @member {string} [location] Gets or sets the location of the resource. + */ + location?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing RunbookDraftUndoEditResult. + * The response model for the undo edit runbook operation. + * + */ +export interface RunbookDraftUndoEditResult { + /** + * @member {HttpStatusCode} [statusCode] Possible values include: 'Continue', + * 'SwitchingProtocols', 'OK', 'Created', 'Accepted', + * 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', + * 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', + * 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', + * 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', + * 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', + * 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', + * 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', + * 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', + * 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', + * 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', + * 'HttpVersionNotSupported' + */ + statusCode?: HttpStatusCode; + /** + * @member {string} [requestId] + */ + requestId?: string; +} + +/** + * @interface + * An interface representing TestJobCreateParameters. + * The parameters supplied to the create test job operation. + * + */ +export interface TestJobCreateParameters { + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets the + * parameters of the test job. + */ + parameters?: { [propertyName: string]: string }; + /** + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. + */ + runOn?: string; +} + +/** + * @interface + * An interface representing TestJob. + * Definition of the test job. + * + */ +export interface TestJob { + /** + * @member {Date} [creationTime] Gets or sets the creation time of the test + * job. + */ + creationTime?: Date; + /** + * @member {string} [status] Gets or sets the status of the test job. + */ + status?: string; + /** + * @member {string} [statusDetails] Gets or sets the status details of the + * test job. + */ + statusDetails?: string; + /** + * @member {string} [runOn] Gets or sets the runOn which specifies the group + * name where the job is to be executed. + */ + runOn?: string; + /** + * @member {Date} [startTime] Gets or sets the start time of the test job. + */ + startTime?: Date; + /** + * @member {Date} [endTime] Gets or sets the end time of the test job. + */ + endTime?: Date; + /** + * @member {string} [exception] Gets or sets the exception of the test job. + */ + exception?: string; + /** + * @member {Date} [lastModifiedTime] Gets or sets the last modified time of + * the test job. + */ + lastModifiedTime?: Date; + /** + * @member {Date} [lastStatusModifiedTime] Gets or sets the last status + * modified time of the test job. + */ + lastStatusModifiedTime?: Date; + /** + * @member {{ [propertyName: string]: string }} [parameters] Gets or sets the + * parameters of the test job. + */ + parameters?: { [propertyName: string]: string }; + /** + * @member {number} [logActivityTrace] The activity-level tracing options of + * the runbook. + */ + logActivityTrace?: number; +} + +/** + * @interface + * An interface representing RunbookCreateOrUpdateDraftProperties. + * The parameters supplied to the create or update draft runbook properties. + * + */ +export interface RunbookCreateOrUpdateDraftProperties { + /** + * @member {boolean} [logVerbose] Gets or sets verbose log option. + */ + logVerbose?: boolean; + /** + * @member {boolean} [logProgress] Gets or sets progress log option. + */ + logProgress?: boolean; + /** + * @member {RunbookTypeEnum} runbookType Gets or sets the type of the + * runbook. Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', + * 'PowerShell', 'GraphPowerShellWorkflow', 'GraphPowerShell' + */ + runbookType: RunbookTypeEnum; + /** + * @member {RunbookDraft} draft Gets or sets the draft runbook properties. + */ + draft: RunbookDraft; + /** + * @member {string} [description] Gets or sets the description of the + * runbook. + */ + description?: string; + /** + * @member {number} [logActivityTrace] Gets or sets the activity-level + * tracing options of the runbook. + */ + logActivityTrace?: number; +} + +/** + * @interface + * An interface representing RunbookCreateOrUpdateDraftParameters. + * The parameters supplied to the create or update runbook operation. + * + */ +export interface RunbookCreateOrUpdateDraftParameters { + /** + * @member {string} runbookContent Content of the Runbook. + */ + runbookContent: string; +} + +/** + * @interface + * An interface representing PythonPackageCreateParameters. + * The parameters supplied to the create or update module operation. + * + */ +export interface PythonPackageCreateParameters { + /** + * @member {ContentLink} contentLink Gets or sets the module content link. + */ + contentLink: ContentLink; + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing PythonPackageUpdateParameters. + * The parameters supplied to the update module operation. + * + */ +export interface PythonPackageUpdateParameters { + /** + * @member {{ [propertyName: string]: string }} [tags] Gets or sets the tags + * attached to the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing StatisticsListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface StatisticsListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing DscConfigurationUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DscConfigurationUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {DscConfigurationUpdateParameters} [parameters] The create or + * update parameters for configuration. + */ + parameters?: DscConfigurationUpdateParameters; +} + +/** + * @interface + * An interface representing DscConfigurationListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DscConfigurationListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; + /** + * @member {number} [skip] The number of rows to skip. + */ + skip?: number; + /** + * @member {number} [top] The the number of rows to take. + */ + top?: number; + /** + * @member {string} [inlinecount] Return total rows. + */ + inlinecount?: string; +} + +/** + * @interface + * An interface representing HybridRunbookWorkerGroupListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface HybridRunbookWorkerGroupListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing JobScheduleListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobScheduleListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing WebhookListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WebhookListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing WatcherListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface WatcherListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationsCreateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SoftwareUpdateConfigurationsCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationsGetByNameOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SoftwareUpdateConfigurationsGetByNameOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationsDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SoftwareUpdateConfigurationsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SoftwareUpdateConfigurationsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationRunsGetByIdOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SoftwareUpdateConfigurationRunsGetByIdOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationRunsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SoftwareUpdateConfigurationRunsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; + /** + * @member {string} [filter] 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; + /** + * @member {string} [skip] Number of entries you skip before returning + * results + */ + skip?: string; + /** + * @member {string} [top] Maximum number of entries returned in the results + * collection + */ + top?: string; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing SoftwareUpdateConfigurationMachineRunsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SoftwareUpdateConfigurationMachineRunsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; + /** + * @member {string} [filter] 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; + /** + * @member {string} [skip] number of entries you skip before returning + * results + */ + skip?: string; + /** + * @member {string} [top] Maximum number of entries returned in the results + * collection + */ + top?: string; +} + +/** + * @interface + * An interface representing SourceControlListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SourceControlListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing SourceControlSyncJobListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SourceControlSyncJobListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing SourceControlSyncJobStreamsListBySyncJobOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SourceControlSyncJobStreamsListBySyncJobOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing JobGetOutputOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobGetOutputOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobGetRunbookContentOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobGetRunbookContentOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobSuspendOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobSuspendOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobStopOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobStopOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobCreateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobResumeOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobResumeOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobListByAutomationAccountNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobListByAutomationAccountNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobStreamGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobStreamGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobStreamListByJobOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobStreamListByJobOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing JobStreamListByJobNextOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface JobStreamListByJobNextOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [clientRequestId] Identifies this specific client + * request. + */ + clientRequestId?: string; +} + +/** + * @interface + * An interface representing DscNodeListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DscNodeListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; + /** + * @member {number} [skip] The number of rows to skip. + */ + skip?: number; + /** + * @member {number} [top] The the number of rows to take. + */ + top?: number; + /** + * @member {string} [inlinecount] Return total rows. + */ + inlinecount?: string; +} + +/** + * @interface + * An interface representing NodeReportsListByNodeOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface NodeReportsListByNodeOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing DscCompilationJobListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DscCompilationJobListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing DscNodeConfigurationListByAutomationAccountOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DscNodeConfigurationListByAutomationAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; + /** + * @member {number} [skip] The number of rows to skip. + */ + skip?: number; + /** + * @member {number} [top] The the number of rows to take. + */ + top?: number; + /** + * @member {string} [inlinecount] Return total rows. + */ + inlinecount?: string; +} + +/** + * @interface + * An interface representing TestJobStreamsListByTestJobOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TestJobStreamsListByTestJobOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] The filter to apply on the operation. + */ + filter?: string; +} + +/** + * @interface + * An interface representing AutomationClientOptions. + * @extends AzureServiceClientOptions + */ +export interface AutomationClientOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ + baseUri?: string; +} + +/** + * @interface + * An interface representing RunbookDraftReplaceContentHeaders. + * Defines headers for ReplaceContent operation. + * + */ +export interface RunbookDraftReplaceContentHeaders { + /** + * @member {string} [location] URL to query for status of the operation. + */ + location: string; +} + +/** + * @interface + * An interface representing RunbookPublishHeaders. + * Defines headers for Publish operation. + * + */ +export interface RunbookPublishHeaders { + /** + * @member {string} [location] URL to query for status of the operation. + */ + location: string; +} + + +/** + * @interface + * An interface representing the AutomationAccountListResult. + * The response model for the list account operation. + * + * @extends Array + */ +export interface AutomationAccountListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the OperationListResult. + * The response model for the list of Automation operations + * + * @extends Array + */ +export interface OperationListResult extends Array { +} + +/** + * @interface + * An interface representing the StatisticsListResult. + * The response model for the list statistics operation. + * + * @extends Array + */ +export interface StatisticsListResult extends Array { +} + +/** + * @interface + * An interface representing the UsageListResult. + * The response model for the get usage operation. + * + * @extends Array + */ +export interface UsageListResult extends Array { +} + +/** + * @interface + * An interface representing the CertificateListResult. + * The response model for the list certificate operation. + * + * @extends Array + */ +export interface CertificateListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ConnectionListResult. + * The response model for the list connection operation. + * + * @extends Array + */ +export interface ConnectionListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ConnectionTypeListResult. + * The response model for the list connection type operation. + * + * @extends Array + */ +export interface ConnectionTypeListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the CredentialListResult. + * The response model for the list credential operation. + * + * @extends Array + */ +export interface CredentialListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the DscConfigurationListResult. + * The response model for the list configuration operation. + * + * @extends Array + */ +export interface DscConfigurationListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; + /** + * @member {number} [totalCount] Gets the total number of configurations + * matching filter criteria. + */ + totalCount?: number; +} + +/** + * @interface + * An interface representing the HybridRunbookWorkerGroupsListResult. + * The response model for the list hybrid runbook worker groups. + * + * @extends Array + */ +export interface HybridRunbookWorkerGroupsListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the JobScheduleListResult. + * The response model for the list job schedule operation. + * + * @extends Array + */ +export interface JobScheduleListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ActivityListResult. + * The response model for the list activity operation. + * + * @extends Array + */ +export interface ActivityListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ModuleListResult. + * The response model for the list module operation. + * + * @extends Array + */ +export interface ModuleListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the TypeFieldListResult. + * The response model for the list fields operation. + * + * @extends Array + */ +export interface TypeFieldListResult extends Array { +} + +/** + * @interface + * An interface representing the ScheduleListResult. + * The response model for the list schedule operation. + * + * @extends Array + */ +export interface ScheduleListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the VariableListResult. + * The response model for the list variables operation. + * + * @extends Array + */ +export interface VariableListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the WebhookListResult. + * The response model for the list webhook operation. + * + * @extends Array + */ +export interface WebhookListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the WatcherListResult. + * The response model for the list watcher operation. + * + * @extends Array + */ +export interface WatcherListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the SourceControlListResult. + * The response model for the list source controls operation. + * + * @extends Array + */ +export interface SourceControlListResult extends Array { + /** + * @member {string} [nextLink] The next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the SourceControlSyncJobListResult. + * The response model for the list source control sync jobs operation. + * + * @extends Array + */ +export interface SourceControlSyncJobListResult extends Array { + /** + * @member {string} [nextLink] The next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the SourceControlSyncJobStreamsListBySyncJob. + * The response model for the list source control sync job streams operation. + * + * @extends Array + */ +export interface SourceControlSyncJobStreamsListBySyncJob extends Array { + /** + * @member {string} [nextLink] The next link. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the JobListResultV2. + * The response model for the list job operation. + * + * @extends Array + */ +export interface JobListResultV2 extends Array { + /** + * @member {string} [nextLink] The link to the next page. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the JobStreamListResult. + * The response model for the list job stream operation. + * + * @extends Array + */ +export interface JobStreamListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the DscNodeListResult. + * The response model for the list dsc nodes operation. + * + * @extends Array + */ +export interface DscNodeListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; + /** + * @member {number} [totalCount] Gets the total number of nodes matching + * filter criteria. + */ + totalCount?: number; +} + +/** + * @interface + * An interface representing the DscNodeReportListResult. + * The response model for the list dsc nodes operation. + * + * @extends Array + */ +export interface DscNodeReportListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the DscCompilationJobListResult. + * The response model for the list job operation. + * + * @extends Array + */ +export interface DscCompilationJobListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the DscNodeConfigurationListResult. + * The response model for the list job operation. + * + * @extends Array + */ +export interface DscNodeConfigurationListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; + /** + * @member {number} [totalCount] Gets or sets the total rows in query. + */ + totalCount?: number; +} + +/** + * @interface + * An interface representing the RunbookListResult. + * The response model for the list runbook operation. + * + * @extends Array + */ +export interface RunbookListResult extends Array { + /** + * @member {string} [nextLink] Gets or sets the next link. + */ + nextLink?: string; +} + +/** + * Defines values for SkuNameEnum. + * Possible values include: 'Free', 'Basic' + * @readonly + * @enum {string} + */ +export type SkuNameEnum = 'Free' | 'Basic'; + +/** + * Defines values for AutomationAccountState. + * Possible values include: 'Ok', 'Unavailable', 'Suspended' + * @readonly + * @enum {string} + */ +export type AutomationAccountState = 'Ok' | 'Unavailable' | 'Suspended'; + +/** + * Defines values for AutomationKeyName. + * Possible values include: 'Primary', 'Secondary' + * @readonly + * @enum {string} + */ +export type AutomationKeyName = 'Primary' | 'Secondary'; + +/** + * Defines values for AutomationKeyPermissions. + * Possible values include: 'Read', 'Full' + * @readonly + * @enum {string} + */ +export type AutomationKeyPermissions = 'Read' | 'Full'; + +/** + * Defines values for ContentSourceType. + * Possible values include: 'embeddedContent', 'uri' + * @readonly + * @enum {string} + */ +export type ContentSourceType = 'embeddedContent' | 'uri'; + +/** + * Defines values for DscConfigurationProvisioningState. + * Possible values include: 'Succeeded' + * @readonly + * @enum {string} + */ +export type DscConfigurationProvisioningState = 'Succeeded'; + +/** + * Defines values for DscConfigurationState. + * Possible values include: 'New', 'Edit', 'Published' + * @readonly + * @enum {string} + */ +export type DscConfigurationState = 'New' | 'Edit' | 'Published'; + +/** + * Defines values for GroupTypeEnum. + * Possible values include: 'User', 'System' + * @readonly + * @enum {string} + */ +export type GroupTypeEnum = 'User' | 'System'; + +/** + * Defines values for ModuleProvisioningState. + * Possible values include: 'Created', 'Creating', 'StartingImportModuleRunbook', + * 'RunningImportModuleRunbook', 'ContentRetrieved', 'ContentDownloaded', 'ContentValidated', + * 'ConnectionTypeImported', 'ContentStored', 'ModuleDataStored', 'ActivitiesStored', + * 'ModuleImportRunbookComplete', 'Succeeded', 'Failed', 'Cancelled', 'Updating' + * @readonly + * @enum {string} + */ +export type ModuleProvisioningState = 'Created' | 'Creating' | 'StartingImportModuleRunbook' | 'RunningImportModuleRunbook' | 'ContentRetrieved' | 'ContentDownloaded' | 'ContentValidated' | 'ConnectionTypeImported' | 'ContentStored' | 'ModuleDataStored' | 'ActivitiesStored' | 'ModuleImportRunbookComplete' | 'Succeeded' | 'Failed' | 'Cancelled' | 'Updating'; + +/** + * Defines values for ScheduleDay. + * Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', + * 'Sunday' + * @readonly + * @enum {string} + */ +export type ScheduleDay = 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'; + +/** + * Defines values for ScheduleFrequency. + * Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' + * @readonly + * @enum {string} + */ +export type ScheduleFrequency = 'OneTime' | 'Day' | 'Hour' | 'Week' | 'Month'; + +/** + * Defines values for OperatingSystemType. + * Possible values include: 'Windows', 'Linux' + * @readonly + * @enum {string} + */ +export type OperatingSystemType = 'Windows' | 'Linux'; + +/** + * Defines values for WindowsUpdateClasses. + * Possible values include: 'Unclassified', 'Critical', 'Security', 'UpdateRollup', 'FeaturePack', + * 'ServicePack', 'Definition', 'Tools', 'Updates' + * @readonly + * @enum {string} + */ +export type WindowsUpdateClasses = 'Unclassified' | 'Critical' | 'Security' | 'UpdateRollup' | 'FeaturePack' | 'ServicePack' | 'Definition' | 'Tools' | 'Updates'; + +/** + * Defines values for LinuxUpdateClasses. + * Possible values include: 'Unclassified', 'Critical', 'Security', 'Other' + * @readonly + * @enum {string} + */ +export type LinuxUpdateClasses = 'Unclassified' | 'Critical' | 'Security' | 'Other'; + +/** + * Defines values for TagOperators. + * Possible values include: 'All', 'Any' + * @readonly + * @enum {string} + */ +export type TagOperators = 'All' | 'Any'; + +/** + * Defines values for SourceType. + * Possible values include: 'VsoGit', 'VsoTfvc', 'GitHub' + * @readonly + * @enum {string} + */ +export type SourceType = 'VsoGit' | 'VsoTfvc' | 'GitHub'; + +/** + * Defines values for TokenType. + * Possible values include: 'PersonalAccessToken', 'Oauth' + * @readonly + * @enum {string} + */ +export type TokenType = 'PersonalAccessToken' | 'Oauth'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Completed', 'Failed', 'Running' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Completed' | 'Failed' | 'Running'; + +/** + * Defines values for SyncType. + * Possible values include: 'PartialSync', 'FullSync' + * @readonly + * @enum {string} + */ +export type SyncType = 'PartialSync' | 'FullSync'; + +/** + * Defines values for StreamType. + * Possible values include: 'Error', 'Output' + * @readonly + * @enum {string} + */ +export type StreamType = 'Error' | 'Output'; + +/** + * Defines values for JobStreamType. + * Possible values include: 'Progress', 'Output', 'Warning', 'Error', 'Debug', 'Verbose', 'Any' + * @readonly + * @enum {string} + */ +export type JobStreamType = 'Progress' | 'Output' | 'Warning' | 'Error' | 'Debug' | 'Verbose' | 'Any'; + +/** + * Defines values for JobStatus. + * Possible values include: 'New', 'Activating', 'Running', 'Completed', 'Failed', 'Stopped', + * 'Blocked', 'Suspended', 'Disconnected', 'Suspending', 'Stopping', 'Resuming', 'Removing' + * @readonly + * @enum {string} + */ +export type JobStatus = 'New' | 'Activating' | 'Running' | 'Completed' | 'Failed' | 'Stopped' | 'Blocked' | 'Suspended' | 'Disconnected' | 'Suspending' | 'Stopping' | 'Resuming' | 'Removing'; + +/** + * Defines values for JobProvisioningState. + * Possible values include: 'Failed', 'Succeeded', 'Suspended', 'Processing' + * @readonly + * @enum {string} + */ +export type JobProvisioningState = 'Failed' | 'Succeeded' | 'Suspended' | 'Processing'; + +/** + * Defines values for AgentRegistrationKeyName. + * Possible values include: 'primary', 'secondary' + * @readonly + * @enum {string} + */ +export type AgentRegistrationKeyName = 'primary' | 'secondary'; + +/** + * Defines values for RunbookTypeEnum. + * Possible values include: 'Script', 'Graph', 'PowerShellWorkflow', 'PowerShell', + * 'GraphPowerShellWorkflow', 'GraphPowerShell' + * @readonly + * @enum {string} + */ +export type RunbookTypeEnum = 'Script' | 'Graph' | 'PowerShellWorkflow' | 'PowerShell' | 'GraphPowerShellWorkflow' | 'GraphPowerShell'; + +/** + * Defines values for RunbookState. + * Possible values include: 'New', 'Edit', 'Published' + * @readonly + * @enum {string} + */ +export type RunbookState = 'New' | 'Edit' | 'Published'; + +/** + * Defines values for RunbookProvisioningState. + * Possible values include: 'Succeeded' + * @readonly + * @enum {string} + */ +export type RunbookProvisioningState = 'Succeeded'; + +/** + * Defines values for HttpStatusCode. + * Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', + * 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', 'PartialContent', 'MultipleChoices', + * 'Ambiguous', 'MovedPermanently', 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', + * 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', 'BadRequest', + * 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', + * 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', + * 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong', 'UnsupportedMediaType', + * 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', + * 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', + * 'HttpVersionNotSupported' + * @readonly + * @enum {string} + */ +export type HttpStatusCode = 'Continue' | 'SwitchingProtocols' | 'OK' | 'Created' | 'Accepted' | 'NonAuthoritativeInformation' | 'NoContent' | 'ResetContent' | 'PartialContent' | 'MultipleChoices' | 'Ambiguous' | 'MovedPermanently' | 'Moved' | 'Found' | 'Redirect' | 'SeeOther' | 'RedirectMethod' | 'NotModified' | 'UseProxy' | 'Unused' | 'TemporaryRedirect' | 'RedirectKeepVerb' | 'BadRequest' | 'Unauthorized' | 'PaymentRequired' | 'Forbidden' | 'NotFound' | 'MethodNotAllowed' | 'NotAcceptable' | 'ProxyAuthenticationRequired' | 'RequestTimeout' | 'Conflict' | 'Gone' | 'LengthRequired' | 'PreconditionFailed' | 'RequestEntityTooLarge' | 'RequestUriTooLong' | 'UnsupportedMediaType' | 'RequestedRangeNotSatisfiable' | 'ExpectationFailed' | 'UpgradeRequired' | 'InternalServerError' | 'NotImplemented' | 'BadGateway' | 'ServiceUnavailable' | 'GatewayTimeout' | 'HttpVersionNotSupported'; + +/** + * Defines values for CountType. + * Possible values include: 'status', 'nodeconfiguration' + * @readonly + * @enum {string} + */ +export type CountType = 'status' | 'nodeconfiguration'; + +/** + * Contains response data for the update operation. + */ +export type AutomationAccountUpdateResponse = AutomationAccount & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutomationAccount; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AutomationAccountCreateOrUpdateResponse = AutomationAccount & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutomationAccount; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AutomationAccountGetResponse = AutomationAccount & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutomationAccount; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type AutomationAccountListByResourceGroupResponse = AutomationAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutomationAccountListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AutomationAccountListResponse = AutomationAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutomationAccountListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type AutomationAccountListByResourceGroupNextResponse = AutomationAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutomationAccountListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AutomationAccountListNextResponse = AutomationAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AutomationAccountListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type StatisticsListByAutomationAccountResponse = StatisticsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: StatisticsListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type UsagesListByAutomationAccountResponse = UsageListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsageListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type KeysListByAutomationAccountResponse = KeyListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: KeyListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type CertificateGetResponse = Certificate & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Certificate; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type CertificateCreateOrUpdateResponse = Certificate & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Certificate; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type CertificateUpdateResponse = Certificate & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Certificate; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type CertificateListByAutomationAccountResponse = CertificateListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type CertificateListByAutomationAccountNextResponse = CertificateListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateListResult; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type ConnectionDeleteMethodResponse = Connection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Connection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ConnectionGetResponse = Connection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Connection; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ConnectionCreateOrUpdateResponse = Connection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Connection; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ConnectionUpdateResponse = Connection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Connection; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type ConnectionListByAutomationAccountResponse = ConnectionListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type ConnectionListByAutomationAccountNextResponse = ConnectionListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ConnectionTypeGetResponse = ConnectionType & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionType; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ConnectionTypeCreateOrUpdateResponse = ConnectionType & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionType; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type ConnectionTypeListByAutomationAccountResponse = ConnectionTypeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionTypeListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type ConnectionTypeListByAutomationAccountNextResponse = ConnectionTypeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionTypeListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type CredentialGetResponse = Credential & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Credential; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type CredentialCreateOrUpdateResponse = Credential & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Credential; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type CredentialUpdateResponse = Credential & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Credential; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type CredentialListByAutomationAccountResponse = CredentialListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CredentialListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type CredentialListByAutomationAccountNextResponse = CredentialListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CredentialListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DscConfigurationGetResponse = DscConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscConfiguration; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DscConfigurationCreateOrUpdateResponse = DscConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscConfiguration; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DscConfigurationUpdateResponse = DscConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscConfiguration; + }; +}; + +/** + * Contains response data for the getContent operation. + */ +export type DscConfigurationGetContentResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type DscConfigurationListByAutomationAccountResponse = DscConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscConfigurationListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type DscConfigurationListByAutomationAccountNextResponse = DscConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscConfigurationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type HybridRunbookWorkerGroupGetResponse = HybridRunbookWorkerGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridRunbookWorkerGroup; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type HybridRunbookWorkerGroupUpdateResponse = HybridRunbookWorkerGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridRunbookWorkerGroup; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type HybridRunbookWorkerGroupListByAutomationAccountResponse = HybridRunbookWorkerGroupsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridRunbookWorkerGroupsListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type HybridRunbookWorkerGroupListByAutomationAccountNextResponse = HybridRunbookWorkerGroupsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridRunbookWorkerGroupsListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type JobScheduleGetResponse = JobSchedule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobSchedule; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type JobScheduleCreateResponse = JobSchedule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobSchedule; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type JobScheduleListByAutomationAccountResponse = JobScheduleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobScheduleListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type JobScheduleListByAutomationAccountNextResponse = JobScheduleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobScheduleListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LinkedWorkspaceGetResponse = LinkedWorkspace & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: LinkedWorkspace; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ActivityGetResponse = Activity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Activity; + }; +}; + +/** + * Contains response data for the listByModule operation. + */ +export type ActivityListByModuleResponse = ActivityListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ActivityListResult; + }; +}; + +/** + * Contains response data for the listByModuleNext operation. + */ +export type ActivityListByModuleNextResponse = ActivityListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ActivityListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ModuleGetResponse = Module & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Module; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ModuleCreateOrUpdateResponse = Module & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Module; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ModuleUpdateResponse = Module & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Module; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type ModuleListByAutomationAccountResponse = ModuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ModuleListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type ModuleListByAutomationAccountNextResponse = ModuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ModuleListResult; + }; +}; + +/** + * Contains response data for the listFieldsByModuleAndType operation. + */ +export type ObjectDataTypesListFieldsByModuleAndTypeResponse = TypeFieldListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TypeFieldListResult; + }; +}; + +/** + * Contains response data for the listFieldsByType operation. + */ +export type ObjectDataTypesListFieldsByTypeResponse = TypeFieldListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TypeFieldListResult; + }; +}; + +/** + * Contains response data for the listByType operation. + */ +export type FieldsListByTypeResponse = TypeFieldListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TypeFieldListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ScheduleCreateOrUpdateResponse = Schedule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Schedule; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ScheduleUpdateResponse = Schedule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Schedule; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ScheduleGetResponse = Schedule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Schedule; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type ScheduleListByAutomationAccountResponse = ScheduleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ScheduleListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type ScheduleListByAutomationAccountNextResponse = ScheduleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ScheduleListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type VariableCreateOrUpdateResponse = Variable & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Variable; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type VariableUpdateResponse = Variable & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Variable; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VariableGetResponse = Variable & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Variable; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type VariableListByAutomationAccountResponse = VariableListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VariableListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type VariableListByAutomationAccountNextResponse = VariableListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VariableListResult; + }; +}; + +/** + * Contains response data for the generateUri operation. + */ +export type WebhookGenerateUriResponse = { + /** + * The parsed response body. + */ + body: string; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type WebhookGetResponse = Webhook & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Webhook; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type WebhookCreateOrUpdateResponse = Webhook & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Webhook; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type WebhookUpdateResponse = Webhook & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Webhook; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type WebhookListByAutomationAccountResponse = WebhookListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebhookListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type WebhookListByAutomationAccountNextResponse = WebhookListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WebhookListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type WatcherCreateOrUpdateResponse = Watcher & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Watcher; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type WatcherGetResponse = Watcher & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Watcher; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type WatcherUpdateResponse = Watcher & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Watcher; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type WatcherListByAutomationAccountResponse = WatcherListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WatcherListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type WatcherListByAutomationAccountNextResponse = WatcherListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WatcherListResult; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type SoftwareUpdateConfigurationsCreateResponse = SoftwareUpdateConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SoftwareUpdateConfiguration; + }; +}; + +/** + * Contains response data for the getByName operation. + */ +export type SoftwareUpdateConfigurationsGetByNameResponse = SoftwareUpdateConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SoftwareUpdateConfiguration; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SoftwareUpdateConfigurationsListResponse = SoftwareUpdateConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SoftwareUpdateConfigurationListResult; + }; +}; + +/** + * Contains response data for the getById operation. + */ +export type SoftwareUpdateConfigurationRunsGetByIdResponse = SoftwareUpdateConfigurationRun & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SoftwareUpdateConfigurationRun; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SoftwareUpdateConfigurationRunsListResponse = SoftwareUpdateConfigurationRunListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SoftwareUpdateConfigurationRunListResult; + }; +}; + +/** + * Contains response data for the getById operation. + */ +export type SoftwareUpdateConfigurationMachineRunsGetByIdResponse = SoftwareUpdateConfigurationMachineRun & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SoftwareUpdateConfigurationMachineRun; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SoftwareUpdateConfigurationMachineRunsListResponse = SoftwareUpdateConfigurationMachineRunListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SoftwareUpdateConfigurationMachineRunListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type SourceControlCreateOrUpdateResponse = SourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControl; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type SourceControlUpdateResponse = SourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControl; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SourceControlGetResponse = SourceControl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControl; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type SourceControlListByAutomationAccountResponse = SourceControlListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type SourceControlListByAutomationAccountNextResponse = SourceControlListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlListResult; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type SourceControlSyncJobCreateResponse = SourceControlSyncJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlSyncJob; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SourceControlSyncJobGetResponse = SourceControlSyncJobById & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlSyncJobById; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type SourceControlSyncJobListByAutomationAccountResponse = SourceControlSyncJobListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlSyncJobListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type SourceControlSyncJobListByAutomationAccountNextResponse = SourceControlSyncJobListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlSyncJobListResult; + }; +}; + +/** + * Contains response data for the listBySyncJob operation. + */ +export type SourceControlSyncJobStreamsListBySyncJobResponse = SourceControlSyncJobStreamsListBySyncJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlSyncJobStreamsListBySyncJob; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SourceControlSyncJobStreamsGetResponse = SourceControlSyncJobStreamById & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlSyncJobStreamById; + }; +}; + +/** + * Contains response data for the listBySyncJobNext operation. + */ +export type SourceControlSyncJobStreamsListBySyncJobNextResponse = SourceControlSyncJobStreamsListBySyncJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceControlSyncJobStreamsListBySyncJob; + }; +}; + +/** + * Contains response data for the getOutput operation. + */ +export type JobGetOutputResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the getRunbookContent operation. + */ +export type JobGetRunbookContentResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the get operation. + */ +export type JobGetResponse = Job & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Job; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type JobCreateResponse = Job & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Job; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type JobListByAutomationAccountResponse = JobListResultV2 & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobListResultV2; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type JobListByAutomationAccountNextResponse = JobListResultV2 & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobListResultV2; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type JobStreamGetResponse = JobStream & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobStream; + }; +}; + +/** + * Contains response data for the listByJob operation. + */ +export type JobStreamListByJobResponse = JobStreamListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobStreamListResult; + }; +}; + +/** + * Contains response data for the listByJobNext operation. + */ +export type JobStreamListByJobNextResponse = JobStreamListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobStreamListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AgentRegistrationInformationGetResponse = AgentRegistration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AgentRegistration; + }; +}; + +/** + * Contains response data for the regenerateKey operation. + */ +export type AgentRegistrationInformationRegenerateKeyResponse = AgentRegistration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AgentRegistration; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type DscNodeDeleteMethodResponse = DscNode & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNode; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DscNodeGetResponse = DscNode & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNode; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DscNodeUpdateResponse = DscNode & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNode; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type DscNodeListByAutomationAccountResponse = DscNodeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNodeListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type DscNodeListByAutomationAccountNextResponse = DscNodeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNodeListResult; + }; +}; + +/** + * Contains response data for the listByNode operation. + */ +export type NodeReportsListByNodeResponse = DscNodeReportListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNodeReportListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type NodeReportsGetResponse = DscNodeReport & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNodeReport; + }; +}; + +/** + * Contains response data for the getContent operation. + */ +export type NodeReportsGetContentResponse = { + /** + * The parsed response body. + */ + body: any; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the listByNodeNext operation. + */ +export type NodeReportsListByNodeNextResponse = DscNodeReportListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNodeReportListResult; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type DscCompilationJobCreateResponse = DscCompilationJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscCompilationJob; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DscCompilationJobGetResponse = DscCompilationJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscCompilationJob; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type DscCompilationJobListByAutomationAccountResponse = DscCompilationJobListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscCompilationJobListResult; + }; +}; + +/** + * Contains response data for the getStream operation. + */ +export type DscCompilationJobGetStreamResponse = JobStream & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobStream; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type DscCompilationJobBeginCreateResponse = DscCompilationJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscCompilationJob; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type DscCompilationJobListByAutomationAccountNextResponse = DscCompilationJobListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscCompilationJobListResult; + }; +}; + +/** + * Contains response data for the listByJob operation. + */ +export type DscCompilationJobStreamListByJobResponse = JobStreamListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobStreamListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DscNodeConfigurationGetResponse = DscNodeConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNodeConfiguration; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DscNodeConfigurationCreateOrUpdateResponse = DscNodeConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNodeConfiguration; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type DscNodeConfigurationListByAutomationAccountResponse = DscNodeConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNodeConfigurationListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DscNodeConfigurationBeginCreateOrUpdateResponse = DscNodeConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNodeConfiguration; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type DscNodeConfigurationListByAutomationAccountNextResponse = DscNodeConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DscNodeConfigurationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type NodeCountInformationGetResponse = NodeCounts & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NodeCounts; + }; +}; + +/** + * Contains response data for the getContent operation. + */ +export type RunbookDraftGetContentResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the replaceContent operation. + */ +export type RunbookDraftReplaceContentResponse = RunbookDraftReplaceContentHeaders & { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: RunbookDraftReplaceContentHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type RunbookDraftGetResponse = RunbookDraft & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RunbookDraft; + }; +}; + +/** + * Contains response data for the undoEdit operation. + */ +export type RunbookDraftUndoEditResponse = RunbookDraftUndoEditResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RunbookDraftUndoEditResult; + }; +}; + +/** + * Contains response data for the publish operation. + */ +export type RunbookPublishResponse = RunbookPublishHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: RunbookPublishHeaders; + }; +}; + +/** + * Contains response data for the getContent operation. + */ +export type RunbookGetContentResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + +/** + * Contains response data for the get operation. + */ +export type RunbookGetResponse = Runbook & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Runbook; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type RunbookCreateOrUpdateResponse = Runbook & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Runbook; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type RunbookUpdateResponse = Runbook & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Runbook; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type RunbookListByAutomationAccountResponse = RunbookListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RunbookListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type RunbookListByAutomationAccountNextResponse = RunbookListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RunbookListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type TestJobStreamsGetResponse = JobStream & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobStream; + }; +}; + +/** + * Contains response data for the listByTestJob operation. + */ +export type TestJobStreamsListByTestJobResponse = JobStreamListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobStreamListResult; + }; +}; + +/** + * Contains response data for the listByTestJobNext operation. + */ +export type TestJobStreamsListByTestJobNextResponse = JobStreamListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: JobStreamListResult; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type TestJobCreateResponse = TestJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TestJob; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type TestJobGetResponse = TestJob & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TestJob; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type Python2PackageGetResponse = Module & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Module; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type Python2PackageCreateOrUpdateResponse = Module & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Module; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type Python2PackageUpdateResponse = Module & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Module; + }; +}; + +/** + * Contains response data for the listByAutomationAccount operation. + */ +export type Python2PackageListByAutomationAccountResponse = ModuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ModuleListResult; + }; +}; + +/** + * Contains response data for the listByAutomationAccountNext operation. + */ +export type Python2PackageListByAutomationAccountNextResponse = ModuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ModuleListResult; + }; +}; diff --git a/sdk/automation/arm-automation/lib/models/jobOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/jobOperationsMappers.ts new file mode 100644 index 000000000000..403e0cdf91bb --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/jobOperationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + CloudError, + ErrorResponse, + Job, + ProxyResource, + Resource, + BaseResource, + RunbookAssociationProperty, + JobCreateParameters, + JobListResultV2, + JobCollectionItem, + TrackedResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/jobScheduleOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/jobScheduleOperationsMappers.ts new file mode 100644 index 000000000000..21b8ba2f2cb7 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/jobScheduleOperationsMappers.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ErrorResponse, + JobSchedule, + ScheduleAssociationProperty, + RunbookAssociationProperty, + JobScheduleCreateParameters, + JobScheduleListResult +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/jobStreamOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/jobStreamOperationsMappers.ts new file mode 100644 index 000000000000..ecada22398f3 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/jobStreamOperationsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + JobStream, + ErrorResponse, + JobStreamListResult +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/keysMappers.ts b/sdk/automation/arm-automation/lib/models/keysMappers.ts new file mode 100644 index 000000000000..c624dabeedb0 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/keysMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + KeyListResult, + Key, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/linkedWorkspaceOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/linkedWorkspaceOperationsMappers.ts new file mode 100644 index 000000000000..fb9368d83b12 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/linkedWorkspaceOperationsMappers.ts @@ -0,0 +1,15 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + LinkedWorkspace, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/mappers.ts b/sdk/automation/arm-automation/lib/models/mappers.ts new file mode 100644 index 000000000000..9677206238e7 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/mappers.ts @@ -0,0 +1,6894 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + family: { + serializedName: "family", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + 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 AutomationAccount: msRest.CompositeMapper = { + serializedName: "AutomationAccount", + type: { + name: "Composite", + className: "AutomationAccount", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "properties.sku", + type: { + name: "Composite", + className: "Sku" + } + }, + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", + type: { + name: "String" + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationAccountCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "AutomationAccountCreateOrUpdateParameters", + type: { + name: "Composite", + className: "AutomationAccountCreateOrUpdateParameters", + modelProperties: { + sku: { + serializedName: "properties.sku", + type: { + name: "Composite", + className: "Sku" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; + +export const Statistics: msRest.CompositeMapper = { + serializedName: "Statistics", + type: { + name: "Composite", + className: "Statistics", + modelProperties: { + counterProperty: { + readOnly: true, + serializedName: "counterProperty", + type: { + name: "String" + } + }, + counterValue: { + readOnly: true, + serializedName: "counterValue", + type: { + name: "Number" + } + }, + startTime: { + nullable: false, + readOnly: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + nullable: true, + readOnly: true, + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const UsageCounterName: msRest.CompositeMapper = { + serializedName: "UsageCounterName", + type: { + name: "Composite", + className: "UsageCounterName", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String" + } + }, + localizedValue: { + serializedName: "localizedValue", + type: { + name: "String" + } + } + } + } +}; + +export const Usage: msRest.CompositeMapper = { + serializedName: "Usage", + type: { + name: "Composite", + className: "Usage", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "UsageCounterName" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + currentValue: { + serializedName: "currentValue", + type: { + name: "Number" + } + }, + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + throttleStatus: { + serializedName: "throttleStatus", + type: { + name: "String" + } + } + } + } +}; + +export const Key: msRest.CompositeMapper = { + serializedName: "Key", + type: { + name: "Composite", + className: "Key", + modelProperties: { + keyName: { + readOnly: true, + serializedName: "KeyName", + type: { + name: "String" + } + }, + permissions: { + readOnly: true, + serializedName: "Permissions", + type: { + name: "String" + } + }, + value: { + readOnly: true, + serializedName: "Value", + type: { + name: "String" + } + } + } + } +}; + +export const KeyListResult: msRest.CompositeMapper = { + serializedName: "KeyListResult", + type: { + name: "Composite", + className: "KeyListResult", + modelProperties: { + keys: { + serializedName: "keys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Key" + } + } + } + } + } + } +}; + +export const AutomationAccountUpdateParameters: msRest.CompositeMapper = { + serializedName: "AutomationAccountUpdateParameters", + type: { + name: "Composite", + className: "AutomationAccountUpdateParameters", + modelProperties: { + sku: { + serializedName: "properties.sku", + type: { + name: "Composite", + className: "Sku" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "CertificateCreateOrUpdateParameters", + type: { + name: "Composite", + className: "CertificateCreateOrUpdateParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + base64Value: { + required: true, + serializedName: "properties.base64Value", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + isExportable: { + nullable: false, + serializedName: "properties.isExportable", + type: { + name: "Boolean" + } + } + } + } +}; + +export const Certificate: msRest.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "Certificate", + modelProperties: { + ...ProxyResource.type.modelProperties, + thumbprint: { + readOnly: true, + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + expiryTime: { + nullable: false, + readOnly: true, + serializedName: "properties.expiryTime", + type: { + name: "DateTime" + } + }, + isExportable: { + nullable: false, + readOnly: true, + serializedName: "properties.isExportable", + type: { + name: "Boolean" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateUpdateParameters: msRest.CompositeMapper = { + serializedName: "CertificateUpdateParameters", + type: { + name: "Composite", + className: "CertificateUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectionTypeAssociationProperty: msRest.CompositeMapper = { + serializedName: "ConnectionTypeAssociationProperty", + type: { + name: "Composite", + className: "ConnectionTypeAssociationProperty", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectionCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "ConnectionCreateOrUpdateParameters", + type: { + name: "Composite", + className: "ConnectionCreateOrUpdateParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + connectionType: { + required: true, + serializedName: "properties.connectionType", + type: { + name: "Composite", + className: "ConnectionTypeAssociationProperty" + } + }, + fieldDefinitionValues: { + serializedName: "properties.fieldDefinitionValues", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const Connection: msRest.CompositeMapper = { + serializedName: "Connection", + type: { + name: "Composite", + className: "Connection", + modelProperties: { + ...ProxyResource.type.modelProperties, + connectionType: { + serializedName: "properties.connectionType", + type: { + name: "Composite", + className: "ConnectionTypeAssociationProperty" + } + }, + fieldDefinitionValues: { + readOnly: true, + serializedName: "properties.fieldDefinitionValues", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectionUpdateParameters: msRest.CompositeMapper = { + serializedName: "ConnectionUpdateParameters", + type: { + name: "Composite", + className: "ConnectionUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + fieldDefinitionValues: { + serializedName: "properties.fieldDefinitionValues", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const FieldDefinition: msRest.CompositeMapper = { + serializedName: "FieldDefinition", + type: { + name: "Composite", + className: "FieldDefinition", + modelProperties: { + isEncrypted: { + serializedName: "isEncrypted", + type: { + name: "Boolean" + } + }, + isOptional: { + serializedName: "isOptional", + type: { + name: "Boolean" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectionType: msRest.CompositeMapper = { + serializedName: "ConnectionType", + type: { + name: "Composite", + className: "ConnectionType", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + isGlobal: { + serializedName: "properties.isGlobal", + type: { + name: "Boolean" + } + }, + fieldDefinitions: { + readOnly: true, + serializedName: "properties.fieldDefinitions", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "FieldDefinition" + } + } + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectionTypeCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "ConnectionTypeCreateOrUpdateParameters", + type: { + name: "Composite", + className: "ConnectionTypeCreateOrUpdateParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + isGlobal: { + serializedName: "properties.isGlobal", + type: { + name: "Boolean" + } + }, + fieldDefinitions: { + required: true, + serializedName: "properties.fieldDefinitions", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "FieldDefinition" + } + } + } + } + } + } +}; + +export const CredentialCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "CredentialCreateOrUpdateParameters", + type: { + name: "Composite", + className: "CredentialCreateOrUpdateParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + userName: { + required: true, + serializedName: "properties.userName", + type: { + name: "String" + } + }, + password: { + required: true, + serializedName: "properties.password", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const Credential: msRest.CompositeMapper = { + serializedName: "Credential", + type: { + name: "Composite", + className: "Credential", + modelProperties: { + ...ProxyResource.type.modelProperties, + userName: { + readOnly: true, + serializedName: "properties.userName", + type: { + name: "String" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const CredentialUpdateParameters: msRest.CompositeMapper = { + serializedName: "CredentialUpdateParameters", + 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 ContentHash: msRest.CompositeMapper = { + serializedName: "ContentHash", + type: { + name: "Composite", + className: "ContentHash", + modelProperties: { + algorithm: { + required: true, + serializedName: "algorithm", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const ContentSource: msRest.CompositeMapper = { + serializedName: "ContentSource", + type: { + name: "Composite", + className: "ContentSource", + modelProperties: { + hash: { + serializedName: "hash", + type: { + name: "Composite", + className: "ContentHash" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const DscConfigurationParameter: msRest.CompositeMapper = { + serializedName: "DscConfigurationParameter", + type: { + name: "Composite", + className: "DscConfigurationParameter", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + isMandatory: { + serializedName: "isMandatory", + type: { + name: "Boolean" + } + }, + position: { + serializedName: "position", + type: { + name: "Number" + } + }, + defaultValue: { + serializedName: "defaultValue", + type: { + name: "String" + } + } + } + } +}; + +export const DscConfigurationCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "DscConfigurationCreateOrUpdateParameters", + type: { + name: "Composite", + className: "DscConfigurationCreateOrUpdateParameters", + modelProperties: { + logVerbose: { + serializedName: "properties.logVerbose", + type: { + name: "Boolean" + } + }, + logProgress: { + serializedName: "properties.logProgress", + type: { + name: "Boolean" + } + }, + source: { + required: true, + serializedName: "properties.source", + type: { + name: "Composite", + className: "ContentSource" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "DscConfigurationParameter" + } + } + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DscConfiguration: msRest.CompositeMapper = { + serializedName: "DscConfiguration", + type: { + name: "Composite", + className: "DscConfiguration", + modelProperties: { + ...TrackedResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded" + ] + } + }, + jobCount: { + serializedName: "properties.jobCount", + type: { + name: "Number" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "DscConfigurationParameter" + } + } + } + }, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "ContentSource" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + logVerbose: { + serializedName: "properties.logVerbose", + type: { + name: "Boolean" + } + }, + creationTime: { + nullable: false, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + nodeConfigurationCount: { + nullable: false, + serializedName: "properties.nodeConfigurationCount", + type: { + name: "Number" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DscConfigurationUpdateParameters: msRest.CompositeMapper = { + serializedName: "DscConfigurationUpdateParameters", + type: { + name: "Composite", + className: "DscConfigurationUpdateParameters", + modelProperties: { + logVerbose: { + serializedName: "properties.logVerbose", + type: { + name: "Boolean" + } + }, + logProgress: { + serializedName: "properties.logProgress", + type: { + name: "Boolean" + } + }, + source: { + required: true, + serializedName: "properties.source", + type: { + name: "Composite", + className: "ContentSource" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "DscConfigurationParameter" + } + } + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RunAsCredentialAssociationProperty: msRest.CompositeMapper = { + serializedName: "RunAsCredentialAssociationProperty", + type: { + name: "Composite", + className: "RunAsCredentialAssociationProperty", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const HybridRunbookWorker: msRest.CompositeMapper = { + serializedName: "HybridRunbookWorker", + type: { + name: "Composite", + className: "HybridRunbookWorker", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + ip: { + serializedName: "ip", + type: { + name: "String" + } + }, + registrationTime: { + nullable: false, + serializedName: "registrationTime", + type: { + name: "DateTime" + } + }, + lastSeenDateTime: { + nullable: false, + serializedName: "lastSeenDateTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const HybridRunbookWorkerGroup: msRest.CompositeMapper = { + serializedName: "HybridRunbookWorkerGroup", + type: { + name: "Composite", + className: "HybridRunbookWorkerGroup", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + hybridRunbookWorkers: { + serializedName: "hybridRunbookWorkers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HybridRunbookWorker" + } + } + } + }, + credential: { + serializedName: "credential", + type: { + name: "Composite", + className: "RunAsCredentialAssociationProperty" + } + }, + groupType: { + serializedName: "groupType", + type: { + name: "String" + } + } + } + } +}; + +export const HybridRunbookWorkerGroupUpdateParameters: msRest.CompositeMapper = { + serializedName: "HybridRunbookWorkerGroupUpdateParameters", + type: { + name: "Composite", + className: "HybridRunbookWorkerGroupUpdateParameters", + modelProperties: { + credential: { + serializedName: "credential", + type: { + name: "Composite", + className: "RunAsCredentialAssociationProperty" + } + } + } + } +}; + +export const ScheduleAssociationProperty: msRest.CompositeMapper = { + serializedName: "ScheduleAssociationProperty", + type: { + name: "Composite", + className: "ScheduleAssociationProperty", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const RunbookAssociationProperty: msRest.CompositeMapper = { + serializedName: "RunbookAssociationProperty", + type: { + name: "Composite", + className: "RunbookAssociationProperty", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const JobSchedule: msRest.CompositeMapper = { + serializedName: "JobSchedule", + type: { + name: "Composite", + className: "JobSchedule", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + 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 JobScheduleCreateParameters: msRest.CompositeMapper = { + serializedName: "JobScheduleCreateParameters", + type: { + name: "Composite", + className: "JobScheduleCreateParameters", + modelProperties: { + schedule: { + required: true, + serializedName: "properties.schedule", + type: { + name: "Composite", + className: "ScheduleAssociationProperty" + } + }, + runbook: { + required: true, + 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 LinkedWorkspace: msRest.CompositeMapper = { + serializedName: "LinkedWorkspace", + type: { + name: "Composite", + className: "LinkedWorkspace", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const ActivityParameterValidationSet: msRest.CompositeMapper = { + serializedName: "ActivityParameterValidationSet", + type: { + name: "Composite", + className: "ActivityParameterValidationSet", + modelProperties: { + memberValue: { + serializedName: "memberValue", + type: { + name: "String" + } + } + } + } +}; + +export const ActivityParameter: msRest.CompositeMapper = { + serializedName: "ActivityParameter", + type: { + name: "Composite", + className: "ActivityParameter", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + isMandatory: { + serializedName: "isMandatory", + type: { + name: "Boolean" + } + }, + isDynamic: { + serializedName: "isDynamic", + type: { + name: "Boolean" + } + }, + position: { + serializedName: "position", + type: { + name: "Number" + } + }, + valueFromPipeline: { + serializedName: "valueFromPipeline", + type: { + name: "Boolean" + } + }, + valueFromPipelineByPropertyName: { + serializedName: "valueFromPipelineByPropertyName", + type: { + name: "Boolean" + } + }, + valueFromRemainingArguments: { + serializedName: "valueFromRemainingArguments", + type: { + name: "Boolean" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + validationSet: { + serializedName: "validationSet", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivityParameterValidationSet" + } + } + } + } + } + } +}; + +export const ActivityParameterSet: msRest.CompositeMapper = { + serializedName: "ActivityParameterSet", + type: { + name: "Composite", + className: "ActivityParameterSet", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivityParameter" + } + } + } + } + } + } +}; + +export const ActivityOutputType: msRest.CompositeMapper = { + serializedName: "ActivityOutputType", + type: { + name: "Composite", + className: "ActivityOutputType", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const Activity: msRest.CompositeMapper = { + serializedName: "Activity", + type: { + name: "Composite", + className: "Activity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + definition: { + serializedName: "properties.definition", + 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: { + nullable: false, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const ModuleErrorInfo: msRest.CompositeMapper = { + serializedName: "ModuleErrorInfo", + type: { + name: "Composite", + className: "ModuleErrorInfo", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ContentLink: msRest.CompositeMapper = { + serializedName: "ContentLink", + 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 Module: msRest.CompositeMapper = { + serializedName: "Module", + type: { + name: "Composite", + className: "Module", + modelProperties: { + ...TrackedResource.type.modelProperties, + 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: "Enum", + allowedValues: [ + "Created", + "Creating", + "StartingImportModuleRunbook", + "RunningImportModuleRunbook", + "ContentRetrieved", + "ContentDownloaded", + "ContentValidated", + "ConnectionTypeImported", + "ContentStored", + "ModuleDataStored", + "ActivitiesStored", + "ModuleImportRunbookComplete", + "Succeeded", + "Failed", + "Cancelled", + "Updating" + ] + } + }, + contentLink: { + serializedName: "properties.contentLink", + type: { + name: "Composite", + className: "ContentLink" + } + }, + error: { + serializedName: "properties.error", + type: { + name: "Composite", + className: "ModuleErrorInfo" + } + }, + creationTime: { + nullable: false, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + isComposite: { + serializedName: "properties.isComposite", + type: { + name: "Boolean" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ModuleCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "ModuleCreateOrUpdateParameters", + type: { + name: "Composite", + className: "ModuleCreateOrUpdateParameters", + modelProperties: { + contentLink: { + required: true, + serializedName: "properties.contentLink", + type: { + name: "Composite", + className: "ContentLink" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ModuleUpdateParameters: msRest.CompositeMapper = { + serializedName: "ModuleUpdateParameters", + type: { + name: "Composite", + className: "ModuleUpdateParameters", + modelProperties: { + contentLink: { + serializedName: "properties.contentLink", + type: { + name: "Composite", + className: "ContentLink" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const TypeField: msRest.CompositeMapper = { + serializedName: "TypeField", + type: { + name: "Composite", + className: "TypeField", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const AdvancedScheduleMonthlyOccurrence: msRest.CompositeMapper = { + serializedName: "AdvancedScheduleMonthlyOccurrence", + type: { + name: "Composite", + className: "AdvancedScheduleMonthlyOccurrence", + modelProperties: { + occurrence: { + serializedName: "occurrence", + type: { + name: "Number" + } + }, + day: { + serializedName: "day", + type: { + name: "String" + } + } + } + } +}; + +export const AdvancedSchedule: msRest.CompositeMapper = { + serializedName: "AdvancedSchedule", + 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 ScheduleCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "ScheduleCreateOrUpdateParameters", + type: { + name: "Composite", + className: "ScheduleCreateOrUpdateParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + startTime: { + required: true, + nullable: false, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + expiryTime: { + nullable: true, + serializedName: "properties.expiryTime", + type: { + name: "DateTime" + } + }, + interval: { + serializedName: "properties.interval", + type: { + name: "Object" + } + }, + frequency: { + required: true, + serializedName: "properties.frequency", + type: { + name: "String" + } + }, + timeZone: { + serializedName: "properties.timeZone", + type: { + name: "String" + } + }, + advancedSchedule: { + serializedName: "properties.advancedSchedule", + type: { + name: "Composite", + className: "AdvancedSchedule" + } + } + } + } +}; + +export const ScheduleProperties: msRest.CompositeMapper = { + serializedName: "ScheduleProperties", + type: { + name: "Composite", + className: "ScheduleProperties", + modelProperties: { + startTime: { + nullable: false, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + startTimeOffsetMinutes: { + nullable: false, + readOnly: true, + serializedName: "startTimeOffsetMinutes", + type: { + name: "Number" + } + }, + expiryTime: { + nullable: true, + serializedName: "expiryTime", + type: { + name: "DateTime" + } + }, + expiryTimeOffsetMinutes: { + nullable: false, + serializedName: "expiryTimeOffsetMinutes", + type: { + name: "Number" + } + }, + isEnabled: { + serializedName: "isEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + nextRun: { + nullable: true, + serializedName: "nextRun", + type: { + name: "DateTime" + } + }, + nextRunOffsetMinutes: { + nullable: false, + 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: { + nullable: false, + serializedName: "creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Schedule: msRest.CompositeMapper = { + serializedName: "Schedule", + type: { + name: "Composite", + className: "Schedule", + modelProperties: { + ...ProxyResource.type.modelProperties, + startTime: { + nullable: false, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + startTimeOffsetMinutes: { + nullable: false, + readOnly: true, + serializedName: "properties.startTimeOffsetMinutes", + type: { + name: "Number" + } + }, + expiryTime: { + nullable: true, + serializedName: "properties.expiryTime", + type: { + name: "DateTime" + } + }, + expiryTimeOffsetMinutes: { + nullable: false, + serializedName: "properties.expiryTimeOffsetMinutes", + type: { + name: "Number" + } + }, + isEnabled: { + serializedName: "properties.isEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + nextRun: { + nullable: true, + serializedName: "properties.nextRun", + type: { + name: "DateTime" + } + }, + nextRunOffsetMinutes: { + nullable: false, + serializedName: "properties.nextRunOffsetMinutes", + type: { + name: "Number" + } + }, + interval: { + serializedName: "properties.interval", + type: { + name: "Number" + } + }, + frequency: { + serializedName: "properties.frequency", + type: { + name: "String" + } + }, + timeZone: { + serializedName: "properties.timeZone", + type: { + name: "String" + } + }, + advancedSchedule: { + serializedName: "properties.advancedSchedule", + type: { + name: "Composite", + className: "AdvancedSchedule" + } + }, + creationTime: { + nullable: false, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const ScheduleUpdateParameters: msRest.CompositeMapper = { + serializedName: "ScheduleUpdateParameters", + type: { + name: "Composite", + className: "ScheduleUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const VariableCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "VariableCreateOrUpdateParameters", + type: { + name: "Composite", + className: "VariableCreateOrUpdateParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + 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 Variable: msRest.CompositeMapper = { + serializedName: "Variable", + type: { + name: "Composite", + className: "Variable", + modelProperties: { + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + }, + isEncrypted: { + nullable: true, + serializedName: "properties.isEncrypted", + type: { + name: "Boolean" + } + }, + creationTime: { + nullable: false, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const VariableUpdateParameters: msRest.CompositeMapper = { + serializedName: "VariableUpdateParameters", + type: { + name: "Composite", + className: "VariableUpdateParameters", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const Webhook: msRest.CompositeMapper = { + serializedName: "Webhook", + type: { + name: "Composite", + className: "Webhook", + modelProperties: { + ...ProxyResource.type.modelProperties, + isEnabled: { + serializedName: "properties.isEnabled", + defaultValue: false, + type: { + name: "Boolean" + } + }, + uri: { + serializedName: "properties.uri", + type: { + name: "String" + } + }, + expiryTime: { + nullable: false, + serializedName: "properties.expiryTime", + type: { + name: "DateTime" + } + }, + lastInvokedTime: { + nullable: true, + serializedName: "properties.lastInvokedTime", + 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" + } + }, + creationTime: { + nullable: false, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const WebhookUpdateParameters: msRest.CompositeMapper = { + serializedName: "WebhookUpdateParameters", + 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 WebhookCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "WebhookCreateOrUpdateParameters", + type: { + name: "Composite", + className: "WebhookCreateOrUpdateParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean" + } + }, + uri: { + serializedName: "properties.uri", + type: { + name: "String" + } + }, + expiryTime: { + nullable: false, + 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 Watcher: msRest.CompositeMapper = { + serializedName: "Watcher", + type: { + name: "Composite", + className: "Watcher", + modelProperties: { + ...TrackedResource.type.modelProperties, + executionFrequencyInSeconds: { + serializedName: "properties.executionFrequencyInSeconds", + type: { + name: "Number" + } + }, + scriptName: { + serializedName: "properties.scriptName", + type: { + name: "String" + } + }, + scriptParameters: { + serializedName: "properties.scriptParameters", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + scriptRunOn: { + serializedName: "properties.scriptRunOn", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + readOnly: true, + serializedName: "properties.lastModifiedBy", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const WatcherUpdateParameters: msRest.CompositeMapper = { + serializedName: "WatcherUpdateParameters", + type: { + name: "Composite", + className: "WatcherUpdateParameters", + modelProperties: { + executionFrequencyInSeconds: { + serializedName: "properties.executionFrequencyInSeconds", + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const WindowsProperties: msRest.CompositeMapper = { + serializedName: "WindowsProperties", + type: { + name: "Composite", + className: "WindowsProperties", + modelProperties: { + includedUpdateClassifications: { + serializedName: "includedUpdateClassifications", + type: { + name: "String" + } + }, + excludedKbNumbers: { + serializedName: "excludedKbNumbers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + includedKbNumbers: { + serializedName: "includedKbNumbers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + rebootSetting: { + serializedName: "rebootSetting", + type: { + name: "String" + } + } + } + } +}; + +export const LinuxProperties: msRest.CompositeMapper = { + serializedName: "LinuxProperties", + type: { + name: "Composite", + className: "LinuxProperties", + modelProperties: { + includedPackageClassifications: { + serializedName: "includedPackageClassifications", + type: { + name: "String" + } + }, + excludedPackageNameMasks: { + serializedName: "excludedPackageNameMasks", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + includedPackageNameMasks: { + serializedName: "includedPackageNameMasks", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + rebootSetting: { + serializedName: "rebootSetting", + type: { + name: "String" + } + } + } + } +}; + +export const TagSettingsProperties: msRest.CompositeMapper = { + serializedName: "TagSettingsProperties", + 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 AzureQueryProperties: msRest.CompositeMapper = { + serializedName: "AzureQueryProperties", + 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 NonAzureQueryProperties: msRest.CompositeMapper = { + serializedName: "NonAzureQueryProperties", + type: { + name: "Composite", + className: "NonAzureQueryProperties", + modelProperties: { + functionAlias: { + serializedName: "functionAlias", + type: { + name: "String" + } + }, + workspaceId: { + serializedName: "workspaceId", + type: { + name: "String" + } + } + } + } +}; + +export const TargetProperties: msRest.CompositeMapper = { + serializedName: "TargetProperties", + type: { + name: "Composite", + className: "TargetProperties", + modelProperties: { + azureQueries: { + serializedName: "azureQueries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureQueryProperties" + } + } + } + }, + nonAzureQueries: { + serializedName: "nonAzureQueries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NonAzureQueryProperties" + } + } + } + } + } + } +}; + +export const UpdateConfiguration: msRest.CompositeMapper = { + serializedName: "updateConfiguration", + type: { + name: "Composite", + className: "UpdateConfiguration", + modelProperties: { + operatingSystem: { + required: true, + serializedName: "operatingSystem", + 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", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nonAzureComputerNames: { + serializedName: "nonAzureComputerNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + targets: { + serializedName: "targets", + type: { + name: "Composite", + className: "TargetProperties" + } + } + } + } +}; + +export const TaskProperties: msRest.CompositeMapper = { + serializedName: "taskProperties", + type: { + name: "Composite", + className: "TaskProperties", + modelProperties: { + parameters: { + serializedName: "parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + source: { + serializedName: "source", + type: { + name: "String" + } + } + } + } +}; + +export const SoftwareUpdateConfigurationTasks: msRest.CompositeMapper = { + serializedName: "softwareUpdateConfigurationTasks", + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationTasks", + modelProperties: { + preTask: { + serializedName: "preTask", + type: { + name: "Composite", + className: "TaskProperties" + } + }, + postTask: { + serializedName: "postTask", + type: { + name: "Composite", + className: "TaskProperties" + } + } + } + } +}; + +export const SoftwareUpdateConfiguration: msRest.CompositeMapper = { + serializedName: "softwareUpdateConfiguration", + type: { + name: "Composite", + className: "SoftwareUpdateConfiguration", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + updateConfiguration: { + required: true, + serializedName: "properties.updateConfiguration", + type: { + name: "Composite", + className: "UpdateConfiguration" + } + }, + scheduleInfo: { + required: true, + serializedName: "properties.scheduleInfo", + type: { + name: "Composite", + className: "ScheduleProperties" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + error: { + serializedName: "properties.error", + type: { + name: "Composite", + className: "ErrorResponse" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + createdBy: { + readOnly: true, + serializedName: "properties.createdBy", + type: { + name: "String" + } + }, + lastModifiedTime: { + nullable: false, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + readOnly: true, + serializedName: "properties.lastModifiedBy", + type: { + name: "String" + } + }, + tasks: { + serializedName: "properties.tasks", + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationTasks" + } + } + } + } +}; + +export const CollectionItemUpdateConfiguration: msRest.CompositeMapper = { + serializedName: "collectionItemUpdateConfiguration", + type: { + name: "Composite", + className: "CollectionItemUpdateConfiguration", + modelProperties: { + azureVirtualMachines: { + serializedName: "azureVirtualMachines", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + duration: { + serializedName: "duration", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const SoftwareUpdateConfigurationCollectionItem: msRest.CompositeMapper = { + serializedName: "softwareUpdateConfigurationCollectionItem", + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationCollectionItem", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + updateConfiguration: { + serializedName: "properties.updateConfiguration", + type: { + name: "Composite", + className: "CollectionItemUpdateConfiguration" + } + }, + frequency: { + serializedName: "properties.frequency", + type: { + name: "String" + } + }, + startTime: { + nullable: false, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + nextRun: { + nullable: true, + serializedName: "properties.nextRun", + type: { + name: "DateTime" + } + } + } + } +}; + +export const SoftwareUpdateConfigurationListResult: msRest.CompositeMapper = { + serializedName: "softwareUpdateConfigurationListResult", + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationCollectionItem" + } + } + } + } + } + } +}; + +export const UpdateConfigurationNavigation: msRest.CompositeMapper = { + serializedName: "updateConfigurationNavigation", + type: { + name: "Composite", + className: "UpdateConfigurationNavigation", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const SoftareUpdateConfigurationRunTaskProperties: msRest.CompositeMapper = { + serializedName: "softareUpdateConfigurationRunTaskProperties", + type: { + name: "Composite", + className: "SoftareUpdateConfigurationRunTaskProperties", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + source: { + serializedName: "source", + type: { + name: "String" + } + }, + jobId: { + serializedName: "jobId", + type: { + name: "String" + } + } + } + } +}; + +export const SoftareUpdateConfigurationRunTasks: msRest.CompositeMapper = { + serializedName: "softareUpdateConfigurationRunTasks", + type: { + name: "Composite", + className: "SoftareUpdateConfigurationRunTasks", + modelProperties: { + preTask: { + serializedName: "preTask", + type: { + name: "Composite", + className: "SoftareUpdateConfigurationRunTaskProperties" + } + }, + postTask: { + serializedName: "postTask", + type: { + name: "Composite", + className: "SoftareUpdateConfigurationRunTaskProperties" + } + } + } + } +}; + +export const SoftwareUpdateConfigurationRun: msRest.CompositeMapper = { + serializedName: "softwareUpdateConfigurationRun", + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationRun", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + softwareUpdateConfiguration: { + serializedName: "properties.softwareUpdateConfiguration", + type: { + name: "Composite", + className: "UpdateConfigurationNavigation" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + configuredDuration: { + readOnly: true, + serializedName: "properties.configuredDuration", + type: { + name: "String" + } + }, + osType: { + readOnly: true, + serializedName: "properties.osType", + type: { + name: "String" + } + }, + startTime: { + nullable: false, + readOnly: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + nullable: true, + readOnly: true, + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + computerCount: { + readOnly: true, + serializedName: "properties.computerCount", + type: { + name: "Number" + } + }, + failedCount: { + readOnly: true, + serializedName: "properties.failedCount", + type: { + name: "Number" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + createdBy: { + readOnly: true, + serializedName: "properties.createdBy", + type: { + name: "String" + } + }, + lastModifiedTime: { + nullable: false, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + readOnly: true, + serializedName: "properties.lastModifiedBy", + type: { + name: "String" + } + }, + tasks: { + serializedName: "properties.tasks", + type: { + name: "Composite", + className: "SoftareUpdateConfigurationRunTasks" + } + } + } + } +}; + +export const SoftwareUpdateConfigurationRunListResult: msRest.CompositeMapper = { + serializedName: "softwareUpdateConfigurationRunListResult", + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationRunListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationRun" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const JobNavigation: msRest.CompositeMapper = { + serializedName: "jobNavigation", + type: { + name: "Composite", + className: "JobNavigation", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const SoftwareUpdateConfigurationMachineRun: msRest.CompositeMapper = { + serializedName: "softwareUpdateConfigurationMachineRun", + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationMachineRun", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + targetComputer: { + readOnly: true, + serializedName: "properties.targetComputer", + type: { + name: "String" + } + }, + targetComputerType: { + readOnly: true, + serializedName: "properties.targetComputerType", + type: { + name: "String" + } + }, + softwareUpdateConfiguration: { + serializedName: "properties.softwareUpdateConfiguration", + type: { + name: "Composite", + className: "UpdateConfigurationNavigation" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + osType: { + readOnly: true, + serializedName: "properties.osType", + type: { + name: "String" + } + }, + correlationId: { + readOnly: true, + serializedName: "properties.correlationId", + type: { + name: "Uuid" + } + }, + sourceComputerId: { + readOnly: true, + serializedName: "properties.sourceComputerId", + type: { + name: "Uuid" + } + }, + startTime: { + nullable: false, + readOnly: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + nullable: true, + readOnly: true, + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + configuredDuration: { + readOnly: true, + serializedName: "properties.configuredDuration", + type: { + name: "String" + } + }, + job: { + serializedName: "properties.job", + type: { + name: "Composite", + className: "JobNavigation" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + createdBy: { + readOnly: true, + serializedName: "properties.createdBy", + type: { + name: "String" + } + }, + lastModifiedTime: { + nullable: false, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + readOnly: true, + serializedName: "properties.lastModifiedBy", + type: { + name: "String" + } + }, + error: { + serializedName: "properties.error", + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + } +}; + +export const SoftwareUpdateConfigurationMachineRunListResult: msRest.CompositeMapper = { + serializedName: "softwareUpdateConfigurationMachineRunListResult", + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationMachineRunListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SoftwareUpdateConfigurationMachineRun" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControl: msRest.CompositeMapper = { + serializedName: "SourceControl", + type: { + name: "Composite", + className: "SourceControl", + modelProperties: { + ...ProxyResource.type.modelProperties, + repoUrl: { + serializedName: "properties.repoUrl", + type: { + name: "String" + } + }, + branch: { + serializedName: "properties.branch", + type: { + name: "String" + } + }, + folderPath: { + serializedName: "properties.folderPath", + type: { + name: "String" + } + }, + autoSync: { + serializedName: "properties.autoSync", + type: { + name: "Boolean" + } + }, + publishRunbook: { + serializedName: "properties.publishRunbook", + type: { + name: "Boolean" + } + }, + sourceType: { + serializedName: "properties.sourceType", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + creationTime: { + nullable: false, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const SourceControlSecurityTokenProperties: msRest.CompositeMapper = { + serializedName: "SourceControlSecurityTokenProperties", + type: { + name: "Composite", + className: "SourceControlSecurityTokenProperties", + modelProperties: { + accessToken: { + serializedName: "accessToken", + constraints: { + MaxLength: 1024 + }, + type: { + name: "String" + } + }, + refreshToken: { + serializedName: "refreshToken", + constraints: { + MaxLength: 1024 + }, + type: { + name: "String" + } + }, + tokenType: { + serializedName: "tokenType", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlUpdateParameters: msRest.CompositeMapper = { + serializedName: "SourceControlUpdateParameters", + type: { + name: "Composite", + className: "SourceControlUpdateParameters", + modelProperties: { + branch: { + serializedName: "properties.branch", + type: { + name: "String" + } + }, + folderPath: { + serializedName: "properties.folderPath", + type: { + name: "String" + } + }, + autoSync: { + serializedName: "properties.autoSync", + type: { + name: "Boolean" + } + }, + publishRunbook: { + serializedName: "properties.publishRunbook", + type: { + name: "Boolean" + } + }, + securityToken: { + serializedName: "properties.securityToken", + type: { + name: "Composite", + className: "SourceControlSecurityTokenProperties" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "SourceControlCreateOrUpdateParameters", + type: { + name: "Composite", + className: "SourceControlCreateOrUpdateParameters", + modelProperties: { + repoUrl: { + serializedName: "properties.repoUrl", + constraints: { + MaxLength: 2000 + }, + type: { + name: "String" + } + }, + branch: { + serializedName: "properties.branch", + constraints: { + MaxLength: 255 + }, + type: { + name: "String" + } + }, + folderPath: { + serializedName: "properties.folderPath", + constraints: { + MaxLength: 255 + }, + type: { + name: "String" + } + }, + autoSync: { + serializedName: "properties.autoSync", + type: { + name: "Boolean" + } + }, + publishRunbook: { + serializedName: "properties.publishRunbook", + type: { + name: "Boolean" + } + }, + sourceType: { + serializedName: "properties.sourceType", + type: { + name: "String" + } + }, + securityToken: { + serializedName: "properties.securityToken", + type: { + name: "Composite", + className: "SourceControlSecurityTokenProperties" + } + }, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 512 + }, + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlSyncJob: msRest.CompositeMapper = { + serializedName: "SourceControlSyncJob", + type: { + name: "Composite", + className: "SourceControlSyncJob", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + sourceControlSyncJobId: { + serializedName: "properties.sourceControlSyncJobId", + type: { + name: "String" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + startTime: { + nullable: true, + readOnly: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + nullable: true, + readOnly: true, + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + syncType: { + serializedName: "properties.syncType", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlSyncJobCreateParameters: msRest.CompositeMapper = { + serializedName: "SourceControlSyncJobCreateParameters", + type: { + name: "Composite", + className: "SourceControlSyncJobCreateParameters", + modelProperties: { + commitId: { + required: true, + serializedName: "properties.commitId", + constraints: { + MinLength: 0 + }, + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlSyncJobById: msRest.CompositeMapper = { + serializedName: "SourceControlSyncJobById", + type: { + name: "Composite", + className: "SourceControlSyncJobById", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + sourceControlSyncJobId: { + serializedName: "properties.sourceControlSyncJobId", + type: { + name: "String" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + startTime: { + nullable: true, + readOnly: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + nullable: true, + readOnly: true, + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + syncType: { + serializedName: "properties.syncType", + type: { + name: "String" + } + }, + exception: { + serializedName: "properties.exception", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlSyncJobStream: msRest.CompositeMapper = { + serializedName: "SourceControlSyncJobStream", + type: { + name: "Composite", + className: "SourceControlSyncJobStream", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + sourceControlSyncJobStreamId: { + serializedName: "properties.sourceControlSyncJobStreamId", + type: { + name: "String" + } + }, + summary: { + serializedName: "properties.summary", + type: { + name: "String" + } + }, + time: { + nullable: true, + readOnly: true, + serializedName: "properties.time", + type: { + name: "DateTime" + } + }, + streamType: { + serializedName: "properties.streamType", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlSyncJobStreamById: msRest.CompositeMapper = { + serializedName: "SourceControlSyncJobStreamById", + type: { + name: "Composite", + className: "SourceControlSyncJobStreamById", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + sourceControlSyncJobStreamId: { + serializedName: "properties.sourceControlSyncJobStreamId", + type: { + name: "String" + } + }, + summary: { + serializedName: "properties.summary", + type: { + name: "String" + } + }, + time: { + nullable: true, + readOnly: true, + serializedName: "properties.time", + 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: "Object" + } + } + } + } + } + } +}; + +export const JobStream: msRest.CompositeMapper = { + serializedName: "JobStream", + type: { + name: "Composite", + className: "JobStream", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + jobStreamId: { + serializedName: "properties.jobStreamId", + type: { + name: "String" + } + }, + time: { + nullable: false, + serializedName: "properties.time", + type: { + name: "DateTime" + } + }, + streamType: { + serializedName: "properties.streamType", + type: { + name: "String" + } + }, + streamText: { + serializedName: "properties.streamText", + type: { + name: "String" + } + }, + summary: { + serializedName: "properties.summary", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + } + } + } +}; + +export const Job: msRest.CompositeMapper = { + serializedName: "Job", + type: { + name: "Composite", + className: "Job", + modelProperties: { + ...ProxyResource.type.modelProperties, + runbook: { + serializedName: "properties.runbook", + type: { + name: "Composite", + className: "RunbookAssociationProperty" + } + }, + startedBy: { + serializedName: "properties.startedBy", + type: { + name: "String" + } + }, + runOn: { + serializedName: "properties.runOn", + type: { + name: "String" + } + }, + jobId: { + nullable: false, + serializedName: "properties.jobId", + type: { + name: "Uuid" + } + }, + creationTime: { + nullable: false, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "String" + } + }, + statusDetails: { + serializedName: "properties.statusDetails", + type: { + name: "String" + } + }, + startTime: { + nullable: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + nullable: true, + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + exception: { + serializedName: "properties.exception", + type: { + name: "String" + } + }, + lastModifiedTime: { + nullable: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + lastStatusModifiedTime: { + nullable: true, + serializedName: "properties.lastStatusModifiedTime", + type: { + name: "DateTime" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const JobCollectionItem: msRest.CompositeMapper = { + serializedName: "JobCollectionItem", + type: { + name: "Composite", + className: "JobCollectionItem", + modelProperties: { + ...ProxyResource.type.modelProperties, + runbook: { + readOnly: true, + serializedName: "properties.runbook", + type: { + name: "Composite", + className: "RunbookAssociationProperty" + } + }, + jobId: { + nullable: false, + readOnly: true, + serializedName: "properties.jobId", + type: { + name: "Uuid" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + startTime: { + nullable: true, + readOnly: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + nullable: true, + readOnly: true, + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: true, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + runOn: { + serializedName: "properties.runOn", + type: { + name: "String" + } + } + } + } +}; + +export const JobCreateParameters: msRest.CompositeMapper = { + serializedName: "JobCreateParameters", + type: { + name: "Composite", + className: "JobCreateParameters", + modelProperties: { + runbook: { + serializedName: "properties.runbook", + type: { + name: "Composite", + className: "RunbookAssociationProperty" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + runOn: { + serializedName: "properties.runOn", + type: { + name: "String" + } + } + } + } +}; + +export const DscReportError: msRest.CompositeMapper = { + serializedName: "DscReportError", + type: { + name: "Composite", + className: "DscReportError", + modelProperties: { + errorSource: { + serializedName: "errorSource", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + errorCode: { + serializedName: "errorCode", + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + }, + locale: { + serializedName: "locale", + type: { + name: "String" + } + }, + errorDetails: { + serializedName: "errorDetails", + type: { + name: "String" + } + } + } + } +}; + +export const DscReportResourceNavigation: msRest.CompositeMapper = { + serializedName: "DscReportResourceNavigation", + type: { + name: "Composite", + className: "DscReportResourceNavigation", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const DscReportResource: msRest.CompositeMapper = { + serializedName: "DscReportResource", + type: { + name: "Composite", + className: "DscReportResource", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + sourceInfo: { + serializedName: "sourceInfo", + type: { + name: "String" + } + }, + dependsOn: { + serializedName: "dependsOn", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscReportResourceNavigation" + } + } + } + }, + moduleName: { + serializedName: "moduleName", + type: { + name: "String" + } + }, + moduleVersion: { + serializedName: "moduleVersion", + type: { + name: "String" + } + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + durationInSeconds: { + serializedName: "durationInSeconds", + type: { + name: "Number" + } + }, + startDate: { + nullable: false, + serializedName: "startDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const DscMetaConfiguration: msRest.CompositeMapper = { + serializedName: "DscMetaConfiguration", + type: { + name: "Composite", + className: "DscMetaConfiguration", + modelProperties: { + configurationModeFrequencyMins: { + serializedName: "configurationModeFrequencyMins", + type: { + name: "Number" + } + }, + rebootNodeIfNeeded: { + serializedName: "rebootNodeIfNeeded", + type: { + name: "Boolean" + } + }, + configurationMode: { + serializedName: "configurationMode", + type: { + name: "String" + } + }, + actionAfterReboot: { + serializedName: "actionAfterReboot", + type: { + name: "String" + } + }, + certificateId: { + serializedName: "certificateId", + type: { + name: "String" + } + }, + refreshFrequencyMins: { + serializedName: "refreshFrequencyMins", + type: { + name: "Number" + } + }, + allowModuleOverwrite: { + serializedName: "allowModuleOverwrite", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DscNodeReport: msRest.CompositeMapper = { + serializedName: "DscNodeReport", + type: { + name: "Composite", + className: "DscNodeReport", + modelProperties: { + endTime: { + nullable: true, + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "lastModifiedTime", + type: { + name: "DateTime" + } + }, + startTime: { + nullable: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + reportId: { + serializedName: "reportId", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + refreshMode: { + serializedName: "refreshMode", + type: { + name: "String" + } + }, + rebootRequested: { + serializedName: "rebootRequested", + type: { + name: "String" + } + }, + reportFormatVersion: { + serializedName: "reportFormatVersion", + type: { + name: "String" + } + }, + configurationVersion: { + serializedName: "configurationVersion", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + }, + errors: { + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscReportError" + } + } + } + }, + resources: { + serializedName: "resources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscReportResource" + } + } + } + }, + metaConfiguration: { + serializedName: "metaConfiguration", + type: { + name: "Composite", + className: "DscMetaConfiguration" + } + }, + hostName: { + serializedName: "hostName", + type: { + name: "String" + } + }, + iPV4Addresses: { + serializedName: "iPV4Addresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + iPV6Addresses: { + serializedName: "iPV6Addresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + numberOfResources: { + serializedName: "numberOfResources", + type: { + name: "Number" + } + }, + rawErrors: { + serializedName: "rawErrors", + type: { + name: "String" + } + } + } + } +}; + +export const AgentRegistrationKeys: msRest.CompositeMapper = { + serializedName: "AgentRegistrationKeys", + type: { + name: "Composite", + className: "AgentRegistrationKeys", + modelProperties: { + primary: { + serializedName: "primary", + type: { + name: "String" + } + }, + secondary: { + serializedName: "secondary", + type: { + name: "String" + } + } + } + } +}; + +export const AgentRegistration: msRest.CompositeMapper = { + serializedName: "AgentRegistration", + type: { + name: "Composite", + className: "AgentRegistration", + modelProperties: { + dscMetaConfiguration: { + serializedName: "dscMetaConfiguration", + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + type: { + name: "String" + } + }, + keys: { + serializedName: "keys", + type: { + name: "Composite", + className: "AgentRegistrationKeys" + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const DscNodeExtensionHandlerAssociationProperty: msRest.CompositeMapper = { + serializedName: "DscNodeExtensionHandlerAssociationProperty", + type: { + name: "Composite", + className: "DscNodeExtensionHandlerAssociationProperty", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const DscNode: msRest.CompositeMapper = { + serializedName: "DscNode", + type: { + name: "Composite", + className: "DscNode", + modelProperties: { + ...ProxyResource.type.modelProperties, + lastSeen: { + nullable: false, + serializedName: "properties.lastSeen", + type: { + name: "DateTime" + } + }, + registrationTime: { + nullable: false, + serializedName: "properties.registrationTime", + type: { + name: "DateTime" + } + }, + ip: { + serializedName: "properties.ip", + type: { + name: "String" + } + }, + accountId: { + serializedName: "properties.accountId", + type: { + name: "String" + } + }, + dscNodeName: { + serializedName: "properties.nodeConfiguration.name", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "String" + } + }, + nodeId: { + serializedName: "properties.nodeId", + type: { + name: "String" + } + }, + etag: { + serializedName: "properties.etag", + type: { + name: "String" + } + }, + totalCount: { + serializedName: "properties.totalCount", + type: { + name: "Number" + } + }, + extensionHandler: { + serializedName: "properties.extensionHandler", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscNodeExtensionHandlerAssociationProperty" + } + } + } + } + } + } +}; + +export const AgentRegistrationRegenerateKeyParameter: msRest.CompositeMapper = { + serializedName: "AgentRegistrationRegenerateKeyParameter", + type: { + name: "Composite", + className: "AgentRegistrationRegenerateKeyParameter", + modelProperties: { + keyName: { + required: true, + serializedName: "keyName", + type: { + name: "String" + } + } + } + } +}; + +export const DscNodeUpdateParametersProperties: msRest.CompositeMapper = { + serializedName: "DscNodeUpdateParameters_properties", + type: { + name: "Composite", + className: "DscNodeUpdateParametersProperties", + modelProperties: { + name: { + serializedName: "nodeConfiguration.name", + type: { + name: "String" + } + } + } + } +}; + +export const DscNodeUpdateParameters: msRest.CompositeMapper = { + serializedName: "DscNodeUpdateParameters", + type: { + name: "Composite", + className: "DscNodeUpdateParameters", + modelProperties: { + nodeId: { + serializedName: "nodeId", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DscNodeUpdateParametersProperties" + } + } + } + } +}; + +export const DscConfigurationAssociationProperty: msRest.CompositeMapper = { + serializedName: "DscConfigurationAssociationProperty", + type: { + name: "Composite", + className: "DscConfigurationAssociationProperty", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const DscCompilationJob: msRest.CompositeMapper = { + serializedName: "DscCompilationJob", + type: { + name: "Composite", + className: "DscCompilationJob", + modelProperties: { + ...ProxyResource.type.modelProperties, + configuration: { + serializedName: "properties.configuration", + type: { + name: "Composite", + className: "DscConfigurationAssociationProperty" + } + }, + startedBy: { + readOnly: true, + serializedName: "properties.startedBy", + type: { + name: "String" + } + }, + jobId: { + nullable: false, + readOnly: true, + serializedName: "properties.jobId", + type: { + name: "Uuid" + } + }, + creationTime: { + nullable: false, + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + runOn: { + serializedName: "properties.runOn", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "String" + } + }, + statusDetails: { + serializedName: "properties.statusDetails", + type: { + name: "String" + } + }, + startTime: { + nullable: true, + readOnly: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + endTime: { + nullable: true, + readOnly: true, + serializedName: "properties.endTime", + type: { + name: "DateTime" + } + }, + exception: { + readOnly: true, + serializedName: "properties.exception", + type: { + name: "String" + } + }, + lastModifiedTime: { + nullable: false, + readOnly: true, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + lastStatusModifiedTime: { + nullable: true, + readOnly: true, + serializedName: "properties.lastStatusModifiedTime", + type: { + name: "DateTime" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DscCompilationJobCreateParameters: msRest.CompositeMapper = { + serializedName: "DscCompilationJobCreateParameters", + type: { + name: "Composite", + className: "DscCompilationJobCreateParameters", + modelProperties: { + configuration: { + required: true, + serializedName: "properties.configuration", + type: { + name: "Composite", + className: "DscConfigurationAssociationProperty" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + incrementNodeConfigurationBuild: { + serializedName: "properties.incrementNodeConfigurationBuild", + type: { + name: "Boolean" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DscNodeConfiguration: msRest.CompositeMapper = { + serializedName: "DscNodeConfiguration", + type: { + name: "Composite", + className: "DscNodeConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + lastModifiedTime: { + nullable: false, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + creationTime: { + nullable: false, + 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 DscNodeConfigurationCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "DscNodeConfigurationCreateOrUpdateParameters", + type: { + name: "Composite", + className: "DscNodeConfigurationCreateOrUpdateParameters", + modelProperties: { + source: { + required: true, + serializedName: "properties.source", + type: { + name: "Composite", + className: "ContentSource" + } + }, + configuration: { + required: true, + serializedName: "properties.configuration", + type: { + name: "Composite", + className: "DscConfigurationAssociationProperty" + } + }, + incrementNodeConfigurationBuild: { + serializedName: "properties.incrementNodeConfigurationBuild", + type: { + name: "Boolean" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const NodeCountProperties: msRest.CompositeMapper = { + serializedName: "NodeCountProperties", + type: { + name: "Composite", + className: "NodeCountProperties", + modelProperties: { + count: { + serializedName: "count", + type: { + name: "Number" + } + } + } + } +}; + +export const NodeCount: msRest.CompositeMapper = { + serializedName: "NodeCount", + type: { + name: "Composite", + className: "NodeCount", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "NodeCountProperties" + } + } + } + } +}; + +export const NodeCounts: msRest.CompositeMapper = { + serializedName: "NodeCounts", + type: { + name: "Composite", + className: "NodeCounts", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NodeCount" + } + } + } + }, + totalCount: { + serializedName: "totalCount", + type: { + name: "Number" + } + } + } + } +}; + +export const RunbookParameter: msRest.CompositeMapper = { + serializedName: "RunbookParameter", + type: { + name: "Composite", + className: "RunbookParameter", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + isMandatory: { + serializedName: "isMandatory", + type: { + name: "Boolean" + } + }, + position: { + serializedName: "position", + type: { + name: "Number" + } + }, + defaultValue: { + serializedName: "defaultValue", + type: { + name: "String" + } + } + } + } +}; + +export const RunbookDraft: msRest.CompositeMapper = { + serializedName: "RunbookDraft", + type: { + name: "Composite", + className: "RunbookDraft", + modelProperties: { + inEdit: { + serializedName: "inEdit", + type: { + name: "Boolean" + } + }, + draftContentLink: { + serializedName: "draftContentLink", + type: { + name: "Composite", + className: "ContentLink" + } + }, + creationTime: { + nullable: false, + serializedName: "creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "lastModifiedTime", + type: { + name: "DateTime" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "RunbookParameter" + } + } + } + }, + outputTypes: { + serializedName: "outputTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const Runbook: msRest.CompositeMapper = { + serializedName: "Runbook", + type: { + name: "Composite", + className: "Runbook", + modelProperties: { + ...TrackedResource.type.modelProperties, + runbookType: { + serializedName: "properties.runbookType", + type: { + name: "String" + } + }, + publishContentLink: { + serializedName: "properties.publishContentLink", + type: { + name: "Composite", + className: "ContentLink" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + logVerbose: { + serializedName: "properties.logVerbose", + type: { + name: "Boolean" + } + }, + logProgress: { + serializedName: "properties.logProgress", + type: { + name: "Boolean" + } + }, + logActivityTrace: { + serializedName: "properties.logActivityTrace", + type: { + name: "Number" + } + }, + jobCount: { + serializedName: "properties.jobCount", + type: { + name: "Number" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "RunbookParameter" + } + } + } + }, + outputTypes: { + serializedName: "properties.outputTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + draft: { + serializedName: "properties.draft", + type: { + name: "Composite", + className: "RunbookDraft" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "Enum", + allowedValues: [ + "Succeeded" + ] + } + }, + lastModifiedBy: { + serializedName: "properties.lastModifiedBy", + type: { + name: "String" + } + }, + creationTime: { + nullable: false, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "properties.lastModifiedTime", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const RunbookCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "RunbookCreateOrUpdateParameters", + type: { + name: "Composite", + className: "RunbookCreateOrUpdateParameters", + modelProperties: { + logVerbose: { + serializedName: "properties.logVerbose", + type: { + name: "Boolean" + } + }, + logProgress: { + serializedName: "properties.logProgress", + type: { + name: "Boolean" + } + }, + runbookType: { + required: true, + serializedName: "properties.runbookType", + type: { + name: "String" + } + }, + draft: { + serializedName: "properties.draft", + type: { + 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" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RunbookUpdateParameters: msRest.CompositeMapper = { + serializedName: "RunbookUpdateParameters", + type: { + name: "Composite", + className: "RunbookUpdateParameters", + modelProperties: { + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + logVerbose: { + serializedName: "properties.logVerbose", + type: { + name: "Boolean" + } + }, + logProgress: { + serializedName: "properties.logProgress", + type: { + name: "Boolean" + } + }, + logActivityTrace: { + serializedName: "properties.logActivityTrace", + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RunbookDraftUndoEditResult: msRest.CompositeMapper = { + serializedName: "RunbookDraftUndoEditResult", + type: { + name: "Composite", + className: "RunbookDraftUndoEditResult", + modelProperties: { + statusCode: { + serializedName: "statusCode", + type: { + name: "String" + } + }, + requestId: { + serializedName: "requestId", + type: { + name: "String" + } + } + } + } +}; + +export const TestJobCreateParameters: msRest.CompositeMapper = { + serializedName: "TestJobCreateParameters", + type: { + name: "Composite", + className: "TestJobCreateParameters", + modelProperties: { + parameters: { + serializedName: "parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + runOn: { + serializedName: "runOn", + type: { + name: "String" + } + } + } + } +}; + +export const TestJob: msRest.CompositeMapper = { + serializedName: "TestJob", + type: { + name: "Composite", + className: "TestJob", + modelProperties: { + creationTime: { + nullable: false, + serializedName: "creationTime", + type: { + name: "DateTime" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + statusDetails: { + serializedName: "statusDetails", + type: { + name: "String" + } + }, + runOn: { + serializedName: "runOn", + type: { + name: "String" + } + }, + startTime: { + nullable: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + nullable: true, + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + exception: { + serializedName: "exception", + type: { + name: "String" + } + }, + lastModifiedTime: { + nullable: false, + serializedName: "lastModifiedTime", + type: { + name: "DateTime" + } + }, + lastStatusModifiedTime: { + nullable: true, + serializedName: "lastStatusModifiedTime", + type: { + name: "DateTime" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + logActivityTrace: { + serializedName: "logActivityTrace", + type: { + name: "Number" + } + } + } + } +}; + +export const RunbookCreateOrUpdateDraftProperties: msRest.CompositeMapper = { + serializedName: "RunbookCreateOrUpdateDraftProperties", + type: { + name: "Composite", + className: "RunbookCreateOrUpdateDraftProperties", + modelProperties: { + logVerbose: { + serializedName: "logVerbose", + type: { + name: "Boolean" + } + }, + logProgress: { + serializedName: "logProgress", + type: { + name: "Boolean" + } + }, + runbookType: { + required: true, + serializedName: "runbookType", + type: { + name: "String" + } + }, + draft: { + required: true, + serializedName: "draft", + type: { + name: "Composite", + className: "RunbookDraft" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + logActivityTrace: { + serializedName: "logActivityTrace", + type: { + name: "Number" + } + } + } + } +}; + +export const RunbookCreateOrUpdateDraftParameters: msRest.CompositeMapper = { + serializedName: "RunbookCreateOrUpdateDraftParameters", + type: { + name: "Composite", + className: "RunbookCreateOrUpdateDraftParameters", + modelProperties: { + runbookContent: { + required: true, + serializedName: "runbookContent", + type: { + name: "String" + } + } + } + } +}; + +export const PythonPackageCreateParameters: msRest.CompositeMapper = { + serializedName: "PythonPackageCreateParameters", + type: { + name: "Composite", + className: "PythonPackageCreateParameters", + modelProperties: { + contentLink: { + required: true, + serializedName: "properties.contentLink", + type: { + name: "Composite", + className: "ContentLink" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PythonPackageUpdateParameters: msRest.CompositeMapper = { + serializedName: "PythonPackageUpdateParameters", + type: { + name: "Composite", + className: "PythonPackageUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RunbookDraftReplaceContentHeaders: msRest.CompositeMapper = { + serializedName: "runbookdraft-replacecontent-headers", + type: { + name: "Composite", + className: "RunbookDraftReplaceContentHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const RunbookPublishHeaders: msRest.CompositeMapper = { + serializedName: "runbook-publish-headers", + type: { + name: "Composite", + className: "RunbookPublishHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationAccountListResult: msRest.CompositeMapper = { + serializedName: "AutomationAccountListResult", + type: { + name: "Composite", + className: "AutomationAccountListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationAccount" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + } + } + } +}; + +export const StatisticsListResult: msRest.CompositeMapper = { + serializedName: "StatisticsListResult", + type: { + name: "Composite", + className: "StatisticsListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Statistics" + } + } + } + } + } + } +}; + +export const UsageListResult: msRest.CompositeMapper = { + serializedName: "UsageListResult", + type: { + name: "Composite", + className: "UsageListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } + } + } + } + } +}; + +export const CertificateListResult: msRest.CompositeMapper = { + serializedName: "CertificateListResult", + type: { + name: "Composite", + className: "CertificateListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Certificate" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectionListResult: msRest.CompositeMapper = { + serializedName: "ConnectionListResult", + type: { + name: "Composite", + className: "ConnectionListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Connection" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectionTypeListResult: msRest.CompositeMapper = { + serializedName: "ConnectionTypeListResult", + type: { + name: "Composite", + className: "ConnectionTypeListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectionType" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CredentialListResult: msRest.CompositeMapper = { + serializedName: "CredentialListResult", + type: { + name: "Composite", + className: "CredentialListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Credential" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DscConfigurationListResult: msRest.CompositeMapper = { + serializedName: "DscConfigurationListResult", + type: { + name: "Composite", + className: "DscConfigurationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscConfiguration" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + totalCount: { + serializedName: "totalCount", + type: { + name: "Number" + } + } + } + } +}; + +export const HybridRunbookWorkerGroupsListResult: msRest.CompositeMapper = { + serializedName: "HybridRunbookWorkerGroupsListResult", + type: { + name: "Composite", + className: "HybridRunbookWorkerGroupsListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HybridRunbookWorkerGroup" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const JobScheduleListResult: msRest.CompositeMapper = { + serializedName: "JobScheduleListResult", + type: { + name: "Composite", + className: "JobScheduleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobSchedule" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ActivityListResult: msRest.CompositeMapper = { + serializedName: "ActivityListResult", + type: { + name: "Composite", + className: "ActivityListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Activity" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ModuleListResult: msRest.CompositeMapper = { + serializedName: "ModuleListResult", + type: { + name: "Composite", + className: "ModuleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Module" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TypeFieldListResult: msRest.CompositeMapper = { + serializedName: "TypeFieldListResult", + type: { + name: "Composite", + className: "TypeFieldListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TypeField" + } + } + } + } + } + } +}; + +export const ScheduleListResult: msRest.CompositeMapper = { + serializedName: "ScheduleListResult", + type: { + name: "Composite", + className: "ScheduleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Schedule" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VariableListResult: msRest.CompositeMapper = { + serializedName: "VariableListResult", + type: { + name: "Composite", + className: "VariableListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Variable" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WebhookListResult: msRest.CompositeMapper = { + serializedName: "WebhookListResult", + type: { + name: "Composite", + className: "WebhookListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Webhook" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WatcherListResult: msRest.CompositeMapper = { + serializedName: "WatcherListResult", + type: { + name: "Composite", + className: "WatcherListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Watcher" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlListResult: msRest.CompositeMapper = { + serializedName: "SourceControlListResult", + type: { + name: "Composite", + className: "SourceControlListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceControl" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlSyncJobListResult: msRest.CompositeMapper = { + serializedName: "SourceControlSyncJobListResult", + type: { + name: "Composite", + className: "SourceControlSyncJobListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceControlSyncJob" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SourceControlSyncJobStreamsListBySyncJob: msRest.CompositeMapper = { + serializedName: "SourceControlSyncJobStreamsListBySyncJob", + type: { + name: "Composite", + className: "SourceControlSyncJobStreamsListBySyncJob", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceControlSyncJobStream" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const JobListResultV2: msRest.CompositeMapper = { + serializedName: "JobListResultV2", + type: { + name: "Composite", + className: "JobListResultV2", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobCollectionItem" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const JobStreamListResult: msRest.CompositeMapper = { + serializedName: "JobStreamListResult", + type: { + name: "Composite", + className: "JobStreamListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobStream" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DscNodeListResult: msRest.CompositeMapper = { + serializedName: "DscNodeListResult", + type: { + name: "Composite", + className: "DscNodeListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscNode" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + totalCount: { + serializedName: "totalCount", + type: { + name: "Number" + } + } + } + } +}; + +export const DscNodeReportListResult: msRest.CompositeMapper = { + serializedName: "DscNodeReportListResult", + type: { + name: "Composite", + className: "DscNodeReportListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscNodeReport" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DscCompilationJobListResult: msRest.CompositeMapper = { + serializedName: "DscCompilationJobListResult", + type: { + name: "Composite", + className: "DscCompilationJobListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscCompilationJob" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DscNodeConfigurationListResult: msRest.CompositeMapper = { + serializedName: "DscNodeConfigurationListResult", + type: { + name: "Composite", + className: "DscNodeConfigurationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DscNodeConfiguration" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + totalCount: { + serializedName: "totalCount", + type: { + name: "Number" + } + } + } + } +}; + +export const RunbookListResult: msRest.CompositeMapper = { + serializedName: "RunbookListResult", + type: { + name: "Composite", + className: "RunbookListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Runbook" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/automation/arm-automation/lib/models/moduleOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/moduleOperationsMappers.ts new file mode 100644 index 000000000000..99dcf2de4fb5 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/moduleOperationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ErrorResponse, + Module, + TrackedResource, + Resource, + BaseResource, + ContentLink, + ContentHash, + ModuleErrorInfo, + ModuleCreateOrUpdateParameters, + ModuleUpdateParameters, + ModuleListResult, + AutomationAccount, + Sku, + ProxyResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/nodeCountInformationMappers.ts b/sdk/automation/arm-automation/lib/models/nodeCountInformationMappers.ts new file mode 100644 index 000000000000..14a5993ec072 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/nodeCountInformationMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + NodeCounts, + NodeCount, + NodeCountProperties, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/nodeReportsMappers.ts b/sdk/automation/arm-automation/lib/models/nodeReportsMappers.ts new file mode 100644 index 000000000000..1ec8ddd83fc8 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/nodeReportsMappers.ts @@ -0,0 +1,20 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + DscNodeReportListResult, + DscNodeReport, + DscReportError, + DscReportResource, + DscReportResourceNavigation, + DscMetaConfiguration, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/objectDataTypesMappers.ts b/sdk/automation/arm-automation/lib/models/objectDataTypesMappers.ts new file mode 100644 index 000000000000..d1e251125d4d --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/objectDataTypesMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + TypeFieldListResult, + TypeField, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/operationsMappers.ts b/sdk/automation/arm-automation/lib/models/operationsMappers.ts new file mode 100644 index 000000000000..715467ec9522 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/operationsMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + OperationListResult, + Operation, + OperationDisplay, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/parameters.ts b/sdk/automation/arm-automation/lib/models/parameters.ts new file mode 100644 index 000000000000..48dbbc8df44f --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/parameters.ts @@ -0,0 +1,500 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const activityName: msRest.OperationURLParameter = { + parameterPath: "activityName", + mapper: { + required: true, + serializedName: "activityName", + type: { + name: "String" + } + } +}; +export const apiVersion0: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2015-10-31', + type: { + name: "String" + } + } +}; +export const apiVersion1: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2017-05-15-preview', + type: { + name: "String" + } + } +}; +export const apiVersion2: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2018-01-15', + type: { + name: "String" + } + } +}; +export const apiVersion3: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2018-06-30', + type: { + name: "String" + } + } +}; +export const automationAccountName: msRest.OperationURLParameter = { + parameterPath: "automationAccountName", + mapper: { + required: true, + serializedName: "automationAccountName", + type: { + name: "String" + } + } +}; +export const certificateName: msRest.OperationURLParameter = { + parameterPath: "certificateName", + mapper: { + required: true, + serializedName: "certificateName", + type: { + name: "String" + } + } +}; +export const clientRequestId: msRest.OperationParameter = { + parameterPath: [ + "options", + "clientRequestId" + ], + mapper: { + serializedName: "clientRequestId", + type: { + name: "String" + } + } +}; +export const compilationJobName: msRest.OperationURLParameter = { + parameterPath: "compilationJobName", + mapper: { + required: true, + serializedName: "compilationJobName", + type: { + name: "String" + } + } +}; +export const configurationName: msRest.OperationURLParameter = { + parameterPath: "configurationName", + mapper: { + required: true, + serializedName: "configurationName", + type: { + name: "String" + } + } +}; +export const connectionName: msRest.OperationURLParameter = { + parameterPath: "connectionName", + mapper: { + required: true, + serializedName: "connectionName", + type: { + name: "String" + } + } +}; +export const connectionTypeName: msRest.OperationURLParameter = { + parameterPath: "connectionTypeName", + mapper: { + required: true, + serializedName: "connectionTypeName", + type: { + name: "String" + } + } +}; +export const countType: msRest.OperationURLParameter = { + parameterPath: "countType", + mapper: { + required: true, + serializedName: "countType", + type: { + name: "String" + } + } +}; +export const credentialName: msRest.OperationURLParameter = { + parameterPath: "credentialName", + mapper: { + required: true, + serializedName: "credentialName", + type: { + name: "String" + } + } +}; +export const filter: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const hybridRunbookWorkerGroupName: msRest.OperationURLParameter = { + parameterPath: "hybridRunbookWorkerGroupName", + mapper: { + required: true, + serializedName: "hybridRunbookWorkerGroupName", + type: { + name: "String" + } + } +}; +export const inlinecount: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "inlinecount" + ], + mapper: { + serializedName: "$inlinecount", + type: { + name: "String" + } + } +}; +export const jobId: msRest.OperationURLParameter = { + parameterPath: "jobId", + mapper: { + required: true, + serializedName: "jobId", + type: { + name: "Uuid" + } + } +}; +export const jobName: msRest.OperationURLParameter = { + parameterPath: "jobName", + mapper: { + required: true, + serializedName: "jobName", + type: { + name: "String" + } + } +}; +export const jobScheduleId: msRest.OperationURLParameter = { + parameterPath: "jobScheduleId", + mapper: { + required: true, + serializedName: "jobScheduleId", + type: { + name: "Uuid" + } + } +}; +export const jobStreamId: msRest.OperationURLParameter = { + parameterPath: "jobStreamId", + mapper: { + required: true, + serializedName: "jobStreamId", + type: { + name: "String" + } + } +}; +export const moduleName: msRest.OperationURLParameter = { + parameterPath: "moduleName", + mapper: { + required: true, + serializedName: "moduleName", + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const nodeConfigurationName: msRest.OperationURLParameter = { + parameterPath: "nodeConfigurationName", + mapper: { + required: true, + serializedName: "nodeConfigurationName", + type: { + name: "String" + } + } +}; +export const nodeId: msRest.OperationURLParameter = { + parameterPath: "nodeId", + mapper: { + required: true, + serializedName: "nodeId", + type: { + name: "String" + } + } +}; +export const packageName: msRest.OperationURLParameter = { + parameterPath: "packageName", + mapper: { + required: true, + serializedName: "packageName", + type: { + name: "String" + } + } +}; +export const reportId: msRest.OperationURLParameter = { + parameterPath: "reportId", + mapper: { + required: true, + serializedName: "reportId", + type: { + name: "String" + } + } +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._]+$/ + }, + type: { + name: "String" + } + } +}; +export const runbookName: msRest.OperationURLParameter = { + parameterPath: "runbookName", + mapper: { + required: true, + serializedName: "runbookName", + type: { + name: "String" + } + } +}; +export const scheduleName: msRest.OperationURLParameter = { + parameterPath: "scheduleName", + mapper: { + required: true, + serializedName: "scheduleName", + type: { + name: "String" + } + } +}; +export const skip0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skip" + ], + mapper: { + serializedName: "$skip", + type: { + name: "Number" + } + } +}; +export const skip1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skip" + ], + mapper: { + serializedName: "$skip", + type: { + name: "String" + } + } +}; +export const softwareUpdateConfigurationMachineRunId: msRest.OperationURLParameter = { + parameterPath: "softwareUpdateConfigurationMachineRunId", + mapper: { + required: true, + serializedName: "softwareUpdateConfigurationMachineRunId", + type: { + name: "Uuid" + } + } +}; +export const softwareUpdateConfigurationName: msRest.OperationURLParameter = { + parameterPath: "softwareUpdateConfigurationName", + mapper: { + required: true, + serializedName: "softwareUpdateConfigurationName", + type: { + name: "String" + } + } +}; +export const softwareUpdateConfigurationRunId: msRest.OperationURLParameter = { + parameterPath: "softwareUpdateConfigurationRunId", + mapper: { + required: true, + serializedName: "softwareUpdateConfigurationRunId", + type: { + name: "Uuid" + } + } +}; +export const sourceControlName: msRest.OperationURLParameter = { + parameterPath: "sourceControlName", + mapper: { + required: true, + serializedName: "sourceControlName", + type: { + name: "String" + } + } +}; +export const sourceControlSyncJobId: msRest.OperationURLParameter = { + parameterPath: "sourceControlSyncJobId", + mapper: { + required: true, + serializedName: "sourceControlSyncJobId", + type: { + name: "Uuid" + } + } +}; +export const streamId: msRest.OperationURLParameter = { + parameterPath: "streamId", + mapper: { + required: true, + serializedName: "streamId", + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; +export const top0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "top" + ], + mapper: { + serializedName: "$top", + type: { + name: "Number" + } + } +}; +export const top1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "top" + ], + mapper: { + serializedName: "$top", + type: { + name: "String" + } + } +}; +export const typeName: msRest.OperationURLParameter = { + parameterPath: "typeName", + mapper: { + required: true, + serializedName: "typeName", + type: { + name: "String" + } + } +}; +export const variableName: msRest.OperationURLParameter = { + parameterPath: "variableName", + mapper: { + required: true, + serializedName: "variableName", + type: { + name: "String" + } + } +}; +export const watcherName: msRest.OperationURLParameter = { + parameterPath: "watcherName", + mapper: { + required: true, + serializedName: "watcherName", + type: { + name: "String" + } + } +}; +export const webhookName: msRest.OperationURLParameter = { + parameterPath: "webhookName", + mapper: { + required: true, + serializedName: "webhookName", + type: { + name: "String" + } + } +}; diff --git a/sdk/automation/arm-automation/lib/models/python2PackageMappers.ts b/sdk/automation/arm-automation/lib/models/python2PackageMappers.ts new file mode 100644 index 000000000000..409a2de11b14 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/python2PackageMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ErrorResponse, + Module, + TrackedResource, + Resource, + BaseResource, + ContentLink, + ContentHash, + ModuleErrorInfo, + PythonPackageCreateParameters, + PythonPackageUpdateParameters, + ModuleListResult, + AutomationAccount, + Sku, + ProxyResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/runbookDraftOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/runbookDraftOperationsMappers.ts new file mode 100644 index 000000000000..a990bd3087e3 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/runbookDraftOperationsMappers.ts @@ -0,0 +1,21 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + CloudError, + RunbookDraftReplaceContentHeaders, + ErrorResponse, + RunbookDraft, + ContentLink, + ContentHash, + RunbookParameter, + RunbookDraftUndoEditResult +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/runbookOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/runbookOperationsMappers.ts new file mode 100644 index 000000000000..c715fe16d7c5 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/runbookOperationsMappers.ts @@ -0,0 +1,65 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + RunbookPublishHeaders, + ErrorResponse, + CloudError, + Runbook, + TrackedResource, + Resource, + BaseResource, + ContentLink, + ContentHash, + RunbookParameter, + RunbookDraft, + RunbookCreateOrUpdateParameters, + RunbookUpdateParameters, + RunbookListResult, + AutomationAccount, + Sku, + ProxyResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + Module, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/scheduleOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/scheduleOperationsMappers.ts new file mode 100644 index 000000000000..5f152c0d4d6a --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/scheduleOperationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ScheduleCreateOrUpdateParameters, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Schedule, + ProxyResource, + Resource, + BaseResource, + ErrorResponse, + ScheduleUpdateParameters, + ScheduleListResult, + TrackedResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/softwareUpdateConfigurationMachineRunsMappers.ts b/sdk/automation/arm-automation/lib/models/softwareUpdateConfigurationMachineRunsMappers.ts new file mode 100644 index 000000000000..a76401e94ba0 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/softwareUpdateConfigurationMachineRunsMappers.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + SoftwareUpdateConfigurationMachineRun, + UpdateConfigurationNavigation, + JobNavigation, + ErrorResponse, + SoftwareUpdateConfigurationMachineRunListResult +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/softwareUpdateConfigurationRunsMappers.ts b/sdk/automation/arm-automation/lib/models/softwareUpdateConfigurationRunsMappers.ts new file mode 100644 index 000000000000..e6ddca73be95 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/softwareUpdateConfigurationRunsMappers.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + SoftwareUpdateConfigurationRun, + UpdateConfigurationNavigation, + SoftareUpdateConfigurationRunTasks, + SoftareUpdateConfigurationRunTaskProperties, + ErrorResponse, + SoftwareUpdateConfigurationRunListResult +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/softwareUpdateConfigurationsMappers.ts b/sdk/automation/arm-automation/lib/models/softwareUpdateConfigurationsMappers.ts new file mode 100644 index 000000000000..04629365f166 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/softwareUpdateConfigurationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + SoftwareUpdateConfiguration, + BaseResource, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + ErrorResponse, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SoftwareUpdateConfigurationListResult, + SoftwareUpdateConfigurationCollectionItem, + CollectionItemUpdateConfiguration, + Resource, + TrackedResource, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Watcher, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku, + ProxyResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + Schedule, + Variable, + Webhook, + RunbookAssociationProperty, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/sourceControlOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/sourceControlOperationsMappers.ts new file mode 100644 index 000000000000..a6129859dda9 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/sourceControlOperationsMappers.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + SourceControlCreateOrUpdateParameters, + SourceControlSecurityTokenProperties, + SourceControl, + ProxyResource, + Resource, + BaseResource, + ErrorResponse, + SourceControlUpdateParameters, + SourceControlListResult, + TrackedResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/sourceControlSyncJobOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/sourceControlSyncJobOperationsMappers.ts new file mode 100644 index 000000000000..06bc2ab9804d --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/sourceControlSyncJobOperationsMappers.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + SourceControlSyncJobCreateParameters, + SourceControlSyncJob, + ErrorResponse, + SourceControlSyncJobById, + SourceControlSyncJobListResult +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/sourceControlSyncJobStreamsMappers.ts b/sdk/automation/arm-automation/lib/models/sourceControlSyncJobStreamsMappers.ts new file mode 100644 index 000000000000..26868f143f8e --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/sourceControlSyncJobStreamsMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + SourceControlSyncJobStreamsListBySyncJob, + SourceControlSyncJobStream, + ErrorResponse, + SourceControlSyncJobStreamById +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/statisticsOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/statisticsOperationsMappers.ts new file mode 100644 index 000000000000..aa5b88fc7cd9 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/statisticsOperationsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + StatisticsListResult, + Statistics, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/testJobOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/testJobOperationsMappers.ts new file mode 100644 index 000000000000..4442e889cadb --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/testJobOperationsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + TestJobCreateParameters, + TestJob, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/testJobStreamsMappers.ts b/sdk/automation/arm-automation/lib/models/testJobStreamsMappers.ts new file mode 100644 index 000000000000..ecada22398f3 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/testJobStreamsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + JobStream, + ErrorResponse, + JobStreamListResult +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/usagesMappers.ts b/sdk/automation/arm-automation/lib/models/usagesMappers.ts new file mode 100644 index 000000000000..e40e8af700d4 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/usagesMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + UsageListResult, + Usage, + UsageCounterName, + ErrorResponse +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/variableOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/variableOperationsMappers.ts new file mode 100644 index 000000000000..4fd44e78c5d8 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/variableOperationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + VariableCreateOrUpdateParameters, + Variable, + ProxyResource, + Resource, + BaseResource, + ErrorResponse, + VariableUpdateParameters, + VariableListResult, + TrackedResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Webhook, + RunbookAssociationProperty, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/watcherOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/watcherOperationsMappers.ts new file mode 100644 index 000000000000..404573d4bb25 --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/watcherOperationsMappers.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + Watcher, + TrackedResource, + Resource, + BaseResource, + ErrorResponse, + WatcherUpdateParameters, + WatcherListResult, + AutomationAccount, + Sku, + ProxyResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Webhook, + RunbookAssociationProperty, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/models/webhookOperationsMappers.ts b/sdk/automation/arm-automation/lib/models/webhookOperationsMappers.ts new file mode 100644 index 000000000000..7b8bce19791f --- /dev/null +++ b/sdk/automation/arm-automation/lib/models/webhookOperationsMappers.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ErrorResponse, + Webhook, + ProxyResource, + Resource, + BaseResource, + RunbookAssociationProperty, + WebhookCreateOrUpdateParameters, + WebhookUpdateParameters, + WebhookListResult, + TrackedResource, + Certificate, + Connection, + ConnectionTypeAssociationProperty, + Credential, + DscConfiguration, + DscConfigurationParameter, + ContentSource, + ContentHash, + Module, + ContentLink, + ModuleErrorInfo, + Schedule, + AdvancedSchedule, + AdvancedScheduleMonthlyOccurrence, + Variable, + Watcher, + SoftwareUpdateConfiguration, + UpdateConfiguration, + WindowsProperties, + LinuxProperties, + TargetProperties, + AzureQueryProperties, + TagSettingsProperties, + NonAzureQueryProperties, + ScheduleProperties, + SoftwareUpdateConfigurationTasks, + TaskProperties, + SourceControl, + Job, + JobCollectionItem, + DscNode, + DscNodeExtensionHandlerAssociationProperty, + DscCompilationJob, + DscConfigurationAssociationProperty, + DscNodeConfiguration, + Runbook, + RunbookParameter, + RunbookDraft, + AutomationAccount, + Sku +} from "../models/mappers"; + diff --git a/sdk/automation/arm-automation/lib/operations/activityOperations.ts b/sdk/automation/arm-automation/lib/operations/activityOperations.ts new file mode 100644 index 000000000000..b16aca872a0e --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/activityOperations.ts @@ -0,0 +1,208 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/activityOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a ActivityOperations. */ +export class ActivityOperations { + private readonly client: AutomationClientContext; + + /** + * Create a ActivityOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve the activity in the module identified by module name and activity name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param activityName The name of activity. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, moduleName: string, activityName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param activityName The name of activity. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, moduleName: string, activityName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param activityName The name of activity. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, moduleName: string, activityName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, moduleName: string, activityName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + moduleName, + activityName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of activities in the module identified by module name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param [options] The optional parameters + * @returns Promise + */ + listByModule(resourceGroupName: string, automationAccountName: string, moduleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param callback The callback + */ + listByModule(resourceGroupName: string, automationAccountName: string, moduleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param options The optional parameters + * @param callback The callback + */ + listByModule(resourceGroupName: string, automationAccountName: string, moduleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByModule(resourceGroupName: string, automationAccountName: string, moduleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + moduleName, + options + }, + listByModuleOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of activities in the module identified by module name. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByModuleNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByModuleNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByModuleNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByModuleNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByModuleNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities/{activityName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.moduleName, + Parameters.activityName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Activity + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByModuleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.moduleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ActivityListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByModuleNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ActivityListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/agentRegistrationInformation.ts b/sdk/automation/arm-automation/lib/operations/agentRegistrationInformation.ts new file mode 100644 index 000000000000..af022ffab9c3 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/agentRegistrationInformation.ts @@ -0,0 +1,155 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/agentRegistrationInformationMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a AgentRegistrationInformation. */ +export class AgentRegistrationInformation { + private readonly client: AutomationClientContext; + + /** + * Create a AgentRegistrationInformation. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve the automation agent registration information. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Regenerate a primary or secondary agent registration key + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param parameters The name of the agent registration key to be regenerated + * @param [options] The optional parameters + * @returns Promise + */ + regenerateKey(resourceGroupName: string, automationAccountName: string, parameters: Models.AgentRegistrationRegenerateKeyParameter, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param parameters The name of the agent registration key to be regenerated + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, automationAccountName: string, parameters: Models.AgentRegistrationRegenerateKeyParameter, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param parameters The name of the agent registration key to be regenerated + * @param options The optional parameters + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, automationAccountName: string, parameters: Models.AgentRegistrationRegenerateKeyParameter, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateKey(resourceGroupName: string, automationAccountName: string, parameters: Models.AgentRegistrationRegenerateKeyParameter, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + parameters, + options + }, + regenerateKeyOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AgentRegistration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const regenerateKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation/regenerateKey", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AgentRegistrationRegenerateKeyParameter, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AgentRegistration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/automationAccountOperations.ts b/sdk/automation/arm-automation/lib/operations/automationAccountOperations.ts new file mode 100644 index 000000000000..20af8407706b --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/automationAccountOperations.ts @@ -0,0 +1,481 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/automationAccountOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a AutomationAccountOperations. */ +export class AutomationAccountOperations { + private readonly client: AutomationClientContext; + + /** + * Create a AutomationAccountOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Update an automation account. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param parameters Parameters supplied to the update automation account. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, parameters: Models.AutomationAccountUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param parameters Parameters supplied to the update automation account. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, parameters: Models.AutomationAccountUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param parameters Parameters supplied to the update automation account. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, parameters: Models.AutomationAccountUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, parameters: Models.AutomationAccountUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Create or update automation account. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param parameters Parameters supplied to the create or update automation account. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, parameters: Models.AutomationAccountCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param parameters Parameters supplied to the create or update automation account. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, parameters: Models.AutomationAccountCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param parameters Parameters supplied to the create or update automation account. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, parameters: Models.AutomationAccountCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, parameters: Models.AutomationAccountCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete an automation account. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Get information about an Automation Account. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of accounts within a given resource group. + * @param resourceGroupName Name of an Azure Resource group. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of accounts within a given subscription. + * @summary Lists the Automation Accounts within an Azure subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of accounts within a given resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of accounts within a given subscription. + * @summary Lists the Automation Accounts within an Azure subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AutomationAccountUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AutomationAccount + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AutomationAccountCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AutomationAccount + }, + 201: { + bodyMapper: Mappers.AutomationAccount + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AutomationAccount + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AutomationAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AutomationAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AutomationAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AutomationAccountListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/certificateOperations.ts b/sdk/automation/arm-automation/lib/operations/certificateOperations.ts new file mode 100644 index 000000000000..b4ac9f68db1d --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/certificateOperations.ts @@ -0,0 +1,407 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/certificateOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a CertificateOperations. */ +export class CertificateOperations { + private readonly client: AutomationClientContext; + + /** + * Create a CertificateOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete the certificate. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The name of certificate. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The name of certificate. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, certificateName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The name of certificate. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + certificateName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the certificate identified by certificate name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The name of certificate. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The name of certificate. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, certificateName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The name of certificate. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + certificateName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a certificate. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The parameters supplied to the create or update certificate operation. + * @param parameters The parameters supplied to the create or update certificate operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The parameters supplied to the create or update certificate operation. + * @param parameters The parameters supplied to the create or update certificate operation. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The parameters supplied to the create or update certificate operation. + * @param parameters The parameters supplied to the create or update certificate operation. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + certificateName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update a certificate. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The parameters supplied to the update certificate operation. + * @param parameters The parameters supplied to the update certificate operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, certificateName: string, parameters: Models.CertificateUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The parameters supplied to the update certificate operation. + * @param parameters The parameters supplied to the update certificate operation. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, certificateName: string, parameters: Models.CertificateUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param certificateName The parameters supplied to the update certificate operation. + * @param parameters The parameters supplied to the update certificate operation. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, certificateName: string, parameters: Models.CertificateUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, certificateName: string, parameters: Models.CertificateUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + certificateName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of certificates. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of certificates. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.certificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.certificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Certificate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.certificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CertificateCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Certificate + }, + 201: { + bodyMapper: Mappers.Certificate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.certificateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CertificateUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Certificate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/connectionOperations.ts b/sdk/automation/arm-automation/lib/operations/connectionOperations.ts new file mode 100644 index 000000000000..532be8f4c0c9 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/connectionOperations.ts @@ -0,0 +1,410 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/connectionOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a ConnectionOperations. */ +export class ConnectionOperations { + private readonly client: AutomationClientContext; + + /** + * Create a ConnectionOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete the connection. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The name of connection. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, connectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The name of connection. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, connectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The name of connection. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, connectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, connectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + connectionName, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the connection identified by connection name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The name of connection. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, connectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The name of connection. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, connectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The name of connection. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, connectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, connectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + connectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update a connection. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The parameters supplied to the create or update connection operation. + * @param parameters The parameters supplied to the create or update connection operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, connectionName: string, parameters: Models.ConnectionCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The parameters supplied to the create or update connection operation. + * @param parameters The parameters supplied to the create or update connection operation. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, connectionName: string, parameters: Models.ConnectionCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The parameters supplied to the create or update connection operation. + * @param parameters The parameters supplied to the create or update connection operation. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, connectionName: string, parameters: Models.ConnectionCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, connectionName: string, parameters: Models.ConnectionCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + connectionName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update a connection. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The parameters supplied to the update a connection operation. + * @param parameters The parameters supplied to the update a connection operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, connectionName: string, parameters: Models.ConnectionUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The parameters supplied to the update a connection operation. + * @param parameters The parameters supplied to the update a connection operation. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, connectionName: string, parameters: Models.ConnectionUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionName The parameters supplied to the update a connection operation. + * @param parameters The parameters supplied to the update a connection operation. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, connectionName: string, parameters: Models.ConnectionUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, connectionName: string, parameters: Models.ConnectionUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + connectionName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of connections. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of connections. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.connectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Connection + }, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.connectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Connection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.connectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ConnectionCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Connection + }, + 201: { + bodyMapper: Mappers.Connection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.connectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ConnectionUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Connection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/connectionTypeOperations.ts b/sdk/automation/arm-automation/lib/operations/connectionTypeOperations.ts new file mode 100644 index 000000000000..47d2620dcaed --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/connectionTypeOperations.ts @@ -0,0 +1,338 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/connectionTypeOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a ConnectionTypeOperations. */ +export class ConnectionTypeOperations { + private readonly client: AutomationClientContext; + + /** + * Create a ConnectionTypeOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete the connection type. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionTypeName The name of connection type. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionTypeName The name of connection type. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionTypeName The name of connection type. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + connectionTypeName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the connection type identified by connection type name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionTypeName The name of connection type. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionTypeName The name of connection type. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionTypeName The name of connection type. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + connectionTypeName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a connection type. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionTypeName The parameters supplied to the create or update connection type + * operation. + * @param parameters The parameters supplied to the create or update connection type operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, parameters: Models.ConnectionTypeCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionTypeName The parameters supplied to the create or update connection type + * operation. + * @param parameters The parameters supplied to the create or update connection type operation. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, parameters: Models.ConnectionTypeCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param connectionTypeName The parameters supplied to the create or update connection type + * operation. + * @param parameters The parameters supplied to the create or update connection type operation. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, parameters: Models.ConnectionTypeCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, connectionTypeName: string, parameters: Models.ConnectionTypeCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + connectionTypeName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of connection types. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of connection types. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.connectionTypeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.connectionTypeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectionType + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.connectionTypeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ConnectionTypeCreateOrUpdateParameters, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.ConnectionType + }, + 409: { + bodyMapper: Mappers.ConnectionType + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectionTypeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectionTypeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/credentialOperations.ts b/sdk/automation/arm-automation/lib/operations/credentialOperations.ts new file mode 100644 index 000000000000..f29d9387ed0e --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/credentialOperations.ts @@ -0,0 +1,407 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/credentialOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a CredentialOperations. */ +export class CredentialOperations { + private readonly client: AutomationClientContext; + + /** + * Create a CredentialOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete the credential. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The name of credential. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, credentialName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The name of credential. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, credentialName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The name of credential. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, credentialName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, credentialName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + credentialName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the credential identified by credential name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The name of credential. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, credentialName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The name of credential. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, credentialName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The name of credential. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, credentialName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, credentialName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + credentialName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a credential. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The parameters supplied to the create or update credential operation. + * @param parameters The parameters supplied to the create or update credential operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, credentialName: string, parameters: Models.CredentialCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The parameters supplied to the create or update credential operation. + * @param parameters The parameters supplied to the create or update credential operation. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, credentialName: string, parameters: Models.CredentialCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The parameters supplied to the create or update credential operation. + * @param parameters The parameters supplied to the create or update credential operation. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, credentialName: string, parameters: Models.CredentialCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, credentialName: string, parameters: Models.CredentialCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + credentialName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update a credential. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The parameters supplied to the Update credential operation. + * @param parameters The parameters supplied to the Update credential operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, credentialName: string, parameters: Models.CredentialUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The parameters supplied to the Update credential operation. + * @param parameters The parameters supplied to the Update credential operation. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, credentialName: string, parameters: Models.CredentialUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param credentialName The parameters supplied to the Update credential operation. + * @param parameters The parameters supplied to the Update credential operation. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, credentialName: string, parameters: Models.CredentialUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, credentialName: string, parameters: Models.CredentialUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + credentialName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of credentials. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of credentials. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.credentialName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.credentialName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Credential + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.credentialName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CredentialCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Credential + }, + 201: { + bodyMapper: Mappers.Credential + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.credentialName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CredentialUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Credential + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CredentialListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CredentialListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/dscCompilationJobOperations.ts b/sdk/automation/arm-automation/lib/operations/dscCompilationJobOperations.ts new file mode 100644 index 000000000000..2c064e8e8073 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/dscCompilationJobOperations.ts @@ -0,0 +1,336 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dscCompilationJobOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a DscCompilationJobOperations. */ +export class DscCompilationJobOperations { + private readonly client: AutomationClientContext; + + /** + * Create a DscCompilationJobOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Creates the Dsc compilation job of the configuration. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param compilationJobName The the DSC configuration Id. + * @param parameters The parameters supplied to the create compilation job operation. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: Models.DscCompilationJobCreateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,automationAccountName,compilationJobName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Retrieve the Dsc configuration compilation job identified by job id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param compilationJobName The the DSC configuration Id. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, compilationJobName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param compilationJobName The the DSC configuration Id. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, compilationJobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param compilationJobName The the DSC configuration Id. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, compilationJobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, compilationJobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + compilationJobName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of dsc compilation jobs. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.DscCompilationJobListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.DscCompilationJobListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.DscCompilationJobListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the job stream identified by job stream id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobId The job id. + * @param jobStreamId The job stream id. + * @param [options] The optional parameters + * @returns Promise + */ + getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobId The job id. + * @param jobStreamId The job stream id. + * @param callback The callback + */ + getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobId The job id. + * @param jobStreamId The job stream id. + * @param options The optional parameters + * @param callback The callback + */ + getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getStream(resourceGroupName: string, automationAccountName: string, jobId: string, jobStreamId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobId, + jobStreamId, + options + }, + getStreamOperationSpec, + callback) as Promise; + } + + /** + * Creates the Dsc compilation job of the configuration. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param compilationJobName The the DSC configuration Id. + * @param parameters The parameters supplied to the create compilation job operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, automationAccountName: string, compilationJobName: string, parameters: Models.DscCompilationJobCreateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + automationAccountName, + compilationJobName, + parameters, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Retrieve a list of dsc compilation jobs. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.compilationJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscCompilationJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscCompilationJobListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getStreamOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobId, + Parameters.jobStreamId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobStream + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.compilationJobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DscCompilationJobCreateParameters, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.DscCompilationJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscCompilationJobListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/dscCompilationJobStream.ts b/sdk/automation/arm-automation/lib/operations/dscCompilationJobStream.ts new file mode 100644 index 000000000000..cde9e1a4cf3c --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/dscCompilationJobStream.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dscCompilationJobStreamMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a DscCompilationJobStream. */ +export class DscCompilationJobStream { + private readonly client: AutomationClientContext; + + /** + * Create a DscCompilationJobStream. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve all the job streams for the compilation Job. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobId The job id. + * @param [options] The optional parameters + * @returns Promise + */ + listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobId The job id. + * @param callback The callback + */ + listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobId The job id. + * @param options The optional parameters + * @param callback The callback + */ + listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByJob(resourceGroupName: string, automationAccountName: string, jobId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobId, + options + }, + listByJobOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByJobOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobStreamListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/dscConfigurationOperations.ts b/sdk/automation/arm-automation/lib/operations/dscConfigurationOperations.ts new file mode 100644 index 000000000000..799831f77333 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/dscConfigurationOperations.ts @@ -0,0 +1,475 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dscConfigurationOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a DscConfigurationOperations. */ +export class DscConfigurationOperations { + private readonly client: AutomationClientContext; + + /** + * Create a DscConfigurationOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete the dsc configuration identified by configuration name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The configuration name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The configuration name. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, configurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The configuration name. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, configurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + configurationName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the configuration identified by configuration name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The configuration name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The configuration name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, configurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The configuration name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, configurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + configurationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create the configuration identified by configuration name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The create or update parameters for configuration. + * @param parameters The create or update parameters for configuration. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, configurationName: string, parameters: Models.DscConfigurationCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The create or update parameters for configuration. + * @param parameters The create or update parameters for configuration. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, configurationName: string, parameters: Models.DscConfigurationCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The create or update parameters for configuration. + * @param parameters The create or update parameters for configuration. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, configurationName: string, parameters: Models.DscConfigurationCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, configurationName: string, parameters: Models.DscConfigurationCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + configurationName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Create the configuration identified by configuration name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The create or update parameters for configuration. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: Models.DscConfigurationUpdateOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The create or update parameters for configuration. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, configurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The create or update parameters for configuration. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, configurationName: string, options: Models.DscConfigurationUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: Models.DscConfigurationUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + configurationName, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the configuration script identified by configuration name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The configuration name. + * @param [options] The optional parameters + * @returns Promise + */ + getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The configuration name. + * @param callback The callback + */ + getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param configurationName The configuration name. + * @param options The optional parameters + * @param callback The callback + */ + getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, configurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + configurationName, + options + }, + getContentOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of configurations. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.DscConfigurationListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.DscConfigurationListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.DscConfigurationListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of configurations. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.configurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.configurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.configurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DscConfigurationCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DscConfiguration + }, + 201: { + bodyMapper: Mappers.DscConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.configurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.DscConfigurationUpdateParameters + }, + responses: { + 200: { + bodyMapper: Mappers.DscConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getContentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}/content", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.configurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter, + Parameters.skip0, + Parameters.top0, + Parameters.inlinecount + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscConfigurationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscConfigurationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/dscNodeConfigurationOperations.ts b/sdk/automation/arm-automation/lib/operations/dscNodeConfigurationOperations.ts new file mode 100644 index 000000000000..a0fa04010776 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/dscNodeConfigurationOperations.ts @@ -0,0 +1,333 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dscNodeConfigurationOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a DscNodeConfigurationOperations. */ +export class DscNodeConfigurationOperations { + private readonly client: AutomationClientContext; + + /** + * Create a DscNodeConfigurationOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete the Dsc node configurations by node configuration. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeConfigurationName The Dsc node configuration name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeConfigurationName The Dsc node configuration name. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeConfigurationName The Dsc node configuration name. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + nodeConfigurationName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the Dsc node configurations by node configuration. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeConfigurationName The Dsc node configuration name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeConfigurationName The Dsc node configuration name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeConfigurationName The Dsc node configuration name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + nodeConfigurationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create the node configuration identified by node configuration name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeConfigurationName The Dsc node configuration name. + * @param parameters The create or update parameters for configuration. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: Models.DscNodeConfigurationCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,automationAccountName,nodeConfigurationName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Retrieve a list of dsc node configurations. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.DscNodeConfigurationListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.DscNodeConfigurationListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.DscNodeConfigurationListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Create the node configuration identified by node configuration name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeConfigurationName The Dsc node configuration name. + * @param parameters The create or update parameters for configuration. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, automationAccountName: string, nodeConfigurationName: string, parameters: Models.DscNodeConfigurationCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + automationAccountName, + nodeConfigurationName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Retrieve a list of dsc node configurations. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.nodeConfigurationName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.nodeConfigurationName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscNodeConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2, + Parameters.filter, + Parameters.skip0, + Parameters.top0, + Parameters.inlinecount + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscNodeConfigurationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.nodeConfigurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DscNodeConfigurationCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: {}, + 201: { + bodyMapper: Mappers.DscNodeConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscNodeConfigurationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/dscNodeOperations.ts b/sdk/automation/arm-automation/lib/operations/dscNodeOperations.ts new file mode 100644 index 000000000000..ab066926cb94 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/dscNodeOperations.ts @@ -0,0 +1,337 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dscNodeOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a DscNodeOperations. */ +export class DscNodeOperations { + private readonly client: AutomationClientContext; + + /** + * Create a DscNodeOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete the dsc node identified by node id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The node id. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The node id. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The node id. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + nodeId, + options + }, + deleteMethodOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the dsc node identified by node id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The node id. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The node id. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, nodeId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The node id. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, nodeId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + nodeId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update the dsc node. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId Parameters supplied to the update dsc node. + * @param dscNodeUpdateParameters Parameters supplied to the update dsc node. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: Models.DscNodeUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId Parameters supplied to the update dsc node. + * @param dscNodeUpdateParameters Parameters supplied to the update dsc node. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: Models.DscNodeUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId Parameters supplied to the update dsc node. + * @param dscNodeUpdateParameters Parameters supplied to the update dsc node. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: Models.DscNodeUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, nodeId: string, dscNodeUpdateParameters: Models.DscNodeUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + nodeId, + dscNodeUpdateParameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of dsc nodes. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.DscNodeListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.DscNodeListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.DscNodeListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of dsc nodes. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.nodeId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscNode + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.nodeId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscNode + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.nodeId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "dscNodeUpdateParameters", + mapper: { + ...Mappers.DscNodeUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DscNode + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.skip0, + Parameters.top0, + Parameters.inlinecount, + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscNodeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscNodeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/fields.ts b/sdk/automation/arm-automation/lib/operations/fields.ts new file mode 100644 index 000000000000..f3b93bf1adf2 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/fields.ts @@ -0,0 +1,97 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/fieldsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a Fields. */ +export class Fields { + private readonly client: AutomationClientContext; + + /** + * Create a Fields. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve a list of fields of a given type identified by module name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param typeName The name of type. + * @param [options] The optional parameters + * @returns Promise + */ + listByType(resourceGroupName: string, automationAccountName: string, moduleName: string, typeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param typeName The name of type. + * @param callback The callback + */ + listByType(resourceGroupName: string, automationAccountName: string, moduleName: string, typeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param typeName The name of type. + * @param options The optional parameters + * @param callback The callback + */ + listByType(resourceGroupName: string, automationAccountName: string, moduleName: string, typeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByType(resourceGroupName: string, automationAccountName: string, moduleName: string, typeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + moduleName, + typeName, + options + }, + listByTypeOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByTypeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/types/{typeName}/fields", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.moduleName, + Parameters.typeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TypeFieldListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/hybridRunbookWorkerGroupOperations.ts b/sdk/automation/arm-automation/lib/operations/hybridRunbookWorkerGroupOperations.ts new file mode 100644 index 000000000000..5239c26bb1f5 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/hybridRunbookWorkerGroupOperations.ts @@ -0,0 +1,332 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/hybridRunbookWorkerGroupOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a HybridRunbookWorkerGroupOperations. */ +export class HybridRunbookWorkerGroupOperations { + private readonly client: AutomationClientContext; + + /** + * Create a HybridRunbookWorkerGroupOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete a hybrid runbook worker group. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + hybridRunbookWorkerGroupName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve a hybrid runbook worker group. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + hybridRunbookWorkerGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update a hybrid runbook worker group. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param parameters The hybrid runbook worker group + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, parameters: Models.HybridRunbookWorkerGroupUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param parameters The hybrid runbook worker group + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, parameters: Models.HybridRunbookWorkerGroupUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param hybridRunbookWorkerGroupName The hybrid runbook worker group name + * @param parameters The hybrid runbook worker group + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, parameters: Models.HybridRunbookWorkerGroupUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, hybridRunbookWorkerGroupName: string, parameters: Models.HybridRunbookWorkerGroupUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + hybridRunbookWorkerGroupName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of hybrid runbook worker groups. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.HybridRunbookWorkerGroupListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.HybridRunbookWorkerGroupListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.HybridRunbookWorkerGroupListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of hybrid runbook worker groups. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.hybridRunbookWorkerGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.hybridRunbookWorkerGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridRunbookWorkerGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.hybridRunbookWorkerGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.HybridRunbookWorkerGroupUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HybridRunbookWorkerGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridRunbookWorkerGroupsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridRunbookWorkerGroupsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/index.ts b/sdk/automation/arm-automation/lib/operations/index.ts new file mode 100644 index 000000000000..fff8baafa93a --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/index.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export * from "./automationAccountOperations"; +export * from "./operations"; +export * from "./statisticsOperations"; +export * from "./usages"; +export * from "./keys"; +export * from "./certificateOperations"; +export * from "./connectionOperations"; +export * from "./connectionTypeOperations"; +export * from "./credentialOperations"; +export * from "./dscConfigurationOperations"; +export * from "./hybridRunbookWorkerGroupOperations"; +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 "./webhookOperations"; +export * from "./watcherOperations"; +export * from "./softwareUpdateConfigurations"; +export * from "./softwareUpdateConfigurationRuns"; +export * from "./softwareUpdateConfigurationMachineRuns"; +export * from "./sourceControlOperations"; +export * from "./sourceControlSyncJobOperations"; +export * from "./sourceControlSyncJobStreams"; +export * from "./jobOperations"; +export * from "./jobStreamOperations"; +export * from "./agentRegistrationInformation"; +export * from "./dscNodeOperations"; +export * from "./nodeReports"; +export * from "./dscCompilationJobOperations"; +export * from "./dscCompilationJobStream"; +export * from "./dscNodeConfigurationOperations"; +export * from "./nodeCountInformation"; +export * from "./runbookDraftOperations"; +export * from "./runbookOperations"; +export * from "./testJobStreams"; +export * from "./testJobOperations"; +export * from "./python2Package"; diff --git a/sdk/automation/arm-automation/lib/operations/jobOperations.ts b/sdk/automation/arm-automation/lib/operations/jobOperations.ts new file mode 100644 index 000000000000..7f7428c00135 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/jobOperations.ts @@ -0,0 +1,595 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/jobOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a JobOperations. */ +export class JobOperations { + private readonly client: AutomationClientContext; + + /** + * Create a JobOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve the job output identified by job name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The name of the job to be created. + * @param [options] The optional parameters + * @returns Promise + */ + getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobGetOutputOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The name of the job to be created. + * @param callback The callback + */ + getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The name of the job to be created. + * @param options The optional parameters + * @param callback The callback + */ + getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options: Models.JobGetOutputOptionalParams, callback: msRest.ServiceCallback): void; + getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobGetOutputOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobName, + options + }, + getOutputOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the runbook content of the job identified by job name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param [options] The optional parameters + * @returns Promise + */ + getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobGetRunbookContentOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param callback The callback + */ + getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param options The optional parameters + * @param callback The callback + */ + getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options: Models.JobGetRunbookContentOptionalParams, callback: msRest.ServiceCallback): void; + getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobGetRunbookContentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobName, + options + }, + getRunbookContentOperationSpec, + callback) as Promise; + } + + /** + * Suspend the job identified by job name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param [options] The optional parameters + * @returns Promise + */ + suspend(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobSuspendOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param callback The callback + */ + suspend(resourceGroupName: string, automationAccountName: string, jobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param options The optional parameters + * @param callback The callback + */ + suspend(resourceGroupName: string, automationAccountName: string, jobName: string, options: Models.JobSuspendOptionalParams, callback: msRest.ServiceCallback): void; + suspend(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobSuspendOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobName, + options + }, + suspendOperationSpec, + callback); + } + + /** + * Stop the job identified by jobName. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param [options] The optional parameters + * @returns Promise + */ + stop(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobStopOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param callback The callback + */ + stop(resourceGroupName: string, automationAccountName: string, jobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param options The optional parameters + * @param callback The callback + */ + stop(resourceGroupName: string, automationAccountName: string, jobName: string, options: Models.JobStopOptionalParams, callback: msRest.ServiceCallback): void; + stop(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobStopOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobName, + options + }, + stopOperationSpec, + callback); + } + + /** + * Retrieve the job identified by job name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobGetOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, jobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, jobName: string, options: Models.JobGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a job of the runbook. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param parameters The parameters supplied to the create job operation. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: Models.JobCreateParameters, options?: Models.JobCreateOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param parameters The parameters supplied to the create job operation. + * @param callback The callback + */ + create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: Models.JobCreateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param parameters The parameters supplied to the create job operation. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: Models.JobCreateParameters, options: Models.JobCreateOptionalParams, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: Models.JobCreateParameters, options?: Models.JobCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobName, + parameters, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of jobs. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.JobListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.JobListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.JobListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Resume the job identified by jobName. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param [options] The optional parameters + * @returns Promise + */ + resume(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobResumeOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param callback The callback + */ + resume(resourceGroupName: string, automationAccountName: string, jobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param options The optional parameters + * @param callback The callback + */ + resume(resourceGroupName: string, automationAccountName: string, jobName: string, options: Models.JobResumeOptionalParams, callback: msRest.ServiceCallback): void; + resume(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobResumeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobName, + options + }, + resumeOperationSpec, + callback); + } + + /** + * Retrieve a list of jobs. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: Models.JobListByAutomationAccountNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: Models.JobListByAutomationAccountNextOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: Models.JobListByAutomationAccountNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOutputOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/output", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getRunbookContentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/runbookContent", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const suspendOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/suspend", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const stopOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/stop", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Job + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.JobCreateParameters, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.Job + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobListResultV2 + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const resumeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/resume", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobListResultV2 + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/jobScheduleOperations.ts b/sdk/automation/arm-automation/lib/operations/jobScheduleOperations.ts new file mode 100644 index 000000000000..ba8d0be47f54 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/jobScheduleOperations.ts @@ -0,0 +1,332 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/jobScheduleOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a JobScheduleOperations. */ +export class JobScheduleOperations { + private readonly client: AutomationClientContext; + + /** + * Create a JobScheduleOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete the job schedule identified by job schedule name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobScheduleId The job schedule name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobScheduleId The job schedule name. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobScheduleId The job schedule name. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobScheduleId, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the job schedule identified by job schedule name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobScheduleId The job schedule name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobScheduleId The job schedule name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobScheduleId The job schedule name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobScheduleId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a job schedule. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobScheduleId The job schedule name. + * @param parameters The parameters supplied to the create job schedule operation. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, parameters: Models.JobScheduleCreateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobScheduleId The job schedule name. + * @param parameters The parameters supplied to the create job schedule operation. + * @param callback The callback + */ + create(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, parameters: Models.JobScheduleCreateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobScheduleId The job schedule name. + * @param parameters The parameters supplied to the create job schedule operation. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, parameters: Models.JobScheduleCreateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, jobScheduleId: string, parameters: Models.JobScheduleCreateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobScheduleId, + parameters, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of job schedules. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.JobScheduleListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.JobScheduleListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.JobScheduleListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of job schedules. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobScheduleId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobScheduleId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobSchedule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobScheduleId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.JobScheduleCreateParameters, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.JobSchedule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobScheduleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobScheduleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/jobStreamOperations.ts b/sdk/automation/arm-automation/lib/operations/jobStreamOperations.ts new file mode 100644 index 000000000000..181c17593a9c --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/jobStreamOperations.ts @@ -0,0 +1,212 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/jobStreamOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a JobStreamOperations. */ +export class JobStreamOperations { + private readonly client: AutomationClientContext; + + /** + * Create a JobStreamOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve the job stream identified by job stream id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param jobStreamId The job stream id. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, options?: Models.JobStreamGetOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param jobStreamId The job stream id. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param jobStreamId The job stream id. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, options: Models.JobStreamGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, jobName: string, jobStreamId: string, options?: Models.JobStreamGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobName, + jobStreamId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of jobs streams identified by job name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param [options] The optional parameters + * @returns Promise + */ + listByJob(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobStreamListByJobOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param callback The callback + */ + listByJob(resourceGroupName: string, automationAccountName: string, jobName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param jobName The job name. + * @param options The optional parameters + * @param callback The callback + */ + listByJob(resourceGroupName: string, automationAccountName: string, jobName: string, options: Models.JobStreamListByJobOptionalParams, callback: msRest.ServiceCallback): void; + listByJob(resourceGroupName: string, automationAccountName: string, jobName: string, options?: Models.JobStreamListByJobOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + jobName, + options + }, + listByJobOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of jobs streams identified by job name. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByJobNext(nextPageLink: string, options?: Models.JobStreamListByJobNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByJobNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByJobNext(nextPageLink: string, options: Models.JobStreamListByJobNextOptionalParams, callback: msRest.ServiceCallback): void; + listByJobNext(nextPageLink: string, options?: Models.JobStreamListByJobNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByJobNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/streams/{jobStreamId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobName, + Parameters.jobStreamId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobStream + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByJobOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/streams", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.jobName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobStreamListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByJobNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobStreamListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/keys.ts b/sdk/automation/arm-automation/lib/operations/keys.ts new file mode 100644 index 000000000000..f81ba745ef47 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/keys.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/keysMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a Keys. */ +export class Keys { + private readonly client: AutomationClientContext; + + /** + * Create a Keys. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve the automation keys for an account. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.KeyListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/linkedWorkspaceOperations.ts b/sdk/automation/arm-automation/lib/operations/linkedWorkspaceOperations.ts new file mode 100644 index 000000000000..4702ef0f4e0a --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/linkedWorkspaceOperations.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/linkedWorkspaceOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a LinkedWorkspaceOperations. */ +export class LinkedWorkspaceOperations { + private readonly client: AutomationClientContext; + + /** + * Create a LinkedWorkspaceOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve the linked workspace for the account id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/linkedWorkspace", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LinkedWorkspace + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/moduleOperations.ts b/sdk/automation/arm-automation/lib/operations/moduleOperations.ts new file mode 100644 index 000000000000..553a71a43f4c --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/moduleOperations.ts @@ -0,0 +1,407 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/moduleOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a ModuleOperations. */ +export class ModuleOperations { + private readonly client: AutomationClientContext; + + /** + * Create a ModuleOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete the module by name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The module name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, moduleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The module name. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, moduleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The module name. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, moduleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, moduleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + moduleName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the module identified by module name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The module name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, moduleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The module name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, moduleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The module name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, moduleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, moduleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + moduleName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or Update the module identified by module name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param parameters The create or update parameters for module. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: Models.ModuleCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param parameters The create or update parameters for module. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: Models.ModuleCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param parameters The create or update parameters for module. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: Models.ModuleCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: Models.ModuleCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + moduleName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update the module identified by module name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param parameters The update parameters for module. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: Models.ModuleUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param parameters The update parameters for module. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: Models.ModuleUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param parameters The update parameters for module. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: Models.ModuleUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: Models.ModuleUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + moduleName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of modules. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of modules. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.moduleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.moduleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Module + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.moduleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ModuleCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Module + }, + 201: { + bodyMapper: Mappers.Module + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.moduleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ModuleUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Module + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/nodeCountInformation.ts b/sdk/automation/arm-automation/lib/operations/nodeCountInformation.ts new file mode 100644 index 000000000000..56ae77124bb1 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/nodeCountInformation.ts @@ -0,0 +1,88 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/nodeCountInformationMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a NodeCountInformation. */ +export class NodeCountInformation { + private readonly client: AutomationClientContext; + + /** + * Create a NodeCountInformation. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve counts for Dsc Nodes. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodecounts/{countType}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.countType, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NodeCounts + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/nodeReports.ts b/sdk/automation/arm-automation/lib/operations/nodeReports.ts new file mode 100644 index 000000000000..10aafafc2807 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/nodeReports.ts @@ -0,0 +1,281 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/nodeReportsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a NodeReports. */ +export class NodeReports { + private readonly client: AutomationClientContext; + + /** + * Create a NodeReports. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve the Dsc node report list by node id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The parameters supplied to the list operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByNode(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: Models.NodeReportsListByNodeOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The parameters supplied to the list operation. + * @param callback The callback + */ + listByNode(resourceGroupName: string, automationAccountName: string, nodeId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The parameters supplied to the list operation. + * @param options The optional parameters + * @param callback The callback + */ + listByNode(resourceGroupName: string, automationAccountName: string, nodeId: string, options: Models.NodeReportsListByNodeOptionalParams, callback: msRest.ServiceCallback): void; + listByNode(resourceGroupName: string, automationAccountName: string, nodeId: string, options?: Models.NodeReportsListByNodeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + nodeId, + options + }, + listByNodeOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the Dsc node report data by node id and report id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The Dsc node id. + * @param reportId The report id. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The Dsc node id. + * @param reportId The report id. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The Dsc node id. + * @param reportId The report id. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + nodeId, + reportId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the Dsc node reports by node id and report id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The Dsc node id. + * @param reportId The report id. + * @param [options] The optional parameters + * @returns Promise + */ + getContent(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The Dsc node id. + * @param reportId The report id. + * @param callback The callback + */ + getContent(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param nodeId The Dsc node id. + * @param reportId The report id. + * @param options The optional parameters + * @param callback The callback + */ + getContent(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, nodeId: string, reportId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + nodeId, + reportId, + options + }, + getContentOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the Dsc node report list by node id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByNodeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByNodeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByNodeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByNodeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByNodeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByNodeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.nodeId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscNodeReportListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.nodeId, + Parameters.reportId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscNodeReport + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getContentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}/content", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.nodeId, + Parameters.reportId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Object" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByNodeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DscNodeReportListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/objectDataTypes.ts b/sdk/automation/arm-automation/lib/operations/objectDataTypes.ts new file mode 100644 index 000000000000..a7e698a4e0f0 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/objectDataTypes.ts @@ -0,0 +1,159 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/objectDataTypesMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a ObjectDataTypes. */ +export class ObjectDataTypes { + private readonly client: AutomationClientContext; + + /** + * Create a ObjectDataTypes. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve a list of fields of a given type identified by module name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param typeName The name of type. + * @param [options] The optional parameters + * @returns Promise + */ + listFieldsByModuleAndType(resourceGroupName: string, automationAccountName: string, moduleName: string, typeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param typeName The name of type. + * @param callback The callback + */ + listFieldsByModuleAndType(resourceGroupName: string, automationAccountName: string, moduleName: string, typeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param moduleName The name of module. + * @param typeName The name of type. + * @param options The optional parameters + * @param callback The callback + */ + listFieldsByModuleAndType(resourceGroupName: string, automationAccountName: string, moduleName: string, typeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listFieldsByModuleAndType(resourceGroupName: string, automationAccountName: string, moduleName: string, typeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + moduleName, + typeName, + options + }, + listFieldsByModuleAndTypeOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of fields of a given type across all accessible modules. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param typeName The name of type. + * @param [options] The optional parameters + * @returns Promise + */ + listFieldsByType(resourceGroupName: string, automationAccountName: string, typeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param typeName The name of type. + * @param callback The callback + */ + listFieldsByType(resourceGroupName: string, automationAccountName: string, typeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param typeName The name of type. + * @param options The optional parameters + * @param callback The callback + */ + listFieldsByType(resourceGroupName: string, automationAccountName: string, typeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listFieldsByType(resourceGroupName: string, automationAccountName: string, typeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + typeName, + options + }, + listFieldsByTypeOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listFieldsByModuleAndTypeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/objectDataTypes/{typeName}/fields", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.moduleName, + Parameters.typeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TypeFieldListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listFieldsByTypeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/objectDataTypes/{typeName}/fields", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.typeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TypeFieldListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/operations.ts b/sdk/automation/arm-automation/lib/operations/operations.ts new file mode 100644 index 000000000000..4f3a7acb2ee5 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/operations.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: AutomationClientContext; + + /** + * Create a Operations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Lists all of the available Automation REST API operations. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Automation/operations", + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/python2Package.ts b/sdk/automation/arm-automation/lib/operations/python2Package.ts new file mode 100644 index 000000000000..723c4a64632d --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/python2Package.ts @@ -0,0 +1,407 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/python2PackageMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a Python2Package. */ +export class Python2Package { + private readonly client: AutomationClientContext; + + /** + * Create a Python2Package. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Delete the python 2 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 optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, packageName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param packageName The python package name. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, packageName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, packageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, packageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + packageName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the python 2 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 optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, packageName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param packageName The python package name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, packageName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, packageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, packageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + packageName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or Update the python 2 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 optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: Models.PythonPackageCreateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: Models.PythonPackageCreateParameters, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: Models.PythonPackageCreateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: Models.PythonPackageCreateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + packageName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update the python 2 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 optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: Models.PythonPackageUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: Models.PythonPackageUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: Models.PythonPackageUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, packageName: string, parameters: Models.PythonPackageUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + packageName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of python 2 packages. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of python 2 packages. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.packageName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.packageName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Module + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.packageName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PythonPackageCreateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Module + }, + 201: { + bodyMapper: Mappers.Module + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.packageName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PythonPackageUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Module + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ModuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/runbookDraftOperations.ts b/sdk/automation/arm-automation/lib/operations/runbookDraftOperations.ts new file mode 100644 index 000000000000..81f21d916fa8 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/runbookDraftOperations.ts @@ -0,0 +1,304 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/runbookDraftOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a RunbookDraftOperations. */ +export class RunbookDraftOperations { + private readonly client: AutomationClientContext; + + /** + * Create a RunbookDraftOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve the content of runbook draft identified by runbook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + getContentOperationSpec, + callback) as Promise; + } + + /** + * Replaces the runbook draft content. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param runbookContent The runbook draft content. + * @param [options] The optional parameters + * @returns Promise + */ + replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: msRest.HttpRequestBody, options?: msRest.RequestOptionsBase): Promise { + return this.beginReplaceContent(resourceGroupName,automationAccountName,runbookName,runbookContent,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Retrieve the runbook draft identified by runbook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Undo draft edit to last known published state identified by runbook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + undoEditOperationSpec, + callback) as Promise; + } + + /** + * Replaces the runbook draft content. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param runbookContent The runbook draft content. + * @param [options] The optional parameters + * @returns Promise + */ + beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: msRest.HttpRequestBody, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + automationAccountName, + runbookName, + runbookContent, + options + }, + beginReplaceContentOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getContentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RunbookDraft + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const undoEditOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/undoEdit", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RunbookDraftUndoEditResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginReplaceContentOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "runbookContent", + mapper: { + required: true, + serializedName: "runbookContent", + type: { + name: "Stream" + } + } + }, + contentType: "text/powershell", + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + }, + headersMapper: Mappers.RunbookDraftReplaceContentHeaders + }, + 202: { + headersMapper: Mappers.RunbookDraftReplaceContentHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/runbookOperations.ts b/sdk/automation/arm-automation/lib/operations/runbookOperations.ts new file mode 100644 index 000000000000..9487990a30c3 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/runbookOperations.ts @@ -0,0 +1,538 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/runbookOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a RunbookOperations. */ +export class RunbookOperations { + private readonly client: AutomationClientContext; + + /** + * Create a RunbookOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Publish runbook draft. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The parameters supplied to the publish runbook operation. + * @param [options] The optional parameters + * @returns Promise + */ + publish(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginPublish(resourceGroupName,automationAccountName,runbookName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Retrieve the content of runbook identified by runbook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + getContentOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the runbook identified by runbook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create the runbook identified by runbook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param parameters The create or update parameters for runbook. Provide either content link for a + * published runbook or draft, not both. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.RunbookCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param parameters The create or update parameters for runbook. Provide either content link for a + * published runbook or draft, not both. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.RunbookCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param parameters The create or update parameters for runbook. Provide either content link for a + * published runbook or draft, not both. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.RunbookCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.RunbookCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update the runbook identified by runbook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param parameters The update parameters for runbook. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.RunbookUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param parameters The update parameters for runbook. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.RunbookUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param parameters The update parameters for runbook. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.RunbookUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.RunbookUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete the runbook by name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, runbookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve a list of runbooks. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Publish runbook draft. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The parameters supplied to the publish runbook operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginPublish(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + beginPublishOperationSpec, + options); + } + + /** + * Retrieve a list of runbooks. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getContentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/content", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Runbook + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.RunbookCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Runbook + }, + 201: { + bodyMapper: Mappers.Runbook + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.RunbookUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Runbook + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RunbookListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginPublishOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/publish", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: { + headersMapper: Mappers.RunbookPublishHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RunbookListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/scheduleOperations.ts b/sdk/automation/arm-automation/lib/operations/scheduleOperations.ts new file mode 100644 index 000000000000..00bd3bcbaf89 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/scheduleOperations.ts @@ -0,0 +1,408 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/scheduleOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a ScheduleOperations. */ +export class ScheduleOperations { + private readonly client: AutomationClientContext; + + /** + * Create a ScheduleOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Create a schedule. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param parameters The parameters supplied to the create or update schedule operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: Models.ScheduleCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param parameters The parameters supplied to the create or update schedule operation. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: Models.ScheduleCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param parameters The parameters supplied to the create or update schedule operation. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: Models.ScheduleCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: Models.ScheduleCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + scheduleName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update the schedule identified by schedule name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param parameters The parameters supplied to the update schedule operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: Models.ScheduleUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param parameters The parameters supplied to the update schedule operation. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: Models.ScheduleUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param parameters The parameters supplied to the update schedule operation. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: Models.ScheduleUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, scheduleName: string, parameters: Models.ScheduleUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + scheduleName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the schedule identified by schedule name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, scheduleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, scheduleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + scheduleName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete the schedule identified by schedule name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, scheduleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param scheduleName The schedule name. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, scheduleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, scheduleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + scheduleName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve a list of schedules. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of schedules. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.scheduleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ScheduleCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Schedule + }, + 201: { + bodyMapper: Mappers.Schedule + }, + 409: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.scheduleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ScheduleUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Schedule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.scheduleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Schedule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.scheduleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScheduleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScheduleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/softwareUpdateConfigurationMachineRuns.ts b/sdk/automation/arm-automation/lib/operations/softwareUpdateConfigurationMachineRuns.ts new file mode 100644 index 000000000000..ba14b36fda12 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/softwareUpdateConfigurationMachineRuns.ts @@ -0,0 +1,157 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/softwareUpdateConfigurationMachineRunsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a SoftwareUpdateConfigurationMachineRuns. */ +export class SoftwareUpdateConfigurationMachineRuns { + private readonly client: AutomationClientContext; + + /** + * Create a SoftwareUpdateConfigurationMachineRuns. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Get a single software update configuration machine run by Id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationMachineRunId The Id of the software update configuration + * machine run. + * @param [options] The optional parameters + * @returns Promise + */ + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, options?: Models.SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationMachineRunId The Id of the software update configuration + * machine run. + * @param callback The callback + */ + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationMachineRunId The Id of the software update configuration + * machine run. + * @param options The optional parameters + * @param callback The callback + */ + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, options: Models.SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams, callback: msRest.ServiceCallback): void; + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationMachineRunId: string, options?: Models.SoftwareUpdateConfigurationMachineRunsGetByIdOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + softwareUpdateConfigurationMachineRunId, + options + }, + getByIdOperationSpec, + callback) as Promise; + } + + /** + * Return list of software update configuration machine runs + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, automationAccountName: string, options?: Models.SoftwareUpdateConfigurationMachineRunsListOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + list(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, automationAccountName: string, options: Models.SoftwareUpdateConfigurationMachineRunsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, automationAccountName: string, options?: Models.SoftwareUpdateConfigurationMachineRunsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getByIdOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.softwareUpdateConfigurationMachineRunId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwareUpdateConfigurationMachineRun + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skip1, + Parameters.top1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwareUpdateConfigurationMachineRunListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/softwareUpdateConfigurationRuns.ts b/sdk/automation/arm-automation/lib/operations/softwareUpdateConfigurationRuns.ts new file mode 100644 index 000000000000..643115941fde --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/softwareUpdateConfigurationRuns.ts @@ -0,0 +1,154 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/softwareUpdateConfigurationRunsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a SoftwareUpdateConfigurationRuns. */ +export class SoftwareUpdateConfigurationRuns { + private readonly client: AutomationClientContext; + + /** + * Create a SoftwareUpdateConfigurationRuns. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Get a single software update configuration Run by Id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationRunId The Id of the software update configuration run. + * @param [options] The optional parameters + * @returns Promise + */ + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, options?: Models.SoftwareUpdateConfigurationRunsGetByIdOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationRunId The Id of the software update configuration run. + * @param callback The callback + */ + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationRunId The Id of the software update configuration run. + * @param options The optional parameters + * @param callback The callback + */ + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, options: Models.SoftwareUpdateConfigurationRunsGetByIdOptionalParams, callback: msRest.ServiceCallback): void; + getById(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationRunId: string, options?: Models.SoftwareUpdateConfigurationRunsGetByIdOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + softwareUpdateConfigurationRunId, + options + }, + getByIdOperationSpec, + callback) as Promise; + } + + /** + * Return list of software update configuration runs + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, automationAccountName: string, options?: Models.SoftwareUpdateConfigurationRunsListOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + list(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, automationAccountName: string, options: Models.SoftwareUpdateConfigurationRunsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, automationAccountName: string, options?: Models.SoftwareUpdateConfigurationRunsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getByIdOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.softwareUpdateConfigurationRunId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwareUpdateConfigurationRun + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.skip1, + Parameters.top1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwareUpdateConfigurationRunListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/softwareUpdateConfigurations.ts b/sdk/automation/arm-automation/lib/operations/softwareUpdateConfigurations.ts new file mode 100644 index 000000000000..ca41bd378623 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/softwareUpdateConfigurations.ts @@ -0,0 +1,300 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/softwareUpdateConfigurationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a SoftwareUpdateConfigurations. */ +export class SoftwareUpdateConfigurations { + private readonly client: AutomationClientContext; + + /** + * Create a SoftwareUpdateConfigurations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Create a new software update configuration with the name given in the URI. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationName The name of the software update configuration to be + * created. + * @param parameters Request body. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: Models.SoftwareUpdateConfiguration, options?: Models.SoftwareUpdateConfigurationsCreateOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationName The name of the software update configuration to be + * created. + * @param parameters Request body. + * @param callback The callback + */ + create(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: Models.SoftwareUpdateConfiguration, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationName The name of the software update configuration to be + * created. + * @param parameters Request body. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: Models.SoftwareUpdateConfiguration, options: Models.SoftwareUpdateConfigurationsCreateOptionalParams, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, parameters: Models.SoftwareUpdateConfiguration, options?: Models.SoftwareUpdateConfigurationsCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + softwareUpdateConfigurationName, + parameters, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Get a single software update configuration by name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationName The name of the software update configuration to be + * created. + * @param [options] The optional parameters + * @returns Promise + */ + getByName(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: Models.SoftwareUpdateConfigurationsGetByNameOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationName The name of the software update configuration to be + * created. + * @param callback The callback + */ + getByName(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationName The name of the software update configuration to be + * created. + * @param options The optional parameters + * @param callback The callback + */ + getByName(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options: Models.SoftwareUpdateConfigurationsGetByNameOptionalParams, callback: msRest.ServiceCallback): void; + getByName(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: Models.SoftwareUpdateConfigurationsGetByNameOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + softwareUpdateConfigurationName, + options + }, + getByNameOperationSpec, + callback) as Promise; + } + + /** + * delete a specific software update configuration. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationName The name of the software update configuration to be + * created. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: Models.SoftwareUpdateConfigurationsDeleteMethodOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationName The name of the software update configuration to be + * created. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param softwareUpdateConfigurationName The name of the software update configuration to be + * created. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options: Models.SoftwareUpdateConfigurationsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, softwareUpdateConfigurationName: string, options?: Models.SoftwareUpdateConfigurationsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + softwareUpdateConfigurationName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Get all software update configurations for the account. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, automationAccountName: string, options?: Models.SoftwareUpdateConfigurationsListOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + list(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, automationAccountName: string, options: Models.SoftwareUpdateConfigurationsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, automationAccountName: string, options?: Models.SoftwareUpdateConfigurationsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.softwareUpdateConfigurationName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SoftwareUpdateConfiguration, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SoftwareUpdateConfiguration + }, + 201: { + bodyMapper: Mappers.SoftwareUpdateConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getByNameOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.softwareUpdateConfigurationName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwareUpdateConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.softwareUpdateConfigurationName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter + ], + headerParameters: [ + Parameters.clientRequestId, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwareUpdateConfigurationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/sourceControlOperations.ts b/sdk/automation/arm-automation/lib/operations/sourceControlOperations.ts new file mode 100644 index 000000000000..8add3158d3b4 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/sourceControlOperations.ts @@ -0,0 +1,408 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sourceControlOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a SourceControlOperations. */ +export class SourceControlOperations { + private readonly client: AutomationClientContext; + + /** + * Create a SourceControlOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Create a source control. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param parameters The parameters supplied to the create or update source control operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: Models.SourceControlCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param parameters The parameters supplied to the create or update source control operation. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: Models.SourceControlCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param parameters The parameters supplied to the create or update source control operation. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: Models.SourceControlCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: Models.SourceControlCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + sourceControlName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update a source control. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param parameters The parameters supplied to the update source control operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: Models.SourceControlUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param parameters The parameters supplied to the update source control operation. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: Models.SourceControlUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param parameters The parameters supplied to the update source control operation. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: Models.SourceControlUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, sourceControlName: string, parameters: Models.SourceControlUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + sourceControlName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete the source control. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The name of source control. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The name of source control. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The name of source control. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + sourceControlName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the source control identified by source control name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The name of source control. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The name of source control. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The name of source control. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + sourceControlName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of source controls. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.SourceControlListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.SourceControlListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.SourceControlListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of source controls. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.sourceControlName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SourceControlCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SourceControl + }, + 201: { + bodyMapper: Mappers.SourceControl + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.sourceControlName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SourceControlUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SourceControl + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.sourceControlName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.sourceControlName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControl + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControlListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControlListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/sourceControlSyncJobOperations.ts b/sdk/automation/arm-automation/lib/operations/sourceControlSyncJobOperations.ts new file mode 100644 index 000000000000..56f61910d119 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/sourceControlSyncJobOperations.ts @@ -0,0 +1,287 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sourceControlSyncJobOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a SourceControlSyncJobOperations. */ +export class SourceControlSyncJobOperations { + private readonly client: AutomationClientContext; + + /** + * Create a SourceControlSyncJobOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Creates the sync job for a source control. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param parameters The parameters supplied to the create source control sync job operation. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: Models.SourceControlSyncJobCreateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param parameters The parameters supplied to the create source control sync job operation. + * @param callback The callback + */ + create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: Models.SourceControlSyncJobCreateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param parameters The parameters supplied to the create source control sync job operation. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: Models.SourceControlSyncJobCreateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, parameters: Models.SourceControlSyncJobCreateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + sourceControlName, + sourceControlSyncJobId, + parameters, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the source control sync job identified by job id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + sourceControlName, + sourceControlSyncJobId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of source control sync jobs. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: Models.SourceControlSyncJobListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options: Models.SourceControlSyncJobListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, sourceControlName: string, options?: Models.SourceControlSyncJobListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + sourceControlName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of source control sync jobs. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.sourceControlName, + Parameters.sourceControlSyncJobId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SourceControlSyncJobCreateParameters, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.SourceControlSyncJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.sourceControlName, + Parameters.sourceControlSyncJobId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControlSyncJobById + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.sourceControlName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControlSyncJobListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControlSyncJobListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/sourceControlSyncJobStreams.ts b/sdk/automation/arm-automation/lib/operations/sourceControlSyncJobStreams.ts new file mode 100644 index 000000000000..c82ce65ba537 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/sourceControlSyncJobStreams.ts @@ -0,0 +1,219 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sourceControlSyncJobStreamsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a SourceControlSyncJobStreams. */ +export class SourceControlSyncJobStreams { + private readonly client: AutomationClientContext; + + /** + * Create a SourceControlSyncJobStreams. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve a list of sync job streams identified by sync job id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param [options] The optional parameters + * @returns Promise + */ + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: Models.SourceControlSyncJobStreamsListBySyncJobOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param callback The callback + */ + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param options The optional parameters + * @param callback The callback + */ + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options: Models.SourceControlSyncJobStreamsListBySyncJobOptionalParams, callback: msRest.ServiceCallback): void; + listBySyncJob(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, options?: Models.SourceControlSyncJobStreamsListBySyncJobOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + sourceControlName, + sourceControlSyncJobId, + options + }, + listBySyncJobOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a sync job stream identified by stream id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param streamId The id of the sync job stream. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param streamId The id of the sync job stream. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param sourceControlName The source control name. + * @param sourceControlSyncJobId The source control sync job id. + * @param streamId The id of the sync job stream. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, sourceControlName: string, sourceControlSyncJobId: string, streamId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + sourceControlName, + sourceControlSyncJobId, + streamId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of sync job streams identified by sync job id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySyncJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySyncJobNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySyncJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySyncJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySyncJobNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listBySyncJobOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}/streams", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.sourceControlName, + Parameters.sourceControlSyncJobId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControlSyncJobStreamsListBySyncJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}/sourceControlSyncJobs/{sourceControlSyncJobId}/streams/{streamId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.sourceControlName, + Parameters.sourceControlSyncJobId, + Parameters.streamId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControlSyncJobStreamById + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listBySyncJobNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceControlSyncJobStreamsListBySyncJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/statisticsOperations.ts b/sdk/automation/arm-automation/lib/operations/statisticsOperations.ts new file mode 100644 index 000000000000..4b13c7bd2d17 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/statisticsOperations.ts @@ -0,0 +1,88 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/statisticsOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a StatisticsOperations. */ +export class StatisticsOperations { + private readonly client: AutomationClientContext; + + /** + * Create a StatisticsOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve the statistics for the account. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.StatisticsListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.StatisticsListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.StatisticsListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/statistics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StatisticsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/testJobOperations.ts b/sdk/automation/arm-automation/lib/operations/testJobOperations.ts new file mode 100644 index 000000000000..d367307b61b4 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/testJobOperations.ts @@ -0,0 +1,345 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/testJobOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a TestJobOperations. */ +export class TestJobOperations { + private readonly client: AutomationClientContext; + + /** + * Create a TestJobOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Create a test job of the runbook. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The parameters supplied to the create test job operation. + * @param parameters The parameters supplied to the create test job operation. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.TestJobCreateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The parameters supplied to the create test job operation. + * @param parameters The parameters supplied to the create test job operation. + * @param callback The callback + */ + create(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.TestJobCreateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The parameters supplied to the create test job operation. + * @param parameters The parameters supplied to the create test job operation. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.TestJobCreateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, automationAccountName: string, runbookName: string, parameters: Models.TestJobCreateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + parameters, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the test job for the specified runbook. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Resume the test job. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + resume(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + resume(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + resume(resourceGroupName: string, automationAccountName: string, runbookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + resume(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + resumeOperationSpec, + callback); + } + + /** + * Stop the test job. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + stop(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + stop(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + stop(resourceGroupName: string, automationAccountName: string, runbookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stop(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + stopOperationSpec, + callback); + } + + /** + * Suspend the test job. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + suspend(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + suspend(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + suspend(resourceGroupName: string, automationAccountName: string, runbookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + suspend(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + suspendOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TestJobCreateParameters, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.TestJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TestJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const resumeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/resume", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const stopOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/stop", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const suspendOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/suspend", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/testJobStreams.ts b/sdk/automation/arm-automation/lib/operations/testJobStreams.ts new file mode 100644 index 000000000000..584e3c1691dc --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/testJobStreams.ts @@ -0,0 +1,209 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/testJobStreamsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a TestJobStreams. */ +export class TestJobStreams { + private readonly client: AutomationClientContext; + + /** + * Create a TestJobStreams. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve a test job stream of the test job identified by runbook name and stream id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param jobStreamId The job stream id. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param jobStreamId The job stream id. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param jobStreamId The job stream id. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, runbookName: string, jobStreamId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + jobStreamId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of test job streams identified by runbook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param [options] The optional parameters + * @returns Promise + */ + listByTestJob(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: Models.TestJobStreamsListByTestJobOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param callback The callback + */ + listByTestJob(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param runbookName The runbook name. + * @param options The optional parameters + * @param callback The callback + */ + listByTestJob(resourceGroupName: string, automationAccountName: string, runbookName: string, options: Models.TestJobStreamsListByTestJobOptionalParams, callback: msRest.ServiceCallback): void; + listByTestJob(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: Models.TestJobStreamsListByTestJobOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + runbookName, + options + }, + listByTestJobOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of test job streams identified by runbook name. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByTestJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByTestJobNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByTestJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByTestJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByTestJobNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams/{jobStreamId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName, + Parameters.jobStreamId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobStream + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByTestJobOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.runbookName + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobStreamListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByTestJobNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JobStreamListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/usages.ts b/sdk/automation/arm-automation/lib/operations/usages.ts new file mode 100644 index 000000000000..c89d3269d746 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/usages.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/usagesMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a Usages. */ +export class Usages { + private readonly client: AutomationClientContext; + + /** + * Create a Usages. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Retrieve the usage for the account id. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/usages", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UsageListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/variableOperations.ts b/sdk/automation/arm-automation/lib/operations/variableOperations.ts new file mode 100644 index 000000000000..6fb1178baab5 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/variableOperations.ts @@ -0,0 +1,407 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/variableOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a VariableOperations. */ +export class VariableOperations { + private readonly client: AutomationClientContext; + + /** + * Create a VariableOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Create a variable. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The variable name. + * @param parameters The parameters supplied to the create or update variable operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: Models.VariableCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The variable name. + * @param parameters The parameters supplied to the create or update variable operation. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: Models.VariableCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The variable name. + * @param parameters The parameters supplied to the create or update variable operation. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: Models.VariableCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: Models.VariableCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + variableName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update a variable. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The variable name. + * @param parameters The parameters supplied to the update variable operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: Models.VariableUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The variable name. + * @param parameters The parameters supplied to the update variable operation. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: Models.VariableUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The variable name. + * @param parameters The parameters supplied to the update variable operation. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: Models.VariableUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: Models.VariableUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + variableName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete the variable. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The name of variable. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, variableName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The name of variable. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, variableName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The name of variable. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, variableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, variableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + variableName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the variable identified by variable name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The name of variable. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, variableName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The name of variable. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, variableName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param variableName The name of variable. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, variableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, variableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + variableName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of variables. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of variables. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.variableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VariableCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Variable + }, + 201: { + bodyMapper: Mappers.Variable + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.variableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VariableUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Variable + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.variableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.variableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Variable + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VariableListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VariableListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/watcherOperations.ts b/sdk/automation/arm-automation/lib/operations/watcherOperations.ts new file mode 100644 index 000000000000..e1da24ef350b --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/watcherOperations.ts @@ -0,0 +1,528 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/watcherOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a WatcherOperations. */ +export class WatcherOperations { + private readonly client: AutomationClientContext; + + /** + * Create a WatcherOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Create the watcher identified by watcher name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param parameters The create or update parameters for watcher. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Models.Watcher, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param parameters The create or update parameters for watcher. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Models.Watcher, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param parameters The create or update parameters for watcher. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Models.Watcher, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Models.Watcher, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + watcherName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve the watcher identified by watcher name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, watcherName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + watcherName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update the watcher identified by watcher name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param parameters The update parameters for watcher. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Models.WatcherUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param parameters The update parameters for watcher. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Models.WatcherUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param parameters The update parameters for watcher. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Models.WatcherUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Models.WatcherUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + watcherName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete the watcher by name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + watcherName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Resume the watcher identified by watcher name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param [options] The optional parameters + * @returns Promise + */ + start(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param callback The callback + */ + start(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param options The optional parameters + * @param callback The callback + */ + start(resourceGroupName: string, automationAccountName: string, watcherName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + start(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + watcherName, + options + }, + startOperationSpec, + callback); + } + + /** + * Resume the watcher identified by watcher name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param [options] The optional parameters + * @returns Promise + */ + stop(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param callback The callback + */ + stop(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param watcherName The watcher name. + * @param options The optional parameters + * @param callback The callback + */ + stop(resourceGroupName: string, automationAccountName: string, watcherName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + stop(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + watcherName, + options + }, + stopOperationSpec, + callback); + } + + /** + * Retrieve a list of watchers. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.WatcherListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.WatcherListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.WatcherListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of watchers. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.watcherName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Watcher, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Watcher + }, + 201: { + bodyMapper: Mappers.Watcher + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.watcherName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Watcher + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.watcherName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.WatcherUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Watcher + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.watcherName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const startOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/start", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.watcherName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const stopOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/stop", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.watcherName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WatcherListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WatcherListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/lib/operations/webhookOperations.ts b/sdk/automation/arm-automation/lib/operations/webhookOperations.ts new file mode 100644 index 000000000000..e7ac9a9eef26 --- /dev/null +++ b/sdk/automation/arm-automation/lib/operations/webhookOperations.ts @@ -0,0 +1,470 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/webhookOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { AutomationClientContext } from "../automationClientContext"; + +/** Class representing a WebhookOperations. */ +export class WebhookOperations { + private readonly client: AutomationClientContext; + + /** + * Create a WebhookOperations. + * @param {AutomationClientContext} client Reference to the service client. + */ + constructor(client: AutomationClientContext) { + this.client = client; + } + + /** + * Generates a Uri for use in creating a webhook. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + generateUri(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + generateUri(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + generateUri(resourceGroupName: string, automationAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + generateUri(resourceGroupName: string, automationAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + generateUriOperationSpec, + callback) as Promise; + } + + /** + * Delete the webhook by name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, webhookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, automationAccountName: string, webhookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + webhookName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieve the webhook identified by webhook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, webhookName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, automationAccountName: string, webhookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, automationAccountName: string, webhookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + webhookName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create the webhook identified by webhook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param parameters The create or update parameters for webhook. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: Models.WebhookCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param parameters The create or update parameters for webhook. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: Models.WebhookCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param parameters The create or update parameters for webhook. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: Models.WebhookCreateOrUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: Models.WebhookCreateOrUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + webhookName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update the webhook identified by webhook name. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param parameters The update parameters for webhook. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: Models.WebhookUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param parameters The update parameters for webhook. + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: Models.WebhookUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param webhookName The webhook name. + * @param parameters The update parameters for webhook. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: Models.WebhookUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, automationAccountName: string, webhookName: string, parameters: Models.WebhookUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + webhookName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of webhooks. + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.WebhookListByAutomationAccountOptionalParams): Promise; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of an Azure Resource group. + * @param automationAccountName The name of the automation account. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: Models.WebhookListByAutomationAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: Models.WebhookListByAutomationAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + automationAccountName, + options + }, + listByAutomationAccountOperationSpec, + callback) as Promise; + } + + /** + * Retrieve a list of webhooks. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAutomationAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAutomationAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAutomationAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const generateUriOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/generateUri", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.webhookName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.webhookName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Webhook + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.webhookName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.WebhookCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Webhook + }, + 201: { + bodyMapper: Mappers.Webhook + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.webhookName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.WebhookUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Webhook + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.automationAccountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebhookListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByAutomationAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WebhookListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/automation/arm-automation/package.json b/sdk/automation/arm-automation/package.json index e936fa7ff266..3a777e4dc66e 100644 --- a/sdk/automation/arm-automation/package.json +++ b/sdk/automation/arm-automation/package.json @@ -4,8 +4,8 @@ "description": "AutomationClient Library with typescript type definitions for node.js and browser.", "version": "9.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,9 +23,10 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/automation/arm-automation", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -42,7 +43,7 @@ "esm/**/*.js.map", "esm/**/*.d.ts", "esm/**/*.d.ts.map", - "src/**/*.ts", + "lib/**/*.ts", "rollup.config.js", "tsconfig.json" ], @@ -51,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-automation.js.map'\" -o ./dist/arm-automation.min.js ./dist/arm-automation.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "authPublish": true + "sideEffects": false } diff --git a/sdk/automation/arm-automation/rollup.config.js b/sdk/automation/arm-automation/rollup.config.js index ef2237c6c46a..796c587e2e5c 100644 --- a/sdk/automation/arm-automation/rollup.config.js +++ b/sdk/automation/arm-automation/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/automationClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/automationClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-automation.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/automation/arm-automation/tsconfig.json b/sdk/automation/arm-automation/tsconfig.json index 87bbf5b5fa49..51ea90961ce5 100644 --- a/sdk/automation/arm-automation/tsconfig.json +++ b/sdk/automation/arm-automation/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./lib/**/*.ts"], "exclude": ["node_modules"] }