@azure/arm-automation 11.0.0-alpha.20250718.1 → 11.0.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/automationClient.js +57 -5
- package/dist/browser/automationClient.js.map +1 -1
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +447 -212
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/activityOperations.js +23 -40
- package/dist/browser/operations/activityOperations.js.map +1 -1
- package/dist/browser/operations/agentRegistrationInformation.js +1 -0
- package/dist/browser/operations/agentRegistrationInformation.js.map +1 -1
- package/dist/browser/operations/automationAccountOperations.js +45 -79
- package/dist/browser/operations/automationAccountOperations.js.map +1 -1
- package/dist/browser/operations/certificateOperations.js +23 -40
- package/dist/browser/operations/certificateOperations.js.map +1 -1
- package/dist/browser/operations/connectionOperations.js +23 -40
- package/dist/browser/operations/connectionOperations.js.map +1 -1
- package/dist/browser/operations/connectionTypeOperations.js +23 -40
- package/dist/browser/operations/connectionTypeOperations.js.map +1 -1
- package/dist/browser/operations/credentialOperations.js +23 -40
- package/dist/browser/operations/credentialOperations.js.map +1 -1
- package/dist/browser/operations/deletedAutomationAccounts.js +1 -0
- package/dist/browser/operations/deletedAutomationAccounts.js.map +1 -1
- package/dist/browser/operations/dscCompilationJobOperations.js +34 -46
- package/dist/browser/operations/dscCompilationJobOperations.js.map +1 -1
- package/dist/browser/operations/dscCompilationJobStream.js +1 -0
- package/dist/browser/operations/dscCompilationJobStream.js.map +1 -1
- package/dist/browser/operations/dscConfigurationOperations.js +23 -40
- package/dist/browser/operations/dscConfigurationOperations.js.map +1 -1
- package/dist/browser/operations/dscNodeConfigurationOperations.js +34 -46
- package/dist/browser/operations/dscNodeConfigurationOperations.js.map +1 -1
- package/dist/browser/operations/dscNodeOperations.js +23 -40
- package/dist/browser/operations/dscNodeOperations.js.map +1 -1
- package/dist/browser/operations/fields.js +10 -27
- package/dist/browser/operations/fields.js.map +1 -1
- package/dist/browser/operations/hybridRunbookWorkerGroupOperations.js +23 -40
- package/dist/browser/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
- package/dist/browser/operations/hybridRunbookWorkers.js +23 -40
- package/dist/browser/operations/hybridRunbookWorkers.js.map +1 -1
- package/dist/browser/operations/jobOperations.js +23 -40
- package/dist/browser/operations/jobOperations.js.map +1 -1
- package/dist/browser/operations/jobScheduleOperations.js +23 -40
- package/dist/browser/operations/jobScheduleOperations.js.map +1 -1
- package/dist/browser/operations/jobStreamOperations.js +23 -40
- package/dist/browser/operations/jobStreamOperations.js.map +1 -1
- package/dist/browser/operations/keys.js +1 -0
- package/dist/browser/operations/keys.js.map +1 -1
- package/dist/browser/operations/linkedWorkspaceOperations.js +1 -0
- package/dist/browser/operations/linkedWorkspaceOperations.js.map +1 -1
- package/dist/browser/operations/moduleOperations.js +23 -40
- package/dist/browser/operations/moduleOperations.js.map +1 -1
- package/dist/browser/operations/nodeCountInformation.js +1 -0
- package/dist/browser/operations/nodeCountInformation.js.map +1 -1
- package/dist/browser/operations/nodeReports.js +23 -40
- package/dist/browser/operations/nodeReports.js.map +1 -1
- package/dist/browser/operations/objectDataTypes.js +19 -53
- package/dist/browser/operations/objectDataTypes.js.map +1 -1
- package/dist/browser/operations/operations.js +10 -27
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +10 -27
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/python2Package.js +23 -40
- package/dist/browser/operations/python2Package.js.map +1 -1
- package/dist/browser/operations/runbookDraftOperations.js +12 -6
- package/dist/browser/operations/runbookDraftOperations.js.map +1 -1
- package/dist/browser/operations/runbookOperations.js +34 -46
- package/dist/browser/operations/runbookOperations.js.map +1 -1
- package/dist/browser/operations/scheduleOperations.js +23 -40
- package/dist/browser/operations/scheduleOperations.js.map +1 -1
- package/dist/browser/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
- package/dist/browser/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
- package/dist/browser/operations/softwareUpdateConfigurationRuns.js +1 -0
- package/dist/browser/operations/softwareUpdateConfigurationRuns.js.map +1 -1
- package/dist/browser/operations/softwareUpdateConfigurations.js +1 -0
- package/dist/browser/operations/softwareUpdateConfigurations.js.map +1 -1
- package/dist/browser/operations/sourceControlOperations.js +23 -40
- package/dist/browser/operations/sourceControlOperations.js.map +1 -1
- package/dist/browser/operations/sourceControlSyncJobOperations.js +23 -40
- package/dist/browser/operations/sourceControlSyncJobOperations.js.map +1 -1
- package/dist/browser/operations/sourceControlSyncJobStreams.js +23 -40
- package/dist/browser/operations/sourceControlSyncJobStreams.js.map +1 -1
- package/dist/browser/operations/statisticsOperations.js +10 -27
- package/dist/browser/operations/statisticsOperations.js.map +1 -1
- package/dist/browser/operations/testJobOperations.js +1 -0
- package/dist/browser/operations/testJobOperations.js.map +1 -1
- package/dist/browser/operations/testJobStreams.js +23 -40
- package/dist/browser/operations/testJobStreams.js.map +1 -1
- package/dist/browser/operations/usages.js +10 -27
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/operations/variableOperations.js +23 -40
- package/dist/browser/operations/variableOperations.js.map +1 -1
- package/dist/browser/operations/watcherOperations.js +23 -40
- package/dist/browser/operations/watcherOperations.js.map +1 -1
- package/dist/browser/operations/webhookOperations.js +23 -40
- package/dist/browser/operations/webhookOperations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/automationClient.js +57 -5
- package/dist/commonjs/automationClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +447 -212
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/activityOperations.js +23 -39
- package/dist/commonjs/operations/activityOperations.js.map +1 -1
- package/dist/commonjs/operations/agentRegistrationInformation.js +1 -0
- package/dist/commonjs/operations/agentRegistrationInformation.js.map +1 -1
- package/dist/commonjs/operations/automationAccountOperations.js +45 -78
- package/dist/commonjs/operations/automationAccountOperations.js.map +1 -1
- package/dist/commonjs/operations/certificateOperations.js +23 -39
- package/dist/commonjs/operations/certificateOperations.js.map +1 -1
- package/dist/commonjs/operations/connectionOperations.js +23 -39
- package/dist/commonjs/operations/connectionOperations.js.map +1 -1
- package/dist/commonjs/operations/connectionTypeOperations.js +23 -39
- package/dist/commonjs/operations/connectionTypeOperations.js.map +1 -1
- package/dist/commonjs/operations/credentialOperations.js +23 -39
- package/dist/commonjs/operations/credentialOperations.js.map +1 -1
- package/dist/commonjs/operations/deletedAutomationAccounts.js +1 -0
- package/dist/commonjs/operations/deletedAutomationAccounts.js.map +1 -1
- package/dist/commonjs/operations/dscCompilationJobOperations.js +34 -45
- package/dist/commonjs/operations/dscCompilationJobOperations.js.map +1 -1
- package/dist/commonjs/operations/dscCompilationJobStream.js +1 -0
- package/dist/commonjs/operations/dscCompilationJobStream.js.map +1 -1
- package/dist/commonjs/operations/dscConfigurationOperations.js +23 -39
- package/dist/commonjs/operations/dscConfigurationOperations.js.map +1 -1
- package/dist/commonjs/operations/dscNodeConfigurationOperations.js +34 -45
- package/dist/commonjs/operations/dscNodeConfigurationOperations.js.map +1 -1
- package/dist/commonjs/operations/dscNodeOperations.js +23 -39
- package/dist/commonjs/operations/dscNodeOperations.js.map +1 -1
- package/dist/commonjs/operations/fields.js +10 -26
- package/dist/commonjs/operations/fields.js.map +1 -1
- package/dist/commonjs/operations/hybridRunbookWorkerGroupOperations.js +23 -39
- package/dist/commonjs/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
- package/dist/commonjs/operations/hybridRunbookWorkers.js +23 -39
- package/dist/commonjs/operations/hybridRunbookWorkers.js.map +1 -1
- package/dist/commonjs/operations/jobOperations.js +23 -39
- package/dist/commonjs/operations/jobOperations.js.map +1 -1
- package/dist/commonjs/operations/jobScheduleOperations.js +23 -39
- package/dist/commonjs/operations/jobScheduleOperations.js.map +1 -1
- package/dist/commonjs/operations/jobStreamOperations.js +23 -39
- package/dist/commonjs/operations/jobStreamOperations.js.map +1 -1
- package/dist/commonjs/operations/keys.js +1 -0
- package/dist/commonjs/operations/keys.js.map +1 -1
- package/dist/commonjs/operations/linkedWorkspaceOperations.js +1 -0
- package/dist/commonjs/operations/linkedWorkspaceOperations.js.map +1 -1
- package/dist/commonjs/operations/moduleOperations.js +23 -39
- package/dist/commonjs/operations/moduleOperations.js.map +1 -1
- package/dist/commonjs/operations/nodeCountInformation.js +1 -0
- package/dist/commonjs/operations/nodeCountInformation.js.map +1 -1
- package/dist/commonjs/operations/nodeReports.js +23 -39
- package/dist/commonjs/operations/nodeReports.js.map +1 -1
- package/dist/commonjs/operations/objectDataTypes.js +19 -52
- package/dist/commonjs/operations/objectDataTypes.js.map +1 -1
- package/dist/commonjs/operations/operations.js +10 -26
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +10 -26
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/python2Package.js +23 -39
- package/dist/commonjs/operations/python2Package.js.map +1 -1
- package/dist/commonjs/operations/runbookDraftOperations.js +12 -6
- package/dist/commonjs/operations/runbookDraftOperations.js.map +1 -1
- package/dist/commonjs/operations/runbookOperations.js +34 -45
- package/dist/commonjs/operations/runbookOperations.js.map +1 -1
- package/dist/commonjs/operations/scheduleOperations.js +23 -39
- package/dist/commonjs/operations/scheduleOperations.js.map +1 -1
- package/dist/commonjs/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
- package/dist/commonjs/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
- package/dist/commonjs/operations/softwareUpdateConfigurationRuns.js +1 -0
- package/dist/commonjs/operations/softwareUpdateConfigurationRuns.js.map +1 -1
- package/dist/commonjs/operations/softwareUpdateConfigurations.js +1 -0
- package/dist/commonjs/operations/softwareUpdateConfigurations.js.map +1 -1
- package/dist/commonjs/operations/sourceControlOperations.js +23 -39
- package/dist/commonjs/operations/sourceControlOperations.js.map +1 -1
- package/dist/commonjs/operations/sourceControlSyncJobOperations.js +23 -39
- package/dist/commonjs/operations/sourceControlSyncJobOperations.js.map +1 -1
- package/dist/commonjs/operations/sourceControlSyncJobStreams.js +23 -39
- package/dist/commonjs/operations/sourceControlSyncJobStreams.js.map +1 -1
- package/dist/commonjs/operations/statisticsOperations.js +10 -26
- package/dist/commonjs/operations/statisticsOperations.js.map +1 -1
- package/dist/commonjs/operations/testJobOperations.js +1 -0
- package/dist/commonjs/operations/testJobOperations.js.map +1 -1
- package/dist/commonjs/operations/testJobStreams.js +23 -39
- package/dist/commonjs/operations/testJobStreams.js.map +1 -1
- package/dist/commonjs/operations/usages.js +10 -26
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/operations/variableOperations.js +23 -39
- package/dist/commonjs/operations/variableOperations.js.map +1 -1
- package/dist/commonjs/operations/watcherOperations.js +23 -39
- package/dist/commonjs/operations/watcherOperations.js.map +1 -1
- package/dist/commonjs/operations/webhookOperations.js +23 -39
- package/dist/commonjs/operations/webhookOperations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/automationClient.js +57 -5
- package/dist/esm/automationClient.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +447 -212
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/activityOperations.js +23 -40
- package/dist/esm/operations/activityOperations.js.map +1 -1
- package/dist/esm/operations/agentRegistrationInformation.js +1 -0
- package/dist/esm/operations/agentRegistrationInformation.js.map +1 -1
- package/dist/esm/operations/automationAccountOperations.js +45 -79
- package/dist/esm/operations/automationAccountOperations.js.map +1 -1
- package/dist/esm/operations/certificateOperations.js +23 -40
- package/dist/esm/operations/certificateOperations.js.map +1 -1
- package/dist/esm/operations/connectionOperations.js +23 -40
- package/dist/esm/operations/connectionOperations.js.map +1 -1
- package/dist/esm/operations/connectionTypeOperations.js +23 -40
- package/dist/esm/operations/connectionTypeOperations.js.map +1 -1
- package/dist/esm/operations/credentialOperations.js +23 -40
- package/dist/esm/operations/credentialOperations.js.map +1 -1
- package/dist/esm/operations/deletedAutomationAccounts.js +1 -0
- package/dist/esm/operations/deletedAutomationAccounts.js.map +1 -1
- package/dist/esm/operations/dscCompilationJobOperations.js +34 -46
- package/dist/esm/operations/dscCompilationJobOperations.js.map +1 -1
- package/dist/esm/operations/dscCompilationJobStream.js +1 -0
- package/dist/esm/operations/dscCompilationJobStream.js.map +1 -1
- package/dist/esm/operations/dscConfigurationOperations.js +23 -40
- package/dist/esm/operations/dscConfigurationOperations.js.map +1 -1
- package/dist/esm/operations/dscNodeConfigurationOperations.js +34 -46
- package/dist/esm/operations/dscNodeConfigurationOperations.js.map +1 -1
- package/dist/esm/operations/dscNodeOperations.js +23 -40
- package/dist/esm/operations/dscNodeOperations.js.map +1 -1
- package/dist/esm/operations/fields.js +10 -27
- package/dist/esm/operations/fields.js.map +1 -1
- package/dist/esm/operations/hybridRunbookWorkerGroupOperations.js +23 -40
- package/dist/esm/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
- package/dist/esm/operations/hybridRunbookWorkers.js +23 -40
- package/dist/esm/operations/hybridRunbookWorkers.js.map +1 -1
- package/dist/esm/operations/jobOperations.js +23 -40
- package/dist/esm/operations/jobOperations.js.map +1 -1
- package/dist/esm/operations/jobScheduleOperations.js +23 -40
- package/dist/esm/operations/jobScheduleOperations.js.map +1 -1
- package/dist/esm/operations/jobStreamOperations.js +23 -40
- package/dist/esm/operations/jobStreamOperations.js.map +1 -1
- package/dist/esm/operations/keys.js +1 -0
- package/dist/esm/operations/keys.js.map +1 -1
- package/dist/esm/operations/linkedWorkspaceOperations.js +1 -0
- package/dist/esm/operations/linkedWorkspaceOperations.js.map +1 -1
- package/dist/esm/operations/moduleOperations.js +23 -40
- package/dist/esm/operations/moduleOperations.js.map +1 -1
- package/dist/esm/operations/nodeCountInformation.js +1 -0
- package/dist/esm/operations/nodeCountInformation.js.map +1 -1
- package/dist/esm/operations/nodeReports.js +23 -40
- package/dist/esm/operations/nodeReports.js.map +1 -1
- package/dist/esm/operations/objectDataTypes.js +19 -53
- package/dist/esm/operations/objectDataTypes.js.map +1 -1
- package/dist/esm/operations/operations.js +10 -27
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +32 -39
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +10 -27
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/python2Package.js +23 -40
- package/dist/esm/operations/python2Package.js.map +1 -1
- package/dist/esm/operations/runbookDraftOperations.js +12 -6
- package/dist/esm/operations/runbookDraftOperations.js.map +1 -1
- package/dist/esm/operations/runbookOperations.js +34 -46
- package/dist/esm/operations/runbookOperations.js.map +1 -1
- package/dist/esm/operations/scheduleOperations.js +23 -40
- package/dist/esm/operations/scheduleOperations.js.map +1 -1
- package/dist/esm/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
- package/dist/esm/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
- package/dist/esm/operations/softwareUpdateConfigurationRuns.js +1 -0
- package/dist/esm/operations/softwareUpdateConfigurationRuns.js.map +1 -1
- package/dist/esm/operations/softwareUpdateConfigurations.js +1 -0
- package/dist/esm/operations/softwareUpdateConfigurations.js.map +1 -1
- package/dist/esm/operations/sourceControlOperations.js +23 -40
- package/dist/esm/operations/sourceControlOperations.js.map +1 -1
- package/dist/esm/operations/sourceControlSyncJobOperations.js +23 -40
- package/dist/esm/operations/sourceControlSyncJobOperations.js.map +1 -1
- package/dist/esm/operations/sourceControlSyncJobStreams.js +23 -40
- package/dist/esm/operations/sourceControlSyncJobStreams.js.map +1 -1
- package/dist/esm/operations/statisticsOperations.js +10 -27
- package/dist/esm/operations/statisticsOperations.js.map +1 -1
- package/dist/esm/operations/testJobOperations.js +1 -0
- package/dist/esm/operations/testJobOperations.js.map +1 -1
- package/dist/esm/operations/testJobStreams.js +23 -40
- package/dist/esm/operations/testJobStreams.js.map +1 -1
- package/dist/esm/operations/usages.js +10 -27
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/operations/variableOperations.js +23 -40
- package/dist/esm/operations/variableOperations.js.map +1 -1
- package/dist/esm/operations/watcherOperations.js +23 -40
- package/dist/esm/operations/watcherOperations.js.map +1 -1
- package/dist/esm/operations/webhookOperations.js +23 -40
- package/dist/esm/operations/webhookOperations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/automationClient.js +57 -5
- package/dist/react-native/automationClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +447 -212
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/activityOperations.js +23 -40
- package/dist/react-native/operations/activityOperations.js.map +1 -1
- package/dist/react-native/operations/agentRegistrationInformation.js +1 -0
- package/dist/react-native/operations/agentRegistrationInformation.js.map +1 -1
- package/dist/react-native/operations/automationAccountOperations.js +45 -79
- package/dist/react-native/operations/automationAccountOperations.js.map +1 -1
- package/dist/react-native/operations/certificateOperations.js +23 -40
- package/dist/react-native/operations/certificateOperations.js.map +1 -1
- package/dist/react-native/operations/connectionOperations.js +23 -40
- package/dist/react-native/operations/connectionOperations.js.map +1 -1
- package/dist/react-native/operations/connectionTypeOperations.js +23 -40
- package/dist/react-native/operations/connectionTypeOperations.js.map +1 -1
- package/dist/react-native/operations/credentialOperations.js +23 -40
- package/dist/react-native/operations/credentialOperations.js.map +1 -1
- package/dist/react-native/operations/deletedAutomationAccounts.js +1 -0
- package/dist/react-native/operations/deletedAutomationAccounts.js.map +1 -1
- package/dist/react-native/operations/dscCompilationJobOperations.js +34 -46
- package/dist/react-native/operations/dscCompilationJobOperations.js.map +1 -1
- package/dist/react-native/operations/dscCompilationJobStream.js +1 -0
- package/dist/react-native/operations/dscCompilationJobStream.js.map +1 -1
- package/dist/react-native/operations/dscConfigurationOperations.js +23 -40
- package/dist/react-native/operations/dscConfigurationOperations.js.map +1 -1
- package/dist/react-native/operations/dscNodeConfigurationOperations.js +34 -46
- package/dist/react-native/operations/dscNodeConfigurationOperations.js.map +1 -1
- package/dist/react-native/operations/dscNodeOperations.js +23 -40
- package/dist/react-native/operations/dscNodeOperations.js.map +1 -1
- package/dist/react-native/operations/fields.js +10 -27
- package/dist/react-native/operations/fields.js.map +1 -1
- package/dist/react-native/operations/hybridRunbookWorkerGroupOperations.js +23 -40
- package/dist/react-native/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
- package/dist/react-native/operations/hybridRunbookWorkers.js +23 -40
- package/dist/react-native/operations/hybridRunbookWorkers.js.map +1 -1
- package/dist/react-native/operations/jobOperations.js +23 -40
- package/dist/react-native/operations/jobOperations.js.map +1 -1
- package/dist/react-native/operations/jobScheduleOperations.js +23 -40
- package/dist/react-native/operations/jobScheduleOperations.js.map +1 -1
- package/dist/react-native/operations/jobStreamOperations.js +23 -40
- package/dist/react-native/operations/jobStreamOperations.js.map +1 -1
- package/dist/react-native/operations/keys.js +1 -0
- package/dist/react-native/operations/keys.js.map +1 -1
- package/dist/react-native/operations/linkedWorkspaceOperations.js +1 -0
- package/dist/react-native/operations/linkedWorkspaceOperations.js.map +1 -1
- package/dist/react-native/operations/moduleOperations.js +23 -40
- package/dist/react-native/operations/moduleOperations.js.map +1 -1
- package/dist/react-native/operations/nodeCountInformation.js +1 -0
- package/dist/react-native/operations/nodeCountInformation.js.map +1 -1
- package/dist/react-native/operations/nodeReports.js +23 -40
- package/dist/react-native/operations/nodeReports.js.map +1 -1
- package/dist/react-native/operations/objectDataTypes.js +19 -53
- package/dist/react-native/operations/objectDataTypes.js.map +1 -1
- package/dist/react-native/operations/operations.js +10 -27
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +32 -39
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +10 -27
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/python2Package.js +23 -40
- package/dist/react-native/operations/python2Package.js.map +1 -1
- package/dist/react-native/operations/runbookDraftOperations.js +12 -6
- package/dist/react-native/operations/runbookDraftOperations.js.map +1 -1
- package/dist/react-native/operations/runbookOperations.js +34 -46
- package/dist/react-native/operations/runbookOperations.js.map +1 -1
- package/dist/react-native/operations/scheduleOperations.js +23 -40
- package/dist/react-native/operations/scheduleOperations.js.map +1 -1
- package/dist/react-native/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
- package/dist/react-native/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
- package/dist/react-native/operations/softwareUpdateConfigurationRuns.js +1 -0
- package/dist/react-native/operations/softwareUpdateConfigurationRuns.js.map +1 -1
- package/dist/react-native/operations/softwareUpdateConfigurations.js +1 -0
- package/dist/react-native/operations/softwareUpdateConfigurations.js.map +1 -1
- package/dist/react-native/operations/sourceControlOperations.js +23 -40
- package/dist/react-native/operations/sourceControlOperations.js.map +1 -1
- package/dist/react-native/operations/sourceControlSyncJobOperations.js +23 -40
- package/dist/react-native/operations/sourceControlSyncJobOperations.js.map +1 -1
- package/dist/react-native/operations/sourceControlSyncJobStreams.js +23 -40
- package/dist/react-native/operations/sourceControlSyncJobStreams.js.map +1 -1
- package/dist/react-native/operations/statisticsOperations.js +10 -27
- package/dist/react-native/operations/statisticsOperations.js.map +1 -1
- package/dist/react-native/operations/testJobOperations.js +1 -0
- package/dist/react-native/operations/testJobOperations.js.map +1 -1
- package/dist/react-native/operations/testJobStreams.js +23 -40
- package/dist/react-native/operations/testJobStreams.js.map +1 -1
- package/dist/react-native/operations/usages.js +10 -27
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/operations/variableOperations.js +23 -40
- package/dist/react-native/operations/variableOperations.js.map +1 -1
- package/dist/react-native/operations/watcherOperations.js +23 -40
- package/dist/react-native/operations/watcherOperations.js.map +1 -1
- package/dist/react-native/operations/webhookOperations.js +23 -40
- package/dist/react-native/operations/webhookOperations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-automation-node.api.md +3756 -3756
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentialOperations.js","sourceRoot":"","sources":["../../../src/operations/credentialOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAmBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,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C,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EACF,0JAA0J;IAC5J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { CredentialOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AutomationClient } from \"../automationClient.js\";\nimport {\n Credential,\n CredentialListByAutomationAccountNextOptionalParams,\n CredentialListByAutomationAccountOptionalParams,\n CredentialListByAutomationAccountResponse,\n CredentialDeleteOptionalParams,\n CredentialGetOptionalParams,\n CredentialGetResponse,\n CredentialCreateOrUpdateParameters,\n CredentialCreateOrUpdateOptionalParams,\n CredentialCreateOrUpdateResponse,\n CredentialUpdateParameters,\n CredentialUpdateOptionalParams,\n CredentialUpdateResponse,\n CredentialListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CredentialOperations operations. */\nexport class CredentialOperationsImpl implements CredentialOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class CredentialOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of credentials.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<Credential> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Credential[]> {\n let result: CredentialListByAutomationAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAutomationAccountNext(\n resourceGroupName,\n automationAccountName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<Credential> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Delete the credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The name of credential.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n options?: CredentialDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, credentialName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieve the credential identified by credential name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The name of credential.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n options?: CredentialGetOptionalParams\n ): Promise<CredentialGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, credentialName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The parameters supplied to the create or update credential operation.\n * @param parameters The parameters supplied to the create or update credential operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n parameters: CredentialCreateOrUpdateParameters,\n options?: CredentialCreateOrUpdateOptionalParams\n ): Promise<CredentialCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n credentialName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Update a credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The parameters supplied to the Update credential operation.\n * @param parameters The parameters supplied to the Update credential operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n parameters: CredentialUpdateParameters,\n options?: CredentialUpdateOptionalParams\n ): Promise<CredentialUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n credentialName,\n parameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Retrieve a list of credentials.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): Promise<CredentialListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * ListByAutomationAccountNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount\n * method.\n * @param options The options parameters.\n */\n private _listByAutomationAccountNext(\n resourceGroupName: string,\n automationAccountName: string,\n nextLink: string,\n options?: CredentialListByAutomationAccountNextOptionalParams\n ): Promise<CredentialListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\n },\n 201: {\n bodyMapper: Mappers.Credential\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResult\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"credentialOperations.js","sourceRoot":"","sources":["../../../src/operations/credentialOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAmBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAA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ChC,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { CredentialOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AutomationClient } from \"../automationClient.js\";\nimport {\n Credential,\n CredentialListByAutomationAccountNextOptionalParams,\n CredentialListByAutomationAccountOptionalParams,\n CredentialListByAutomationAccountResponse,\n CredentialDeleteOptionalParams,\n CredentialGetOptionalParams,\n CredentialGetResponse,\n CredentialCreateOrUpdateParameters,\n CredentialCreateOrUpdateOptionalParams,\n CredentialCreateOrUpdateResponse,\n CredentialUpdateParameters,\n CredentialUpdateOptionalParams,\n CredentialUpdateResponse,\n CredentialListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CredentialOperations operations. */\nexport class CredentialOperationsImpl implements CredentialOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class CredentialOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of credentials.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<Credential> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Credential[]> {\n let result: CredentialListByAutomationAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAutomationAccountNext(\n resourceGroupName,\n automationAccountName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<Credential> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Delete the credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The name of credential.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n options?: CredentialDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, credentialName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieve the credential identified by credential name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The name of credential.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n options?: CredentialGetOptionalParams\n ): Promise<CredentialGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, credentialName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The parameters supplied to the create or update credential operation.\n * @param parameters The parameters supplied to the create or update credential operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n parameters: CredentialCreateOrUpdateParameters,\n options?: CredentialCreateOrUpdateOptionalParams\n ): Promise<CredentialCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n credentialName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Update a credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The parameters supplied to the Update credential operation.\n * @param parameters The parameters supplied to the Update credential operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n parameters: CredentialUpdateParameters,\n options?: CredentialUpdateOptionalParams\n ): Promise<CredentialUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n credentialName,\n parameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Retrieve a list of credentials.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): Promise<CredentialListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * ListByAutomationAccountNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount\n * method.\n * @param options The options parameters.\n */\n private _listByAutomationAccountNext(\n resourceGroupName: string,\n automationAccountName: string,\n nextLink: string,\n options?: CredentialListByAutomationAccountNextOptionalParams\n ): Promise<CredentialListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\n },\n 201: {\n bodyMapper: Mappers.Credential\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResult\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing DeletedAutomationAccounts operations. */
|
|
16
16
|
class DeletedAutomationAccountsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class DeletedAutomationAccounts class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deletedAutomationAccounts.js","sourceRoot":"","sources":["../../../src/operations/deletedAutomationAccounts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,6DAA6D;AAC7D,MAAa,6BAA6B;
|
|
1
|
+
{"version":3,"file":"deletedAutomationAccounts.js","sourceRoot":"","sources":["../../../src/operations/deletedAutomationAccounts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,6DAA6D;AAC7D,MAAa,6BAA6B;IAEvB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,kBAAkB,CAChB,OAAmE;QAEnE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,+BAA+B,CAChC,CAAC;IACJ,CAAC;CACF;AAxBD,sEAwBC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EACF,0FAA0F;IAC5F,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { DeletedAutomationAccounts } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AutomationClient } from \"../automationClient.js\";\nimport {\n DeletedAutomationAccountsListBySubscriptionOptionalParams,\n DeletedAutomationAccountsListBySubscriptionResponse\n} from \"../models/index.js\";\n\n/** Class containing DeletedAutomationAccounts operations. */\nexport class DeletedAutomationAccountsImpl\n implements DeletedAutomationAccounts {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class DeletedAutomationAccounts class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve deleted automation account.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: DeletedAutomationAccountsListBySubscriptionOptionalParams\n ): Promise<DeletedAutomationAccountsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeletedAutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing DscCompilationJobOperations operations. */
|
|
20
20
|
class DscCompilationJobOperationsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class DscCompilationJobOperations class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class DscCompilationJobOperationsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listByAutomationAccountNext(resourceGroupName, automationAccountName, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
71
|
+
for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* Creates the Dsc compilation job of the configuration.
|
|
@@ -101,14 +85,19 @@ class DscCompilationJobOperationsImpl {
|
|
|
101
85
|
return this.client.sendOperationRequest(args, spec);
|
|
102
86
|
};
|
|
103
87
|
const sendOperation = async (args, spec) => {
|
|
104
|
-
var _a;
|
|
105
88
|
let currentRawResponse = undefined;
|
|
106
|
-
const providedCallback =
|
|
89
|
+
const providedCallback = args.options?.onResponse;
|
|
107
90
|
const callback = (rawResponse, flatResponse) => {
|
|
108
91
|
currentRawResponse = rawResponse;
|
|
109
|
-
providedCallback
|
|
92
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
93
|
+
};
|
|
94
|
+
const updatedArgs = {
|
|
95
|
+
...args,
|
|
96
|
+
options: {
|
|
97
|
+
...args.options,
|
|
98
|
+
onResponse: callback
|
|
99
|
+
}
|
|
110
100
|
};
|
|
111
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
112
101
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
113
102
|
return {
|
|
114
103
|
flatResponse,
|
|
@@ -127,8 +116,8 @@ class DscCompilationJobOperationsImpl {
|
|
|
127
116
|
options
|
|
128
117
|
}, createOperationSpec);
|
|
129
118
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
130
|
-
resumeFrom: options
|
|
131
|
-
intervalInMs: options
|
|
119
|
+
resumeFrom: options?.resumeFrom,
|
|
120
|
+
intervalInMs: options?.updateIntervalInMs
|
|
132
121
|
});
|
|
133
122
|
await poller.poll();
|
|
134
123
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dscCompilationJobOperations.js","sourceRoot":"","sources":["../../../src/operations/dscCompilationJobOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAgBxC,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+BAA+B;IAI1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;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AC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DscCompilationJobOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AutomationClient } from \"../automationClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n DscCompilationJob,\n DscCompilationJobListByAutomationAccountNextOptionalParams,\n DscCompilationJobListByAutomationAccountOptionalParams,\n DscCompilationJobListByAutomationAccountResponse,\n DscCompilationJobCreateParameters,\n DscCompilationJobCreateOptionalParams,\n DscCompilationJobCreateResponse,\n DscCompilationJobGetOptionalParams,\n DscCompilationJobGetResponse,\n DscCompilationJobGetStreamOptionalParams,\n DscCompilationJobGetStreamResponse,\n DscCompilationJobListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DscCompilationJobOperations operations. */\nexport class DscCompilationJobOperationsImpl\n implements DscCompilationJobOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class DscCompilationJobOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of dsc compilation jobs.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<DscCompilationJob> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<DscCompilationJob[]> {\n let result: DscCompilationJobListByAutomationAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAutomationAccountNext(\n resourceGroupName,\n automationAccountName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<DscCompilationJob> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates the Dsc compilation job of the configuration.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param parameters The parameters supplied to the create compilation job operation.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n parameters: DscCompilationJobCreateParameters,\n options?: DscCompilationJobCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DscCompilationJobCreateResponse>,\n DscCompilationJobCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DscCompilationJobCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n automationAccountName,\n compilationJobName,\n parameters,\n options\n },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates the Dsc compilation job of the configuration.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param parameters The parameters supplied to the create compilation job operation.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n parameters: DscCompilationJobCreateParameters,\n options?: DscCompilationJobCreateOptionalParams\n ): Promise<DscCompilationJobCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n automationAccountName,\n compilationJobName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieve the Dsc configuration compilation job identified by job id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n options?: DscCompilationJobGetOptionalParams\n ): Promise<DscCompilationJobGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, compilationJobName, options },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of dsc compilation jobs.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): Promise<DscCompilationJobListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * Retrieve the job stream identified by job stream id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param jobId The job id.\n * @param jobStreamId The job stream id.\n * @param options The options parameters.\n */\n getStream(\n resourceGroupName: string,\n automationAccountName: string,\n jobId: string,\n jobStreamId: string,\n options?: DscCompilationJobGetStreamOptionalParams\n ): Promise<DscCompilationJobGetStreamResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, jobId, jobStreamId, options },\n getStreamOperationSpec\n );\n }\n\n /**\n * ListByAutomationAccountNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount\n * method.\n * @param options The options parameters.\n */\n private _listByAutomationAccountNext(\n resourceGroupName: string,\n automationAccountName: string,\n nextLink: string,\n options?: DscCompilationJobListByAutomationAccountNextOptionalParams\n ): Promise<DscCompilationJobListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 201: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 202: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 204: {\n bodyMapper: Mappers.DscCompilationJob\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.compilationJobName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJob\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.compilationJobName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJobListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getStreamOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStream\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.jobId,\n Parameters.jobStreamId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJobListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"dscCompilationJobOperations.js","sourceRoot":"","sources":["../../../src/operations/dscCompilationJobOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAgBxC,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+BAA+B;IAEzB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAgE;QAEh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CACX,CAAC;AACF,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EACF,4LAA4L;IAC9L,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DscCompilationJobOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AutomationClient } from \"../automationClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n DscCompilationJob,\n DscCompilationJobListByAutomationAccountNextOptionalParams,\n DscCompilationJobListByAutomationAccountOptionalParams,\n DscCompilationJobListByAutomationAccountResponse,\n DscCompilationJobCreateParameters,\n DscCompilationJobCreateOptionalParams,\n DscCompilationJobCreateResponse,\n DscCompilationJobGetOptionalParams,\n DscCompilationJobGetResponse,\n DscCompilationJobGetStreamOptionalParams,\n DscCompilationJobGetStreamResponse,\n DscCompilationJobListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DscCompilationJobOperations operations. */\nexport class DscCompilationJobOperationsImpl\n implements DscCompilationJobOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class DscCompilationJobOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of dsc compilation jobs.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<DscCompilationJob> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<DscCompilationJob[]> {\n let result: DscCompilationJobListByAutomationAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAutomationAccountNext(\n resourceGroupName,\n automationAccountName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<DscCompilationJob> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates the Dsc compilation job of the configuration.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param parameters The parameters supplied to the create compilation job operation.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n parameters: DscCompilationJobCreateParameters,\n options?: DscCompilationJobCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DscCompilationJobCreateResponse>,\n DscCompilationJobCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DscCompilationJobCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n automationAccountName,\n compilationJobName,\n parameters,\n options\n },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates the Dsc compilation job of the configuration.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param parameters The parameters supplied to the create compilation job operation.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n parameters: DscCompilationJobCreateParameters,\n options?: DscCompilationJobCreateOptionalParams\n ): Promise<DscCompilationJobCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n automationAccountName,\n compilationJobName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieve the Dsc configuration compilation job identified by job id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n options?: DscCompilationJobGetOptionalParams\n ): Promise<DscCompilationJobGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, compilationJobName, options },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of dsc compilation jobs.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): Promise<DscCompilationJobListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * Retrieve the job stream identified by job stream id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param jobId The job id.\n * @param jobStreamId The job stream id.\n * @param options The options parameters.\n */\n getStream(\n resourceGroupName: string,\n automationAccountName: string,\n jobId: string,\n jobStreamId: string,\n options?: DscCompilationJobGetStreamOptionalParams\n ): Promise<DscCompilationJobGetStreamResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, jobId, jobStreamId, options },\n getStreamOperationSpec\n );\n }\n\n /**\n * ListByAutomationAccountNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount\n * method.\n * @param options The options parameters.\n */\n private _listByAutomationAccountNext(\n resourceGroupName: string,\n automationAccountName: string,\n nextLink: string,\n options?: DscCompilationJobListByAutomationAccountNextOptionalParams\n ): Promise<DscCompilationJobListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 201: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 202: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 204: {\n bodyMapper: Mappers.DscCompilationJob\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.compilationJobName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJob\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.compilationJobName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJobListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getStreamOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStream\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.jobId,\n Parameters.jobStreamId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJobListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing DscCompilationJobStream operations. */
|
|
16
16
|
class DscCompilationJobStreamImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class DscCompilationJobStream class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dscCompilationJobStream.js","sourceRoot":"","sources":["../../../src/operations/dscCompilationJobStream.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,2DAA2D;AAC3D,MAAa,2BAA2B;
|
|
1
|
+
{"version":3,"file":"dscCompilationJobStream.js","sourceRoot":"","sources":["../../../src/operations/dscCompilationJobStream.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,2DAA2D;AAC3D,MAAa,2BAA2B;IACrB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,SAAS,CACP,iBAAyB,EACzB,qBAA6B,EAC7B,KAAa,EACb,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,KAAK,EAAE,OAAO,EAAE,EAC5D,sBAAsB,CACvB,CAAC;IACJ,CAAC;CACF;AA7BD,kEA6BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EACF,8KAA8K;IAChL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,KAAK;KACjB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { DscCompilationJobStream } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AutomationClient } from \"../automationClient.js\";\nimport {\n DscCompilationJobStreamListByJobOptionalParams,\n DscCompilationJobStreamListByJobResponse\n} from \"../models/index.js\";\n\n/** Class containing DscCompilationJobStream operations. */\nexport class DscCompilationJobStreamImpl implements DscCompilationJobStream {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class DscCompilationJobStream class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve all the job streams for the compilation Job.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param jobId The job id.\n * @param options The options parameters.\n */\n listByJob(\n resourceGroupName: string,\n automationAccountName: string,\n jobId: string,\n options?: DscCompilationJobStreamListByJobOptionalParams\n ): Promise<DscCompilationJobStreamListByJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, jobId, options },\n listByJobOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByJobOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStreamListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.jobId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing DscConfigurationOperations operations. */
|
|
18
18
|
class DscConfigurationOperationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class DscConfigurationOperations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class DscConfigurationOperationsImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listByAutomationAccountNext(resourceGroupName, automationAccountName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
69
|
+
for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Delete the dsc configuration identified by configuration name.
|