@azure/arm-automation 11.0.0-alpha.20250620.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.api.md → arm-automation-node.api.md} +0 -0
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing StatisticsOperations operations. */
|
|
17
17
|
class StatisticsOperationsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class StatisticsOperations class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -38,39 +39,22 @@ class StatisticsOperationsImpl {
|
|
|
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.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
yield yield tslib_1.__await(result.value || []);
|
|
53
|
-
});
|
|
49
|
+
async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
50
|
+
let result;
|
|
51
|
+
result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, options);
|
|
52
|
+
yield result.value || [];
|
|
54
53
|
}
|
|
55
|
-
listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
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) {
|
|
60
|
-
_c = _f.value;
|
|
61
|
-
_d = false;
|
|
62
|
-
const page = _c;
|
|
63
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
-
finally {
|
|
68
|
-
try {
|
|
69
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
70
|
-
}
|
|
71
|
-
finally { if (e_1) throw e_1.error; }
|
|
72
|
-
}
|
|
73
|
-
});
|
|
54
|
+
async *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
55
|
+
for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
|
|
56
|
+
yield* page;
|
|
57
|
+
}
|
|
74
58
|
}
|
|
75
59
|
/**
|
|
76
60
|
* Retrieve the statistics for the account.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statisticsOperations.js","sourceRoot":"","sources":["../../../src/operations/statisticsOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;
|
|
1
|
+
{"version":3,"file":"statisticsOperations.js","sourceRoot":"","sources":["../../../src/operations/statisticsOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,iCAAiC,CAC3C,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,iCAAiC,CAC9C,iBAAyB,EACzB,qBAA6B,EAC7B,OAAyD,EACzD,SAAwB;QAExB,IAAI,MAAiD,CAAC;QACtD,MAAM,GAAG,MAAM,IAAI,CAAC,wBAAwB,CAC1C,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,MAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC,CAAC,gCAAgC,CAC7C,iBAAyB,EACzB,qBAA6B,EAC7B,OAAyD;QAEzD,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,iCAAiC,CAC7D,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,EAAE,CAAC;YACF,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACK,wBAAwB,CAC9B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,OAAO,EAAE,EACrD,oCAAoC,CACrC,CAAC;IACJ,CAAC;CACF;AA7FD,4DA6FC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EACF,yJAAyJ;IAC3J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC5D,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","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 { StatisticsOperations } 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 Statistics,\n StatisticsListByAutomationAccountOptionalParams,\n StatisticsListByAutomationAccountResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StatisticsOperations operations. */\nexport class StatisticsOperationsImpl implements StatisticsOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class StatisticsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the statistics for the 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 public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: StatisticsListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<Statistics> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: StatisticsListByAutomationAccountOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Statistics[]> {\n let result: StatisticsListByAutomationAccountResponse;\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: StatisticsListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<Statistics> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the statistics for the 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 private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: StatisticsListByAutomationAccountOptionalParams\n ): Promise<StatisticsListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/statistics\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StatisticsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\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 TestJobOperations operations. */
|
|
16
16
|
class TestJobOperationsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class TestJobOperations class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testJobOperations.js","sourceRoot":"","sources":["../../../src/operations/testJobOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,qDAAqD;AACrD,MAAa,qBAAqB;IAGhC;;;O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CAAC,WAAW;KACvB;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 { TestJobOperations } 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 TestJobCreateParameters,\n TestJobCreateOptionalParams,\n TestJobCreateResponse,\n TestJobGetOptionalParams,\n TestJobGetResponse,\n TestJobResumeOptionalParams,\n TestJobStopOptionalParams,\n TestJobSuspendOptionalParams\n} from \"../models/index.js\";\n\n/** Class containing TestJobOperations operations. */\nexport class TestJobOperationsImpl implements TestJobOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class TestJobOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Create a test job of the runbook.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The parameters supplied to the create test job operation.\n * @param parameters The parameters supplied to the create test job operation.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n parameters: TestJobCreateParameters,\n options?: TestJobCreateOptionalParams\n ): Promise<TestJobCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n runbookName,\n parameters,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Retrieve the test job for the specified runbook.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobGetOptionalParams\n ): Promise<TestJobGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, runbookName, options },\n getOperationSpec\n );\n }\n\n /**\n * Resume the test job.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n resume(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobResumeOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, runbookName, options },\n resumeOperationSpec\n );\n }\n\n /**\n * Stop the test job.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n stop(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobStopOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, runbookName, options },\n stopOperationSpec\n );\n }\n\n /**\n * Suspend the test job.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n suspend(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobSuspendOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, runbookName, options },\n suspendOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.TestJob\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters36,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestJob\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst resumeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/resume\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst suspendOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/suspend\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"testJobOperations.js","sourceRoot":"","sources":["../../../src/operations/testJobOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,qDAAqD;AACrD,MAAa,qBAAqB;IACf,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,qBAA6B,EAC7B,WAAmB,EACnB,UAAmC,EACnC,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,qBAAqB;YACrB,WAAW;YACX,UAAU;YACV,OAAO;SACR,EACD,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,qBAA6B,EAC7B,WAAmB,EACnB,OAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,WAAW,EAAE,OAAO,EAAE,EAClE,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,qBAA6B,EAC7B,WAAmB,EACnB,OAAqC;QAErC,OAAO,IAAI,CAA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AE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EACF,2LAA2L;IAC7L,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,WAAW;KACvB;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 { TestJobOperations } 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 TestJobCreateParameters,\n TestJobCreateOptionalParams,\n TestJobCreateResponse,\n TestJobGetOptionalParams,\n TestJobGetResponse,\n TestJobResumeOptionalParams,\n TestJobStopOptionalParams,\n TestJobSuspendOptionalParams\n} from \"../models/index.js\";\n\n/** Class containing TestJobOperations operations. */\nexport class TestJobOperationsImpl implements TestJobOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class TestJobOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Create a test job of the runbook.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The parameters supplied to the create test job operation.\n * @param parameters The parameters supplied to the create test job operation.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n parameters: TestJobCreateParameters,\n options?: TestJobCreateOptionalParams\n ): Promise<TestJobCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n runbookName,\n parameters,\n options\n },\n createOperationSpec\n );\n }\n\n /**\n * Retrieve the test job for the specified runbook.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobGetOptionalParams\n ): Promise<TestJobGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, runbookName, options },\n getOperationSpec\n );\n }\n\n /**\n * Resume the test job.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n resume(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobResumeOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, runbookName, options },\n resumeOperationSpec\n );\n }\n\n /**\n * Stop the test job.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n stop(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobStopOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, runbookName, options },\n stopOperationSpec\n );\n }\n\n /**\n * Suspend the test job.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n suspend(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobSuspendOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, runbookName, options },\n suspendOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.TestJob\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters36,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TestJob\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst resumeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/resume\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst suspendOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/suspend\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\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 TestJobStreams operations. */
|
|
18
18
|
class TestJobStreamsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class TestJobStreams class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -40,52 +41,35 @@ class TestJobStreamsImpl {
|
|
|
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.listByTestJobPagingPage(resourceGroupName, automationAccountName, runbookName, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listByTestJobPagingPage(resourceGroupName, automationAccountName, runbookName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listByTestJobPagingPage(resourceGroupName, automationAccountName, runbookName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listByTestJob(resourceGroupName, automationAccountName, runbookName, 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._listByTestJobNext(resourceGroupName, automationAccountName, runbookName, 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
|
-
listByTestJobPagingAll(resourceGroupName, automationAccountName, runbookName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByTestJobPagingPage(resourceGroupName, automationAccountName, runbookName, 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 *listByTestJobPagingAll(resourceGroupName, automationAccountName, runbookName, options) {
|
|
70
|
+
for await (const page of this.listByTestJobPagingPage(resourceGroupName, automationAccountName, runbookName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Retrieve a test job stream of the test job identified by runbook name and stream id.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testJobStreams.js","sourceRoot":"","sources":["../../../src/operations/testJobStreams.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBAAyB,EACzB,qBAA6B,EAC7B,WAAmB,EACnB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YAC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AAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,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,WAAW;KACvB;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 { TestJobStreams } 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 JobStream,\n TestJobStreamsListByTestJobNextOptionalParams,\n TestJobStreamsListByTestJobOptionalParams,\n TestJobStreamsListByTestJobResponse,\n TestJobStreamsGetOptionalParams,\n TestJobStreamsGetResponse,\n TestJobStreamsListByTestJobNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TestJobStreams operations. */\nexport class TestJobStreamsImpl implements TestJobStreams {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class TestJobStreams 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 test job streams identified by runbook name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n public listByTestJob(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobStreamsListByTestJobOptionalParams\n ): PagedAsyncIterableIterator<JobStream> {\n const iter = this.listByTestJobPagingAll(\n resourceGroupName,\n automationAccountName,\n runbookName,\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.listByTestJobPagingPage(\n resourceGroupName,\n automationAccountName,\n runbookName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByTestJobPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobStreamsListByTestJobOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<JobStream[]> {\n let result: TestJobStreamsListByTestJobResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByTestJob(\n resourceGroupName,\n automationAccountName,\n runbookName,\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._listByTestJobNext(\n resourceGroupName,\n automationAccountName,\n runbookName,\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 *listByTestJobPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobStreamsListByTestJobOptionalParams\n ): AsyncIterableIterator<JobStream> {\n for await (const page of this.listByTestJobPagingPage(\n resourceGroupName,\n automationAccountName,\n runbookName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve a test job stream of the test job identified by runbook name and stream id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param jobStreamId The job stream id.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n jobStreamId: string,\n options?: TestJobStreamsGetOptionalParams\n ): Promise<TestJobStreamsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n runbookName,\n jobStreamId,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of test job streams identified by runbook name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n private _listByTestJob(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobStreamsListByTestJobOptionalParams\n ): Promise<TestJobStreamsListByTestJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, runbookName, options },\n listByTestJobOperationSpec\n );\n }\n\n /**\n * ListByTestJobNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param nextLink The nextLink from the previous successful call to the ListByTestJob method.\n * @param options The options parameters.\n */\n private _listByTestJobNext(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n nextLink: string,\n options?: TestJobStreamsListByTestJobNextOptionalParams\n ): Promise<TestJobStreamsListByTestJobNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n runbookName,\n nextLink,\n options\n },\n listByTestJobNextOperationSpec\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}/runbooks/{runbookName}/draft/testJob/streams/{jobStreamId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStream\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.jobStreamId,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTestJobOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStreamListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTestJobNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStreamListResult\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.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"testJobStreams.js","sourceRoot":"","sources":["../../../src/operations/testJobStreams.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBA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,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,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,WAAW;KACvB;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 { TestJobStreams } 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 JobStream,\n TestJobStreamsListByTestJobNextOptionalParams,\n TestJobStreamsListByTestJobOptionalParams,\n TestJobStreamsListByTestJobResponse,\n TestJobStreamsGetOptionalParams,\n TestJobStreamsGetResponse,\n TestJobStreamsListByTestJobNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TestJobStreams operations. */\nexport class TestJobStreamsImpl implements TestJobStreams {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class TestJobStreams 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 test job streams identified by runbook name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n public listByTestJob(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobStreamsListByTestJobOptionalParams\n ): PagedAsyncIterableIterator<JobStream> {\n const iter = this.listByTestJobPagingAll(\n resourceGroupName,\n automationAccountName,\n runbookName,\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.listByTestJobPagingPage(\n resourceGroupName,\n automationAccountName,\n runbookName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByTestJobPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobStreamsListByTestJobOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<JobStream[]> {\n let result: TestJobStreamsListByTestJobResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByTestJob(\n resourceGroupName,\n automationAccountName,\n runbookName,\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._listByTestJobNext(\n resourceGroupName,\n automationAccountName,\n runbookName,\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 *listByTestJobPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobStreamsListByTestJobOptionalParams\n ): AsyncIterableIterator<JobStream> {\n for await (const page of this.listByTestJobPagingPage(\n resourceGroupName,\n automationAccountName,\n runbookName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve a test job stream of the test job identified by runbook name and stream id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param jobStreamId The job stream id.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n jobStreamId: string,\n options?: TestJobStreamsGetOptionalParams\n ): Promise<TestJobStreamsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n runbookName,\n jobStreamId,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of test job streams identified by runbook name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param options The options parameters.\n */\n private _listByTestJob(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n options?: TestJobStreamsListByTestJobOptionalParams\n ): Promise<TestJobStreamsListByTestJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, runbookName, options },\n listByTestJobOperationSpec\n );\n }\n\n /**\n * ListByTestJobNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param runbookName The runbook name.\n * @param nextLink The nextLink from the previous successful call to the ListByTestJob method.\n * @param options The options parameters.\n */\n private _listByTestJobNext(\n resourceGroupName: string,\n automationAccountName: string,\n runbookName: string,\n nextLink: string,\n options?: TestJobStreamsListByTestJobNextOptionalParams\n ): Promise<TestJobStreamsListByTestJobNextResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n runbookName,\n nextLink,\n options\n },\n listByTestJobNextOperationSpec\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}/runbooks/{runbookName}/draft/testJob/streams/{jobStreamId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStream\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.jobStreamId,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTestJobOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStreamListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion3],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByTestJobNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStreamListResult\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.runbookName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing Usages operations. */
|
|
17
17
|
class UsagesImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class Usages class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -38,39 +39,22 @@ class UsagesImpl {
|
|
|
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.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
yield yield tslib_1.__await(result.value || []);
|
|
53
|
-
});
|
|
49
|
+
async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
50
|
+
let result;
|
|
51
|
+
result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, options);
|
|
52
|
+
yield result.value || [];
|
|
54
53
|
}
|
|
55
|
-
listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
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) {
|
|
60
|
-
_c = _f.value;
|
|
61
|
-
_d = false;
|
|
62
|
-
const page = _c;
|
|
63
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
-
finally {
|
|
68
|
-
try {
|
|
69
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
70
|
-
}
|
|
71
|
-
finally { if (e_1) throw e_1.error; }
|
|
72
|
-
}
|
|
73
|
-
});
|
|
54
|
+
async *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
55
|
+
for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
|
|
56
|
+
yield* page;
|
|
57
|
+
}
|
|
74
58
|
}
|
|
75
59
|
/**
|
|
76
60
|
* Retrieve the usage for the account id.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;IACJ,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,iCAAiC,CAC3C,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,iCAAiC,CAC9C,iBAAyB,EACzB,qBAA6B,EAC7B,OAA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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 { Usages } 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 Usage,\n UsagesListByAutomationAccountOptionalParams,\n UsagesListByAutomationAccountResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Usages operations. */\nexport class UsagesImpl implements Usages {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class Usages class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the usage for the account id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: UsagesListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: UsagesListByAutomationAccountOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Usage[]> {\n let result: UsagesListByAutomationAccountResponse;\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: UsagesListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve the usage for the account id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: UsagesListByAutomationAccountOptionalParams\n ): Promise<UsagesListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageListResult\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};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing VariableOperations operations. */
|
|
18
18
|
class VariableOperationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class VariableOperations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class VariableOperationsImpl {
|
|
|
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
|
* Create a variable.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variableOperations.js","sourceRoot":"","sources":["../../../src/operations/variableOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAmBtD,4CAA4C;AAC5C,sDAAsD;AACtD,MAAa,sBAAsB;IAGjC;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAuD;QAEvD,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC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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 { VariableOperations } 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 Variable,\n VariableListByAutomationAccountNextOptionalParams,\n VariableListByAutomationAccountOptionalParams,\n VariableListByAutomationAccountResponse,\n VariableCreateOrUpdateParameters,\n VariableCreateOrUpdateOptionalParams,\n VariableCreateOrUpdateResponse,\n VariableUpdateParameters,\n VariableUpdateOptionalParams,\n VariableUpdateResponse,\n VariableDeleteOptionalParams,\n VariableGetOptionalParams,\n VariableGetResponse,\n VariableListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing VariableOperations operations. */\nexport class VariableOperationsImpl implements VariableOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class VariableOperations 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 variables.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: VariableListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<Variable> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: VariableListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Variable[]> {\n let result: VariableListByAutomationAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAutomationAccountNext(\n resourceGroupName,\n automationAccountName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: VariableListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<Variable> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Create a variable.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param variableName The variable name.\n * @param parameters The parameters supplied to the create or update variable operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n variableName: string,\n parameters: VariableCreateOrUpdateParameters,\n options?: VariableCreateOrUpdateOptionalParams\n ): Promise<VariableCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n variableName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Update a variable.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param variableName The variable name.\n * @param parameters The parameters supplied to the update variable operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n automationAccountName: string,\n variableName: string,\n parameters: VariableUpdateParameters,\n options?: VariableUpdateOptionalParams\n ): Promise<VariableUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n variableName,\n parameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Delete the variable.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param variableName The name of variable.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n automationAccountName: string,\n variableName: string,\n options?: VariableDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, variableName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieve the variable identified by variable name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param variableName The name of variable.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n variableName: string,\n options?: VariableGetOptionalParams\n ): Promise<VariableGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, variableName, options },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of variables.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: VariableListByAutomationAccountOptionalParams\n ): Promise<VariableListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * ListByAutomationAccountNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount\n * method.\n * @param options The options parameters.\n */\n private _listByAutomationAccountNext(\n resourceGroupName: string,\n automationAccountName: string,\n nextLink: string,\n options?: VariableListByAutomationAccountNextOptionalParams\n ): Promise<VariableListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Variable\n },\n 201: {\n bodyMapper: Mappers.Variable\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters23,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.variableName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Variable\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters24,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.variableName\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}/variables/{variableName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.variableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Variable\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.variableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VariableListResult\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 listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VariableListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"variableOperations.js","sourceRoot":"","sources":["../../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M,wCAAwC,GAA6B;IACzE,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;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 { VariableOperations } 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 Variable,\n VariableListByAutomationAccountNextOptionalParams,\n VariableListByAutomationAccountOptionalParams,\n VariableListByAutomationAccountResponse,\n VariableCreateOrUpdateParameters,\n VariableCreateOrUpdateOptionalParams,\n VariableCreateOrUpdateResponse,\n VariableUpdateParameters,\n VariableUpdateOptionalParams,\n VariableUpdateResponse,\n VariableDeleteOptionalParams,\n VariableGetOptionalParams,\n VariableGetResponse,\n VariableListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing VariableOperations operations. */\nexport class VariableOperationsImpl implements VariableOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class VariableOperations 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 variables.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: VariableListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<Variable> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: VariableListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Variable[]> {\n let result: VariableListByAutomationAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAutomationAccountNext(\n resourceGroupName,\n automationAccountName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: VariableListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<Variable> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Create a variable.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param variableName The variable name.\n * @param parameters The parameters supplied to the create or update variable operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n variableName: string,\n parameters: VariableCreateOrUpdateParameters,\n options?: VariableCreateOrUpdateOptionalParams\n ): Promise<VariableCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n variableName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Update a variable.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param variableName The variable name.\n * @param parameters The parameters supplied to the update variable operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n automationAccountName: string,\n variableName: string,\n parameters: VariableUpdateParameters,\n options?: VariableUpdateOptionalParams\n ): Promise<VariableUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n variableName,\n parameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Delete the variable.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param variableName The name of variable.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n automationAccountName: string,\n variableName: string,\n options?: VariableDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, variableName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieve the variable identified by variable name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param variableName The name of variable.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n variableName: string,\n options?: VariableGetOptionalParams\n ): Promise<VariableGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, variableName, options },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of variables.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: VariableListByAutomationAccountOptionalParams\n ): Promise<VariableListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * ListByAutomationAccountNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount\n * method.\n * @param options The options parameters.\n */\n private _listByAutomationAccountNext(\n resourceGroupName: string,\n automationAccountName: string,\n nextLink: string,\n options?: VariableListByAutomationAccountNextOptionalParams\n ): Promise<VariableListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Variable\n },\n 201: {\n bodyMapper: Mappers.Variable\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters23,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.variableName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Variable\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters24,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.variableName\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}/variables/{variableName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.variableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Variable\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.variableName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VariableListResult\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 listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.VariableListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|