@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
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
12
11
|
/// <reference lib="esnext.asynciterable" />
|
|
13
12
|
/** Class containing StatisticsOperations operations. */
|
|
14
13
|
export class StatisticsOperationsImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class StatisticsOperations class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -35,39 +35,22 @@ export class StatisticsOperationsImpl {
|
|
|
35
35
|
return this;
|
|
36
36
|
},
|
|
37
37
|
byPage: (settings) => {
|
|
38
|
-
if (settings
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
40
|
}
|
|
41
41
|
return this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
yield yield __await(result.value || []);
|
|
50
|
-
});
|
|
45
|
+
async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
46
|
+
let result;
|
|
47
|
+
result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, options);
|
|
48
|
+
yield result.value || [];
|
|
51
49
|
}
|
|
52
|
-
listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
for (var _d = true, _e = __asyncValues(this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
57
|
-
_c = _f.value;
|
|
58
|
-
_d = false;
|
|
59
|
-
const page = _c;
|
|
60
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
-
finally {
|
|
65
|
-
try {
|
|
66
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
67
|
-
}
|
|
68
|
-
finally { if (e_1) throw e_1.error; }
|
|
69
|
-
}
|
|
70
|
-
});
|
|
50
|
+
async *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
51
|
+
for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
|
|
52
|
+
yield* page;
|
|
53
|
+
}
|
|
71
54
|
}
|
|
72
55
|
/**
|
|
73
56
|
* Retrieve the statistics for the account.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statisticsOperations.js","sourceRoot":"","sources":["../../../src/operations/statisticsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"statisticsOperations.js","sourceRoot":"","sources":["../../../src/operations/statisticsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,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,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T 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"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing TestJobOperations operations. */
|
|
12
12
|
export class TestJobOperationsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class TestJobOperations class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testJobOperations.js","sourceRoot":"","sources":["../../../src/operations/testJob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AE,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"]}
|
|
1
|
+
{"version":3,"file":"testJobOperations.js","sourceRoot":"","sources":["../../../src/operations/testJobOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,qDAAqD;AACrD,MAAM,OAAO,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,i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AAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,wLAAwL;IAC1L,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;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"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing TestJobStreams operations. */
|
|
15
14
|
export class TestJobStreamsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class TestJobStreams class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class TestJobStreamsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listByTestJobPagingPage(resourceGroupName, automationAccountName, runbookName, options, settings);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listByTestJobPagingPage(resourceGroupName, automationAccountName, runbookName, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listByTestJobPagingPage(resourceGroupName, automationAccountName, runbookName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listByTestJob(resourceGroupName, automationAccountName, runbookName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listByTestJobNext(resourceGroupName, automationAccountName, runbookName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listByTestJobPagingAll(resourceGroupName, automationAccountName, runbookName, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listByTestJobPagingPage(resourceGroupName, automationAccountName, runbookName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listByTestJobPagingAll(resourceGroupName, automationAccountName, runbookName, options) {
|
|
66
|
+
for await (const page of this.listByTestJobPagingPage(resourceGroupName, automationAccountName, runbookName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Retrieve a test job stream of the test job identified by runbook name and stream id.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3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B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EACF,2LAA2L;IAC7L,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,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;QAChC,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAmB;IAE1C;;;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;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,uBAAuB,CACjC,iBAAiB,EACjB,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C5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EACF,2LAA2L;IAC7L,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,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;QAChC,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,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"]}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
12
11
|
/// <reference lib="esnext.asynciterable" />
|
|
13
12
|
/** Class containing Usages operations. */
|
|
14
13
|
export class UsagesImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class Usages class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -35,39 +35,22 @@ export class UsagesImpl {
|
|
|
35
35
|
return this;
|
|
36
36
|
},
|
|
37
37
|
byPage: (settings) => {
|
|
38
|
-
if (settings
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
40
|
}
|
|
41
41
|
return this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
yield yield __await(result.value || []);
|
|
50
|
-
});
|
|
45
|
+
async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
46
|
+
let result;
|
|
47
|
+
result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, options);
|
|
48
|
+
yield result.value || [];
|
|
51
49
|
}
|
|
52
|
-
listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
for (var _d = true, _e = __asyncValues(this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
57
|
-
_c = _f.value;
|
|
58
|
-
_d = false;
|
|
59
|
-
const page = _c;
|
|
60
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
-
finally {
|
|
65
|
-
try {
|
|
66
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
67
|
-
}
|
|
68
|
-
finally { if (e_1) throw e_1.error; }
|
|
69
|
-
}
|
|
70
|
-
});
|
|
50
|
+
async *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
51
|
+
for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
|
|
52
|
+
yield* page;
|
|
53
|
+
}
|
|
71
54
|
}
|
|
72
55
|
/**
|
|
73
56
|
* 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
|
|
1
|
+
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO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,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,OAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,OAAO,EAAE,EACrD,oCAAoC,CACrC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EACF,qJAAqJ;IACvJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,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;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 { 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"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing VariableOperations operations. */
|
|
15
14
|
export class VariableOperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class VariableOperations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class VariableOperationsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listByAutomationAccountNext(resourceGroupName, automationAccountName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
65
|
+
for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Create a variable.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variableOperations.js","sourceRoot":"","sources":["../../../src/operations/variableOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAmBtD,4CAA4C;AAC5C,sDAAsD;AACtD,MAAM,OAAO,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,MAAM,CAAC,aAAa,CAAC;gBACpB,OAA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AAC;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":["../../../src/operations/variableOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,o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C;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,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"]}
|