@azure/arm-automation 11.0.0-alpha.20250718.1 → 11.0.0-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/automationClient.js +57 -5
- package/dist/browser/automationClient.js.map +1 -1
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +447 -212
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/activityOperations.js +23 -40
- package/dist/browser/operations/activityOperations.js.map +1 -1
- package/dist/browser/operations/agentRegistrationInformation.js +1 -0
- package/dist/browser/operations/agentRegistrationInformation.js.map +1 -1
- package/dist/browser/operations/automationAccountOperations.js +45 -79
- package/dist/browser/operations/automationAccountOperations.js.map +1 -1
- package/dist/browser/operations/certificateOperations.js +23 -40
- package/dist/browser/operations/certificateOperations.js.map +1 -1
- package/dist/browser/operations/connectionOperations.js +23 -40
- package/dist/browser/operations/connectionOperations.js.map +1 -1
- package/dist/browser/operations/connectionTypeOperations.js +23 -40
- package/dist/browser/operations/connectionTypeOperations.js.map +1 -1
- package/dist/browser/operations/credentialOperations.js +23 -40
- package/dist/browser/operations/credentialOperations.js.map +1 -1
- package/dist/browser/operations/deletedAutomationAccounts.js +1 -0
- package/dist/browser/operations/deletedAutomationAccounts.js.map +1 -1
- package/dist/browser/operations/dscCompilationJobOperations.js +34 -46
- package/dist/browser/operations/dscCompilationJobOperations.js.map +1 -1
- package/dist/browser/operations/dscCompilationJobStream.js +1 -0
- package/dist/browser/operations/dscCompilationJobStream.js.map +1 -1
- package/dist/browser/operations/dscConfigurationOperations.js +23 -40
- package/dist/browser/operations/dscConfigurationOperations.js.map +1 -1
- package/dist/browser/operations/dscNodeConfigurationOperations.js +34 -46
- package/dist/browser/operations/dscNodeConfigurationOperations.js.map +1 -1
- package/dist/browser/operations/dscNodeOperations.js +23 -40
- package/dist/browser/operations/dscNodeOperations.js.map +1 -1
- package/dist/browser/operations/fields.js +10 -27
- package/dist/browser/operations/fields.js.map +1 -1
- package/dist/browser/operations/hybridRunbookWorkerGroupOperations.js +23 -40
- package/dist/browser/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
- package/dist/browser/operations/hybridRunbookWorkers.js +23 -40
- package/dist/browser/operations/hybridRunbookWorkers.js.map +1 -1
- package/dist/browser/operations/jobOperations.js +23 -40
- package/dist/browser/operations/jobOperations.js.map +1 -1
- package/dist/browser/operations/jobScheduleOperations.js +23 -40
- package/dist/browser/operations/jobScheduleOperations.js.map +1 -1
- package/dist/browser/operations/jobStreamOperations.js +23 -40
- package/dist/browser/operations/jobStreamOperations.js.map +1 -1
- package/dist/browser/operations/keys.js +1 -0
- package/dist/browser/operations/keys.js.map +1 -1
- package/dist/browser/operations/linkedWorkspaceOperations.js +1 -0
- package/dist/browser/operations/linkedWorkspaceOperations.js.map +1 -1
- package/dist/browser/operations/moduleOperations.js +23 -40
- package/dist/browser/operations/moduleOperations.js.map +1 -1
- package/dist/browser/operations/nodeCountInformation.js +1 -0
- package/dist/browser/operations/nodeCountInformation.js.map +1 -1
- package/dist/browser/operations/nodeReports.js +23 -40
- package/dist/browser/operations/nodeReports.js.map +1 -1
- package/dist/browser/operations/objectDataTypes.js +19 -53
- package/dist/browser/operations/objectDataTypes.js.map +1 -1
- package/dist/browser/operations/operations.js +10 -27
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +10 -27
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/python2Package.js +23 -40
- package/dist/browser/operations/python2Package.js.map +1 -1
- package/dist/browser/operations/runbookDraftOperations.js +12 -6
- package/dist/browser/operations/runbookDraftOperations.js.map +1 -1
- package/dist/browser/operations/runbookOperations.js +34 -46
- package/dist/browser/operations/runbookOperations.js.map +1 -1
- package/dist/browser/operations/scheduleOperations.js +23 -40
- package/dist/browser/operations/scheduleOperations.js.map +1 -1
- package/dist/browser/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
- package/dist/browser/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
- package/dist/browser/operations/softwareUpdateConfigurationRuns.js +1 -0
- package/dist/browser/operations/softwareUpdateConfigurationRuns.js.map +1 -1
- package/dist/browser/operations/softwareUpdateConfigurations.js +1 -0
- package/dist/browser/operations/softwareUpdateConfigurations.js.map +1 -1
- package/dist/browser/operations/sourceControlOperations.js +23 -40
- package/dist/browser/operations/sourceControlOperations.js.map +1 -1
- package/dist/browser/operations/sourceControlSyncJobOperations.js +23 -40
- package/dist/browser/operations/sourceControlSyncJobOperations.js.map +1 -1
- package/dist/browser/operations/sourceControlSyncJobStreams.js +23 -40
- package/dist/browser/operations/sourceControlSyncJobStreams.js.map +1 -1
- package/dist/browser/operations/statisticsOperations.js +10 -27
- package/dist/browser/operations/statisticsOperations.js.map +1 -1
- package/dist/browser/operations/testJobOperations.js +1 -0
- package/dist/browser/operations/testJobOperations.js.map +1 -1
- package/dist/browser/operations/testJobStreams.js +23 -40
- package/dist/browser/operations/testJobStreams.js.map +1 -1
- package/dist/browser/operations/usages.js +10 -27
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/operations/variableOperations.js +23 -40
- package/dist/browser/operations/variableOperations.js.map +1 -1
- package/dist/browser/operations/watcherOperations.js +23 -40
- package/dist/browser/operations/watcherOperations.js.map +1 -1
- package/dist/browser/operations/webhookOperations.js +23 -40
- package/dist/browser/operations/webhookOperations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/automationClient.js +57 -5
- package/dist/commonjs/automationClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +447 -212
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/activityOperations.js +23 -39
- package/dist/commonjs/operations/activityOperations.js.map +1 -1
- package/dist/commonjs/operations/agentRegistrationInformation.js +1 -0
- package/dist/commonjs/operations/agentRegistrationInformation.js.map +1 -1
- package/dist/commonjs/operations/automationAccountOperations.js +45 -78
- package/dist/commonjs/operations/automationAccountOperations.js.map +1 -1
- package/dist/commonjs/operations/certificateOperations.js +23 -39
- package/dist/commonjs/operations/certificateOperations.js.map +1 -1
- package/dist/commonjs/operations/connectionOperations.js +23 -39
- package/dist/commonjs/operations/connectionOperations.js.map +1 -1
- package/dist/commonjs/operations/connectionTypeOperations.js +23 -39
- package/dist/commonjs/operations/connectionTypeOperations.js.map +1 -1
- package/dist/commonjs/operations/credentialOperations.js +23 -39
- package/dist/commonjs/operations/credentialOperations.js.map +1 -1
- package/dist/commonjs/operations/deletedAutomationAccounts.js +1 -0
- package/dist/commonjs/operations/deletedAutomationAccounts.js.map +1 -1
- package/dist/commonjs/operations/dscCompilationJobOperations.js +34 -45
- package/dist/commonjs/operations/dscCompilationJobOperations.js.map +1 -1
- package/dist/commonjs/operations/dscCompilationJobStream.js +1 -0
- package/dist/commonjs/operations/dscCompilationJobStream.js.map +1 -1
- package/dist/commonjs/operations/dscConfigurationOperations.js +23 -39
- package/dist/commonjs/operations/dscConfigurationOperations.js.map +1 -1
- package/dist/commonjs/operations/dscNodeConfigurationOperations.js +34 -45
- package/dist/commonjs/operations/dscNodeConfigurationOperations.js.map +1 -1
- package/dist/commonjs/operations/dscNodeOperations.js +23 -39
- package/dist/commonjs/operations/dscNodeOperations.js.map +1 -1
- package/dist/commonjs/operations/fields.js +10 -26
- package/dist/commonjs/operations/fields.js.map +1 -1
- package/dist/commonjs/operations/hybridRunbookWorkerGroupOperations.js +23 -39
- package/dist/commonjs/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
- package/dist/commonjs/operations/hybridRunbookWorkers.js +23 -39
- package/dist/commonjs/operations/hybridRunbookWorkers.js.map +1 -1
- package/dist/commonjs/operations/jobOperations.js +23 -39
- package/dist/commonjs/operations/jobOperations.js.map +1 -1
- package/dist/commonjs/operations/jobScheduleOperations.js +23 -39
- package/dist/commonjs/operations/jobScheduleOperations.js.map +1 -1
- package/dist/commonjs/operations/jobStreamOperations.js +23 -39
- package/dist/commonjs/operations/jobStreamOperations.js.map +1 -1
- package/dist/commonjs/operations/keys.js +1 -0
- package/dist/commonjs/operations/keys.js.map +1 -1
- package/dist/commonjs/operations/linkedWorkspaceOperations.js +1 -0
- package/dist/commonjs/operations/linkedWorkspaceOperations.js.map +1 -1
- package/dist/commonjs/operations/moduleOperations.js +23 -39
- package/dist/commonjs/operations/moduleOperations.js.map +1 -1
- package/dist/commonjs/operations/nodeCountInformation.js +1 -0
- package/dist/commonjs/operations/nodeCountInformation.js.map +1 -1
- package/dist/commonjs/operations/nodeReports.js +23 -39
- package/dist/commonjs/operations/nodeReports.js.map +1 -1
- package/dist/commonjs/operations/objectDataTypes.js +19 -52
- package/dist/commonjs/operations/objectDataTypes.js.map +1 -1
- package/dist/commonjs/operations/operations.js +10 -26
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +10 -26
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/python2Package.js +23 -39
- package/dist/commonjs/operations/python2Package.js.map +1 -1
- package/dist/commonjs/operations/runbookDraftOperations.js +12 -6
- package/dist/commonjs/operations/runbookDraftOperations.js.map +1 -1
- package/dist/commonjs/operations/runbookOperations.js +34 -45
- package/dist/commonjs/operations/runbookOperations.js.map +1 -1
- package/dist/commonjs/operations/scheduleOperations.js +23 -39
- package/dist/commonjs/operations/scheduleOperations.js.map +1 -1
- package/dist/commonjs/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
- package/dist/commonjs/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
- package/dist/commonjs/operations/softwareUpdateConfigurationRuns.js +1 -0
- package/dist/commonjs/operations/softwareUpdateConfigurationRuns.js.map +1 -1
- package/dist/commonjs/operations/softwareUpdateConfigurations.js +1 -0
- package/dist/commonjs/operations/softwareUpdateConfigurations.js.map +1 -1
- package/dist/commonjs/operations/sourceControlOperations.js +23 -39
- package/dist/commonjs/operations/sourceControlOperations.js.map +1 -1
- package/dist/commonjs/operations/sourceControlSyncJobOperations.js +23 -39
- package/dist/commonjs/operations/sourceControlSyncJobOperations.js.map +1 -1
- package/dist/commonjs/operations/sourceControlSyncJobStreams.js +23 -39
- package/dist/commonjs/operations/sourceControlSyncJobStreams.js.map +1 -1
- package/dist/commonjs/operations/statisticsOperations.js +10 -26
- package/dist/commonjs/operations/statisticsOperations.js.map +1 -1
- package/dist/commonjs/operations/testJobOperations.js +1 -0
- package/dist/commonjs/operations/testJobOperations.js.map +1 -1
- package/dist/commonjs/operations/testJobStreams.js +23 -39
- package/dist/commonjs/operations/testJobStreams.js.map +1 -1
- package/dist/commonjs/operations/usages.js +10 -26
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/operations/variableOperations.js +23 -39
- package/dist/commonjs/operations/variableOperations.js.map +1 -1
- package/dist/commonjs/operations/watcherOperations.js +23 -39
- package/dist/commonjs/operations/watcherOperations.js.map +1 -1
- package/dist/commonjs/operations/webhookOperations.js +23 -39
- package/dist/commonjs/operations/webhookOperations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/automationClient.js +57 -5
- package/dist/esm/automationClient.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +447 -212
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/activityOperations.js +23 -40
- package/dist/esm/operations/activityOperations.js.map +1 -1
- package/dist/esm/operations/agentRegistrationInformation.js +1 -0
- package/dist/esm/operations/agentRegistrationInformation.js.map +1 -1
- package/dist/esm/operations/automationAccountOperations.js +45 -79
- package/dist/esm/operations/automationAccountOperations.js.map +1 -1
- package/dist/esm/operations/certificateOperations.js +23 -40
- package/dist/esm/operations/certificateOperations.js.map +1 -1
- package/dist/esm/operations/connectionOperations.js +23 -40
- package/dist/esm/operations/connectionOperations.js.map +1 -1
- package/dist/esm/operations/connectionTypeOperations.js +23 -40
- package/dist/esm/operations/connectionTypeOperations.js.map +1 -1
- package/dist/esm/operations/credentialOperations.js +23 -40
- package/dist/esm/operations/credentialOperations.js.map +1 -1
- package/dist/esm/operations/deletedAutomationAccounts.js +1 -0
- package/dist/esm/operations/deletedAutomationAccounts.js.map +1 -1
- package/dist/esm/operations/dscCompilationJobOperations.js +34 -46
- package/dist/esm/operations/dscCompilationJobOperations.js.map +1 -1
- package/dist/esm/operations/dscCompilationJobStream.js +1 -0
- package/dist/esm/operations/dscCompilationJobStream.js.map +1 -1
- package/dist/esm/operations/dscConfigurationOperations.js +23 -40
- package/dist/esm/operations/dscConfigurationOperations.js.map +1 -1
- package/dist/esm/operations/dscNodeConfigurationOperations.js +34 -46
- package/dist/esm/operations/dscNodeConfigurationOperations.js.map +1 -1
- package/dist/esm/operations/dscNodeOperations.js +23 -40
- package/dist/esm/operations/dscNodeOperations.js.map +1 -1
- package/dist/esm/operations/fields.js +10 -27
- package/dist/esm/operations/fields.js.map +1 -1
- package/dist/esm/operations/hybridRunbookWorkerGroupOperations.js +23 -40
- package/dist/esm/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
- package/dist/esm/operations/hybridRunbookWorkers.js +23 -40
- package/dist/esm/operations/hybridRunbookWorkers.js.map +1 -1
- package/dist/esm/operations/jobOperations.js +23 -40
- package/dist/esm/operations/jobOperations.js.map +1 -1
- package/dist/esm/operations/jobScheduleOperations.js +23 -40
- package/dist/esm/operations/jobScheduleOperations.js.map +1 -1
- package/dist/esm/operations/jobStreamOperations.js +23 -40
- package/dist/esm/operations/jobStreamOperations.js.map +1 -1
- package/dist/esm/operations/keys.js +1 -0
- package/dist/esm/operations/keys.js.map +1 -1
- package/dist/esm/operations/linkedWorkspaceOperations.js +1 -0
- package/dist/esm/operations/linkedWorkspaceOperations.js.map +1 -1
- package/dist/esm/operations/moduleOperations.js +23 -40
- package/dist/esm/operations/moduleOperations.js.map +1 -1
- package/dist/esm/operations/nodeCountInformation.js +1 -0
- package/dist/esm/operations/nodeCountInformation.js.map +1 -1
- package/dist/esm/operations/nodeReports.js +23 -40
- package/dist/esm/operations/nodeReports.js.map +1 -1
- package/dist/esm/operations/objectDataTypes.js +19 -53
- package/dist/esm/operations/objectDataTypes.js.map +1 -1
- package/dist/esm/operations/operations.js +10 -27
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +32 -39
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +10 -27
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/python2Package.js +23 -40
- package/dist/esm/operations/python2Package.js.map +1 -1
- package/dist/esm/operations/runbookDraftOperations.js +12 -6
- package/dist/esm/operations/runbookDraftOperations.js.map +1 -1
- package/dist/esm/operations/runbookOperations.js +34 -46
- package/dist/esm/operations/runbookOperations.js.map +1 -1
- package/dist/esm/operations/scheduleOperations.js +23 -40
- package/dist/esm/operations/scheduleOperations.js.map +1 -1
- package/dist/esm/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
- package/dist/esm/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
- package/dist/esm/operations/softwareUpdateConfigurationRuns.js +1 -0
- package/dist/esm/operations/softwareUpdateConfigurationRuns.js.map +1 -1
- package/dist/esm/operations/softwareUpdateConfigurations.js +1 -0
- package/dist/esm/operations/softwareUpdateConfigurations.js.map +1 -1
- package/dist/esm/operations/sourceControlOperations.js +23 -40
- package/dist/esm/operations/sourceControlOperations.js.map +1 -1
- package/dist/esm/operations/sourceControlSyncJobOperations.js +23 -40
- package/dist/esm/operations/sourceControlSyncJobOperations.js.map +1 -1
- package/dist/esm/operations/sourceControlSyncJobStreams.js +23 -40
- package/dist/esm/operations/sourceControlSyncJobStreams.js.map +1 -1
- package/dist/esm/operations/statisticsOperations.js +10 -27
- package/dist/esm/operations/statisticsOperations.js.map +1 -1
- package/dist/esm/operations/testJobOperations.js +1 -0
- package/dist/esm/operations/testJobOperations.js.map +1 -1
- package/dist/esm/operations/testJobStreams.js +23 -40
- package/dist/esm/operations/testJobStreams.js.map +1 -1
- package/dist/esm/operations/usages.js +10 -27
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/operations/variableOperations.js +23 -40
- package/dist/esm/operations/variableOperations.js.map +1 -1
- package/dist/esm/operations/watcherOperations.js +23 -40
- package/dist/esm/operations/watcherOperations.js.map +1 -1
- package/dist/esm/operations/webhookOperations.js +23 -40
- package/dist/esm/operations/webhookOperations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/automationClient.js +57 -5
- package/dist/react-native/automationClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +447 -212
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/activityOperations.js +23 -40
- package/dist/react-native/operations/activityOperations.js.map +1 -1
- package/dist/react-native/operations/agentRegistrationInformation.js +1 -0
- package/dist/react-native/operations/agentRegistrationInformation.js.map +1 -1
- package/dist/react-native/operations/automationAccountOperations.js +45 -79
- package/dist/react-native/operations/automationAccountOperations.js.map +1 -1
- package/dist/react-native/operations/certificateOperations.js +23 -40
- package/dist/react-native/operations/certificateOperations.js.map +1 -1
- package/dist/react-native/operations/connectionOperations.js +23 -40
- package/dist/react-native/operations/connectionOperations.js.map +1 -1
- package/dist/react-native/operations/connectionTypeOperations.js +23 -40
- package/dist/react-native/operations/connectionTypeOperations.js.map +1 -1
- package/dist/react-native/operations/credentialOperations.js +23 -40
- package/dist/react-native/operations/credentialOperations.js.map +1 -1
- package/dist/react-native/operations/deletedAutomationAccounts.js +1 -0
- package/dist/react-native/operations/deletedAutomationAccounts.js.map +1 -1
- package/dist/react-native/operations/dscCompilationJobOperations.js +34 -46
- package/dist/react-native/operations/dscCompilationJobOperations.js.map +1 -1
- package/dist/react-native/operations/dscCompilationJobStream.js +1 -0
- package/dist/react-native/operations/dscCompilationJobStream.js.map +1 -1
- package/dist/react-native/operations/dscConfigurationOperations.js +23 -40
- package/dist/react-native/operations/dscConfigurationOperations.js.map +1 -1
- package/dist/react-native/operations/dscNodeConfigurationOperations.js +34 -46
- package/dist/react-native/operations/dscNodeConfigurationOperations.js.map +1 -1
- package/dist/react-native/operations/dscNodeOperations.js +23 -40
- package/dist/react-native/operations/dscNodeOperations.js.map +1 -1
- package/dist/react-native/operations/fields.js +10 -27
- package/dist/react-native/operations/fields.js.map +1 -1
- package/dist/react-native/operations/hybridRunbookWorkerGroupOperations.js +23 -40
- package/dist/react-native/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
- package/dist/react-native/operations/hybridRunbookWorkers.js +23 -40
- package/dist/react-native/operations/hybridRunbookWorkers.js.map +1 -1
- package/dist/react-native/operations/jobOperations.js +23 -40
- package/dist/react-native/operations/jobOperations.js.map +1 -1
- package/dist/react-native/operations/jobScheduleOperations.js +23 -40
- package/dist/react-native/operations/jobScheduleOperations.js.map +1 -1
- package/dist/react-native/operations/jobStreamOperations.js +23 -40
- package/dist/react-native/operations/jobStreamOperations.js.map +1 -1
- package/dist/react-native/operations/keys.js +1 -0
- package/dist/react-native/operations/keys.js.map +1 -1
- package/dist/react-native/operations/linkedWorkspaceOperations.js +1 -0
- package/dist/react-native/operations/linkedWorkspaceOperations.js.map +1 -1
- package/dist/react-native/operations/moduleOperations.js +23 -40
- package/dist/react-native/operations/moduleOperations.js.map +1 -1
- package/dist/react-native/operations/nodeCountInformation.js +1 -0
- package/dist/react-native/operations/nodeCountInformation.js.map +1 -1
- package/dist/react-native/operations/nodeReports.js +23 -40
- package/dist/react-native/operations/nodeReports.js.map +1 -1
- package/dist/react-native/operations/objectDataTypes.js +19 -53
- package/dist/react-native/operations/objectDataTypes.js.map +1 -1
- package/dist/react-native/operations/operations.js +10 -27
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +32 -39
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +10 -27
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/python2Package.js +23 -40
- package/dist/react-native/operations/python2Package.js.map +1 -1
- package/dist/react-native/operations/runbookDraftOperations.js +12 -6
- package/dist/react-native/operations/runbookDraftOperations.js.map +1 -1
- package/dist/react-native/operations/runbookOperations.js +34 -46
- package/dist/react-native/operations/runbookOperations.js.map +1 -1
- package/dist/react-native/operations/scheduleOperations.js +23 -40
- package/dist/react-native/operations/scheduleOperations.js.map +1 -1
- package/dist/react-native/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
- package/dist/react-native/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
- package/dist/react-native/operations/softwareUpdateConfigurationRuns.js +1 -0
- package/dist/react-native/operations/softwareUpdateConfigurationRuns.js.map +1 -1
- package/dist/react-native/operations/softwareUpdateConfigurations.js +1 -0
- package/dist/react-native/operations/softwareUpdateConfigurations.js.map +1 -1
- package/dist/react-native/operations/sourceControlOperations.js +23 -40
- package/dist/react-native/operations/sourceControlOperations.js.map +1 -1
- package/dist/react-native/operations/sourceControlSyncJobOperations.js +23 -40
- package/dist/react-native/operations/sourceControlSyncJobOperations.js.map +1 -1
- package/dist/react-native/operations/sourceControlSyncJobStreams.js +23 -40
- package/dist/react-native/operations/sourceControlSyncJobStreams.js.map +1 -1
- package/dist/react-native/operations/statisticsOperations.js +10 -27
- package/dist/react-native/operations/statisticsOperations.js.map +1 -1
- package/dist/react-native/operations/testJobOperations.js +1 -0
- package/dist/react-native/operations/testJobOperations.js.map +1 -1
- package/dist/react-native/operations/testJobStreams.js +23 -40
- package/dist/react-native/operations/testJobStreams.js.map +1 -1
- package/dist/react-native/operations/usages.js +10 -27
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/operations/variableOperations.js +23 -40
- package/dist/react-native/operations/variableOperations.js.map +1 -1
- package/dist/react-native/operations/watcherOperations.js +23 -40
- package/dist/react-native/operations/watcherOperations.js.map +1 -1
- package/dist/react-native/operations/webhookOperations.js +23 -40
- package/dist/react-native/operations/webhookOperations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-automation-node.api.md +3756 -3756
|
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
|
18
18
|
/** Class containing PrivateEndpointConnections operations. */
|
|
19
19
|
class PrivateEndpointConnectionsImpl {
|
|
20
|
+
client;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
22
23
|
* @param client Reference to the service client
|
|
@@ -40,39 +41,22 @@ class PrivateEndpointConnectionsImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
yield yield tslib_1.__await(result.value || []);
|
|
55
|
-
});
|
|
51
|
+
async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
52
|
+
let result;
|
|
53
|
+
result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, options);
|
|
54
|
+
yield result.value || [];
|
|
56
55
|
}
|
|
57
|
-
listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
62
|
-
_c = _f.value;
|
|
63
|
-
_d = false;
|
|
64
|
-
const page = _c;
|
|
65
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
69
|
-
finally {
|
|
70
|
-
try {
|
|
71
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
72
|
-
}
|
|
73
|
-
finally { if (e_1) throw e_1.error; }
|
|
74
|
-
}
|
|
75
|
-
});
|
|
56
|
+
async *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
57
|
+
for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
|
|
58
|
+
yield* page;
|
|
59
|
+
}
|
|
76
60
|
}
|
|
77
61
|
/**
|
|
78
62
|
* List all private endpoint connections on a Automation account.
|
|
@@ -111,14 +95,19 @@ class PrivateEndpointConnectionsImpl {
|
|
|
111
95
|
return this.client.sendOperationRequest(args, spec);
|
|
112
96
|
};
|
|
113
97
|
const sendOperation = async (args, spec) => {
|
|
114
|
-
var _a;
|
|
115
98
|
let currentRawResponse = undefined;
|
|
116
|
-
const providedCallback =
|
|
99
|
+
const providedCallback = args.options?.onResponse;
|
|
117
100
|
const callback = (rawResponse, flatResponse) => {
|
|
118
101
|
currentRawResponse = rawResponse;
|
|
119
|
-
providedCallback
|
|
102
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
103
|
+
};
|
|
104
|
+
const updatedArgs = {
|
|
105
|
+
...args,
|
|
106
|
+
options: {
|
|
107
|
+
...args.options,
|
|
108
|
+
onResponse: callback
|
|
109
|
+
}
|
|
120
110
|
};
|
|
121
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
122
111
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
123
112
|
return {
|
|
124
113
|
flatResponse,
|
|
@@ -137,8 +126,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
137
126
|
options
|
|
138
127
|
}, createOrUpdateOperationSpec);
|
|
139
128
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
140
|
-
resumeFrom: options
|
|
141
|
-
intervalInMs: options
|
|
129
|
+
resumeFrom: options?.resumeFrom,
|
|
130
|
+
intervalInMs: options?.updateIntervalInMs
|
|
142
131
|
});
|
|
143
132
|
await poller.poll();
|
|
144
133
|
return poller;
|
|
@@ -167,14 +156,19 @@ class PrivateEndpointConnectionsImpl {
|
|
|
167
156
|
return this.client.sendOperationRequest(args, spec);
|
|
168
157
|
};
|
|
169
158
|
const sendOperation = async (args, spec) => {
|
|
170
|
-
var _a;
|
|
171
159
|
let currentRawResponse = undefined;
|
|
172
|
-
const providedCallback =
|
|
160
|
+
const providedCallback = args.options?.onResponse;
|
|
173
161
|
const callback = (rawResponse, flatResponse) => {
|
|
174
162
|
currentRawResponse = rawResponse;
|
|
175
|
-
providedCallback
|
|
163
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
164
|
+
};
|
|
165
|
+
const updatedArgs = {
|
|
166
|
+
...args,
|
|
167
|
+
options: {
|
|
168
|
+
...args.options,
|
|
169
|
+
onResponse: callback
|
|
170
|
+
}
|
|
176
171
|
};
|
|
177
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
178
172
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
179
173
|
return {
|
|
180
174
|
flatResponse,
|
|
@@ -192,8 +186,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
192
186
|
options
|
|
193
187
|
}, deleteOperationSpec);
|
|
194
188
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
195
|
-
resumeFrom: options
|
|
196
|
-
intervalInMs: options
|
|
189
|
+
resumeFrom: options?.resumeFrom,
|
|
190
|
+
intervalInMs: options?.updateIntervalInMs
|
|
197
191
|
});
|
|
198
192
|
await poller.poll();
|
|
199
193
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAYxC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAa,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAyE;QAEzE,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;o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ClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,UAAU;IAClC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,yMAAyM;IAC3M,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,6BAA6B;KACzC;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 { PrivateEndpointConnections } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AutomationClient } from \"../automationClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsListByAutomationAccountOptionalParams,\n PrivateEndpointConnectionsListByAutomationAccountResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * List all private endpoint connections on a Automation account.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\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?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListByAutomationAccountResponse;\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?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List all private endpoint connections on a Automation account.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams\n ): Promise<PrivateEndpointConnectionsListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * Gets a private endpoint connection.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n privateEndpointConnectionName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Approve or reject a private endpoint connection with a given name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param parameters A private endpoint connection\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n automationAccountName,\n privateEndpointConnectionName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Approve or reject a private endpoint connection with a given name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param parameters A private endpoint connection\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n automationAccountName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n automationAccountName,\n privateEndpointConnectionName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n automationAccountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n automationAccountName,\n privateEndpointConnectionName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n automationAccountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n automationAccountName,\n privateEndpointConnectionName,\n options\n );\n return poller.pollUntilDone();\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}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult\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 getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.privateEndpointConnectionName\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}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\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.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAYxC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAa,8BAA8B;IAExB,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,OAAyE;QAEzE,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;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a,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,yMAAyM;IAC3M,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,6BAA6B;KACzC;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 { PrivateEndpointConnections } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AutomationClient } from \"../automationClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsListByAutomationAccountOptionalParams,\n PrivateEndpointConnectionsListByAutomationAccountResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * List all private endpoint connections on a Automation account.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\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?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListByAutomationAccountResponse;\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?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List all private endpoint connections on a Automation account.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: PrivateEndpointConnectionsListByAutomationAccountOptionalParams\n ): Promise<PrivateEndpointConnectionsListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * Gets a private endpoint connection.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n privateEndpointConnectionName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Approve or reject a private endpoint connection with a given name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param parameters A private endpoint connection\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n automationAccountName,\n privateEndpointConnectionName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Approve or reject a private endpoint connection with a given name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param parameters A private endpoint connection\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n automationAccountName: string,\n privateEndpointConnectionName: string,\n parameters: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n automationAccountName,\n privateEndpointConnectionName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n automationAccountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n automationAccountName,\n privateEndpointConnectionName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n automationAccountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n automationAccountName,\n privateEndpointConnectionName,\n options\n );\n return poller.pollUntilDone();\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}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult\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 getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.privateEndpointConnectionName\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}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\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.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing PrivateLinkResources operations. */
|
|
17
17
|
class PrivateLinkResourcesImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class PrivateLinkResources class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -38,39 +39,22 @@ class PrivateLinkResourcesImpl {
|
|
|
38
39
|
return this;
|
|
39
40
|
},
|
|
40
41
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
42
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
44
|
}
|
|
44
45
|
return this.automationPagingPage(resourceGroupName, automationAccountName, options, settings);
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
automationPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
yield yield tslib_1.__await(result.value || []);
|
|
53
|
-
});
|
|
49
|
+
async *automationPagingPage(resourceGroupName, automationAccountName, options, _settings) {
|
|
50
|
+
let result;
|
|
51
|
+
result = await this._automation(resourceGroupName, automationAccountName, options);
|
|
52
|
+
yield result.value || [];
|
|
54
53
|
}
|
|
55
|
-
automationPagingAll(resourceGroupName, automationAccountName, options) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.automationPagingPage(resourceGroupName, automationAccountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
60
|
-
_c = _f.value;
|
|
61
|
-
_d = false;
|
|
62
|
-
const page = _c;
|
|
63
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
-
finally {
|
|
68
|
-
try {
|
|
69
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
70
|
-
}
|
|
71
|
-
finally { if (e_1) throw e_1.error; }
|
|
72
|
-
}
|
|
73
|
-
});
|
|
54
|
+
async *automationPagingAll(resourceGroupName, automationAccountName, options) {
|
|
55
|
+
for await (const page of this.automationPagingPage(resourceGroupName, automationAccountName, options)) {
|
|
56
|
+
yield* page;
|
|
57
|
+
}
|
|
74
58
|
}
|
|
75
59
|
/**
|
|
76
60
|
* Gets the private link resources that need to be created for Automation account.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAa,wBAAwB;
|
|
1
|
+
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;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B,EACjB,qBAAqB,EACrB,OAAO,CACR,EAAE,CAAC;YACF,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACK,WAAW,CACjB,iBAAyB,EACzB,qBAA6B,EAC7B,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,OAAO,EAAE,EACrD,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AA7FD,4DA6FC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EACF,mKAAmK;IACrK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { PrivateLinkResources } 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 PrivateLinkResource,\n PrivateLinkResourcesAutomationOptionalParams,\n PrivateLinkResourcesAutomationResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for Automation account.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listAutomation(\n resourceGroupName: string,\n automationAccountName: string,\n options?: PrivateLinkResourcesAutomationOptionalParams\n ): PagedAsyncIterableIterator<PrivateLinkResource> {\n const iter = this.automationPagingAll(\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.automationPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *automationPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: PrivateLinkResourcesAutomationOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<PrivateLinkResource[]> {\n let result: PrivateLinkResourcesAutomationResponse;\n result = await this._automation(\n resourceGroupName,\n automationAccountName,\n options\n );\n yield result.value || [];\n }\n\n private async *automationPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: PrivateLinkResourcesAutomationOptionalParams\n ): AsyncIterableIterator<PrivateLinkResource> {\n for await (const page of this.automationPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the private link resources that need to be created for Automation account.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _automation(\n resourceGroupName: string,\n automationAccountName: string,\n options?: PrivateLinkResourcesAutomationOptionalParams\n ): Promise<PrivateLinkResourcesAutomationResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n automationOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst automationOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResult\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};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Python2Package operations. */
|
|
18
18
|
class Python2PackageImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Python2Package class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class Python2PackageImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listByAutomationAccountNext(resourceGroupName, automationAccountName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
|
|
69
|
+
for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Delete the python 2 package by name.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"python2Package.js","sourceRoot":"","sources":["../../../src/operations/python2Package.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAmBtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAA6D;QAE7D,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,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;IAEc,iCAAiC,CAC9C,iBAAyB,EACzB,qBAA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U;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EACF,8JAA8J;IAChK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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 { Python2Package } 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 Module,\n Python2PackageListByAutomationAccountNextOptionalParams,\n Python2PackageListByAutomationAccountOptionalParams,\n Python2PackageListByAutomationAccountResponse,\n Python2PackageDeleteOptionalParams,\n Python2PackageGetOptionalParams,\n Python2PackageGetResponse,\n PythonPackageCreateParameters,\n Python2PackageCreateOrUpdateOptionalParams,\n Python2PackageCreateOrUpdateResponse,\n PythonPackageUpdateParameters,\n Python2PackageUpdateOptionalParams,\n Python2PackageUpdateResponse,\n Python2PackageListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Python2Package operations. */\nexport class Python2PackageImpl implements Python2Package {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class Python2Package 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 python 2 packages.\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?: Python2PackageListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<Module> {\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?: Python2PackageListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Module[]> {\n let result: Python2PackageListByAutomationAccountResponse;\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?: Python2PackageListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<Module> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Delete the python 2 package by name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param packageName The python package name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n automationAccountName: string,\n packageName: string,\n options?: Python2PackageDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, packageName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieve the python 2 package identified by package name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param packageName The python package name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n packageName: string,\n options?: Python2PackageGetOptionalParams\n ): Promise<Python2PackageGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, packageName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or Update the python 2 package identified by package name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param packageName The name of python package.\n * @param parameters The create or update parameters for python package.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n packageName: string,\n parameters: PythonPackageCreateParameters,\n options?: Python2PackageCreateOrUpdateOptionalParams\n ): Promise<Python2PackageCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n packageName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Update the python 2 package identified by package name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param packageName The name of python package.\n * @param parameters The update parameters for python package.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n automationAccountName: string,\n packageName: string,\n parameters: PythonPackageUpdateParameters,\n options?: Python2PackageUpdateOptionalParams\n ): Promise<Python2PackageUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n packageName,\n parameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Retrieve a list of python 2 packages.\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?: Python2PackageListByAutomationAccountOptionalParams\n ): Promise<Python2PackageListByAutomationAccountResponse> {\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?: Python2PackageListByAutomationAccountNextOptionalParams\n ): Promise<Python2PackageListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}\",\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.packageName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Module\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.packageName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Module\n },\n 201: {\n bodyMapper: Mappers.Module\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.packageName\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}/python2Packages/{packageName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Module\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.packageName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModuleListResult\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.ModuleListResult\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":"python2Package.js","sourceRoot":"","sources":["../../../src/operations/python2Package.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAmBtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uB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C5B,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 { Python2Package } 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 Module,\n Python2PackageListByAutomationAccountNextOptionalParams,\n Python2PackageListByAutomationAccountOptionalParams,\n Python2PackageListByAutomationAccountResponse,\n Python2PackageDeleteOptionalParams,\n Python2PackageGetOptionalParams,\n Python2PackageGetResponse,\n PythonPackageCreateParameters,\n Python2PackageCreateOrUpdateOptionalParams,\n Python2PackageCreateOrUpdateResponse,\n PythonPackageUpdateParameters,\n Python2PackageUpdateOptionalParams,\n Python2PackageUpdateResponse,\n Python2PackageListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Python2Package operations. */\nexport class Python2PackageImpl implements Python2Package {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class Python2Package 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 python 2 packages.\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?: Python2PackageListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<Module> {\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?: Python2PackageListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Module[]> {\n let result: Python2PackageListByAutomationAccountResponse;\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?: Python2PackageListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<Module> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Delete the python 2 package by name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param packageName The python package name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n automationAccountName: string,\n packageName: string,\n options?: Python2PackageDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, packageName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieve the python 2 package identified by package name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param packageName The python package name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n packageName: string,\n options?: Python2PackageGetOptionalParams\n ): Promise<Python2PackageGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, packageName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or Update the python 2 package identified by package name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param packageName The name of python package.\n * @param parameters The create or update parameters for python package.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n packageName: string,\n parameters: PythonPackageCreateParameters,\n options?: Python2PackageCreateOrUpdateOptionalParams\n ): Promise<Python2PackageCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n packageName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Update the python 2 package identified by package name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param packageName The name of python package.\n * @param parameters The update parameters for python package.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n automationAccountName: string,\n packageName: string,\n parameters: PythonPackageUpdateParameters,\n options?: Python2PackageUpdateOptionalParams\n ): Promise<Python2PackageUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n packageName,\n parameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Retrieve a list of python 2 packages.\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?: Python2PackageListByAutomationAccountOptionalParams\n ): Promise<Python2PackageListByAutomationAccountResponse> {\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?: Python2PackageListByAutomationAccountNextOptionalParams\n ): Promise<Python2PackageListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}\",\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.packageName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Module\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.packageName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Module\n },\n 201: {\n bodyMapper: Mappers.Module\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.packageName\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}/python2Packages/{packageName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Module\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.packageName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModuleListResult\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.ModuleListResult\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"]}
|
|
@@ -16,6 +16,7 @@ const core_lro_1 = require("@azure/core-lro");
|
|
|
16
16
|
const lroImpl_js_1 = require("../lroImpl.js");
|
|
17
17
|
/** Class containing RunbookDraftOperations operations. */
|
|
18
18
|
class RunbookDraftOperationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class RunbookDraftOperations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -46,14 +47,19 @@ class RunbookDraftOperationsImpl {
|
|
|
46
47
|
return this.client.sendOperationRequest(args, spec);
|
|
47
48
|
};
|
|
48
49
|
const sendOperation = async (args, spec) => {
|
|
49
|
-
var _a;
|
|
50
50
|
let currentRawResponse = undefined;
|
|
51
|
-
const providedCallback =
|
|
51
|
+
const providedCallback = args.options?.onResponse;
|
|
52
52
|
const callback = (rawResponse, flatResponse) => {
|
|
53
53
|
currentRawResponse = rawResponse;
|
|
54
|
-
providedCallback
|
|
54
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
55
|
+
};
|
|
56
|
+
const updatedArgs = {
|
|
57
|
+
...args,
|
|
58
|
+
options: {
|
|
59
|
+
...args.options,
|
|
60
|
+
onResponse: callback
|
|
61
|
+
}
|
|
55
62
|
};
|
|
56
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
57
63
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
58
64
|
return {
|
|
59
65
|
flatResponse,
|
|
@@ -72,8 +78,8 @@ class RunbookDraftOperationsImpl {
|
|
|
72
78
|
options
|
|
73
79
|
}, replaceContentOperationSpec);
|
|
74
80
|
const poller = new core_lro_1.LroEngine(lro, {
|
|
75
|
-
resumeFrom: options
|
|
76
|
-
intervalInMs: options
|
|
81
|
+
resumeFrom: options?.resumeFrom,
|
|
82
|
+
intervalInMs: options?.updateIntervalInMs
|
|
77
83
|
});
|
|
78
84
|
await poller.poll();
|
|
79
85
|
return poller;
|