@azure/arm-automation 11.0.0-alpha.20250718.1 → 11.0.0-alpha.20250721.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
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing ActivityOperations operations. */
|
|
18
18
|
class ActivityOperationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class ActivityOperations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class ActivityOperationsImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listByModulePagingPage(resourceGroupName, automationAccountName, moduleName, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listByModulePagingPage(resourceGroupName, automationAccountName, moduleName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listByModulePagingPage(resourceGroupName, automationAccountName, moduleName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listByModule(resourceGroupName, automationAccountName, moduleName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listByModuleNext(resourceGroupName, automationAccountName, moduleName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listByModulePagingAll(resourceGroupName, automationAccountName, moduleName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByModulePagingPage(resourceGroupName, automationAccountName, moduleName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *listByModulePagingAll(resourceGroupName, automationAccountName, moduleName, options) {
|
|
70
|
+
for await (const page of this.listByModulePagingPage(resourceGroupName, automationAccountName, moduleName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Retrieve the activity in the module identified by module name and activity name.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activityOperations.js","sourceRoot":"","sources":["../../../src/operations/activityOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,sDAAsD;AACtD,MAAa,sBAAsB;IAGjC;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,iBAAyB,EACzB,qBAA6B,EAC7B,UAAkB,EAClB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CACrC,iBAAiB,EACjB,qBAAqB,EACrB,UAAU,EACV,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,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,sBAAsB,CAChC,iBAAiB,EACjB,qBAAqB,EACrB,UAAU,EACV,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,C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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 { ActivityOperations } 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 Activity,\n ActivityListByModuleNextOptionalParams,\n ActivityListByModuleOptionalParams,\n ActivityListByModuleResponse,\n ActivityGetOptionalParams,\n ActivityGetResponse,\n ActivityListByModuleNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ActivityOperations operations. */\nexport class ActivityOperationsImpl implements ActivityOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class ActivityOperations 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 activities in the module identified by module name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param moduleName The name of module.\n * @param options The options parameters.\n */\n public listByModule(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n options?: ActivityListByModuleOptionalParams\n ): PagedAsyncIterableIterator<Activity> {\n const iter = this.listByModulePagingAll(\n resourceGroupName,\n automationAccountName,\n moduleName,\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.listByModulePagingPage(\n resourceGroupName,\n automationAccountName,\n moduleName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByModulePagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n options?: ActivityListByModuleOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Activity[]> {\n let result: ActivityListByModuleResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByModule(\n resourceGroupName,\n automationAccountName,\n moduleName,\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._listByModuleNext(\n resourceGroupName,\n automationAccountName,\n moduleName,\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 *listByModulePagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n options?: ActivityListByModuleOptionalParams\n ): AsyncIterableIterator<Activity> {\n for await (const page of this.listByModulePagingPage(\n resourceGroupName,\n automationAccountName,\n moduleName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the activity in the module identified by module name and activity name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param moduleName The name of module.\n * @param activityName The name of activity.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n activityName: string,\n options?: ActivityGetOptionalParams\n ): Promise<ActivityGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n moduleName,\n activityName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of activities in the module identified by module name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param moduleName The name of module.\n * @param options The options parameters.\n */\n private _listByModule(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n options?: ActivityListByModuleOptionalParams\n ): Promise<ActivityListByModuleResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, moduleName, options },\n listByModuleOperationSpec\n );\n }\n\n /**\n * ListByModuleNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param moduleName The name of module.\n * @param nextLink The nextLink from the previous successful call to the ListByModule method.\n * @param options The options parameters.\n */\n private _listByModuleNext(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n nextLink: string,\n options?: ActivityListByModuleNextOptionalParams\n ): Promise<ActivityListByModuleNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n moduleName,\n nextLink,\n options\n },\n listByModuleNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities/{activityName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Activity\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.moduleName,\n Parameters.activityName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByModuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ActivityListResult\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.moduleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByModuleNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ActivityListResult\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 Parameters.moduleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"activityOperations.js","sourceRoot":"","sources":["../../../src/operations/activityOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,sDAAsD;AACtD,MAAa,sBAAsB;IAChB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,YAAY,CACjB,iBAAyB,EACzB,qBAA6B,EAC7B,UAAkB,EAClB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CACrC,iBAAiB,EACjB,qBAAqB,EACrB,UAAU,EACV,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,sBAAsB,CAChC,iBAAiB,EACjB,qBAAqB,EACrB,UAAU,EACV,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,sBAAsB,CACnC,iBAAyB,EACz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AU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EACF,8KAA8K;IAChL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;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,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;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;QACnB,UAAU,CAAC,UAAU;KACtB;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 { ActivityOperations } 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 Activity,\n ActivityListByModuleNextOptionalParams,\n ActivityListByModuleOptionalParams,\n ActivityListByModuleResponse,\n ActivityGetOptionalParams,\n ActivityGetResponse,\n ActivityListByModuleNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ActivityOperations operations. */\nexport class ActivityOperationsImpl implements ActivityOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class ActivityOperations 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 activities in the module identified by module name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param moduleName The name of module.\n * @param options The options parameters.\n */\n public listByModule(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n options?: ActivityListByModuleOptionalParams\n ): PagedAsyncIterableIterator<Activity> {\n const iter = this.listByModulePagingAll(\n resourceGroupName,\n automationAccountName,\n moduleName,\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.listByModulePagingPage(\n resourceGroupName,\n automationAccountName,\n moduleName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByModulePagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n options?: ActivityListByModuleOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Activity[]> {\n let result: ActivityListByModuleResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByModule(\n resourceGroupName,\n automationAccountName,\n moduleName,\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._listByModuleNext(\n resourceGroupName,\n automationAccountName,\n moduleName,\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 *listByModulePagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n options?: ActivityListByModuleOptionalParams\n ): AsyncIterableIterator<Activity> {\n for await (const page of this.listByModulePagingPage(\n resourceGroupName,\n automationAccountName,\n moduleName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the activity in the module identified by module name and activity name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param moduleName The name of module.\n * @param activityName The name of activity.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n activityName: string,\n options?: ActivityGetOptionalParams\n ): Promise<ActivityGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n moduleName,\n activityName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of activities in the module identified by module name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param moduleName The name of module.\n * @param options The options parameters.\n */\n private _listByModule(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n options?: ActivityListByModuleOptionalParams\n ): Promise<ActivityListByModuleResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, moduleName, options },\n listByModuleOperationSpec\n );\n }\n\n /**\n * ListByModuleNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param moduleName The name of module.\n * @param nextLink The nextLink from the previous successful call to the ListByModule method.\n * @param options The options parameters.\n */\n private _listByModuleNext(\n resourceGroupName: string,\n automationAccountName: string,\n moduleName: string,\n nextLink: string,\n options?: ActivityListByModuleNextOptionalParams\n ): Promise<ActivityListByModuleNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n moduleName,\n nextLink,\n options\n },\n listByModuleNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities/{activityName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Activity\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.moduleName,\n Parameters.activityName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByModuleOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ActivityListResult\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.moduleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByModuleNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ActivityListResult\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 Parameters.moduleName\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 AgentRegistrationInformation operations. */
|
|
16
16
|
class AgentRegistrationInformationImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class AgentRegistrationInformation class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentRegistrationInformation.js","sourceRoot":"","sources":["../../../src/operations/agentRegistrationInformation.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,gEAAgE;AAChE,MAAa,gCAAgC;
|
|
1
|
+
{"version":3,"file":"agentRegistrationInformation.js","sourceRoot":"","sources":["../../../src/operations/agentRegistrationInformation.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,gEAAgE;AAChE,MAAa,gCAAgC;IAE1B,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,qBAA6B,EAC7B,OAAuD;QAEvD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,OAAO,EAAE,EACrD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,aAAa,CACX,iBAAyB,EACzB,qBAA6B,EAC7B,UAAmD,EACnD,OAAiE;QAEjE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,UAAU,EAAE,OAAO,EAAE,EACjE,0BAA0B,CAC3B,CAAC;IACJ,CAAC;CACF;AA/CD,4EA+CC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,2KAA2K;IAC7K,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;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;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EACF,yLAAyL;IAC3L,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,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,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { AgentRegistrationInformation } 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 AgentRegistrationInformationGetOptionalParams,\n AgentRegistrationInformationGetResponse,\n AgentRegistrationRegenerateKeyParameter,\n AgentRegistrationInformationRegenerateKeyOptionalParams,\n AgentRegistrationInformationRegenerateKeyResponse\n} from \"../models/index.js\";\n\n/** Class containing AgentRegistrationInformation operations. */\nexport class AgentRegistrationInformationImpl\n implements AgentRegistrationInformation {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class AgentRegistrationInformation class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the automation agent registration information.\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 get(\n resourceGroupName: string,\n automationAccountName: string,\n options?: AgentRegistrationInformationGetOptionalParams\n ): Promise<AgentRegistrationInformationGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n getOperationSpec\n );\n }\n\n /**\n * Regenerate a primary or secondary agent registration key\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters The name of the agent registration key to be regenerated\n * @param options The options parameters.\n */\n regenerateKey(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: AgentRegistrationRegenerateKeyParameter,\n options?: AgentRegistrationInformationRegenerateKeyOptionalParams\n ): Promise<AgentRegistrationInformationRegenerateKeyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n regenerateKeyOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentRegistration\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 ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst regenerateKeyOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation/regenerateKey\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentRegistration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\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 AutomationAccountOperations operations. */
|
|
18
18
|
class AutomationAccountOperationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class AutomationAccountOperations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -38,52 +39,35 @@ class AutomationAccountOperationsImpl {
|
|
|
38
39
|
return this;
|
|
39
40
|
},
|
|
40
41
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
42
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
44
|
}
|
|
44
45
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
49
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
67
66
|
}
|
|
68
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
67
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
68
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
87
71
|
}
|
|
88
72
|
/**
|
|
89
73
|
* Retrieve a list of accounts within a given subscription.
|
|
@@ -99,52 +83,35 @@ class AutomationAccountOperationsImpl {
|
|
|
99
83
|
return this;
|
|
100
84
|
},
|
|
101
85
|
byPage: (settings) => {
|
|
102
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
103
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
104
88
|
}
|
|
105
89
|
return this.listPagingPage(options, settings);
|
|
106
90
|
}
|
|
107
91
|
};
|
|
108
92
|
}
|
|
109
|
-
listPagingPage(options, settings) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
});
|
|
93
|
+
async *listPagingPage(options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._list(options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listNext(continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
128
110
|
}
|
|
129
|
-
listPagingAll(options) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
134
|
-
_c = _f.value;
|
|
135
|
-
_d = false;
|
|
136
|
-
const page = _c;
|
|
137
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
141
|
-
finally {
|
|
142
|
-
try {
|
|
143
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
144
|
-
}
|
|
145
|
-
finally { if (e_2) throw e_2.error; }
|
|
146
|
-
}
|
|
147
|
-
});
|
|
111
|
+
async *listPagingAll(options) {
|
|
112
|
+
for await (const page of this.listPagingPage(options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
148
115
|
}
|
|
149
116
|
/**
|
|
150
117
|
* Update an automation account.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automationAccountOperations.js","sourceRoot":"","sources":["../../../src/operations/automationAccountOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAuBtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+BAA+B;IAI1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;O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E,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,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 { AutomationAccountOperations } 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 AutomationAccount,\n AutomationAccountListByResourceGroupNextOptionalParams,\n AutomationAccountListByResourceGroupOptionalParams,\n AutomationAccountListByResourceGroupResponse,\n AutomationAccountListNextOptionalParams,\n AutomationAccountListOptionalParams,\n AutomationAccountListResponse,\n AutomationAccountUpdateParameters,\n AutomationAccountUpdateOptionalParams,\n AutomationAccountUpdateResponse,\n AutomationAccountCreateOrUpdateParameters,\n AutomationAccountCreateOrUpdateOptionalParams,\n AutomationAccountCreateOrUpdateResponse,\n AutomationAccountDeleteOptionalParams,\n AutomationAccountGetOptionalParams,\n AutomationAccountGetResponse,\n AutomationAccountListByResourceGroupNextResponse,\n AutomationAccountListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AutomationAccountOperations operations. */\nexport class AutomationAccountOperationsImpl\n implements AutomationAccountOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class AutomationAccountOperations 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 accounts within a given resource group.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AutomationAccountListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<AutomationAccount> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AutomationAccountListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AutomationAccount[]> {\n let result: AutomationAccountListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AutomationAccountListByResourceGroupOptionalParams\n ): AsyncIterableIterator<AutomationAccount> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve a list of accounts within a given subscription.\n * @param options The options parameters.\n */\n public list(\n options?: AutomationAccountListOptionalParams\n ): PagedAsyncIterableIterator<AutomationAccount> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: AutomationAccountListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AutomationAccount[]> {\n let result: AutomationAccountListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: AutomationAccountListOptionalParams\n ): AsyncIterableIterator<AutomationAccount> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Update an automation account.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Parameters supplied to the update automation account.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: AutomationAccountUpdateParameters,\n options?: AutomationAccountUpdateOptionalParams\n ): Promise<AutomationAccountUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Create or update automation account.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Parameters supplied to the create or update automation account.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: AutomationAccountCreateOrUpdateParameters,\n options?: AutomationAccountCreateOrUpdateOptionalParams\n ): Promise<AutomationAccountCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Delete an automation account.\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 delete(\n resourceGroupName: string,\n automationAccountName: string,\n options?: AutomationAccountDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Get information about an Automation Account.\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 get(\n resourceGroupName: string,\n automationAccountName: string,\n options?: AutomationAccountGetOptionalParams\n ): Promise<AutomationAccountGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of accounts within a given resource group.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AutomationAccountListByResourceGroupOptionalParams\n ): Promise<AutomationAccountListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Retrieve a list of accounts within a given subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: AutomationAccountListOptionalParams\n ): Promise<AutomationAccountListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AutomationAccountListByResourceGroupNextOptionalParams\n ): Promise<AutomationAccountListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: AutomationAccountListNextOptionalParams\n ): Promise<AutomationAccountListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccount\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccount\n },\n 201: {\n bodyMapper: Mappers.AutomationAccount\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccount\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"automationAccountOperations.js","sourceRoot":"","sources":["../../../src/operations/automationAccountOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAuBtD,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;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAA4D;QAE5D,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,6BAA6B,CAC1C,iBAAyB,EACzB,OAA4D,EAC5D,QAAuB;QAEvB,IAAI,MAAoD,CAAC;QACzD,I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E,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,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,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 { AutomationAccountOperations } 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 AutomationAccount,\n AutomationAccountListByResourceGroupNextOptionalParams,\n AutomationAccountListByResourceGroupOptionalParams,\n AutomationAccountListByResourceGroupResponse,\n AutomationAccountListNextOptionalParams,\n AutomationAccountListOptionalParams,\n AutomationAccountListResponse,\n AutomationAccountUpdateParameters,\n AutomationAccountUpdateOptionalParams,\n AutomationAccountUpdateResponse,\n AutomationAccountCreateOrUpdateParameters,\n AutomationAccountCreateOrUpdateOptionalParams,\n AutomationAccountCreateOrUpdateResponse,\n AutomationAccountDeleteOptionalParams,\n AutomationAccountGetOptionalParams,\n AutomationAccountGetResponse,\n AutomationAccountListByResourceGroupNextResponse,\n AutomationAccountListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AutomationAccountOperations operations. */\nexport class AutomationAccountOperationsImpl\n implements AutomationAccountOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class AutomationAccountOperations 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 accounts within a given resource group.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: AutomationAccountListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<AutomationAccount> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: AutomationAccountListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AutomationAccount[]> {\n let result: AutomationAccountListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: AutomationAccountListByResourceGroupOptionalParams\n ): AsyncIterableIterator<AutomationAccount> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve a list of accounts within a given subscription.\n * @param options The options parameters.\n */\n public list(\n options?: AutomationAccountListOptionalParams\n ): PagedAsyncIterableIterator<AutomationAccount> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: AutomationAccountListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<AutomationAccount[]> {\n let result: AutomationAccountListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: AutomationAccountListOptionalParams\n ): AsyncIterableIterator<AutomationAccount> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Update an automation account.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Parameters supplied to the update automation account.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: AutomationAccountUpdateParameters,\n options?: AutomationAccountUpdateOptionalParams\n ): Promise<AutomationAccountUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Create or update automation account.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Parameters supplied to the create or update automation account.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: AutomationAccountCreateOrUpdateParameters,\n options?: AutomationAccountCreateOrUpdateOptionalParams\n ): Promise<AutomationAccountCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Delete an automation account.\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 delete(\n resourceGroupName: string,\n automationAccountName: string,\n options?: AutomationAccountDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Get information about an Automation Account.\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 get(\n resourceGroupName: string,\n automationAccountName: string,\n options?: AutomationAccountGetOptionalParams\n ): Promise<AutomationAccountGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of accounts within a given resource group.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: AutomationAccountListByResourceGroupOptionalParams\n ): Promise<AutomationAccountListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Retrieve a list of accounts within a given subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: AutomationAccountListOptionalParams\n ): Promise<AutomationAccountListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: AutomationAccountListByResourceGroupNextOptionalParams\n ): Promise<AutomationAccountListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: AutomationAccountListNextOptionalParams\n ): Promise<AutomationAccountListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccount\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccount\n },\n 201: {\n bodyMapper: Mappers.AutomationAccount\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccount\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\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 CertificateOperations operations. */
|
|
18
18
|
class CertificateOperationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class CertificateOperations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class CertificateOperationsImpl {
|
|
|
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 certificate.
|